text
stringlengths
27
775k
package com.by_syk.coolapktokengetter.receiver import android.app.Activity import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import com.coolapk.market.util.AuthUtils import java.util.* /** * Created by By_syk on 2017-03-20. */ class CoolapkTokenGetReceiver : Bro...
{-# LANGUAGE OverloadedStrings #-} module SlideConverter where import Data.Text (pack) import qualified Data.Text as T import InlineRewrites import SlideParser import qualified Text.Parsec as Parsec -- If there are more than 2 images, they are split -- as background automatically. Text will be centered -- in front ...
import Character from "./base" import * as sounds from "../../client/sounds" export default class Mage extends Character { name = "Ishmael, Storm Bender" shortCode = "Wz" modelName = "Wizard.glb" hp = 6000 movement = 5 attackRange = 6 attackName = "Smite-ning" sounds = { attack: [sounds.zap0, sound...
# all.jl using Test using Random using Parameters using ResumableFunctions no = nothing @with_kw mutable struct It char = (skip='?',less='<',more='>',num='$',klass='!') str = (skip="?") some = (max=32,bins=.5, cohen=0.3, trivial=1.05) seed = 1 end it=It() Random.seed!(it.seed) A file of miscellaneou...
package org.avbolikov.shop.controller; import org.avbolikov.shop.exception.NotFoundException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org.avbolikov.shop.service.PictureService; import java...
#!/bin/bash DIR=$(dirname $(readlink -f "$0")) cd $DIR/.. DIR=`pwd` export NODE_PATH=$DIR/dist export PATH=$DIR/node:$DIR/node_modules/.bin:$PATH export OPENSSL_CONF=$DIR/conf/openssl.cnf rm $DIR/logs/tests.log node $DIR/test/test-app.js > $DIR/logs/tests.log
-- Copyright (c) David Amos, 2009. All rights reserved. {-# LANGUAGE EmptyDataDecls, ScopedTypeVariables #-} module Math.Common.IntegerAsType where class IntegerAsType a where value :: a -> Integer -- multiplication of IntegerAsType data M a b = M a b instance (IntegerAsType a, IntegerAsType b) => IntegerAsType...
package eiteam.esteemedinnovation.api.steamnet; import eiteam.esteemedinnovation.api.steamnet.data.SteamNetworkData; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.m...
import 'package:brick_app/service/http_utils.dart'; import 'package:brick_app/service/rebrickable_api_exception.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart'; import 'package:mocktail/mocktail.dart'; import 'package:uri/uri.dart'; import '../mocks.dart'; main() { group('pag...
package noro.me.sawtti import android.Manifest import android.app.Activity import android.content.Context import android.content.pm.PackageManager import android.net.Uri import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.os.Environment import android.support.v4.app.ActivityCompat i...
# ProtonApi::IncomeConfig ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annual_net_take_home_pay** | **Float** | | **percentage_of_income_covered** | **Float** | | [optional] [default to 1.0] **income_benefit_duration** | **Integer** | | [optional] [...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.ServiceModel; using System.ServiceModel.Channels; using System.Text; using Xunit; using...
import 'dart:async'; import 'dart:convert'; import 'dart:io'; import './path.dart'; import '../rmr.dart'; /// A general object that holds data from a request. class RMR { /// The original [HttpRequest] HttpRequest req; /// The [HttpResponse] to send data back to the client. HttpResponse res; /// The [Path...
class PostgresqlReader attr_writer :batch attr_writer :position def initialize(category) @category = category end # Implementing the reader as a pull system def next row = pg.execute "SELECT * FROM events WHERE position = ? AND category = ?", position, category position += 1 event_data ...
#!/bin/bash sudo tee -a /etc/profile >/dev/null << EOF export https_proxy="http://my.proxy.company.com:80" export no_proxy="localhost,127.0.0.1,10.96.0.1" EOF
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\Rule; use App\Mail\SendCode; class VisitController extends BaseController { /** * Display a listing of the resource. * * @retu...
using CCMS.Shared.Models; using System.Threading.Tasks; namespace CCMS.Web.Authenitication { public interface IAuthService { Task<string> LoginAsync(LoginModel loginModel); Task LogoutAsync(); } }
#pragma once #include "../segmenttree/binary_indexed_tree.hpp" #include <algorithm> #include <tuple> #include <vector> // CUT begin // Rectangle Sum: calculate sum of weights inside rectangles // Sample: https://judge.yosupo.jp/submission/40312 (2e5 points, 2e5 rectangles, 566 ms) // `add_point(x, y, weight)`: Add poi...
#include "sphere.h" #include "point.h" #include "circle.h" [[cpp11::register]] sphere_p create_sphere_empty() { std::vector<Sphere> vec; sphere *result(new sphere(vec)); return {result}; } [[cpp11::register]] sphere_p create_sphere_center_radius(point3_p center, exact_numeric_p r2) { std::vector<Sphere> vec; ...
require "test_helper" class LocationComponentTest < ViewComponent::TestCase test "doesn't render if city, state, and country aren't present" do render_inline LocationComponent.new(nil) assert_no_select "*" render assert_no_select "*" end test "renders if city, state, or country is present" do ...
using CSM.Commands.Data.Buildings; using CSM.Helpers; namespace CSM.Commands.Handler.Buildings { public class BuildingRelocateHandler : CommandHandler<BuildingRelocateCommand> { protected override void Handle(BuildingRelocateCommand command) { IgnoreHelper.StartIgnore(); ...
A patch to sysbench to make data loading faster for tidb. Tested with sysbench version 1.0
#include <benchmarks/statistics.hpp> #include <benchmark/benchmark.h> #include <ztd/out_ptr/out_ptr.hpp> #include <ficapi/ficapi.hpp> #include <memory> #include <cstdlib> std::shared_ptr<ficapi::opaque> rvo_shared_allocate() { ficapi_opaque_handle temp_p = NULL; ficapi_handle_no_alloc_create(&temp_p...
package org.scalatra package commands abstract class ModelCommand[T:Manifest] extends Command { type ModelType = T }
package slack import ( "errors" "net/http" "github.com/argoproj/notifications-engine/pkg/api" slackclient "github.com/slack-go/slack" ) type HasSigningSecret interface { GetSigningSecret() string } type RequestVerifier func(data []byte, header http.Header) (string, error) func NewVerifier(apiFactory api.Fact...
package mc; import java.util.Arrays; public class StackTraceInjector { public static int traceCode() { Thread currentThread = Thread.currentThread(); StackTraceElement[] st = currentThread.getStackTrace(); return Arrays.hashCode(st); // return (Arrays.hashCode(st), currentThrea...
import BitcoinFileReader from '../../lib/bitcoin/BitcoinFileReader'; import ErrorCode from '../../lib/bitcoin/ErrorCode'; import SidetreeError from '../../lib/common/SidetreeError'; import * as fs from 'fs'; describe('BitcoinFileReader', () => { let bitcoinFileReader: BitcoinFileReader; const testDir = 'test/dir';...
<?php Yii::setAlias('@frontendUrl', 'http://yii2-starter-kit.localhost'); Yii::setAlias('@backendUrl', 'http://backend.yii2-starter-kit.localhost'); Yii::setAlias('@storageUrl', 'http://storage.yii2-starter-kit.localhost');
namespace Rivet.Operations { public abstract class ConstraintOperation : TableObjectOperation { protected ConstraintOperation(string schemaName, string tableName, string name, ConstraintType constraintType) : base(schemaName, tableName, name) { ConstraintType = constraintType; } public Co...
#!/bin/sh dir=$(cd `dirname $0` && pwd) "$dir/../vendor/bin/tester" -p php -c "$dir/php.ini" --setup "$dir/inc/setup.php" $@
// See LICENSE for license details. package chiselTests.aop import chisel3.testers.BasicTester import chiselTests.ChiselFlatSpec import chisel3._ import chisel3.aop.injecting.InjectingAspect class AspectTester(results: Seq[Int]) extends BasicTester { val values = VecInit(results.map(_.U)) val counter = RegInit(0...
package org.rocketmq.starter.core.consumer; import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyContext; import org.apache.rocketmq.client.consumer.listener.ConsumeOrderlyStatus; import org.apache.rocketmq.client.consumer.listener.MessageListenerOrderly; import org.apache.rocketmq.common.message.Mes...
// // Copyright 2022 Inrupt Inc. // // 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, modify, merge, publish, di...
#!/bin/sh . $UTILS OUTPUT=`echo our-passphrase | "$SESAME" dump -p "$SESAME_SRCDIR/test/v1.passwordfile" || exit` SHA256SUM=`echo "$OUTPUT" | sha256sum | awk '{print $1}'` VERIFY=`sha256sum << EOF | awk '{print $1}' from passphrase key alg: Xs kdf alg: BK kdf rounds: 128 salt: 9b08392f8c973920082ae96bb12ae402 checksu...
let socket let color = '#333' let strokeWidth = 5 let cv function reset() { /* Create 2D canvas */ cv = createCanvas(window.innerWidth / 1.1, window.innerHeight / 1.1, P2D) canvasPosition() cv.background(255, 255, 255) } function setup() { /* Create 2D canvas */ cv = createCanvas(window.innerWidth / 1.1, window...
import { DI } from "jack-of-all-decorators"; import IGlobalConfig from '../core/IGlobalConfig'; import WhitelistParser from '../helpers/whitelistParser'; import Constants from '../variables/constants'; import Trigger from './trigger'; export interface IFrameFocusData { event: string; whitelisted: boolean; lastCl...
#!/usr/bin/env python import rospy from std_msgs.msg import Float64 from sensor_msgs.msg import LaserScan from geometry_msgs.msg import Twist from nav_msgs.msg import Odometry from tf import transformations import numpy as np import math pi=math.pi x_dist = 0 y_dist= 0 lis = [] front=1 left=1 right=1 front_nav=1 left_...
-module(day13). -export([part1/0, part2/0]). input() -> Points = aoc_input:read(?MODULE, "^ *([\\d]+) *, *([\\d]+) *$", [integer, integer]), {Xs, Ys} = lists:unzip(Points), XMax = lists:max(Xs), YMax = lists:max(Ys), PointsSet = sets:from_list(Points), Paper = lists:map(fun (Y) -> lists...
class AuditLogUser attr_reader :username, :ip def initialize(username, ip) @username = username @ip = ip end end
import { createContext } from 'react'; export const ActionContext = createContext<ActionContextProps>({}); export interface ActionContextProps { button?: any; visible?: boolean; setVisible?: (v: boolean) => void; openMode?: 'drawer' | 'modal' | 'page'; containerRefKey?: string; formValueChanged?: boolean;...
var dir_ce758a24fd4f9b8e2b762ee99b07530a = [ [ "_towcase.h", "d9/d6c/__towcase_8h.html", "d9/d6c/__towcase_8h" ], [ "alpha.h", "db/dfb/wchar_2alpha_8h.html", null ], [ "iswalnum.c", "db/dcb/iswalnum_8c.html", "db/dcb/iswalnum_8c" ], [ "iswalpha.c", "d3/d42/iswalpha_8c.html", "d3/d42/iswalpha_8c" ], ...
require_relative 'helper' class TestIntrinsicism < Test::Unit def setup @test_object = Person.new end end
<?php namespace Infrastructure\CommandBus\Handler\Locator; interface HandlerInstanceResolverInterface { public function getCallable(): callable; }
import { default as AmauiZip } from './amaui-zip'; export default AmauiZip;
<?php namespace App\Controllers; class Chat extends BaseController { //Global variable to holds the output data for each view public $outputData; public $loggedInUser; function Chat() { //parent::BaseController(); session(); $userModel = new...
package br.com.zupedu.pix.endpoints import br.com.zupedu.grpc.RetrievePixRequest import br.com.zupedu.grpc.RetrievePixServiceGrpc import br.com.zupedu.pix.externalConnections.bcb.ClientBcb import br.com.zupedu.pix.externalConnections.bcb.requests.* import br.com.zupedu.pix.model.Institution import br.com.zupedu.pix.mo...
<footer class="main-footer"> <strong>Copyright © <a href="{{ url('/') }}">Condat</a>.</strong> All rights reserved. </footer> <!-- Datatable JS --> <script src="{{ asset('assets/plugins/datatables/jquery.dataTables.min.js') }}"></script> <script src="{{ asset('assets/plugins/datatables/dataTables.bootstrap.min...
object ServerMethods1: TServerMethods1 OldCreateOrder = False Height = 150 Width = 215 object EmployeeConnection: TSQLConnection ConnectionName = 'EMPLOYEE' DriverName = 'Interbase' LoginPrompt = False Params.Strings = ( 'DriverName=Interbase' 'Database=localhost:...
/* * Copyright 2020 The Android Open Source Project * * 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 applica...
#!/usr/bin/env bash env=drds num=100 syncerDir=normal source ${UTIL_LIB} function setup() { configEnvVar ${env} bash script/setup_env_new.sh ${env} ${syncerDir} } function test-non-latest() { # Given bash script/generate_data.sh ${num} ${env} bash script/load_data.sh ${env} instance=mysql...
from flask import Flask, flash, render_template, request, redirect, url_for, session from flask_mail import Mail, Message from threading import Thread from server import ServerDAO app = Flask(__name__, template_folder='template') app.secret_key = b'_5#y2L"F4Q8z\n\xec]/' @app.route('/') def index(): return render_tem...
<?php namespace CH\Skeleton; /** * Class Application * * Small wrapper around the Silex core application which adds things like environment detection. * * @package CH\Skeleton * @author Craig Harvie <harvie5@msn.com> * @copyright Craig Harvie */ class Application extends \Silex\Application { c...
use log::{debug, info, warn}; use rumqtt::Notification; use std::{ sync::{Arc, Mutex}, thread, time::SystemTime, }; use crate::mqtt::{Event, Message, Payload}; type Subscriber = Box<dyn Fn(&Event) -> () + Sync + Send>; pub struct Publisher { subscribers: Arc<Mutex<Vec<Subscriber>>>, } impl Publisher...
# frozen_string_literal: true RSpec.describe PurpleAirApi::V1::Client do subject(:client) { described_class.new(read_token: read_token, write_token: write_token) } let(:read_token) { Faker::Internet.uuid } let(:write_token) { Faker::Internet.uuid } describe '#initialize' do context 'when valid inputs are...
--- layout: post title: "2020.05.18 活動報告" date: 2020-05-25 categories: Activities cover: /assets/head.jpg --- 集まって練習ができない分「会えなくても心と音を1つに♪」を合言葉に、 『剣の舞』 (作曲:ハチャトゥリアン) 鍵盤ハーモニカ11人で、テレワーク演奏してみました。 演奏者の顔の動画ではなく、それぞれの音の波形です。 [こちら](https://youtu.be/sHo8jnUwJH4)をごらんくださいませ。
# Copyright 2018 Red Hat # # 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 in writing, sof...
# frozen_string_literal: true require 'ez/settings/backend/redis' require 'fakeredis' describe Ez::Settings::Backend::Redis do let(:fake_connection) { Redis.current } describe '#read' do context 'configuration does not exist' do it 'returns empty hash' do expect(described_class.new(fake_connec...
package Util.Logging; public class LogPoint { public class ColorCodes { public static final String ANSI_RESET = "\u001B[0m"; public static final String ANSI_BLACK = "\u001B[30m"; public static final String ANSI_RED = "\u001B[31m"; public static final String ANSI_GREEN = "\u001B[32m"; public static...
//if our server returns an error, we catch it here. function error(container, error) { console.log(error) let errorEvent = document.createElement("div"); errorEvent.setAttribute('class', 'errorHandler'); let text = document.createTextNode(error); errorEvent.appendChild(text); container.appendCh...
-- https://www.hackerrank.com/challenges/weather-observation-station-4/problem Select Count(City) - Count(Distinct City) From Station;
using UnityEngine; using System; using System.Collections.Generic; namespace TMPro { [Serializable] public class TMP_StyleSheet : ScriptableObject { /// <summary> /// /// </summary> internal List<TMP_Style> styles { get { return m_Styl...
#include<individual.hpp> individual::individual() : m_gain_fitness(0.0f), m_coupling_fitness(0.0f), m_fitness(0.0f) {}
package me.brandonbuck.adventofcode.binarydiagnostic fun processBinaryNumbers(inputs: List<String>): Map<Int, Pair<Int, Int>> { val mapping = mutableMapOf<Int, Pair<Int, Int>>() for (input in inputs) { for (i in 0..(input.length - 1)) { val n = if (input[i] == '0') 0 else 1 var pair = mapping.getOrPut(i) { ...
$(document).ready(function () { $(".number").countdown("2021/08/15 18:00:00", function (event) { $("#days").html(event.strftime("%D")); $("#hours").html(event.strftime("%H")); $("#minutes").html(event.strftime("%M")); $("#seconds").html(event.strftime("%S")); }); });
use strict; use warnings; use lib 't/lib'; use Test::More tests => 3; use BaseClass; use SubClass; BaseClass->affe; is(BaseClass::no_calls_to_affe(), 1); SubClass->affe; is(BaseClass::no_calls_to_affe(), 2); is(SubClass::no_calls_to_affe(), 1);
<?php namespace Modules\User\Http\Controllers\Auth; use Illuminate\Http\Request; use Illuminate\Http\Response; class AuthController { public function showLoginForm() { return view("user::admin.auth.login"); } }
using System; using System.Threading.Tasks; using Autofac; using AutoFixture; using GranSteL.Helpers.Autofac.Tests.Fixtures; using Moq; using NUnit.Framework; namespace GranSteL.Helpers.Autofac.Tests { [TestFixture] public partial class SafeInvokerTests { private MockRepository _mockRepository; ...
# frozen_string_literal: true require 'tmpdir' RSpec.describe RubyGit::WorkingTree do describe '.open' do subject { described_class.open(working_tree_path) } let(:tmpdir) { Dir.mktmpdir } after { FileUtils.rm_rf(tmpdir) if File.exist?(tmpdir) } context 'when working_tree_path does not exist' do ...
from pylab import *;ion() from matplotlib.colors import Normalize rcParams['figure.dpi'] = 300 rcParams['savefig.dpi'] = 300 planet_spec_ir_waves , planet_spec_ir_spec = np.loadtxt('example_transmission_spectrum_hot_jupiter_1100K.txt').T wave_soss_min = 0.6 wave_soss_max = 2.8 soss_waves_ir = (planet_spec_ir_waves...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
unit deref_9; interface implementation function SUM(a, b: Int32): Int32; begin Result := a + b; end; var G1, G2, G3: Int32; P1, P2, P3: ^Int32; procedure Test; begin P3^ := SUM(P1^, P2^); end; initialization G1 := 1; G2 := 2; P1 := @G1; P2 := @G2; P3 := @G3; Test(); finalization Assert...
# Example ufo/variables/development.rb # More info on how variables work: http://ufoships.com/docs/variables/ @cpu = 192 @environment = helper.env_vars(%Q[ RAILS_ENV=development SECRET_KEY_BASE=secret ])
package uk.gov.justice.digital.hmpps.hmppsinterventionsservice.dto import uk.gov.justice.digital.hmpps.hmppsinterventionsservice.jpa.entity.CancellationReason data class CancellationReasonsDTO( val cancellationReasons: List<CancellationReason> ) { companion object { fun from(reasons: List<CancellationReason>)...
using System.Linq; using System.Threading.Tasks; using EfCoreTagging.Data; using Microsoft.Data.Sqlite; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Xunit; using Xunit.Abstractions; namespace EfCoreTagging.Tests { public class UnitTest1 { private readonly ILoggerFactor...
class License < ActiveRecord::Base uses_translations # this is only used in testing. For some translted models we only want to create one instance for a particular # label in a language. For example we only want one English DataType.image or one Rank.species. But other # models like License is translating a de...
require 'test_helper' describe Twofishes::InvalidResponseError do it 'should raise InvalidResponseError' do assert_raises Twofishes::InvalidResponseError do fail Twofishes::InvalidResponseError, 'test' end end it 'should be a StandardError' do Twofishes::InvalidResponseError.new.is_a?(Standard...
package com.serma.dionysus.ui.tasklist.list.mvi import com.serma.dionysus.common.mvi.MviEffect import com.serma.dionysus.common.mvi.MviUseCase import com.serma.dionysus.domain.interactor.TasksInteractor import com.serma.dionysus.utils.Result import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map import...
class SampleTypeSerializer < BaseSerializer attributes :title, :description attribute :sample_attributes attribute :tags do serialize_annotations(object) end def sample_attributes object.sample_attributes.collect do |attribute| get_sample_attribute(attribute) end end has_many :project...
import { VisualDescriptor } from 'powerbi-client'; import { PowerBiFilterItem } from './powerBiFilterItem'; export interface PowerBiFilter { type: string; slicer: VisualDescriptor; sortOrder: number; value: Record<string, PowerBiFilterItem>; filterVals: string[]; }
/* Jsunittest, version 0.6.0 * (c) 2008 Dr Nic Williams * * Jsunittest is freely distributable under
function Get-CasingExpressions { return @( "Azure Arc", "Azure Lighthouse", "Azure Reservations", # "ext steps", # "anagement groups", # TODO: Handle before and after conditions. # "ole-based", "Cloud Adoption Framework", "Cosmos DB" "cSp...
package com.anangkur.budgetku.domain.model.budget data class Project( val id: String, val title: String, val startDate: String, val endDate: String, val listCategory: List<CategoryProject> )
# @backstage/plugin-techdocs-addons-test-utils ## 0.1.0-next.1 ### Patch Changes - f84e0e2818: Fixed a bug preventing testing of TechDocs Addons whose dom contained `<img />` tags. - 7c398c6473: The `TechDocsAddonTester` class may now be extended if custom test configuration is needed. - Updated dependencies - @ba...
import React from 'react' import { View, ScrollView, TouchableOpacity, StyleSheet, TouchableWithoutFeedback, } from 'react-native' import { Text, Icon } from 'react-native-ui-kitten' import { useStyles } from '@berty-tech/styles' import { BlurView } from '@react-native-community/blur' import { ProceduralCircleAvat...
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE DerivingVia #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE ImportQualifiedPost #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE ViewPatterns #-} module Advent2020....
module Tokite class Engine < ::Rails::Engine isolate_namespace Tokite config.before_configuration do require "haml-rails" require "slack-notifier" end initializer "tokite.config" do Tokite::Engine.routes.default_url_options = { protocol: "https", host: ENV.fetch("APP_HOST", "exampl...
#! /bin/bash # from https://github.com/mercurius-js/auth/tree/main/bench echo '==============================' echo '= Normal Mode =' echo '==============================' npx concurrently --raw -k \ "node ./bench/standalone.js" \ "npx wait-on tcp:3000 && node ./bench/standalone-bench.js" echo '==...
use rustc_data_structures::sync::Lrc; use syntax::ast::*; use syntax::ptr::P; use syntax::symbol::Symbol; use crate::ast_manip::MutVisitNodes; use crate::command::{CommandState, Registry}; use crate::transform::Transform; use crate::RefactorCtxt; /// # `bytestr_to_str` Command /// /// Usage: `bytestr_to_str` /// /...
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Buffers; using System.Text.Encodings.Web; using System.Text.Json; namespace Microsoft.AspNetCore.Internal { internal sea...
/* * Weblounge: Web Content Management System * Copyright (c) 2003 - 2011 The Weblounge Team * http://entwinemedia.com/weblounge * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundat...
# 14. Graphs and Geometry Full list of references in Chapter 14 of the [IPython Cookbook](http://ipython-books.github.io), the definitive guide to high-performance scientific computing and data science in Python, by Dr. Cyrille Rossant, Packt Publishing, 400 pages, 2014. ## Recipe 3 * [Topological sort](http...
spool virage.log; connect internal/oracle @%ORACLE_HOME%\ord\vir\admin\virinst.sql; spool off exit;
import { gridService } from './grid.service'; import { createGrid } from './grid'; describe('Grid service', () => { describe('setColumns', () => { it('should set columns', () => { const grid = createGrid(); const columns = 3; const result = gridService.setColumns(columns, grid); expect(...
package infoblox import ( "github.com/hashicorp/terraform/helper/schema" "github.com/sky-uk/skyinfoblox" "log" "reflect" ) // CreateResource - Creates a new resource provided its resource schema func CreateResource(name string, resource *schema.Resource, d *schema.ResourceData, m interface{}) error { obj := mak...
package edu.udel.cis.vsl.civl.gui.common; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.FlowLayout; import java.awt.Font; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.FocusEvent; import java.a...
package com.badoo.ribs.rx2.adapter import com.badoo.ribs.minimal.reactive.Source import io.reactivex.Observable fun <T> Source<T>.rx2(): Observable<T> = Observable.create { emitter -> val cancellable = observe { emitter.onNext(it) } emitter.setCancellable { cancellable.cancel() } }
package sources import ( "crypto/md5" "fmt" "net/http" "net/url" "path" "path/filepath" lxd "github.com/lxc/lxd/shared" "github.com/lxc/distrobuilder/shared" ) // SabayonHTTP represents the Sabayon Linux downloader. type SabayonHTTP struct{} // NewSabayonHTTP creates a new SabayonHTTP instance. func NewSab...
#!/bin/sh CURRENT_DOCUMENT_PATH=$(osascript -e ' tell application "Xcode" activate --tell application "System Events" to keystroke "s" using {command down} --wait for Xcode to remove edited flag from filename --delay 0.3 set last_word_in_main_window to (word -1 of (get name of window 1)) set cu...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TupleSections #-} {-# ...
package uk.co.electronstudio.retrowar import uk.co.electronstudio.sdl2gdx.RumbleController interface NetworkController: RumbleController { abstract val guestName: String abstract var player: Player? }