text
stringlengths
27
775k
-module(flower_arp). %% API -export([make_arp/8, make_arp/6, op/1]). %% -------------------------------------------------------------------- %% Include files %% -------------------------------------------------------------------- -include("flower_packet.hrl"). -include("flower_flow.hrl"). %%-------------------------...
Simple Waiter trait =================== [![Build Status](https://travis-ci.org/dtantsur/rust-waiter.svg?branch=master)](https://travis-ci.org/dtantsur/rust-waiter) [![Latest Version](https://img.shields.io/crates/v/waiter.svg)](https://crates.io/crates/waiter) [Documentation](https://docs.rs/waiter/).
package io.novafoundation.nova.app.root.navigation import android.annotation.SuppressLint import androidx.navigation.NavController import androidx.navigation.fragment.DialogFragmentNavigator import androidx.navigation.fragment.NavHostFragment import io.novafoundation.nova.app.R import io.novafoundation.nova.app.root.n...
// Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk // // 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...
package com.example.yourquiz.screens import android.graphics.Color import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import android.widget.Toast import androidx.navigation.NavArgs impor...
#include "quasar.h" /* * HTTP server load testing tool * server must provide Content-Length header * URL: [http://]<host|ip>[:<port>]/object[?|&|_] * may be appended with ?, &, or _<version> * nofile: /etc/security/limits.conf * tee: stdbuf -o L ./quasar 2 20 0 "http://host/qq?" |tee qt */ int main(int argc, cha...
#!/bin/bash mencoder "$1" -o "$2" \ -of lavf \ -vf scale=320:240 \ -srate 44100 \ -oac mp3lame -lameopts abr:br=128 \ -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
print("Congratulations! You're running Maddi's Task List Program.") class Tasklist(): def __init__(self, arrayOfTasks): self.arrayOfTasks = arrayOfTasks def main(): arrayOfTasks = ["learn", "practice", "teach"] userRequest = input("What would you like to do next?" "...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
#!/usr/bin/perl use warnings; use strict; my $DIAMOND_SRC="../../.."; my $JAVA_BINDINGS_DIR="$DIAMOND_SRC/platform/bindings/java"; my $classpath=".:$JAVA_BINDINGS_DIR/libs/javacpp.jar:$JAVA_BINDINGS_DIR/target/diamond-1.0-SNAPSHOT.jar"; my $nativePath="$JAVA_BINDINGS_DIR/target/classes/x86-lib:$DIAMOND_SRC/platform/...
require 'json' module Metro module Views # # Provides support for a JSON Representation of a view. # class JSONView # # Determine if a view exists for this specified format # # @param [String] view_path the name of the view to find # @return a true if the json view exi...
param($installPath, $toolsPath, $package, $project) $sqliteReference = $project.Object.References.Find("SQLite.WP80, version=3.8.7.2") if ($sqliteReference -eq $null) { Write-Host "Unable to find a reference to the extension SDK SQLite for Windows Phone." Write-Host "Verify that the reference to the ex...
Foobar ```j<caret>avascript console.log("!"); ``` Foobar
package im.ycz.zrouter.utils; import android.net.Uri; import android.support.v4.app.Fragment; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by xuanqi on 4/26/16. */ public class ZRouteUtils {...
import {IPluginLoader, ILogger, IConfig, IEventBus, IStatsTarget} from '@homenet/core'; import * as metrics from 'datadog-metrics'; interface IDatadogConfig extends IConfig { datadog: { apiKey: string; appKey: string; } } export function create(annotate: any): { DatadogPluginLoader: new(...args: any[]) =>...
import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; import 'package:tin_flutter/app/index.dart'; import 'package:tin_flutter/generated/l10n.dart'; import 'dynamic_page.dart'; import 'home_page.dart'; im...
package com.example.core.domain.model import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class Country( val active: Int, val activePerOneMillion: Double, val cases: Int, val casesPerOneMillion: Int, val continent: String, val country: S...
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * 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 a...
# Michael Fulton's Portfolio and Resume webpage Site is currently deployed as a github pages site, and can be viewed here: https://dwareb.github.io/MFultonPortfolio/ ## Technologies * Javascript * React * Node / NPM * CSS * HTML ## How to build / run / deploy To run and build this do a git clone first. ``` git cl...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class TugasController extends Controller { public function index() { //DB::table('')->get(); //mengembalikan array of Object [][] // mengambil data dari table tugas //$tugas = DB::table('t...
#!/bin/bash function usage { echo 'This script takes an input directory and runs convert.py and process.py to run the time domain processing' echo ' and plot the raw data' } dir='st' exeDir='.' csv='' while getopts "hd:e:f:c" arg; do case $arg in h) usage exit ;; d) dir=$OPTAR...
# Metrics obtained from Vera.ttf by hand using PfaEdit # version 08:28 11-Jan-2004 (040111). # # 268 chars, 266 glyphs # weight class 400 (Book), width class medium (100%), line gap 410 # styles (SubFamily) 'Roman' use v6; use Test; plan 65 + 256 * 2 + 268 * 3 + 1; use Font::FreeType; use Font::FreeType::Raw::Defs...
// !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE enum class Foo { FOO; companion object { fun valueOf(something: String) = 2 fun values() = 1 } } fun test() { Foo.values() checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<Foo>>() } Foo.Companion....
import React, { useContext } from "react"; import { MainContext } from "../Context/Context"; import ProductCard from "./Product/ProductCard"; import "./ProductsList.scss"; const ProductsList = () => { const { products, currentPage } = useContext(MainContext); // sets product count per page and which are showed ...
#!/bin/sh # Copyright 2017 Paul Twohey. All Rights reserved. See LICENSE file for details set -e apm install atomic-emacs apm install editorconfig apm install atom-ide-ui apm install ide-typescript
package de.reebow.loga; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Properties; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; final class PropertiesConfigParser implements ConfigParser { private...
```javascript // pi :: Float const pi = Math.PI; ```
CREATE TABLE memos ( id integer, tag text ); INSERT INTO memos VALUES (1, 'PostgreSQL'); INSERT INTO memos VALUES (2, 'PostgreSQL Groonga'); INSERT INTO memos VALUES (3, 'Groonga'); CREATE INDEX grnindex ON memos USING pgroonga (tag) WITH (tokenizer = 'none'); SET enable_seqscan = off; SET enable_indexscan = ...
#include <iostream> #include <string> #include <sstream> using namespace std; struct m_t { string title; int year; }; int main() { m_t a_movie; m_t *p_movie; p_movie = & a_movie; cout << "enter title: \n"; getline(cin, p_movie->title); cout << "enter year: \n"; // getline(ci...
export default () => ({ data: {}, status: {}, date: {}, nodes: {}, approval: {}, scan_ids: {}, history_items: {} })
import os import json import pickle import numpy as np import pandas as pd from scipy.spatial import cKDTree from progressbar import progressbar from biopandas.mol2 import split_multimol2, PandasMol2 from sklearn.metrics.pairwise import pairwise_distances np.random.seed(1) ################################# Variables...
import React from "react"; function Loader({ text, isVisible }) { if (!isVisible) return null; return <div>{text}</div>; } export default Loader;
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab09 { internal class Seat { private string Comfortability = "Pleasant"; public string getSeatComfortability() { return this.Comfortability; ...
import React from 'react'; import { render } from 'react-dom' import { hashHistory, Route, Router } from 'react-router'; import {App} from './app'; import {ThankYou} from './components/thank-you'; render(( <Router histroy={hashHistory}> <Route path="/" component={App}></Route> <Route path="/thank-y...
import React from "react"; import Personal from '../controllers/Personal'; export default { title: 'Personal wrapper', component: Personal }; export const Template = () => <Personal />;
#include <efsw/DirectorySnapshot.hpp> #include <efsw/FileSystem.hpp> namespace efsw { DirectorySnapshot::DirectorySnapshot() { } DirectorySnapshot::DirectorySnapshot( std::string directory ) { init( directory ); } DirectorySnapshot::~DirectorySnapshot() { } void DirectorySnapshot::init( std::string directory ) { ...
/* @jest-environment jsdom */ import {SizedConfig, LineLayerConfig, RectLayerSpec} from '../types' import {PlotEnv} from './PlotEnv' import {newTable} from './newTable' import {COUNT} from '../constants/columnKeys' import * as lineTransformModule from '../transforms/line' import * as histogramTransformModule from '...
package com.zhuinden.simplestackexamplemvvm.features.statistics import com.zhuinden.simplestackexamplemvvm.data.tasks.TasksDataSource class StatisticsViewModel(tasksDataSource: TasksDataSource) { val activeTasks = tasksDataSource.activeTasksWithChanges val completedTasks = tasksDataSource.completedTasksWithCh...
; RUN: llc < %s -march=x86-64 -mcpu=core2 -x86-early-ifcvt -enable-misched \ ; RUN: -misched=shuffle -misched-bottomup -verify-machineinstrs \ ; RUN: | FileCheck %s ; REQUIRES: asserts ; ; Interesting MachineScheduler cases. ; ; FIXME: There should be an assert in the coalescer that we're not rematting ; "...
#Sobre os Dados Nos links abaixo você encontra descrições detalhadas dos dados que oferecemos via [IPT](http://ipt.jbrj.gov.br/). - Dados de Coleções - Coleções Preservadas - [Herbário RB](http://dadoswiki.jbrj.gov.br/doku.php?id=colecoes:herbario) - [Banco de DNA](http://dadoswiki.jbrj.gov.br/doku.php?id=c...
KeysMap file format ==================== The format of the file is similar to, but more flexible than, a Java properties file. The syntax of each line of properties file is: groupId:artifactId:packaging:version=pgpKeyFingerprint Where - `groupId` - groupId of Maven artifact, this field is required...
/* Copyright 2021 Volt Contributors 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 agre...
using Model; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; // UI element for player unit presentation and base actions public sealed class UnitPanel : MonoBehaviour { [SerializeField] private Text unitName; // Set from editor [SerializeF...
# Module for handling actions to avoid DRY module UserHelpers def set_session_create_values session[:user] = params[:user] end def process_new postuser = params[:user] user = { first_name: postuser[:first_name], last_name: postuser[:last_name], username: postuser[:username], email: postus...
class AlertLogsController < ApplicationController before_action :set_alert_log, only: [:show, :edit, :update, :destroy] # GET /alert_logs # GET /alert_logs.json def index #getting logs only that belong to current user account alerts = Alert.where(user_id: current_user.id) @alert_logs = Array.new ...
import React from 'react' import { SourceIcon } from '../../../icons/FontAwesomeIcons' import FlexPair from '../../designsystem/FlexPair' import SourceProps from './SourceProps' export default function FallbackSource({ value }: SourceProps) { return ( <FlexPair data-testid='text-source'> <SourceIcon color=...
// Copyright 2021 ETH Zurich and University of Bologna. // Solderpad Hardware License, Version 0.51, see LICENSE for details. // SPDX-License-Identifier: SHL-0.51 #include <tb_lib.hh> namespace sim { // TODO(zarubaf): Auto-generate const BootData BOOTDATA = { .boot_addr = 0x1000000, .core_count = 9, .har...
import 'package:apklis_direct_payment_checker/apklis_direct_payment_checker.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:package_info_plus/package_info_plus.dart'; void main() { const MethodChannel channel = MethodChannel('apklis_direct_payment_check...
using UnityEngine; using System.Collections; public class ScrollScript : MonoBehaviour { public float amount = 54.6f; //amount to move the scenery forward void OnTriggerEnter2D(Collider2D other) { //if this object's trigger collider hits another object tagged "scenery"... if (other.tag == "Scenery") { ...
# ShadowsocksX # 下载程序 在用户中心快速配置处点击下载 https://xueyun.club/ssr-download/ShadowsocksX-NG-R8.dmg # 配置开始 1.复制订阅链接; [cinwell website](/sublink?type=ssr ':include :type=markdown') 2.复制订阅链接↑,下载完成,运行 ShadowsocksX-NG-R8,点击任务栏托盘图标、点击编辑订阅; ![mac-01](../static/images/ShadowsocksX/1.png) 3.将复制的订阅填入「订阅地址」内,并点击ok保存; ![mac-02...
default[:teamcity][:database][:host] = '127.0.0.1' default[:teamcity][:database][:name] = "teamcity" default[:teamcity][:database][:username] = "teamcity"
part of axmvvm.models; /// Information about the visible view. class LayoutInformation { Size _deviceSize; bool _isDeviceInPortrait; MediaQueryData _deviceMediaQuery; ThemeData _theme; LayoutInformation(BuildContext context) { _deviceSize = MediaQuery.of(context).size; _isDeviceInPortrait = MediaQue...
macro llvmir2svg(expr,filepath="") if expr.head == :call assigns = [] vars = [] for i in expr.args[2:end] var = gensym() push!(vars,var) push!(assigns,:($var = $(esc(i)))) end return quote $(assigns...) llvm2graphfil...
-- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_Directory" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "fullPath" TEXT NOT NULL, "valid" BOOLEAN NOT NULL DEFAULT true ); INSERT INTO "new_Directory" ("id", "name", "fullPath") SELECT "id", "name", "fullPath" FROM ...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeSynonymInstances #-} import Prelude import qualified Control.Exception as E import Control.Monad imp...
function addArray (array,func) { var result=0; array.forEach(function(v) { v.forEach(function(w) {result+=w;}) }); console.log("addArray: " + result); return result; } function setArray (array) { return JSON.stringify({array:array}); } function getArray (array) { return JSON.parse(array).arr; }...
Visualize the Universe - CS 594 Final Project Website ===================================================== This folder contains the web application detailing the experiment and results for this project. It's a node.js application that uses the Express framework, so you'll need node.js and npm installed to run it. Ass...
import axios from 'axios' // import fs from 'fs' // import path from 'path' import concat from 'concat-stream' export default async function downloadImage (url: string): Promise<any> { // axios image download with response type "stream" const response = await axios({ method: 'GET', url: url, responseT...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
<footer class="page-footer text-center footer footer-static footer-light white navbar-border navbar-shadow"> <div class="footer-copyright"> <div class="container"> <span>&copy; <?= date('Y') ?> <a href="skyreka.com" target="_blank">SKYREKA Cup</a> All rights reserved.</span> </div> </div> </footer>
#! /bin/bash rm -rf dist/* npm run build:client node scripts/build-package-json.js mkdir -p dist/src cp -r src/server src/shared src/types dist/src cp app.yaml tsconfig.json dist sh scripts/secretgen.sh > dist/.mcs-token-secret.json
package edu.mayo.qdm.demographics; import edu.mayo.qdm.patient.Ethnicity; import edu.mayo.qdm.patient.Patient; /** */ public class EthnicityDemographicsItem extends AbstractDemographicsItem { private static final String ETHNICITY_STATISTIC = "ethnicity"; protected EthnicityDemographicsItem(String populatio...
package infrastructures.tweet import java.time.{ZoneId, ZonedDateTime} import javax.inject.{Inject, Singleton} import com.typesafe.config.ConfigFactory import domains.tweet.{TweetEntity, TwitterApi} import twitter4j.conf.{Configuration, ConfigurationBuilder} import twitter4j.{Query, Status, Twitter, TwitterFactory} ...
import { APICategoryContent } from '../../../apiDefs/schema'; import HealthArgonautDeactivationNotice from './argonautDeactivationNotice.mdx'; import HealthArgonautDeprecationNotice from './argonautDeprecationNotice.mdx'; import ArgonautReleaseNotes from './argonautReleaseNotes.mdx'; import ClinicalHealthReleaseNotes f...
/* * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.project.structure /** * A list of all modules current module can depen...
// 放在前面,把 http.ClientRequest 先复写 import * as nock from 'nock'; import { Fixture, sleep, request } from '../../TestUtil'; import { HttpServerPatcher, HttpClientPatcher } from '../../../src/patchers'; import * as sinon from 'sinon'; import * as assert from 'assert'; import * as pedding from 'pedding'; import { SPAN_FINIS...
import { Component, OnInit, Input, ChangeDetectionStrategy, Output, EventEmitter, ElementRef, Directive } from "@angular/core"; import { DomSanitizer, SafeStyle } from "@angular/platform-browser"; /** * 参考 https://github.com/eleme/element-angular/blob/master/src/button/button.ts * 参考directive 推荐写法my-button ...
from django.contrib import admin from mezzanine.core.admin import TabularDynamicInlineAdmin from mezzanine.pages.admin import PageAdmin from mezzanine.utils.admin import SingletonAdmin from .models import (SiteConfiguration, HomePage, Slide, IconBox, FAQ, FAQPage) admin.site....
package bart.sampler.tree import bart.sampler.{ForestPara, HalfNormSampler, SigmaSquareSampler} import bart.tree.LearningNode trait TreeMutationProposer extends Serializable { val topNode: LearningNode val para: ForestPara val proposer: Proposer val treeId: Int val sigmaSquareSampler: SigmaSquareSampler ...
--- ID: 3639 post_title: > Crime and Punishment, Part 1 (by Fyodor Dostoyevsky) Audiobook author: abbie04m553726 post_excerpt: "" layout: post permalink: > https://universalflowuniversity.com/uncategorized/crime-and-punishment-part-1-by-fyodor-dostoyevsky-audiobook/ published: true post_date: 2017-09-07 11:43:30 ...
--- pid: '9648' label: Studies of Peasants from Life object_type: Drawing genre: Study worktags: Horse|Peasants iconclass_code: height_cm: '19.9' width_cm: '14.5' diameter_cm: location_country: location_city: location_collection: accession_nos_and_notes: private_collection_info: 'England, Devonshire Collection, Chatswo...
import { getConfig } from '../config'; import { MODE, COLLECTED } from '../constants'; import { cloneElements } from './render'; import { refElements } from './hydrate'; export const collect = () => { const markers = document.querySelectorAll<HTMLInputElement>( 'input[data-lazy-begin]' ); const { mode } = ge...
const _ = require("lodash"); function toXML(name, value) { if (_.isObject(name)) { value = name; name = null; } if (_.isArray(value)) { return _.map(value, function (v) { return toXML(name, v); }).join(""); // eslint-disable-line } const attrs = []; const elems = []; if (_.isObject(value)) { ...
namespace LykkeApi2.Infrastructure { public static class RecordChanger { public const string Client = "Client"; } }
# frozen_string_literal: true survey_condition = condition json.type t('course.condition.survey.title') json.description format_inline_text(survey_condition.title) json.edit_url url_for([:edit, course, conditional, survey_condition]) json.delete_url url_for([course, conditional, survey_condition])
<?php namespace Maruamyu\Core\Http\Message; /** * QUERY_STRING 処理クラス */ class QueryString { /** @var string[][] ['key' => ['value1', 'value2', ...], ...] */ private $data; /** * @param string|array|self $initValue 初期値 */ public function __construct($initValue = null) { $this->...
import { Directive, ElementRef, HostListener, Input } from '@angular/core'; import { NgControl } from '@angular/forms'; @Directive({ // tslint:disable-next-line:directive-selector selector: 'input[numbersOnly]' }) export class NumberDirective { constructor(private _el: ElementRef) { } @HostListener('input', ...
using System; namespace LetsTrace.Util { public class Clock : IClock { public DateTime UtcNow() => DateTime.UtcNow; } }
#!/bin/sh if [ -z "$1" ]; then echo "Usage: $0 <config_filename>" >&2 exit 1 fi exec sudo -n -u erjik /usr/lib/erjik/erjik-wrapper --hup "$1"
#!/bin/bash export GO_SERVER_URL="http://localhost:8153" export GO_SERVER_ADMIN_PASSWORD="admin" if ! [ -d venv ] ; then virtualenv venv source venv/bin/activate pip install -r requirements.txt fi source venv/bin/activate python configuration.py
module ThreeDragonAnte class Game class Event class ChoiceOffered < Event::Details def initialize(current_choices, to:) @player, @choice = to, current_choices.last @choices_pending = current_choices.size end attr_reader :player, :choice, :choices_pending ...
<?php class Departments{ //database stuffs private $conn; //department properties public $id; public $tittle; public $status; //database contructor public function __construct($db){ $this->conn=$db; } public function getAllDepartments(){ //query $query="SELECT *FROM department...
app.controller('IndexCtrl', function ($rootScope, $scope) { $rootScope.baseUrl = _yii_app.baseUrl; $rootScope.layoutPath = _yii_app.layoutPath; $rootScope.bodyClass = 'short_main'; $scope.params = {}; }); app.controller('CustomOrderCtrl', function ($rootScope, $scope, $modal, $filter, ssHelper) { ...
package github import ( "context" "errors" "fmt" "github.com/google/go-github/github" "golang.org/x/oauth2" "github.com/seabird-chat/seabird-go" "github.com/seabird-chat/seabird-go/pb" ) // This is really just a holding type for some configuration. type Repo struct { Owner string Name string } type Clien...
package com.honeybee.controller; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.Files; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.UUID; import javax.servl...
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # See the Spack documentation for more information on packaging. from spack.package import * class Repeatscout(MakefileP...
using System; using System.Collections; namespace Microsoft.AnalysisServices.AdomdClient { internal interface IDSFAxisCollection : ICollection, IEnumerable { IDSFDataSet this[int index] { get; } } }
import { getCurrentWeatherByCityName } from '.'; afterEach(() => { jest.clearAllMocks(); }); test('test getCurrentWeatherByCityName with valid location', async () => { expect(await getCurrentWeatherByCityName('US', 'California', 'Los Angeles')).toStrictEqual({ temperature: 72, minimumTemperatu...
export { DatePickerComponent } from './date-picker/date-picker.component'; export { DatePickerDirective } from './date-picker/date-picker.directive'; export { DayCalendarComponent } from './day-calendar/day-calendar.component'; export { DayTimeCalendarComponent } from './day-time-calendar/day-time-calendar.component'; ...
FactoryGirl.define do factory :order do text { FFaker::NameRU.first_name } alphabeth_code :ру language_code :ру order 'св' ;end;end
(ns sixsq.nuvla.db.binding) (defprotocol Binding "This protocol defines the core interface to the underlying database. All of the functions accept and return native clojure data structures. The functions must handle all necessary conversions for the database. For those functions that have a data argument, ...
/* * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.codegen.inline import org.jetbrains.kotlin.codegen.optimization.nullCheck.isPara...
package com.insightfullogic.honest_profiler.framework.generator; import static com.insightfullogic.honest_profiler.core.aggregation.grouping.CombinedGrouping.combine; import static com.insightfullogic.honest_profiler.framework.AggregationUtil.nano; import static org.junit.Assert.assertEquals; import static org.junit.A...
using System.Threading.Tasks; namespace RavenNest.SDK.Endpoints { public abstract class GamePacketHandler { protected readonly GameManager GameManager; protected GamePacketHandler(GameManager gameManager) { GameManager = gameManager; } public abstract Task ...
# Network transport based implementation It defines an implementation of the service based on the network transport library.
import java.util.Scanner; public class AckermannFunction { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int x,y; System.out.print("Enter an integer: "); x = keyboard.nextInt(); System.out.print("Enter another integer: "); y = keyboard.nextInt(); System...
using System; namespace Graph.Exceptions { /// <summary> /// An exception thrown when a vertex isn't found in a graph. /// </summary> public class VertexNotFoundException : Exception { } }
package com.coinffeine.common.bitcoin import java.math.BigInteger import scala.collection.JavaConversions._ import com.google.bitcoin.core.Transaction import com.google.bitcoin.core.Transaction.SigHash import com.google.bitcoin.script.ScriptBuilder import com.google.bitcoin.wallet.WalletTransaction import com.coinff...
<?php use PHPUnit\Framework\TestCase; use Comhon\Object\Config\Config; use Comhon\Exception\Config\ConfigFileNotFoundException; use Comhon\Exception\Config\ConfigMalformedException; use Comhon\Model\Restriction\RegexCollection; use Test\Comhon\Data; use Comhon\Model\Singleton\ModelManager; class ConfigTest extends Te...
<?php class Foo { protected $bar; protected $what; public function __construct(Bar $bar, $what = 'thisiswhat') { $this->bar = $bar; $this->what = $what; } public function getBar() { return $this->bar; } public function getWhat() { return $this-...