text
stringlengths
27
775k
# travis-cmake-cpp14 Travis-CI build test for c++14 [![Build Status](https://travis-ci.org/sidsryu/travis-cmake-cpp14.svg?branch=master)][travis] [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)][license] [travis]: https://travis-ci.org/sidsryu/travis-cmake-cpp14 [license]: htt...
import requests """ flask run --help Chương trình lay gia bitcon USD tu API """ URL = 'https://api.coindesk.com/v1/bpi/currentprice/USD.json' def getBTC(): api = requests.get(URL) if api.ok: data = api.json() btc_data = data['bpi']['USD']['rate'] return btc_data else: ...
require_relative './Descriptors.rb' class Room include Descriptors attr_reader :description, :content, :exit def initialize @description = Descriptors::Room_description() @content = build_contents @exit = room_has_exit? end def room_has_exit?(bool = false) return false end def exit_l...
export interface Game { GameID: string; BoardSpaces: number[]; PlayerOneID: number; PlayerTwoID: number; WinnerID: number; }
package com.swapyx.audiostreamer.audiostreamer.ui.home.sessions import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import com.swapyx.audiostreamer.audiostreamer.R import com.swapyx.audiostreamer.audiostr...
<?php /** * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "li...
import * as assert from 'assert'; import { withRandomFileEditor } from './testUtils'; import * as vscode from 'vscode'; suite('Extension Test Suite', () => { vscode.window.showInformationMessage('Start all tests.'); let baseCase = "\"$\""; test('Base case', () => { return withRandomFileEditor(baseCase, 'ts', asyn...
import wepy from 'wepy' // import qiniuyun from '@/utils/qiniuUploader' // const baseUrl = 'https://test.****.cn/wx/api//v1' const baseUrl = 'https://*****/' // 上传图片 const uploadImg = (imageURL, uptokenURL) => { return new Promise((resolve, reject) => { qiniuyun.upload(imageURL, (res) => { res...
#!/bin/bash source ${GPHOME}/greenplum_path.sh export MASTER_DATA_DIRECTORY=/gpmaster/gpsne-1 # SSH is still required by the initialization and start scripts for GPDB even though it is installing it on a single host # Create and exchange keys ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa cat ~/.ssh/id_rsa.pub > ~/.ssh/au...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE DefaultSignatures #-} module Data.Aviation.Aip.Txt ( Txt(..) , AsTxt(..) , FoldTxt(..) , GetTxt(..) , SetTxt(..) , ManyTxt(..) , HasTxt(..) , IsTxt(..) ) where impo...
# coding=utf-8 # Adapted from Ravens - Transporter Networks, Zeng et al., 2021 # https://github.com/google-research/ravens """Transport ablations.""" import numpy as np import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F from einops.layers.torch import Rearrange from ravens...
import Taro from '@tarojs/taro' import HanziWriter from 'hanzi-writer' import RenderTarget from './RenderTarget' import dataLoader from './dataLoader' import { removeEmptyKeys } from './utils' import type { Ref } from 'vue' import type { ITouchEvent } from '@tarojs/components/types/common' import type { ColorOptions, ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlaySoundAndDie : MonoBehaviour { public void PlayClip(AudioClip c, float volume = 1f) { AudioSource a = GetComponent<AudioSource>(); //a.volume = volume; //a.clip = c; a.pitch = Un...
--- layout: post title: Network lang: en desciption: Our network at the property image: img/products-03.jpg --- ## WiFi network Here in <strong>Makers Guesthouse</strong>, in the spirit of <strong>Maker</strong>, the WiFi and Ethernet network are designed, built, and operated by a professional. WiFi signal at every ...
#ifndef IMPGEARS_CORE_INCLUDED_H #define IMPGEARS_CORE_INCLUDED_H #include <ImpGears/Core/Config.h> #include <ImpGears/Core/Object.h> #include <ImpGears/Core/Math.h> #include <ImpGears/Core/Vec.h> #include <ImpGears/Core/Vec2.h> #include <ImpGears/Core/Vec3.h> #include <ImpGears/Core/Vec4.h> #include <ImpGea...
import 'package:flutter/material.dart'; abstract class SizingUtilities { static const double circularBorderRadius = 10.0; static const double checkboxBorderRadius = 4.0; static const double listItemSpacing = 8.0; static const double standardPadding = 20.0; static const double standardButtonHeight = 48.0; ...
<?php declare(strict_types=1); namespace App\Tests\Functional; use App\Entity\Image; use App\Tests\Fixtures\ImageFactory; use App\Tests\ApiFunctionalTestCase; use Symfony\Component\HttpFoundation\Response; final class ImagesEndpointTest extends ApiFunctionalTestCase { public const ENDPOINT_IMAGES = '/images'; ...
# The MIT License (MIT) # # Copyright (c) 2020 Brendan Doherty # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
package study.bty.androidstudy.cat data class Cat( val url: String )
use std::io; // use std::mem; fn read() -> String { let mut s = String::new(); io::stdin().read_line(&mut s).expect("cannot read"); // return s.trim(); return s; } fn read_int() -> i32 { let x: i32 = read().trim().parse().expect("cannot convert"); return x; } fn abc001a() { let h1 = r...
CREATE TABLE t7 (c1 integer primary key generated by default as identity (start with 1, increment by 5))
from __future__ import absolute_import, unicode_literals from django.conf import settings from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.urls import reverse from django.utils.encoding import python_2_unicode_compatible from django.utils.translation impo...
const { validationResult } = require("express-validator"); const db = require("../model/index"); let insertfees = (req, res) => { const errors = validationResult(req); if (!errors.isEmpty()) { res.status(400).send({ errors: errors.array() }); } else { let gst = (req.body.actual_fees - req....
package com.fcgl.madrid.forum.controller; import com.fcgl.madrid.forum.dataModel.Comment; import com.fcgl.madrid.forum.model.request.CommentRequest; import com.fcgl.madrid.forum.model.request.GetPostCommentRequest; import com.fcgl.madrid.forum.model.response.GetPostCommentResponse; import com.fcgl.madrid.forum.model.r...
package main import ( "io/ioutil" "log" "os" "os/exec" "runtime" "strings" "testing" ) var sut_pokenv pokenv func TestProcessTestFile(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) sut_pokenv = pokenv{registry: mock} sut_pokenv.processFile(REG_KEY_MACHINE, `data/setvar.txt`)...
package com.aixinwu.axw.activity; import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.database.Cursor; import android.grap...
namespace :export do # TODO: Support extract of matched records from MBIS (e.g. non-cancer deaths) # TODO: Support extract of matched records from Prescriptions data (with de-pseudonymising option) # TODO: Support extract of matched records from BRCA data (with de-pseudonymising option) # TODO: Allow extraction...
using UnityEngine; using System; namespace Sabresaurus.Sidekick { public static class AnimationHelper { private static float currentFrameTimestamp = 0; private static float currentFrameDelta = 0; private static bool animationActive = false; public static void UpdateTime() { currentFrameDelta = Time.r...
package com.hlibrary.utils.file import android.content.Context import android.os.Build import android.os.Environment import com.hlibrary.utils.constants.Constants import java.io.* /** * @author linwh * @date 2015/01/23 */ object FileManager { /** * @param context * @return 如果存在SD卡返回S...
# How to GIT for Espruino(ESP32) Target of this is to be a help working with Git for ESP32 branch of Espruino. Lets assume, that you already worked with Git for your own project. If you are a total beginner, please go to Google and search for documents. To be honest, I did this some years ago, and don’t know for sure h...
/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
import React, { Suspense, lazy } from "react"; import Helmet from "react-helmet"; import { Route } from "@webiny/react-router"; import { CircularProgress } from "@webiny/ui/Progress"; import { AdminLayout } from "@webiny/app-admin/components/AdminLayout"; import { SecureRoute } from "@webiny/app-security/components"; i...
use anyhow::Result; use git_hist::{app, args::Args}; fn main() -> Result<()> { let args = Args::load(); app::run(args)?; Ok(()) }
; Test 32-bit ANDs in which the second operand is variable. ; ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s ; Check that there are no spills. define void @f1(<16 x i32> *%src1, <16 x float> *%dest) { ; CHECK-LABEL: f1: ; CHECK-NOT: %r15 ; CHECK: br %r14 %val = load <16 x i32> *%src1, !tbaa !1 %add = add ...
package me.activated.core.commands.coins; import me.activated.core.api.player.PlayerData; import me.activated.core.menus.coins.CoinsMenu; import me.activated.core.enums.Language; import me.activated.core.utilities.Utilities; import me.activated.core.utilities.chat.Color; import me.activated.core.utilities.command.Base...
using AGO.Core.Model.Reporting; using AGO.Core.Tests; using AGO.Reporting.Common; namespace AGO.Reporting.Tests { public class AbstractReportingTest : AbstractPersistenceTest<ModelHelper> { protected override void DoRegisterPersistence() { base.DoRegisterPersistence(); IocContainer.Register<IReportingRepos...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static MNIST.MNISTViewer; namespace MNIST { /// <summary> /// AbstractInterface to handle different Neural Network /// Specific to MNIST Sand box. /// </summary> public class ...
package frc.team2767.deepspace.health import com.ctre.phoenix.motorcontrol.can.TalonSRX import frc.team2767.deepspace.Robot import frc.team2767.deepspace.health.TestGroup.State.* import frc.team2767.deepspace.health.tests.TalonPosition import frc.team2767.deepspace.health.tests.TalonPositionTest import frc.team2767.de...
#!/bin/bash # Get an updated config.sub and config.guess cp -r ${BUILD_PREFIX}/share/libtool/build-aux/config.* ./build-aux ./configure --prefix=${PREFIX} \ --enable-opie \ --enable-digest \ --enable-ntlm \ --enable-debug ...
2020年11月30日10时数据 Status: 200 1.胡宇桐秒删后用后悔药公开 微博热度:2957904 2.两名中国公民在加纳遭抢劫身亡 微博热度:1504909 3.汪峰大女儿侧颜 微博热度:1461346 4.王一博卖货风格 微博热度:1236927 5.九层妖塔原型古墓 微博热度:1069314 6.儿童教育公开课 微博热度:1057998 7.P2P正式退出历史舞台 微博热度:1030291 8.TheShy 最受欢迎选手 微博热度:972168 9.伊朗核物理学家遭暗杀细节 微博热度:747679 10.11月的最后一天 微博热度:706395 11.南京售楼处将下架人脸...
#include "api/sys/oswrappers/linux/elf/File.hpp" namespace carpc::os::os_linux { struct Application : public File { Application( int pid = 0 ); struct Proc { char exe[ 1024 ]; } proc; }; } // namespace carpc::os::os_linux
declare const notUndefined: <T>(value: T | undefined) => value is T; export default notUndefined;
package core; public class Sweet extends Item { private int xp; private boolean alreadyEaten=false; public Sweet(String name, int xp, int price) { super(name,price,"one use"); this.xp = xp; } public boolean isAlreadyEaten() { return alreadyEaten; } public void setAlreadyEaten(boolean alreadyEaten) {...
= Installation Copy .thTheme files to ~/Library/Application\ Support/TextMate/Themes. Select the theme from the TextMate preferences (Command+,) under the section, "Fonts & Colors".
/** * Copyright © 2019 Johnson & Johnson * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to i...
#!/usr/bin/env bash composer install --no-dev --optimize-autoloader mkdir build wget https://github.com/box-project/box2/releases/download/2.6.0/box-2.6.0.phar -O box.phar php box.phar build
package scalikejdbc import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers class TooManyRowsExceptionSpec extends AnyFlatSpec with Matchers { behavior of "TooManyRowsException" it should "be available" in { val expected: Int = 0 val actual: Int = 0 val instance = new...
//! Utilities for enriching error handling with [`tracing`] diagnostic //! information. //! //! [`tracing`] is a framework for instrumenting Rust programs to collect //! scoped, structured, and async-aware diagnostics. This crate provides //! integrations between [`tracing`] instrumentation and Rust error handling, //!...
# frozen_string_literal: true require 'gosu' require_relative 'game' require_relative 'scene' require_relative 'player' require_relative 'enemy' require_relative 'bullet' require_relative 'explosion' require_relative 'end_scenes' require_relative 'horizontal_text' require_relative 'transition_scene' # FirstWaveScene ...
package com.douglas.luasapp.di import com.douglas.luasapp.di.module.UseCaseModule import com.douglas.luasapp.di.module.HelperModule import com.douglas.luasapp.di.module.ServiceModule import com.douglas.luasapp.di.module.ViewModelModule import com.douglas.luasapp.module.stopforecast.StopForecastActivity import dagger.C...
/******************************************* To test: EXEC p_HelloWorld @Name = 'John Smith' *******************************************/ CREATE PROCEDURE p_HelloWorld ( @Name VARCHAR(50) ) AS BEGIN SELECT CONCAT('Hello, ', @Name) AS Greeting; END; --Procedure
// Copyright (c) Aksio Insurtech. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Aksio.Cratis.Applications.ProxyGenerator.Templates; /// <summary> /// Describes a property for templating purposes. /// </summary> /// <param name="Nam...
# -*- coding: utf-8 -*- from django.views.generic import ( CreateView, DeleteView, DetailView, UpdateView, ListView ) from .models import ( Client, AccessToken, ) class ClientCreateView(CreateView): model = Client class ClientDeleteView(DeleteView): model = Client class ClientDeta...
--TEST-- ob_start(): non-static method as static callbacks. --FILE-- <?php /* * Function is implemented in main/output.c */ Class C { function h($string) { return $string; } } function checkAndClean() { print_r(ob_list_handlers()); while (ob_get_level()>0) { ob_end_flush(); } } var_dump(ob...
use serde::{Deserialize, Serialize}; pub const INITIAL_DELAY_CONFIG: u64 = 1000; /// The configuration for the building process. #[derive(Debug, Clone, Serialize, Deserialize)] pub struct FankorConfig { /// The name of the program. pub program_name: String, /// The initial delay in milliseconds. pub ...
use std::rc::Rc; use std::cell::RefCell; use laboratory::{ describe, expect, should_panic, LabResult }; #[test] fn describe_a_suite() -> LabResult { describe("my suite", |ctx| { ctx.before_all(move |state| { state.insert("counter", 0); }); ctx.before_each(move |state| { }); ctx.afte...
export * from "./Paging"; export * from "./Paging.types";
export interface LootTableEntry { // Higher is less rare rarity: number, // The ID of the item to spawn itemId: number, chargesMin?: number, chargesMax?: number } export class LootTable { private totalRarity: number = 0; private entries: LootTableEntry[]; constructor(...entr...
$:.unshift "spec/" require 'xiki/core/line' require 'xiki/core/core_ext' describe Line, "#without_label" do it "removes bullets" do Line.without_label(:line=>"- you").should == "you" end it "should remove new parethesis labels" do Line.without_label(:line=>"- hey) you").should == "you" end it "shou...
/******************************************************* * * 作者:胡庆访 * 创建日期:20211115 * 说明:此文件只包含一个类,具体内容见类型注释。 * 运行环境:.NET 4.0 * 版本号:1.0.0 * * 历史记录: * 创建文件 胡庆访 20211115 12:24 * *******************************************************/ using Rafy.Serialization; using System; using System.Collections.Generic...
/** * Allows you to send web requests and receive the responses. * @module "http" */ /** */ import * as image from "../image-source"; import * as fs from "../file-system"; /** * Downloads the content from the specified URL as a string. * @param url The URL to request from. */ export function getString(url: stri...
package com.playone.mobile.ui.injection.module import android.content.Context import com.playone.mobile.ui.Navigator import com.playone.mobile.ui.injection.qualifier.ApplicationContext import dagger.Module import dagger.Provides @Module class NavigatorModule { @Provides fun provideNavigator(@ApplicationConte...
# Note, this requires a special branch of Zygote to count ops using Zygote, Flux function build_model(num_layers::Int, size::Int) layers = Any[] for layer_idx in 1:num_layers push!(layers, LSTM(size, size)) end return mapleaves(Flux.data, Chain(layers...)) end for num_layers in 1:4 model = b...
import { newE2EPage } from '@stencil/core/testing'; const html = '<blaze-modal open dismissible>default</blaze-modal>'; describe('modal', () => { test('triggers close event', async () => { const page = await newE2EPage(); await page.setContent(html); const modal = await page.find('blaze-modal'); co...
# Noval Website My website portfolio build using Next.js and Tailwind. ## Live Preview []() ## How to contribute ## License This repository under licensed of [MIT LICENSE]()
import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core'; import { CalendarModes, KeyCode } from '../../../common-enums'; import { addClassToElements, asIsoDateRange, asIsoDateString, fromIsoDateRange, fromIsoDateString, removeClassToElements } from '....
subroutine wraea(a,b,alpha,th0,thf) C.....subroutine wraea 01/06/75 common/gfgel/gf(28) common/gfbftr/xtr,ytr if(a.eq.0.)goto 3 gf(10)=100. alpha1=alpha*gf(28) th01=th0*gf(28) thf1=thf*gf(28) a1=abs(a) d=a1*b/sqrt((a1*sin(th01))**2+(b*cos(th01))**2) ...
# Exercise 8.2 (P222) Implement a concurrent `File Transfer Protocol (FTP)` server. The server should interpret commands from each client such as `cd` to chagne directore, `ls` to list a directory, `get` to send the contents of a file, and `close` to close the connection. You can use the standard ftp command as the cl...
import React, { useState } from 'react'; import { AlertManagerPicker } from '../AlertManagerPicker'; import { MatcherFilter } from './MatcherFilter'; import { AlertStateFilter } from './AlertStateFilter'; import { GroupBy } from './GroupBy'; import { AlertmanagerGroup, AlertState } from 'app/plugins/datasource/alertma...
package org.gerweck.scala.util.jdbc import java.io.{ InputStream, Reader } import java.math.BigDecimal import java.net.URL import java.sql.{ Array => SqlArray, _ } import java.util.{ Calendar, Map => JMap } import org.gerweck.scala.util.Support.{ support => nse } /** A JDBC * `[[http://docs.oracle.com/javase/7/doc...
# 5月6号 ## TCP/IP协议 ## 算法题 all string ```java public class AllString{ public static List<String> output = new LinkedList<String>(); public static void main(String[] args){ String input = "abcde"; char[] arr = input.toCharArray(input); solution(arr,0,input.length()-1); } p...
package monitor import ( uuid "github.com/satori/go.uuid" ) // ID is an unique identifier for resources. type ID = uuid.UUID // NewID generates a new uniquer identifier. func NewID() ID { return ID(uuid.Must(uuid.NewV4())) }
using System; using System.Collections.Generic; namespace GlobalServer.Properties.Response.Converters { public static class ResponseTypeFactory { private static readonly Dictionary<string, Type> ResponseTypes = new Dictionary<string, Type> { {"response", typeof(ResponseDescription)...
/** * Copyright 2017 Confluent Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
# _Real-Time-Bus-Tracker_ #### By _**Ekaterina Starovoitova**_ #### _The animation shows the bus stops between Massachusetts Institute of Technology (MIT) and Harvard_ ## Technologies Used * _API_ ## Description Get real-time bus times for MIT Shuttle. Find when the bus is coming at particular stop for particular ...
package org.aquila3d.core.shader import org.aquila3d.core.io.ioResourceToByteBuffer import org.aquila3d.core.vulkan.device.VkDevice import org.aquila3d.core.vulkan.VkResult import org.aquila3d.core.vulkan.shader.VkShaderModule import org.aquila3d.core.vulkan.shader.VkShaderStageFlagBits import org.lwjgl.BufferUtils.cr...
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace SwissArmyKnife.Util { public sealed class Logger { private static Logger mInstance = null; private static Object mLocker = new Object(); private StreamWriter mLog = null; private Logg...
# Publishes the modules provided in modulenames.txt # Vars $moduleNamesFilename = 'modulenames.txt' $moduleNamesPath = Join-Path -Path $PSScriptRoot -ChildPath $moduleNamesFilename $localPSRepositoryName = 'LocalPSRepository' # Get module names from txt file $moduleNames = Get-Content -Path $moduleNamesPath # Show c...
package io.unthrottled.doki.legacy import io.unthrottled.doki.settings.actors.ThemeActor.setDokiTheme import io.unthrottled.doki.themes.ThemeManager import io.unthrottled.doki.util.toOptional object LegacyMigration { fun migrateIfNecessary() { handleThemeRenames() } private val renamedThemes = setOf( "...
<?php declare(strict_types=1); namespace App\Traits; use App\Entity\CourseObjectiveInterface; use Doctrine\Common\Collections\Collection; /** * Interface DescribableEntityInterface */ interface CourseObjectivesEntityInterface { /** * @param Collection|CourseObjectiveInterface[] $courseObjectives */ ...
namespace News.ViewModels { /// <summary> /// Base news view model groupped by a specific criteria: category, source, etc. /// </summary> public abstract class BaseGrouppedNewsViewModel : BaseNewsViewModel { } }
<?php namespace App\Models; // use App\Models\Cafe; use Illuminate\Database\Eloquent\Model; class BrewMethod extends Model { // public function cafes(){ return $this->belongsToMany(Cafe::class,'cafes_brew_methods','brew_method_id','cafe_id'); } }
create index IX_D808EFF4 on ADQ_Bar (field2); create index IX_2A25A3FC on ADQ_Bar (uuid_[$COLUMN_LENGTH:75$], companyId); create unique index IX_477EF97E on ADQ_Bar (uuid_[$COLUMN_LENGTH:75$], groupId);
use crate::InternalError; use arrayref::array_ref; use failure::Error; use std::convert::TryFrom; /// [`SecretKey`](struct.SecretKey.html) length in bytes. pub const SECRET_KEY_LENGTH: usize = 64; /// Concatenation of X25519 static secret (first 32 bytes) and Ed25519 secret key (last 32 bytes). pub struct SecretKey ...
# JSCost - JavaScript Performance Estimator sample ![](https://github.com/GoogleChrome/jscost.org/blob/vjs/media/jscost-logo-2x.png?raw=true) This repository contains the complete sample code for the JSCost Performance Estimator sample. This shows how to use WebPageTest.org and the Chrome DevTools Timeline to estimat...
#!/bin/bash for i in `seq 1 3`; do echo 'Hola Mundo3!' done
using Xamarin.Forms; using CustomProgressBar.CustomControls; namespace CustomProgressBar { public class ProgressBarCodeBehind : ContentPage { public ProgressBarCodeBehind () { var progressBar = new CircularProgress { ProgressColor = Color.FromHex("3498DB"), ProgressBackgroundColor = Color.FromHex("B4...
package test import objc.* fun main(args: Array<String>) { A.invoke { (pointer: Pointer<*>): Unit -> A.checkIfEqualsToThis(pointer) } }
package com.jjh.futures import scala.concurrent.Future import scala.concurrent.ExecutionContext.Implicits.global import scala.util.{Failure, Success} object MultipleFuturesOnCompleteApp extends App { // Create futures before for statement // note if you create them in the for they will run sequentially val f1 ...
package engineer.echo.study.mvvm.vp2.fragment import android.content.Context import android.graphics.Color import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import engineer.echo.study.databind...
import Head from 'next/head' import {FC, createElement as h} from 'react' export const Favicon: FC = () => { return ( h(Head, null, h('link', {href: '/favicon.ico', rel: 'shortcut icon'}), h('link', {href: '/favicon-16x16.png', rel: 'icon', type: 'image/png'}), h('link', {href: '/favicon-32x32....
 namespace Pluton.PlutonUI { public class Image : BaseComponent { public string color { get { return _obj.GetString("color", "1.0 1.0 1.0 1.0"); } set { if (_obj.ContainsKey("color")) _obj["color"] = new JSON.Value(...
<!-- PR title should follow Angular Commit Message Conventions (https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) --> **What is the previous behavior before this PR?** **What is the new behavior after this PR?** <!-- If this PR contains a breaking change, please uncomment foll...
from builtins import Exception class NoSurfaceFileError(Exception): def __init__(self, number=None): if number: self.message = f'No file found for surface number: {number}' else: self.message = 'Directory not found.' super().__init__(self.message) class NoFsInfoErro...
/********************************************************************** Audacity - A Digital Audio Editor Copyright 1999-2009 Audacity Team License: wxwidgets Dan Horgan ******************************************************************//** \file CommandSignature.cpp \brief Definitions for CommandSignat...
// https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types use std::ffi::c_void; // WinNT.h pub type SHORT = i16; pub type LONG = i32; pub type WCHAR = u16; pub type LPWSTR = *mut WCHAR; pub type LPCWSTR = *const WCHAR; pub type PVOID = *mut c_void; pub type HANDLE = PVOID; // IntSafe.h pub type DW...
# ItsMine This project is a continuation of an [NoGrief](https://github.com/GiantNuker/NoGrief) fabric mod by GiantNuker!
package org.jetbrains.ruby.codeInsight.types.signature class RSignatureContractContainer { private val myContracts: MutableMap<MethodInfo, RSignatureContract> = HashMap() private val myNumberOfCalls: MutableMap<MethodInfo, Int> = HashMap() fun acceptTuple(tuple: RTuple): Boolean { val currInfo = ...
import { createLayer, AnyLayer, BaseLayer, Document, Layer } from "../../src/internal"; import addLayer from "./addLayer"; describe.each(["layer", "textLayer", "polygon", "ellipse", "clippingMask"])("removing a %s", (layerType: string) => { it("removes a layer", async () => { // Create document c...
package com.outr.jefe.launch.jmx case class Threading(daemon: Int, peak: Int, count: Int, total: Long) { override def toString: String = f"{ daemon=$daemon, peak=$peak, total=$total }" }