text
stringlengths
27
775k
/* * Tencent is pleased to support the open source community by making TubeMQ available. * * Copyright (C) 2012-2019 Tencent. 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 of the * ...
<div class="content__u3I1 question-content__JfgR"><div><p>Given a positive integer, return its corresponding column title as appear in an Excel sheet.</p> <p>For example:</p> <pre> 1 -&gt; A 2 -&gt; B 3 -&gt; C ... 26 -&gt; Z 27 -&gt; AA 28 -&gt; AB ... </pre> <p><strong>Example 1:</s...
#ifndef _IDT_JMP_H #define _IDT_JMP_H #include "types.h" #ifndef ASM /** DESCRIPTION: IDT jump table. Used to push argument and call do_irq */ extern uint32_t IDT_JMP_TBL; // creating header for jump table extern uint32_t IRQ_ASM_LNK; // header for assembly linkage #endif /* ASM */ #endif /* _IDT_JMP_H */
import { DomNode, el } from "@hanul/skynode"; import { View } from "skyrouter"; import { ViewParams } from "skyrouter/lib/View"; import FarmList from "../component/FarmList"; import Layout from "./Layout"; export default class Earn implements View { private container: DomNode; constructor() { Layout....
FactoryBot.define do factory :lan do name 'noprobLAN v133.7' starts_at 42.days.from_now ends_at 45.days.from_now planned_seats 120 description 'Beste und gemütlichste LAN PARTEEEEYYY eva!1!!' trait :past do starts_at 42.days.ago ends_at 40.days.ago end trait :now do ...
#!/bin/sh # Unit tests builder / runner for this project make -s -f test.mak clean make -f test.mak cat test.log | grep Failed
// // Created by zm on 18-12-1. // // #ifndef OFFB_POSCTL_PARAMETER_H // #define OFFB_POSCTL_PARAMETER_H class Parameter { public: float x_p; float y_p; float z_p; float x_i; float y_i; float z_i; float x_d; float y_d; float z_d; float vx_p; float vy_p; float vz_p;...
% fibonacci % fib(Number, Res) fib(0, 0). fib(1, 1). fib(2, 1). fib(N, Res) :- N > 2, N1 is N - 1, N2 is N - 2, fib(N1, Res1), fib(N2, Res2), Res is Res1 + Res2.
use glium; use glium::backend::glutin::glutin::dpi::LogicalSize; use glium::glutin::os::macos::WindowBuilderExt; use glium::glutin::EventsLoop; pub fn display(event_loop: &EventsLoop) -> glium::Display { let window = glium::glutin::WindowBuilder::new() .with_title("Poin") .with_dimensions(LogicalSi...
/* * Created by yigitozgumus on 4/2/22, 11:44 AM * Copyright (c) 2022 . All rights reserved. * Last modified 4/2/22, 11:44 AM */ package com.yigitozgumus.api.models import com.google.gson.annotations.SerializedName data class Coin( @SerializedName("id") var id: String? = null, @SerializedName("symbol")...
<?php class user { public static function register($deviceID, $user, $pass){ $query = "SELECT id FROM `users` WHERE deviceId = '".$deviceID."'"; $query = "INSERT into users (id, Nome, Senha, passcode, deviceId, activated, advancedAccount, Foto, DataCadastro) VALUES (NULL, '".$user."', '".$pass."', '12345', '...
-- This file should undo anything in `up.sql` ALTER TABLE demons ADD COLUMN notes TEXT NULL; ALTER TABLE demons ADD COLUMN description TEXT NULL; ALTER TABLE members ADD COLUMN password_salt BYTEA NOT NULL DEFAULT E'\\000'; ALTER TABLE members ALTER COLUMN display_name TYPE CITEXT; ALTER TABLE members ALTER COLUMN na...
class SettingsController < ApplicationController layout 'admin' def index settings = Setting.get render :index, locals: { settings: settings } end def update unless dates_order_ok?(setting_params) redirect_to settings_path, notice: "Registration start must be after preparation start and befo...
package org.artifactory.ui.rest.model.artifacts.browse.treebrowser.tabs.general.info; import com.google.common.collect.Sets; import org.artifactory.addon.AddonType; import org.artifactory.addon.AddonsManager; import org.artifactory.addon.blackduck.BlackDuckAddon; import org.artifactory.addon.filteredresources.Filtered...
require 'rubygems' require 'require_relative' if RUBY_VERSION < '1.9' require 'minitest/autorun' require_relative './common.rb' describe CIMI::Collections::CloudEntryPoint do before do def app; run_frontend(:cimi) end @collection = CIMI::Collections.collection(:cloudEntryPoint) end it 'has index opera...
package slak.ckompiler.analysis import kotlinx.serialization.Serializable import mu.KotlinLogging import slak.ckompiler.lexer.Punctuators import slak.ckompiler.parser.* import slak.ckompiler.throwICE import kotlin.js.JsExport private val logger = KotlinLogging.logger {} /** * Common superclass of all IR instruction...
from glyles.glycans.utils import Config class Monomer: """ General interface to represent the sugar monomers in the tree. The resulting molecule must have some properties that are especially important for the correct implementation of the parser later on: - The C atoms have IDs 1 to 6 a...
import numpy class X(numpy.ndarray): def __new__(self): return numpy.ndarray.__new__(X, (4, 1), buffer=numpy.ones((4, 1), dtype=numpy.int)) def __rsub__(self, b): return 42
#!/usr/bin/env python import cPickle as pickle from time import time from datetime import datetime from .data import ObjectStore from ..features.mapping import FEATURE_MAPPERS from nel import logging log = logging.getLogger() class Classifier(object): mid = 'models:classifiers' def __init__(self, name, mappe...
# go-lsd-alfred [![Build Status](https://travis-ci.org/pddg/go-lsd-alfred.svg?branch=master)](https://travis-ci.org/pddg/go-lsd-alfred) Alfred 3用のWorkfrowで用いる簡単なCLIツール. ライフサイエンス辞書を検索する. ## Usage ### 検索方法 * 前方一致 ```bash lsd begin "..." ``` * 後方一致 ```bash lsd end "..." ``` * 部分一致 ```bash lsd in "..." ``` * ...
#include <SIO_testing.h> #include <SIO_functions.h> // -- std headers #include <array> #include <cmath> #include <limits> using UnitTest = sio::test::UnitTest; int main() { UnitTest unitTest("test_functions"); // Validate read/write operations std::array<unsigned char, sizeof(float)> buf; float write_fval ...
<?php namespace App\EssentialEntities\Transformers; /** * Description of PostcodeTransformer * * @author mohamed */ class PostcodeTransformer extends Transformer{ public function beforeStandard( array $item ) { $response = [ "id" => (string)$item['id'], "postcode" => (string)$...
package draughts import draughts.format.Forsyth import draughts.variant.Variant import org.specs2.matcher.{ Matcher, ValidationMatchers } import org.specs2.mutable.Specification trait DraughtsTest extends Specification with ValidationMatchers { def fenToGame(positionString: String, variant: Variant) = { val si...
from distutils.core import setup import os # python setup.py sdist upload version = '0.4' github_url = 'https://github.com/Goutte/python_sparse_vector' paj = 'Goutte' paj_email = 'antoine@goutenoir.com' # Pypi does not support markdown (the cheeseshop strikes again) long_description = '' try: import pypandoc ...
using System; using NUnit.Framework; using SFA.DAS.EmployerCommitmentsV2.Web.Models.Cohort; namespace SFA.DAS.EmployerCommitmentsV2.Web.UnitTests.Models { [TestFixture] public class CohortDraftApprenticeshipViewModelTests { private CohortDraftApprenticeshipViewModel _viewModel; [TestCase...
// eslint-disable-next-line node/no-deprecated-api const { parse } = require('url'); const { Mixin } = require('hops-mixin'); const { createElement } = require('react'); const { StaticRouter } = require('react-router-dom'); const { ensureLeadingSlash, trimTrailingSlash } = require('pathifist'); class ReactRouterMixin ...
# 工业设计(ID) (2019-11-2) 主要包括结构设计和外观设计两大类。 这里的记录并不是要成为熟练结构设计和外观设计的技能,而是记录产品实现过程中,需要考虑的结构设计和外观设计问题。 ## 结构设计问题清单 ## 外观设计问题清单
# example-handlerbars This is just a basic example of how handle bars works with templates in Nodejs
# This file is part of the ValidatedNumerics.jl package; MIT licensed doc"""An `IntervalBox` is an $N$-dimensional rectangular box, given by a Cartesian product of $N$ `Interval`s. """ immutable IntervalBox{N, T} <: FixedVector{N, Interval{T}} # uses FixedSizeArrays.jl package _ :: NTuple{N, Interval{T}} end In...
package Planning.Plans.GamePlans.Protoss import Macro.BuildRequests.{BuildRequest, Get} import ProxyBwapi.Races.Protoss object ProtossBuilds { ///////////////////// // General Purpose // ///////////////////// val TwoGate910 = Vector[BuildRequest] ( Get(8, Protoss.Probe), Get(Protoss.Pylon), ...
/* * VidyoClientSample_iOS_AppDelegate.h * * Created by Chetan Gandhi on 08/19/11. * Copyright 2011 Vidyo Inc. All rights reserved. * */ #import <UIKit/UIKit.h> #import "LoginWindow.h" @interface VidyoClientSample_iOS_AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; @private BOOL _vidy...
using GeneXusFtps.GeneXusFtps; using NUnit.Framework; using SecurityAPICommons.Utils; using SecurityAPITest.SecurityAPICommons.commons; using System.IO; namespace SecurityAPITest.Ftps { [TestFixture] [RunIfRunSettingsConfigured] public class TestFtps: SecurityAPITestObject { protected static string host; p...
// Copyright (c) 2020 Steve Jones // SPDX-License-Identifier: MIT use proc_macro::TokenStream; use quote::quote; use std::cell::RefCell; use std::collections::HashMap; use std::str::FromStr; use syn::{ braced, parse::{Parse, ParseStream, Result}, parse_macro_input, Data, DataStruct, DeriveInput, Field, Fie...
# Linux磁盘管理 ## df [选项] 查看磁盘盒分区使用状况 选项 * `-l`: 仅显示本地磁盘(默认) * `-a`: 显示所有文件系统的磁盘使用状况 * `-h`: 以1024进制计算最合适的单位显示磁盘容量 * `-H`: 以1000进制计算最合适的单位显示磁盘容量 * `-T`: 显示磁盘分区类型 * `-t`: 显示指定类型文件系统的磁盘分区 * `-x`: 不显示指定类型文件系统的磁盘分区 ## du [选项] 文件 不加参数则统计所有文件夹 * `b`: 以byte为单位统计文件 * `k`: 以KB为单位统计文件 * `m`: 以MB为单位统计文件 * `h`: 同df的h * `H`: 同df的H ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Profil extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('UserModel'); } public function index() { $def['title'] = SHORT_SITE_URL.' | Profil'; $def['breadcrumb'] = 'Pr...
'use strict'; exports.Run = async function Run(caller, command, GUILD) { if (!command.msg.channel.guild) { caller.utils.message(command.msg.channel.id, { embed: { description: ':warning: This command can\'t be used in DM', color: caller.color.yellow, }, }).catch(console.error); ...
package com.mitteloupe.testit.generator.formatting import com.mitteloupe.testit.model.DataType fun DataType.toNonNullableKotlinString() = when (this) { is DataType.Specific -> name is DataType.Generic -> "$name<${genericTypes.toKotlinString()}>" is DataType.Lambda -> "(${inputParameterTypes.toKotlinString...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import * as React from 'react'; import { render, fireEvent, act } from '@botframework-composer/test-utils'; import { createHistory, createMemorySource, LocationProvider } from '@reach/router'; import { RecoilRoot } from 'recoil'; import { getDe...
package com.example.coursesearch.adapters import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import androidx.paging.PagingDataAdapter import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView import com.example.coursesearch.databinding.ReviewIte...
module Randoms using ScottishTaxBenefitModel using .Utils:isordered #= Some functions to make a huge, 60 digit random number, and extract groups of digits from it. One such number is attached to each person and household when the dataset is created. This seems a simple way to create repeatable but kinda-sort random...
aws ec2 import-key-pair --key-name=cks --public-key=$(cat ~/.ssh/id_rsa.pub|base64) aws ec2 run-instances --image-id ami-00ddb0e5626798373 --instance-type t3.large --key-name=cks --count=2
using System; using System.Collections.Generic; namespace Cake.Core.Configuration { internal sealed class CakeConfiguration : ICakeConfiguration { private readonly Dictionary<string, string> _lookup; public CakeConfiguration(IDictionary<string, string> lookup) { _lookup = ...
import {ABAPFile, Issue} from ".."; import {InfoMethodDefinition} from "../abap/4_file_information/_abap_file_information"; import {BuiltIn} from "../abap/5_syntax/_builtin"; import {ABAPRule} from "./_abap_rule"; import {BasicRuleConfig} from "./_basic_rule_config"; import {IRuleMetadata, RuleTag} from "./_irule"; ex...
package com.unrealdinnerbone.modpackapi.api.mods.manifest; public record ModDependency(int id, boolean required) {}
//***************************************************************************** // //! @page xacmp_testcase xcore register test //! //! File: @ref xacmptest.c //! //! <h2>Description</h2> //! This module implements the test sequence for the xacmp sub component.<br><br> //! - \p Board: HT32F1253 <br><br> //! - \p Last-T...
#[derive(Debug, Clone)] pub enum Instruction { NoOp, SndR(char), SndN(i64), SetR(char, char), SetN(char, i64), AddR(char, char), AddN(char, i64), MulR(char, char), MulN(char, i64), ModR(char, char), ModN(char, i64), RcvR(char), RcvN(i64), JgzRR(char, char), Jg...
const fs = require('fs'); const { promisify } = require('util'); const path = require('path'); const yaml = require('js-yaml'); const deepmerge = require('deepmerge'); const { pipe, map, split, filter, sort, then, waitAll, } = require('./utils'); /* ******* */ const readFile = promisify(fs.readFile); ...
import { put, takeEvery } from 'redux-saga/effects'; import { setCurrentPositionAC, setReceptionPointsAC } from '../actions'; import { FETCH_ADDRESSES, FETCH_ADD_COMPANY, GET_CURRENT_POSITION } from '../types'; import { apiPost } from '../../utils/fetches'; import { addPlaceURL, taresURL } from '../../utils/fetchURL'; ...
from numpy.random import randint class Quiz(object): def __init__(self, data): """ :param data: A ``dict`` containing the data in the order shown in the example. :type data: dict """ self.data = data self.total = len(self.data['questions']) self.iterator = 0...
<?php /** * Created by PhpStorm. * User: Admin * Date: 2018/5/5 * Time: 19:53 */ require_once('Nksmanager.php'); class Nkstime extends Nksmanager { public function __construct() { parent::__construct(); } public function timelist() { $this->check_admin(2); $user = $_SESSIO...
package react.bootstrap.site.components.docs.components.buttongroup import react.RBuilder import react.bootstrap.site.components.docs.fixings.PageComponent internal class ButtonGroup : PageComponent() { override fun RBuilder.render() { pageTitle("Button group") pageLead { +""" Group a ...
<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: other_images_names.php 3056 2006-02-21 06:41:36Z birdbrain $ */ /* * Zen Cart ...
#!/usr/bin/env perl use strict; use warnings; use Carp; use Getopt::Long qw(:config posix_default no_ignore_case bundling pass_through); use FindBin; use lib "$FindBin::RealBin/../../PerlLib"; use Pipeliner; use File::Basename; my $usage = <<__EOUSAGE__; ############################################################...
package ua.gov.dp.econtact.event; /** * Created by Yalantis * 25.09.2014. * * @author Dmitriy Dovbnya */ public interface BaseEvent { }
package io.scalac.mesmer.extension import akka.actor.typed.Behavior import io.scalac.mesmer.extension.metric.ClusterMetricsMonitor trait ClusterMonitorActor { def apply(monitor: ClusterMetricsMonitor): Behavior[_] }
# frozen_string_literal: true class QuizQuestion < ApplicationRecord include Updateable has_many :quiz_responses end
require 'rails_helper' RSpec.feature 'Resource manager manages holidays' do let(:users) do [ create(:guider, name: 'First Guider'), create(:guider, name: 'Second Guider'), create(:guider, :tp, name: 'A TP Guider') ] end let(:today) { Time.zone.parse('2016-10-18 09:00') } let(:next_we...
#!/bin/sh if [ "${DEBUGGING}" = "true" ]; then set -o xtrace fi set -o errexit set -o nounset name=$1 command=$2 file="/usr/local/bin/$name" echo "[createAlias.sh] $name = $command" if [ -f "$file" ]; then echo "[createAlias.sh]error file already exists => cant create alias with this method" else echo '#!/bin/b...
<?php /** no direct access **/ defined('MECEXEC') or die(); /** * Webnus MEC update class. * @author Webnus <info@webnus.biz> */ class MEC_feature_update extends MEC_base { public $factory; public $main; public $db; /** * Constructor method * @author Webnus <info@webnus.biz> */ p...
""" Reimplementation of the LeNet5 architecture from LeCun, Bottou, Bengio & Haffner (1998), Gradient-based learning applied to document recognition. Procedings of the IEEE 86(11), 2278-2324. and a version of LeNet5 with feedback connections. """ module LeNet5 using Flux using ...StateFulls using ...Splitters using ....
<?php /********************************************************************** Copyright (C) FrontAccounting, LLC. Released under the terms of the GNU General Public License, GPL, as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This progr...
import { registerModifier } from "../../../lib/dota_ts_adapter"; import { registerTalent, BaseTalent, BaseTalentModifier } from "../../../lib/talents"; // If we want a talent with standard modifier, the below is enough // @registerTalent() // export class reimagined_skywrath_mage_talent_1 extends BaseTalent {} // If ...
using Gen, Genify, GenParticleFilters, Distributions, StatsBase using DataFrames, CSV using ProgressMeter: @showprogress include("model.jl") include("utils.jl") include("inference/proposals.jl") include("inference/resimulation_mh.jl") include("inference/block_mh.jl") include("inference/single_site_mh.jl") include("inf...
import { Languages } from "../../../Languages" function lang(key,a?,b?,c?,d?,e?) { return Languages.get("ProblemWithCrownstone", key)(a,b,c,d,e); } import * as React from 'react'; import { Component } from 'react'; import { Text, View } from 'react-native'; import { DiagOptions, TestResult } from "./Diagnos...
---------------------- -- OPERACOES NO SELECT ---------------------- SELECT p.product_id, p.product_category_name, p.product_height_cm, p.product_length_cm, p.product_weight_g, p.product_height_cm * p.product_length_cm * p.product_width_cm as volume, case when p.product_category_name = 'perfumaria' then 'loja'...
## Getting Started 1. Download the repository 2. Open 'index.html' with your internet browser ## Screenshots Home page :-----------------------------------: ![](/img/screen.png?raw=true)
package codes.titanium.anonymousactivity.permissions import android.app.Activity import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.provider.Settings import android.support.v4.app.ActivityCompat import android.support.v4.content.C...
import math # https://docs.python.org/2/library/math.html def myFunc(x,a,b,c): d = (a * math.pow(x,2) ) + (b * x) + (c) return d def addAll(x,a,b,c): return x + a + b + c
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace RestMockCore { public class RouteTableItem { public RouteTableItem() { Request = new HttpRequest(); } public RouteTableItem(string method, string url, Diction...
SafariZoneNorth_Object: db $0 ; border block db 9 ; warps warp 2, 35, 0, SAFARI_ZONE_WEST warp 3, 35, 1, SAFARI_ZONE_WEST warp 8, 35, 2, SAFARI_ZONE_WEST warp 9, 35, 3, SAFARI_ZONE_WEST warp 20, 35, 4, SAFARI_ZONE_CENTER warp 21, 35, 5, SAFARI_ZONE_CENTER warp 39, 30, 0, SAFARI_ZONE_EAST warp 39, 31, 1, SAFA...
namespace ISAAR.MSolve.Geometry.Coordinates { /// <summary> /// Point in a 3-dimensional space. It can also represent points in 1-dimensional or 2-dimension spaces, but not all /// coordinates will be used. Immutable. /// Authors: Serafeim Bakalakos, Dimitris Tsapetis /// </summary> public interface IPoint ...
namespace HallOfFame.Web.Areas.Projects.ViewModels { using System.ComponentModel.DataAnnotations; public class ProjectSettingsViewModel : ProjectDetailsViewModel { [Required] [Display(Name = "Category")] public new int CourseId { get; set; } public string AddedContributor ...
using CSV, DataFrames using DataStructures function _read_csv(filename) println("Reading CSV...") m = CSV.read(filename, DataFrame; header=false) return Matrix{Int}(m) end struct AirportNode matrix depth::Int terminals::Int g::Int h::Int f::Int function AirportNode(matrix, dep...
<?php namespace App\HttpController; use EasySwoole\EasySwoole\Trigger; use EasySwoole\Http\AbstractInterface\Controller; use EasySwoole\Http\Message\Status; class User extends Controller { public function index() { $data['id'] = 101; $data['name'] = "jack"; $this->response()->write(j...
import { ReadonlyVec, Vec } from "./api"; import { addW4 } from "./addw"; export const mixCubic = ( out: Vec, a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, d: ReadonlyVec, t: number ) => { const s = 1 - t; const s2 = s * s; const t2 = t * t; return addW4(out, a, b, c, d, s2 * ...
/// Simple tool that issues multiple DNS requests, captures their output /// and writes out test data. /// /// # Example /// /// ``` /// cargo run -p generate_tests /// ``` /// If the tool fails, that indicates maybe a problem with the library. use serde::Serialize; use std::fs; use std::net::UdpSocket; use std::str::F...
subroutine ceigenft(npts,nfft,kspec,mxdata,data,dpss, $ wsave,mxfreq,yk) c c computes eigen-ft's by windowing data with dpss and taking ffts c note that fft is unnormalized and window must be normalized such that c its sum of squares is one, so that psd=yk**2 c c inputs: c npts - n...
package one.lfa.repomaker.tests; import one.lfa.repomaker.api.Hash; import one.lfa.repomaker.api.Repository; import one.lfa.repomaker.api.RepositoryAndroidPackage; import one.lfa.repomaker.api.RepositoryOPDSPackage; import one.lfa.repomaker.vanilla.RepositorySerializerProvider; import org.junit.jupiter.api.Test; impor...
using System; using System.Linq; using System.Threading.Tasks; using Xunit; namespace Atlassian.Jira.Test.Integration { public class JiraUserTest { private readonly Random _random = new Random(); private JiraUserCreationInfo BuildUserInfo() { var rand = _random.Next(int.Max...
package net.rouly.employability.web.application import net.rouly.common.config.Configuration class Parameters(config: Configuration) { /** * Minimum relevance of a topic for overlap. */ val rho: Double = config.get("rho", "0.02").toDouble /** * Intersection parameter for overlap. */ val thet...
// $Id: de.js,v 1.1 2008/06/15 17:28:15 sun Exp $ tinyMCE.addToLang('break', { title: 'Anrisstext trennen', desc: 'Separiert den Anrisstext und Textkörper des Inhalts an dieser Stelle' });
<?php $aLangContent = array( '_bx_shoutbox_wait' => 'Please wait', ); ?>
define( [ "util/lang", "text!layouts/logo-spinner.html" ], function( LangUtils, LAYOUT_SRC ) { return function( parentElement ) { var outerElement = LangUtils.domFragment( LAYOUT_SRC, ".butter-logo-spin-outer" ), innerElement = outerElement.querySelector( ".butter-spinner" ); if( parentElement ){...
import * as React from 'react'; import { View, Text, StyleSheet, Animated, Easing } from 'react-native'; import Colours from '../colours'; export enum ToastType { Error, Success } interface IToastState { message: string; type: ToastType; opacity: Animated.Value; position: Animated.Value; } e...
package org.endeavourhealth.subscriber.configuration.models; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import java.math.BigInteger; /** * <p>Java class for PostgreSQLConnec...
class FakeDibelsResultGenerator def initialize(student, options = {}, index) @student = student @index = index @start_date = options.fetch(:start_date) @days_between_tests = options.fetch(:days_between_tests) end def next { date_taken: @start_date + (@index * @days_between_tests), ...
[![Build Status](https://travis-ci.org/jvdsandt/spider.svg?branch=master)](https://travis-ci.org/jvdsandt/spider) # spider The Smalltalk source graph ## Code loading ```smalltalk Metacello new baseline: 'Spider'; repository: 'github://jvdsandt/spider/src'; onConflictUseLoaded; load: #( 'all' ). ```
# joins between leg and frame # The two sides should be symmetric (not identical).
// Copyright 2017, Brown University, Providence, RI. // // All Rights Reserved // // Permission to use, copy, modify, and distribute this software and // its documentation for any purpose other than its incorporation into a // commercial product or service is hereby granted without fee, provided...
# dychatat Deposit Your Content Here And Take A Token THIS CODE HAS BEEN INCORPORATED IN THE pwil3058/ergibus WORKSPACE AND WILL BE REMOVED IN THE NEAR FUTURE
namespace CSharpMath.CoreTests.FrontEnd { using TGlyph = System.Text.Rune; public static class TestTypesettingContexts { public static Display.FrontEnd.TypesettingContext<TestFont, TGlyph> Instance { get; } = new Display.FrontEnd.TypesettingContext<TestFont, TGlyph>( (font, size) => new TestFont(s...
require 'rails_helper' RSpec.feature 'Forms', type: :feature do context 'can enter a name and email' do scenario 'should be Signed in successfully.' do visit new_user_session_path within('form') do fill_in 'Email', with: 'luffy@onepiece.com' # fill_in :name, with: 'zorro' end ...
using Xunit; using System; using System.Globalization; namespace tlycken.Extensions.Tests { public class StringExtensionsTests { [Fact] public void TitleCaseWithDefaultCulture() { var input = "this is a string"; var expected = "This Is A String"; var outp...
# frozen_string_literal: true require 'rails_helper' Faraday::Middleware.register_middleware(check_in_logging: Middleware::CheckInLogging) Faraday::Response.register_middleware(check_in_errors: Middleware::Errors) describe Middleware::CheckInLogging do subject(:client) do Faraday.new do |conn| conn.use :...
# frozen_string_literal: true module API::V2 module Entities class Restriction < API::V2::Entities::Base expose :id, documentation: { type: 'Integer', desc: 'Restriction id' } expose :category, documentation: { type: 'String', de...
import _ from 'lodash'; import { ColumnInfo, ColumnReference, DatabaseInfo, DatabaseInfoObjects, SqlDialect, TableInfo } from 'dbgate-types'; export function fullNameFromString(name) { const m = name.match(/\[([^\]]+)\]\.\[([^\]]+)\]/); if (m) { return { schemaName: m[1], pureName: m[2], }; }...
package com.kh.spring.stomp.controller; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Random; import javax.servlet.http.HttpSession; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.ann...
#!/usr/bin/env ruby require 'fileutils' home = File.expand_path('~') FileUtils.ln_s(File.join(Dir.pwd,'irbrc.rb'), File.join(home,'.irbrc'), :verbose=>true, :force=>true) FileUtils.ln_s(File.join(Dir.pwd,'boson'), File.join(home,'.boson'), :verbose=>true, :force=>true)
# encoding: utf-8 require 'ffaker/address' module Faker module AddressUK include Faker::Address extend ModuleUtils extend self def county UK_COUNTY.rand end def country UK_COUNTRY.rand end def postcode Faker.bothify(UK_POSTCODE.rand).upcase end UK_COUNT...
# The base class for all your parsers. Use as follows: # # require 'parslet' # # class MyParser < Parslet::Parser # rule(:a) { str('a').repeat } # root(:a) # end # # pp MyParser.new.parse('aaaa') # => 'aaaa' # pp MyParser.new.parse('bbbb') # => Parslet::Atoms::ParseFailed...