text stringlengths 27 775k |
|---|
import { noop } from "lodash";
import { IGraphBehavior } from "./Graph.types";
import { Ref, Selection, Zoom } from "./Graph.types.internal";
export class GraphBehavior implements IGraphBehavior {
public zoomBy: (k: number) => void;
public resetZoom: () => void;
constructor() {
this.zoomBy = noop;
this.... |
<?php
namespace CaptainHook\App\Integration;
use CaptainHook\App\Plugin\Hook\PreserveWorkingTree;
class PreserveWorkingTreePluginTest extends IntegrationTestCase
{
public function testMoveWorkingTreeChangesBeforeHook(): void
{
$repoPath = $this->setUpRepository();
$this->setConfig($repoPath,... |
#!/bin/bash
# Get an updated config.sub and config.guess
cp -r ${BUILD_PREFIX}/share/libtool/build-aux/config.* .
if [[ "${target_platform}" == osx-* ]]; then
# turn off Werror for clang ...
sed -i.bak -E "s/-Werror/-Wno-error/" configure.ac
fi
bash ./autogen.sh
# https://github.com/json-c/json-c/issues/406
exp... |
from typing import Dict, List, Union
from config_manager import base_configuration
from rama import rama_config_template
class RamaConfig(base_configuration.BaseConfiguration):
def __init__(self, config: Union[str, Dict], changes: List[Dict] = []) -> None:
super().__init__(
configuration=conf... |
// code-examples/Rounding/match-deep-pair-script.scala
class Role
case object Manager extends Role
case object Developer extends Role
case class Person(name: String, age: Int, role: Role)
val alice = new Person("Alice", 25, Developer)
val bob = new Person("Bob", 32, Manager)
val charlie = new Person("Charlie", 32, D... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Settings Plugin
*
* Allows settings to be used in content tags.
*
* @author PyroCMS Dev Team
* @package PyroCMS\Core\Modules\Settings\Plugins
*/
class Plugin_Settings extends Plugin
{
/**
* Load a variable
*
* Magic method to g... |
using CoodeshPharmaIncAPI.Models;
using CoodeshPharmaIncAPI.Models.Extensions;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
namespace CoodeshPharmaIncAPI.Database.Configurations
{
public class UserConfiguration : IEntityTypeConfiguration<User>
{
... |
const errors = require('./errors');
/**
* @constructor Smsglobal
*
* @param {string} key smsglobal api key
* @param {string} secret smsglobal api secret
*/
const Smsglobal = function (key, secret) {
if (!(this instanceof Smsglobal)) {
return new Smsglobal(key, secret);
}
this.key = key || process.env.... |
module BraintreeRails
class IndividualDetailsValidator < Validator
Validations = [
[:first_name, :last_name, :email, :date_of_birth, :address, :presence => true]
]
def validate(individual)
validate_association(individual, :address)
end
end
end
|
module Main where
data Binario = Zero | Um deriving (Show, Eq)
binList :: [Binario] -> [Int]
binList xs = [if x == Um then 1 else 0 | x <- xs]
main :: IO ()
main = do
print $ binList [Zero, Um, Zero, Zero, Um]
|
<?php
/**
* Lets you include a nested group of fields inside a template.
* This control gives you more flexibility over form layout.
*
* Note: the child fields within a field group aren't rendered using FieldHolder(). Instead,
* SmallFieldHolder() is called, which just prefixes $Field with a <label> tag, if the T... |
#!/bin/bash
EXE=fp_rci.exe
#EXE=fp_rci_byte
CALLS_FILE=calls.oic
CALLS_NOSLICE=calls.oic.noslice
SCRIPTS_DIR=/home/jan/research/relay-race/scripts
CG_DIR=$1
LOG=$CG_DIR/log
LOGNOSLICE=$CG_DIR/lognoslice
PWD=`pwd`
TIMEOUT=21600 # 6 hours timeout
POLLTIME=5 # seconds between check for timeout
# copy-paste of timeout... |
using Genie, Genie.Router
using Genie.Renderer, Genie.Renderer.Html, Genie.Renderer.Json
using JSON
using SwagUI
swagger_document = JSON.parsefile("./swagger.json")
urls = Array{Dict{String, Any}, 1}()
url1 = Dict{String, Any}()
url1["url"] = "https://petstore.swagger.io/v2/swagger.json"
url1["name"] = "Spec1"
url2 =... |
/**
* @jest-environment jsdom
*/
import { render, fireEvent } from '@testing-library/svelte'
import { get } from 'svelte/store'
import Component from '../test/Component.svelte';
import { counter } from '../test/counterStore';
describe('Integration with Svelte', () => {
test('Should render component without breaki... |
<!-- Module Name and description are required -->
# Helm Tiller Helper Module
Provides a helper used by the Helm provider, that sets up a namespace, service
account, and permissions for Tiller to run on.
<!-- Compatibility section is optional -->
## Compatibility
This module is compatible with Terraform `<= 0.12.0`... |
#ifndef CC_TYPES_H
#define CC_TYPES_H
namespace cc
{
using CC_INT32t = int;
using CC_UINT32t = unsigned int;
using CC_BOOL = bool;
using CC_LONG64 = long long;
}
#endif |
import { Assert, outputLink, suite, test, testCurve, testCurveISInfos, testCurveTransform, testISTs } from './manager';
import {arrayFromFunction, arraySamples, DEG, lerp, M4, Matrix, V, V3, Vector, VV} from 'ts3dutils';
import {
AABB2,
BezierCurve,
breakDownPPCurves,
Curve,
curvePoint,
curvePointMF,
Edge,
Ell... |
#! /data/data/com.termux/files/usr/bin/bash
clear
echo " _____ _ _ "
echo " | __ \ ( ) | "
echo " | | | | ___ _ __ |/| |_ "
echo " | | | |/ _ \| '_ \ | __| "
echo " | |__| | (_) | | | | | |_ "
echo " |_____/ \___/|_| |_| \__| "
echo
echo
echo " ____ ... |
package org.casualmiracles.finance.models
import org.scalatest.FunSuite
import org.scalatest.Matchers
class ValuatorSuite extends FunSuite with Matchers{
test("Eso Model for American Call on Stock/Hoadley") {
val input = ContractParameters(
"eso", "americancallonstock", 29.0, 30.0, 0.05, 0.30, 0.0, 40.... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002-2010 Oracle. All rights reserved.
*
* $Id: DuplicateEntryException.java,v 1.4 2010/01/04 15:51:00 cwl Exp $
*/
package com.sleepycat.je.dbi;
/**
* Exception to indicate that an entry is already present in a node.
*/
@SuppressWa... |
# run full update function
run-full-update-basic-setup() {
sudo apt-get update -y
sudo apt-get -u upgrade --assume-no
sudo apt-get upgrade -y
sudo apt-get autoremove -y
}
|
require 'terminal_output/styling/controls/sgr'
require 'terminal_output/styling/controls/color/mode/rgb/gradient'
require 'terminal_output/styling/controls/color/mode/rgb/scale'
require 'terminal_output/styling/controls/color'
require 'terminal_output/styling/controls/color/standard'
require 'terminal_output/styling/... |
----
title: "Changing the World Through Video Games"
date: 2020-07-31
----
Hello Its Brendan and I am just learning about how video games can change the world!
Video Games can Change the world for good not just for evil.
The First topic is social innovation and collobration!
Video Games can Enable the World to have mor... |
package com.vitanov.multiimagepicker.FishBunMod.java.com.sangcomz.fishbun.datasource
import android.content.ContentResolver
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import android.provider.MediaStore.Images.Media.*
import android.util.Log
import com.vitanov.multiimagepic... |
import {
CreateTask,
DeleteTask,
LoadTasks,
UpdateStatusTask,
} from '@/domain/usecases';
import faker from '@faker-js/faker';
export class CreateTaskSpy implements CreateTask {
params = {};
async create(params: CreateTask.Params): Promise<CreateTask.Result> {
this.params = params;
}
}
export clas... |
#include "systemc.h"
SC_MODULE (TestIntitializer)
{
sc_in_clk clk; // The mandatory clock, as this is synchronous logic.
sc_out<bool> rst; // The mandatory reset, as this is synchronous logic.
sc_out<bool> start; // In... |
%%--------------------------------------------------------------------
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1999-2009. 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.
%% You may obtain a copy o... |
use curl::easy::{Easy2, Handler, WriteError};
use core::time::Duration;
struct Collector(Vec<u8>);
impl Handler for Collector {
fn write(&mut self, data: &[u8]) -> Result<usize, WriteError> {
self.0.extend_from_slice(data);
Ok(data.len())
}
}
fn main() {
let interfaces = vec!("eth0","wla... |
# coding: utf-8
import gym
import numpy as np
from cached_property import cached_property
class BaseEnv(gym.Env):
def __init__(
self,
dt,
dtype=np.float32,
name="BaseEnv"
):
super().__init__()
self.name = name
self.dt = dt
self.... |
import { Observable } from '../../internal/Observable';
import { shareReplay } from '../../internal/patching/operator/shareReplay';
// v4-backwards-compatibility
Observable.prototype.shareReplay_persisted = shareReplay;
Observable.prototype.shareReplay = function<T>(this: Observable<T>, count: number): Observable<T> ... |
package com.gapps.oneone.utils.views.dialog
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.text.InputType
import android.view.Window
import com.gapps.oneone.R
import com.gapps.oneone.utils.extensions.gone
import com.g... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;
using System.Linq;
using System.Web;
using VAdvantage.DataBase;
using VIS.DataContracts;
namespace VIS.Helpers
{
/// <summary>
/// help to fetch Data from dataServer and return json compatible class objects
... |
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
CREATE TABLE TEST(B1 VARBINARY, B2 BINARY VARYING, B3 BINARY, B4 RAW, B5 BYTEA, B6 LONG RAW, B7 LONGVARBINARY);
> ok
SELECT COLUMN_NAME, DATA_TYPE, TYPE... |
package com.sadik.hrmscf.entities.concretes;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Data
@Entity
@Table(name ="languages")
@JsonIgnoreProperties({"hibernateLazyInitializer", "han... |
package userprint
import (
"code.cloudfoundry.org/cli/cf/models"
"code.cloudfoundry.org/cli/plugin/models"
)
type pluginPrinter struct {
roles []models.Role
userLister func(spaceGUID string, role models.Role) ([]models.UserFields, error)
users userCollection
printer func([]userWithRoles)
}
type us... |
/**
* Created by Alicia on 18/04/2016.
*/
var patata = "cruda";
function cuece() {
console.log('la patata está ', patata);
var patata = 'cocida';
}
cuece(); |
<?php
/**
* curl库
*
* @license MIT
* @author espada 369850596@qq.com
*/
namespace Zd\upload\request;
class Curl
{
/**
* curl get
*
* @param string $url
* @param array $options
* @return mixed
*/
public static function get($url, $options = [])
{
$ch = \curl_init(... |
using eScape.Core.Page;
using eScapeLLC.UWP.Charts;
using System;
using System.Diagnostics;
using System.Threading;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Yacc.Demo.VM;
namespace Yacc.Demo.Pages {
public sealed partial class Chart1 : BasicPage {
public override ... |
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { AbstractEntity } from 'shared/core';
import { Currency, EmploymentType, Level, Technology } from '../../domain/types';
@Entity('offers')
export class OfferEntity extends AbstractEntity {
@PrimaryColumn()
offer_id: string;
@Column()
title: str... |
package indexer
import (
"encoding/csv"
"os"
"os/signal"
"github.com/sirupsen/logrus"
"gopkg.in/src-d/core-retrieval.v0/model"
"gopkg.in/src-d/core-retrieval.v0/repository"
"gopkg.in/src-d/go-kallax.v1"
)
// Index to the given output csv file all the processed repositories in
// the given store.
func Index(
... |
package com.aws.dynamodb
object DynamoKeyAttribute extends Enumeration {
type Types = DynamoKeyAttribute.Value
val String: Types = Value("S")
val Number: Types = Value("N")
val Binary: Types = Value("B")
}
|
//9, 16 -> 9, 28 AllowLoadtime == true
package p;
class S {
public static S instance= new S();
int f(){
int v= instance.f();
return 0;
}
} |
package edu.learn.jpa.repos
import org.springframework.data.repository.CrudRepository
import org.springframework.data.repository.NoRepositoryBean
import org.springframework.data.repository.PagingAndSortingRepository
@NoRepositoryBean
interface GenericRepo<T, ID> : CrudRepository<T, ID>, PagingAndSortingRepository<T, ... |
package repl
import scala.collection.mutable.ListBuffer
class Repl {
private[this] val submissionHistory: ListBuffer[String] = ListBuffer()
private[this] var submissionHistroyIndex: Int = _
private[this] var done: Boolean = _
def evalateMetaCommand(text: String) = {
println(s"Invald command ${text}")
}... |
# frozen_string_literal: true
module Tianguis
class Product
attr_accessor :name, :state, :category, :kind
attr_reader :quality, :variant
def initialize
yield(self) if block_given?
end
def to_h
{
name: name,
quality: quality,
variant: variant.to_h,
sta... |
package me.anatoliy57.chunit.core;
import com.laytonsmith.core.Globals;
import com.laytonsmith.core.constructs.CNull;
import com.laytonsmith.core.natives.interfaces.Mixed;
import me.anatoliy57.chunit.util.ReflectionUtils;
import java.util.Map;
public class OriginalGlobals {
private static Map<String, Mixed> ori... |
package khats
trait ApplicativeKlass[T[_[_], _]] extends ApplicativeK[T] with ApplyKlass[T] with PointedK[T] {
final def applicativek: ApplicativeK[T] = this
} |
1 31 63 116 129 158 200 210
2 26 41 49 97 216
3 8 77 84 107 112 121
4 48 91 139 180
5 98 119
6 4 105 117 149 188 193 195
7 34 173 219
8 181 197
9 75 142 183
10 154 155 156 193
11 29 205
12 7 67 92 99 131
13 58 108 114 115 191 209
14
15 1 174
16 73 91 198
17 171 173 223
18 109 126
19 72
20 9 159
21 23 212
22 124 156 214... |
export { default as S3Service } from './S3Service';
export { default as ElasticTranscoderService } from './ElasticTranscoderService';
|
import axios from "axios";
import dotenv from "dotenv";
import _ from "lodash";
import { getUrl } from "./query";
dotenv.config();
const { HOST } = process.env;
/**
* POST /admin/api/2020-07/fulfillment_orders/{fulfillment_order_id}/fulfillment_request.json
Sends a fulfillment request
POST /admin/api/202... |
# PoET 1.0 Specification
# Introduction
<!--
Licensed under Creative Commons Attribution 4.0 International License
https://creativecommons.org/licenses/by/4.0/
-->
The Proof of Elapsed Time (PoET) Consensus method offers a solution to
the Byzantine Generals Problem that utilizes a "trusted execution
environment"... |
# Build example for an express, reactjs env
> A example for client and server environment for ReactJS in es6
>(gulp, webpack, react, flux, bootstrap 4, sass, babel)
### Install
```
cd client
npm install
```
> Run for dev ([localhost:8080](http://localhost:8080)) :
```
gulp
```
> For final build
```
gulp b... |
#include <brisbane/brisbane_openmp.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
__global float * Z;
float A;
__global float * X;
__global float * Y;
} brisbane_openmp_saxpy_args;
brisbane_openmp_saxpy_args saxpy_args;
static int brisbane_openmp_saxpy_setarg(int idx, size_t size, void* value) {
... |
package com.vvt.events;
public enum FxRecipientType {
TO(0),
CC(1),
BCC(2);
private int mNumber;
FxRecipientType(int number){
this.mNumber = number;
}
public int getNumber() {
return this.mNumber;
}
} |
class FormAttachment < ActiveRecord::Base
mount_uploader :file, AttachmentUploader
belongs_to :form
end
|
require 'spec_helper'
require 'fix_db_schema_conflicts/autocorrect_configuration'
RSpec.describe FixDbSchemaConflicts::AutocorrectConfiguration do
subject(:autocorrect_config) { described_class }
it 'for versions 0.79.0 and above' do
installed_rubocop(version: '0.79.0')
expect(autocorrect_config.load).to... |
; Tests for the Funnel Shift intrinsics fshl/fshr(a, b, c) which
; - concatenate 'a' and 'b'
; - shift the result by an amount 'c' (left or right)
; - return the top or bottom half of result (depending on direction)
;
; This file consists of a sequence of tests of the form
; ```
; T = llvm_fshl(a, b, c);
; C = T != r... |
from ctypes import c_int, c_char
from warnings import warn
import openmc.exceptions as exc
from . import _dll
def _error_handler(err, func, args):
"""Raise exception according to error code."""
# Get error code corresponding to global constant.
def errcode(s):
return c_int.in_dll(_dll, s).value
... |
#!/bin/sh
PACKAGE_VERSION=$(cat package.json | jq -r .version)
GITHUB_ENDPOINT="${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/git/ref/tags/v${PACKAGE_VERSION}"
GITHUB_ENDPOINT_STATUS=$(
curl \
-LI $GITHUB_ENDPOINT \
-o /dev/null \
-w '%{http_code}\n' \
-sH "Authorization: token ${GITHUB_TOKEN}" \
)
i... |
using System;
namespace Lesson_2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("====Workers-1====");
Workers workers1 = new Workers("Micheal","Scott",123456,"Manager");
workers1.workersInfo();
Console.WriteLine("====Worker... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\OrderBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Componen... |
/*
* @Author: wangli
* @Date: 2020-07-19 13:23:29
* @LastEditors: 王利
* @LastEditTime: 2020-12-09 10:32:04
*/
import Layout from "@/layout";
const sysRouter = {
path: "/sys",
component: Layout,
redirect: "/sys/dictionary",
name: "SYS",
meta: {
title: "系统管理",
icon: "table"
},
children: [
... |
<?hh // strict
// Copyright 2004-present Facebook. All Rights Reserved.
class C<T as arraykey> {}
function f(mixed $x): void {
if ($x is C<_>) {
// We expect $x to be C<T#1> where T#1 has the same bounds
// as T in C's declaration
hh_show($x);
}
}
|
/**
* The failsafe route that catches everything.
*
* This should always been last in a routes array.
*/
'use strict';
// Import dependencies
const chalk = require('chalk');
const Route = require('../Route.js');
const Printable = require('../Printable');
// Define the route options.
const route = {
name: 'no-ro... |
// The entry file of your WebAssembly module.
import { Console, CommandLine } from "as-wasi";
export function _start(): void {
// Parse command line arguments
let commandLine = new CommandLine();
let args: Array<string> = commandLine.all();
if (args.length < 2) {
Console.log('Please pass an argument to e... |
# Wrapping a primitive
* wrap a primitive when I want to use the value as an object
* to put into a collection
* wrapping a value
```java
int i = 288;
Integer iWrap = new Integer(i);
```
* unwrapping a value
```java
int unWrapped = iWrap.intValue();
```
* Autoboxing from Java5.0
```... |
/*
* Copyright (C) 2013 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 app... |
/**
* Project Name: com.qiniu.sdkdemo
* File Name: Basic.java
* Package Name: com.qiniu.sdkdemo
* Date Time: 06/11/2017 6:14 PM
* Copyright (c) 2017, xxx_xxx All Rights Reserved.
*/
package com.qiniu.sdkdemo;
import com.qiniu.common.Zone;
import com.qiniu.http.Response;
import com.qiniu.storage.UploadManager;
... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Blumind.Controls;
using Blumind.Controls.MapViews;
using Blumind.Core;
using Blumind.Core.Documents;
using Blumind.Globalization;
using Blumind.Model;
using Blumind.Model.MindMaps;
name... |
/*
* SPDX-FileCopyrightText: 2020 DB Station&Service AG <bahnhoflive-opensource@deutschebahn.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
package de.deutschebahn.bahnhoflive.backend
import com.android.volley.Request
import com.android.volley.VolleyError
class DetailedVolleyError(
val request: Request<*>,
... |
-- DQL - Linguagem de Consultas de Dados - Comando SELECT
-- Criar um novo banco de dados
CREATE DATABASE bdprodutos;
USE bdprodutos;
-- Criar uma tabela no BD "bdprodutos"
CREATE TABLE produtos(
codigo INT AUTO_INCREMENT,
tipo VARCHAR(50), modelo VARCHAR(50), marca VARCHAR(50),
qdt INT, preco FLOAT,
PRIMARY KEY... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `grade`.
*/
class m161028_023447_create_grade_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('grade', [
'id' => $this->primaryKey(),
'standard' => $this->st... |
import { Resolver, Mutation, Args, Query, ResolveField, Parent } from '@nestjs/graphql';
import { UserService } from './user.service';
import { UseGuards, Inject, forwardRef } from '@nestjs/common';
import { GqlAuthGuard } from '../auth/graphql.guard';
import { CurrentUser } from '../../decorators/current-user.decorato... |
require 'spec_helper'
# See https://github.com/geoblacklight/geoblacklight/wiki/Schema
describe GeoWorks::Discovery::DocumentBuilder do
subject { described_class.new(geo_concern_presenter, document_class) }
let(:geo_concern) { FactoryGirl.build(:public_vector_work, attributes) }
let(:geo_concern_presenter) { G... |
using CharactersApi_Data;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharactersApi_Test.Mocks
{
public static class CharacterDBMock
{
private static DbContextOptions<P3_NotFightClub_Characte... |
var util = require('util');
var events = require('events');
var AudioDevice = {
play: function (track) {
console.log(track)
// Stub: Trigger playback through iTunes, mpg123, etc.
},
stop: function () {
console.log('stop')
}
};
function MusicPlayer() {
this.playing = false;
... |
import API from "@/services"
import { ref } from "vue"
export type userType = {
id: number
identify_card: string
social_insurance: string
fullname: string
birthday: null
gender: number
username: string
address: string
address_full: []
phone: string
village_id: number
role: {
name: string
... |
#include "kernel/dev/tty/tty.hpp"
#include "kernel/fs/vfs/defines.hpp"
#include "kernel/task.hpp"
#include "kernel/trace.hpp"
namespace dev::tty
{
using namespace fs;
bool tty_read_func(u64 data)
{
auto *tty = (tty_pseudo_t *)data;
auto buffer = &tty->buffer;
return tty->eof_count > 0 || (tty->line_count ... |
#/bin/bash
# Create a service account that can read from the gcr.io/skia-public container
# registry and add it as a docker-registry secret to the cluster.
set -x -e
source ../../bash/ramdisk.sh
SA_EMAIL=$(../../kube/secrets/add-service-account.sh \
skia-public \
skolo-rack4 \
gcr-io-skia-public-account \
"... |
using System.Collections.Generic;
using System.Linq;
namespace NomOrderManager.Model
{
public class IndexModel : IModel
{
public IndexModel(IEnumerable<string> locations)
{
Name = "Lieferdienste";
Locations = locations;
}
public string Name { get; }
... |
# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021
require 'test_helper'
require 'support/apps/active_record/active_record'
class RailsActiveRecordTest < Minitest::Test
def setup
skip unless ENV['DATABASE_URL']
@connection = ActiveRecord::Base.establish_connection(ENV['DATABASE_URL'])
Acti... |
#include <bits/stdc++.h>
#include "Headers/Reader.h"
using namespace std;
void Reader::ReadMap() {
cin >> numberOfPoints >> numberOfEdges;
for (int i = 0, id; i < numberOfPoints; i++) {
double x, y;
cin >> id >> x >> y;
points.push_back({ id, x, y });
}
for (int i = 0, idSource, idTarget; i < numberOfEdge... |
resolvers += Resolver.url(
"meetup-sbt-plugins",
new java.net.URL("https://dl.bintray.com/meetup/sbt-plugins/")
)(Resolver.ivyStylePatterns)
addSbtPlugin("com.meetup" % "sbt-plugins" % "0.2.19")
addSbtPlugin("com.eed3si9n" % "sbt-dirty-money" % "0.1.0")
|
import 'package:intl/intl.dart';
import 'package:logging/logging.dart';
import 'package:network_tools/network_tools.dart';
void main() {
Logger.root.level = Level.FINE;
Logger.root.onRecord.listen((record) {
print(
'${DateFormat.Hms().format(record.time)}: ${record.level.name}: ${record.loggerName}: ${re... |
# react-redux-demo server
A Node.js app using [Express 4](http://expressjs.com/) to
## Running Locally
```sh
$ git clone https://github.com/latamind/reat-redux.git # or clone your own fork
$ cd reat-redux
$ npm install
$ npm start
```
Your app should now be running on [localhost:5000](http://localhost... |
# Amplify
<p align="center">
<img src="docs/demo.gif" alt="Demo gif">
</p>
## Overview
Amplify allows users to increase the size of images.
Best used in narrow containers, between paragraphs.
It is lightweight: 29 sloc of JS and 23 sloc of SCSS resulting in **1.22kB** combined.
### [Demo](https://charlestati.gi... |
package com.kilimandzsaro.proxyclick.helper;
import io.github.cdimascio.dotenv.Dotenv;
public class Settings {
private Dotenv dotenv;
public Settings() {
this.dotenv = Dotenv.load();
}
public String getAdminUser() {
return dotenv.get("ADMIN_USER");
}
public String getAd... |
namespace LiveHTS.Core.Model.SmartCard
{
public class EXTERNALPATIENTID
{
public string ID { get; set; }
public string IDENTIFIER_TYPE { get; set; }
public string ASSIGNING_AUTHORITY { get; set; }
public string ASSIGNING_FACILITY { get; set; }
public EXTERNALPATIENTID()... |
(defpackage :jsown
(:use :common-lisp)
;; reading
(:export :parse
:build-key-container
:parse-with-container
:filter)
;; writing
(:export :to-json
:to-json*)
;; editing
(:export :keywords
:val
:empty-object
:do-json-keys
... |
package com.kralofsky.cipherbox.ciphers
import android.widget.SeekBar
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.kralofsky.cipherbox.Cipher
import com.kralofsky.cipherbox.R
object RailfenceCipher : Cipher() {
override val name = "Railfence Cipher"
override val im... |
#!/bin/bash -e
./git_all.sh checkout master
./git_all.sh checkout $TRAVIS_BRANCH
if [ "$(basename $TRAVIS_REPO_SLUG)" == "$ANGR_REPO" ]
then
COVERAGE="--with-coverage --cover-package=$ANGR_REPO --cover-erase"
fi
NOSE_OPTIONS="-v --nologcapture --with-timer $COVERAGE --processes=2 --process-timeout=570 --process-res... |
/**
Computes the (magnetic) scattering form sld (n and m) profile
*/
#ifndef SLD2I_CLASS_H
#define SLD2I_CLASS_H
#include <vector>
using namespace std;
/**
* Base class
*/
class GenI {
protected:
vector<double>* I_out;
// vectors
int n_pix;
double* qx;
double* qy;
double* x_val;
double* y_val;
double* z_v... |
// Created by Kay Czarnotta on 20.04.2016
//
// Copyright (c) 2016, EagleEye .
//
// All rights reserved.
using System;
using Windows.ApplicationModel.Background;
namespace SensorbergSDKTests.Mocks
{
public class MockBackgroundTaskInstance: IBackgroundTaskInstance
{
public BackgroundT... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace OredersTracker.Web.Areas.Administration.ViewModels
{
public class IncomeViewModel
{
public decimal TotalForMonth { get; set; }
public decimal TotalForKornelia { get; set; }
public decimal T... |
CREATE TABLE moderation_case (
id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
guild_id INT(11) NOT NULL,
user_id INT(11) NOT NULL,
moderator INT(11),
message_id INT(21) NOT NULL,
created_at DATETIME NOT NULL,
reason TEXT NOT ... |
using pegabicho.domain.Entities.Core.Users;
using pegabicho.domain.Helpers;
using pegabicho.domain.Interfaces.Arguments.Base;
namespace pegabicho.domain.Arguments.Core.Users {
public class GeneralResponse : IResponse {
public string Id { get; set; }
public string Type { get; set; }
public ... |
import 'package:kino_player/generated/l10n.dart';
class PosterSortFieldData {
final String id;
final String title;
PosterSortFieldData(this.id, this.title);
}
class PosterSortFieldsData {
final List<PosterSortFieldData> items;
static const defaultId = "-kinopoisk_rating";
static List<PosterSortFieldData... |
package com.deflatedpickle.survivalimprovement
object Reference {
const val MOD_ID = "survivalimprovement"
const val NAME = "SurvivalImprovement"
// Versions follow this format: MCVERSION-MAJORMOD.MAJORAPI.MINOR.PATCH.
const val VERSION = "1.12.2-2.0.1.0"
const val ACCEPTED_VERSIONS = "[1.12.1, 1.1... |
# This file contains the Schedule and Route classes, which load data from our
# database and provide methods and variables to help access it
import pandas as pd
import numpy as np
import psycopg2 as pg
from scipy import stats
# Schedule class definition
# (has some extra methods that are not all used in this notebook... |
{% highlight yaml %}
title: callysto
github: ashtonmv/example_site
alert: 'I'm here for your cookies!'
url: michael-ashton.com/example_site
baseurl: /
email: callysto@gmail.com
formspree: https://formspree.io/callysto@gmail.com
copyright: Michael Ashton
{% endhighlight %} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.