text
stringlengths
27
775k
<?php /** * Created by PhpStorm. * User: Arif * Date: 3/13/2018 * Time: 12:36 PM */ include_once "../model/p_transection.php"; $obj =new p_transection(); //$data=json_decode($_POST,true); //print_r($_POST); if(array_key_exists('pdt_name',$_POST)){ echo "here"; $obj->insert_tmp($_POST); } if(isset( $_POS...
# frozen_string_literal: true module GroupLink class ProjectGroupLinkEntity < GroupLink::GroupLinkEntity include RequestAwareEntity include Projects::ProjectMembersHelper expose :can_update do |group_link| can_manage_project_members?(group_link.project) end expose :can_remove do |group_li...
require File.dirname(__FILE__) + '/../test_helper' class AlmamaterTest < ActiveSupport::TestCase fixtures :almamaters, :users, :profiles def setup end def test_attributes end def test_assocations end end
#!/bin/bash sh_plugin(){ local path local user local name if [ -z "$SH_PLUGIN_ROOT" ]; then echo "require setup: SH_PLUGIN_ROOT" return fi path=$1; shift user=$(basename $(dirname "$path")) name=$(basename "$path") name=${name%.git} mkdir -p $SH_PLUGIN_ROOT/$user if [ ! -d $SH_PLUGIN_...
import React from 'react'; import { connect } from 'react-redux'; import SignedinLinks from './SignedinLinks'; import SignedoutLinks from './SignedoutLinks'; import { Nav } from './style/nav'; const Navbar = props => { const navLinks = props.loggedIn ? <SignedinLinks /> : <SignedoutLinks />; return ( ...
# GitHub Student * Name: Greta Louise * Location: Asheville, North Carolina
# 6. A little step for they a big step for humanity ![Llegaste a la recta final &#x1F4AA;&#x1F3FB;](../.gitbook/assets/image%20%2811%29.png) ### Ultimo paso * Lo único que nos queda entonces es inicializar nuestra CLI para esto vamos a utilizar **`js-fire`** ```javascript fire(${nombreDeTuCLI}) ```
#ifndef BOARD_CONFIG_H #define BOARD_CONFIG_H #define CRYSTALLESS 1 #define VENDOR_NAME "Robotics Masters" #define PRODUCT_NAME "Robo HAT MM1" #define VOLUME_LABEL "ROBOM0BOOT" #define INDEX_URL "https://roboticsmasters.co" #define BOARD_ID "SAMD21G18A-robohat-v8" #define USB_VID 0x1209 #define USB_PID 0x4D44 #d...
<?php namespace Yungts97\LaravelUserActivityLog\Tests\Models; use Yungts97\LaravelUserActivityLog\Traits\SkipLogging; class PostWithoutLog extends BaseModel { use SkipLogging; protected $table = 'posts'; protected $guarded = []; protected $fillable = ['id', 'name']; public function user() ...
_Italic text_ **Bold text** Uncle Roger **LOVES** fried rice, but _without_ chili jam.
[bits 16] print_r: pusha jmp print_r_loop print_r_loop: cmp byte [si], 0 je print_r_exit mov al, [si] mov ah, 0x0e int 0x10 inc si jmp print_r_loop print_r_exit: popa ret
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Foundation; using UIKit; using Xamarin.Forms.Platform.iOS; using Xamarin.Forms; using CoreGraphics; using System.ComponentModel; using SuaveControls.FloatingActionButton.iOS.Renderers; [assembly: ExportRenderer(typeof(SuaveCo...
<?php namespace SplitIO; use SplitIO\Grammar\Split as SplitGrammar; use SplitIO\Grammar\Condition; use SplitIO\Engine\Splitter; use SplitIO\Grammar\Condition\ConditionTypeEnum; use SplitIO\Sdk\Impressions\ImpressionLabel; use SplitIO\Component\Common\Di; class Engine { const EVALUATION_RESULT_TREATMENT = 'treatme...
# System-Startup-Greeting-Assistant An assistant to great you whenever you reboot or switch on your system Replace the .py extension with .pyw Place the program under the folder "C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" The AppData folder will be hidden. Therefore make sure tha...
#!/bin/bash #uninstaller script #set working dir DIR_ROOT=$(dirname -- "$0") cd "$DIR_ROOT" || exit 1 #load external lib source shell_modules/shell-lib/autoload.sh log.warning "Make sure to run this script with sudo" { uninstall_binary "sshi" uninstall_manpage "sshi.1.gz" } || log.fatal "Error" true log.fi...
#! /bin/bash buildSeq=( 'safemath' 'address' 'object' 'typecheck' 'roles/minter' 'helloworld' 'fixedtoken' 'exchange' 'crowdsale' 'token' ) ROOTDIR="$(dirname ${BASH_SOURCE[0]})" for CONTRACTDIR in "${buildSeq[@]}" do echo '' echo '[Deploy Contract' $CONTRACTDIR']' ...
using System.Collections.Generic; using Domain.Entities; using Mapster; namespace Application.Dto { public class CompraGadoItemDto : IRegister { public CompraGadoItemDto() { CompraGados = new List<CompraGadoDto>(); } public int Id { get; set; } public int ...
-- Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. -- MySQL database for the ratings module, version 1.0.0 CREATE TABLE IF NOT EXISTS `ratings_item` ( `rating_id` bigint(20) NOT NULL AUTO_INCREMENT, `item_id` bigint(20) NOT NULL, `user_id` bigint(20) NOT NULL, `rating` tiny...
import 'package:fish_redux/fish_redux.dart'; import 'package:flutter/material.dart' hide Action; import 'package:flutter_braintree/flutter_braintree.dart'; import 'package:movie/actions/api/base_api.dart'; import 'package:movie/actions/user_info_operate.dart'; import 'package:movie/models/base_api_model/payment_client_...
import 'package:animated_splash_screen/animated_splash_screen.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:reality_core/Graphics/engine.dart'; import 'package:reality_core/screens/auth/auth.dart'; import 'packag...
var ovs_pipegen_8py = [ [ "flow_str", "ovs-pipegen_8py.html#a77e7d1a1b6699a5a7536f9e545c290ee", null ], [ "l2", "ovs-pipegen_8py.html#a159677663ddb40f19f3b0b4944a313e4", null ], [ "l3", "ovs-pipegen_8py.html#a00b1cf4865246683b2ac8f8d29b4c155", null ], [ "l4", "ovs-pipegen_8py.html#a39f50026662d5786ef026...
--- title: Work with Selections author: Anna Kondratova legacyId: 113754 --- # Work with Selections The key combinations that allow you to work with selections are listed in the table below. | Shortcut | Description | |---|---| | ENTER | Moves the active cell one cell down in the selection. | | SHIFT+ENTER | Moves the...
\fBchreq\fP -- MLP Spooler Command \fBchreq\fP -dprinter request_num... .br \fBchreq\fP -llifetime request_num... .br \fBchreq\fP -ppriority request_num... .br \fBchreq\fP allows users to change the attributes of spooled requests. The changes my be applied to printing, waiting and quiescent requests. The followi...
package com.dmdirc.ktirc.sasl import com.dmdirc.ktirc.IrcClient import com.dmdirc.ktirc.SaslConfig import com.dmdirc.ktirc.model.ServerState import io.mockk.* import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test internal class PlainMechanismTest { private val fakeServ...
using CommonTools.Lib11.DataStructures; using CommonTools.Lib11.StringTools; using CommonTools.Lib45.ThreadTools; using PropertyChanged; using RentLog.DomainLib45.SoaViewers.MainWindow; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Input; namespa...
// Copyright 2017-2021 Jeff Foley. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package enum import ( "context" "net" "regexp" "strconv" "strings" "sync" "time" amassnet "github.com/OWASP/Amass/v3/net" "github.com/OWASP/Amass/v3/net/d...
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'version' SUMMARY = 'kramdown is a fast, pure-Ruby Markdown-superset converter.' DESCRIPTION = <<EOF kramdown is yet-another-markdown-parser but fast, pure Ruby, using a strict syntax definition a...
package java.util.concurrent import java.lang.{Exception, IllegalStateException, Object, RuntimeException, String, Throwable} import scala.scalanative.annotation.stub /** Exception indicating that the result of a value-producing task, * such as a FutureTask, cannot be retrieved because the task * was cancelled. ...
# go-qemu Golang interface to the QEMU hypervisor ## Installation ``` go get github.com/quadrifoglio/go-qemu ``` You obviously need QEMU to use this tool. ## Usage ### Create an image ```go img := qemu.NewImage("vm.qcow2", qemu.ImageFormatQCOW2, 5*GiB) img.SetBackingFile("debian.qcow2") err := img.Create() if e...
2020年09月08日17时数据 Status: 200 1.杨幂收图收到手机要放不下了 微博热度:2407024 2.钟南山哽咽说什么都压不倒中国人 微博热度:1251604 3.跟张一山一起逍夜 微博热度:1245416 4.农夫山泉创始人只当了半小时首富 微博热度:1096896 5.虞书欣 副乳帮我修一下 微博热度:1096544 6.你选原味鸡还是脆皮鸡 微博热度:1095971 7.卡里余额2.5万继续用得再充2.5万 微博热度:1094695 8.爸爸妈妈求你们去团建吧 微博热度:1089318 9.父母起诉22岁女儿拒养2岁弟弟胜诉 微博热度:816848 10.大连13岁行凶男...
# eslint-config Personalised eslint-configs + prettier config for: - react projects with flow + css modules - react projects with ts + css modules - node.js projects with flow - node.js projects with typescript ## Usage `npm i -D @alex-e-leon/eslint-config` .eslintrc ```js { "extends": "@alex-e-leon/eslint-confi...
#!/bin/bash find "$1" -iname "*.tra" -exec python3 translate_tra.py --no-add-prefix --engine=googlecloud {} \;
export class Domainexpert { domain: string; concepts: string[]; }
import Log from '@app/services/Log/Log'; import config from '@app/config/config'; import { getSQLiteInstance } from './core/SQLiteDB'; import DBInit from './core/init'; import { toPreparedObject, toPreparedObjects, } from './helpers'; import settingsActions from '@app/appstores/Stores/Settings/SettingsActions' ...
/* Contains a class related to all functionalities of the evolve API including parsing, applying GA, formatting text evolutions */ const async = require('async') const parse = require ("./parser"); const directedGA = require("./directedGA.js"); const undirectedGA = require("./undirectedGA.js"); const {instruments, attr...
import test from 'ava'; import proxyquire from 'proxyquire'; import sinon from 'sinon'; let query; let model; test.beforeEach(() => { query = sinon.stub(); model = proxyquire('./model', { './graphql-client': { query } }); }); test('queryExistingTypes should query and parse data', async t => { const data = { ...
<?php namespace Home\Controller; use Think\Controller; class OrderController extends Controller { //接收支付宝发来的支付成功的消息 public function receive(){ require('./alipay/notify_url.php'); } public function test(){ $db = M(); $rs = $db->query('SELECT id FROM test.a'); $rs[0]['id']...
sudo php app/console assets:install web --symlink sudo chown -R www-data:www-data app/logs app/cache sudo chmod -R a+rwx app/logs app/cache
using System; namespace FEGBA_Mess_Reloc { public interface IROMINFO { String GameID(); uint MessagePointer2(); // Pointer to MessagePointer uint MessagePointer(); // Position of String table uint MessageNo(); // Number of Huffman coded strings uint MessageStringLoc(); ...
{-# OPTIONS_GHC -fno-specialize #-} module Plutus.Codec.CBOR.Encoding ( Encoding, encodingToBuiltinByteString, encodeInteger, encodeByteString, encodeNull, encodeListLen, encodeBeginList, encodeList, encodeListIndef, encodeMapLen, encodeBeginMap, encodeMap, encodeMapIndef, encodeBreak, en...
package ac.za.cput.Repository.Impl; import ac.za.cput.Domain.FundedAcc; import ac.za.cput.Repository.FundedAccRepository; import org.springframework.stereotype.Repository; import java.util.*; @Repository("FundedAccRepositoryImpl") public class FundedAccRepositoryImpl implements FundedAccRepository { private sta...
const d3 = require('d3'); class Info { constructor(timestamp) { // console.log('new Date(timestamp).toLocaleString :>> ', ); d3.select("#timestamp") .text(`${new Date(timestamp).toLocaleString('en-US', { timeZone: 'America/New_York' })} ET`) }; toggle(open) { d3.select("#info") .class...
#!/bin/sh # 进入一个死循环 while true do # 随机选择文件夹下的一张图片作为壁纸 feh --recursive --randomize --bg-fill ~/Pictures/wallpapers # 休息三分钟 sleep 3m done
package cgeo.geocaching.downloader; import cgeo.geocaching.R; import cgeo.geocaching.activity.AbstractActionBarActivity; import cgeo.geocaching.databinding.DownloaderActivityBinding; import cgeo.geocaching.databinding.DownloaderItemBinding; import cgeo.geocaching.models.Download; import cgeo.geocaching.network.Network...
// Copyright 2016 ~ 2018 AlexStocks(https://github.com/AlexStocks). // All rights reserved. Use of this source code is // governed by Apache License 2.0. // package gxlog is based on log4go. // color.go provides colorful terminal log output functions. package gxlog import ( "fmt" "os" ) import ( "github.com/matt...
package com.tc.kefan.mvp.presenter import com.tc.kefan.base.BasePresenter import com.tc.kefan.ext.ss import com.tc.kefan.mvp.contract.TCListContract import com.tc.kefan.mvp.model.TCListModel /** * @Author : yanggan * @Date : 2021/1/22 2:34 PM */ class TCListPresenter : BasePresenter<TCListContract.Model, TCListC...
# NimBLE Porting Layer for Multitasking Functions (Linux) Based on https://github.com/apache/mynewt-nimble/tree/master/porting/npl/linux
import {BaseIfc} from "./BaseIfc" import {IfcLabel} from "./IfcLabel.g" import {IfcText} from "./IfcText.g" import {IfcDocumentInformation} from "./IfcDocumentInformation.g" import {IfcResourceLevelRelationship} from "./IfcResourceLevelRelationship.g" /** * http://www.buildingsmart-tech.org/ifc/IFC4/final/html/link/...
# -*- coding: utf-8 -*- import unittest from cwr.grammar.factory.config import rule_options __author__ = 'Bernardo Martínez Garrido' __license__ = 'MIT' __status__ = 'Development' class TestConfigOptions(unittest.TestCase): def setUp(self): self._rule = rule_options def test_zero_options(self): ...
# hello-world This is my first repo on GitHub This is a new line added to make edit to this file on 22-07-2016.
<?php return [ 'elastic_service_url' => '{{environments_ELASTIC_SERVICE_URL}}', 'public_url' => '{{environments_PUBLIC_URL}}', 'admin_user'=> '{{environments_ADMIN_USER}}', 'admin_password'=> '{{environments_ADMIN_PASSWORD}}', 'admin_email'=> '{{environments_ADMIN_EMAIL}}', ];
package work.onss.vo; import lombok.Data; import lombok.NoArgsConstructor; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.Size; @Data @NoArgsConstructor public class WXAddress { @NotEmpty(message = "缺少银行地址") @Size(min = 3, max ...
<?php namespace frontend\components; use common\components\storage\RedisStorage; use frontend\models\Feed; use yii\base\Component; use yii\base\Event; /** * Class FeedService - components provide storing method for handling the post_created event * @package frontend\components * @property \common\components\stora...
<?php namespace Sensorium\LateralJoins\Query; use Illuminate\Database\Query\Expression; use Sensorium\LateralJoins\LateralJoinClause; trait BuildsLateralJoins { public function joinLateral($query, $as, $type = 'cross') { [$query, $bindings] = $this->createSub($query); $expression = 'lateral ('....
# How to create a twtich app The twitch app provides a `client_id` which is required to access stream information. 1. Open the developer dashboard [here][1] 1. Click **Register Your Application** 1. Insert a unique name for your application 1. Set your OAuth redirect URL to `http://localhost` (this is irrelevant) 1. ...
inherited Fin2005: TFin2005 Caption = 'An'#225'lise de Contas '#224' Receber' OldCreateOrder = True PixelsPerInch = 96 TextHeight = 13 inherited Bevel1: TBevel Top = 0 end inherited HeaderPanel: TPanel Top = 2 Caption = 'An'#225'lise Contas '#224' Receber' end inherited BodyPanel: TPanel ...
use crate::{ chain::id_tree::{write::fanout_nary_rev, IdTreeNodeId, ObjId}, digest::{Digest, Digestible}, }; use anyhow::{ensure, Result}; use serde::{Deserialize, Serialize}; use sub_proof::SubProof; pub(crate) mod leaf; pub(crate) mod non_leaf; pub(crate) mod sub_proof; pub(crate) mod sub_tree; #[derive(Deb...
package dayFolders.day19 import dayFolders.models.TreeNode fun sortedArrayToBST(nums: IntArray): TreeNode? { if (nums.isEmpty()) return null if (nums.size == 1) return TreeNode(nums[0]) return TreeNode(nums[nums.size/2]).apply { left = sortedArrayToBST(nums.sliceArray(0 until nums.size/2)) ...
<?php header("Content-Type: application/vnd.apple.mpegurl"); echo '#EXTM3U'.PHP_EOL; echo '#EXT-X-VERSION:3'.PHP_EOL; echo '#EXT-X-STREAM-INF:PROGRAM-ID=1,CLOSED-CAPTIONS=NONE,BANDWIDTH=250000,RESOLUTION=480x250'.PHP_EOL; echo 'jioo.php?c='.$_GET['c'].'&q=250&e=.m3u8'.PHP_EOL; echo '#EXT-X-STREAM-INF:PROGRAM-ID=1...
#include<bits/stdc++.h> using namespace std; #define TAB 8 /***************************************************************************************************/ int precedence(char c){ if(c=='*'||c=='/') return 2; else if(c=='+'||c=='-') return 1; else return 0; } bool isOperator(char c){ if(c=='*'||c=='/...
#!/bin/sh #By h46incon #Dependences: curl, openssl-util, tr, sort ## ----- Setting ----- AccessKeyId="testid" AccessKeySec="testsecret" DomainRecordId="00000" # DomainRR, use "@" to set top level domain DomainRR="www" DomainName="example.com" DomainType="A" # The server address of ALi API ALiServerAddr="alidns.aliyu...
package com.qingzhu.bot.knowledgebase.controller import com.qingzhu.bot.knowledgebase.domain.entity.BotConfig import com.qingzhu.bot.knowledgebase.domain.entity.KnowledgeBase import com.qingzhu.bot.knowledgebase.domain.entity.Topic import com.qingzhu.bot.knowledgebase.domain.entity.TopicCategory import com.qingzhu.bot...
#!/bin/bash root_folder=$(cd $(dirname $0); cd ..; pwd) exec 3>&1 function _out() { echo "$(date +'%F %H:%M:%S') $@" } function setup() { crcip=$(crc ip) _out ------------------------------------------------------------------------------------ _out Kafka Strimzi operator nodeport=$(oc get svc my-clust...
namespace Topics.Radical.ComponentModel.ChangeTracking { using System; /// <summary> /// Determines the tracking state of an object. /// </summary> [Flags] public enum EntityTrackingStates { /// <summary> /// The state of the entity is not changed, /// the entity is not transient or the entity /// is ...
#include "die.h" #include<iostream> #include<string> using std::string; using std::cout; using std::cin; //Write include statement /* Program runs until user opts out. For each loop Roll die and display output */ int main() { std::string r = "1"; int play; Die R; cout << "press 1 to roll the die or press ...
namespace MassTransit.Configuration { public interface ICompensateTransformSpecification<TLog> : IPipeSpecification<CompensateContext<TLog>> where TLog : class { } }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Route_model extends MY_Model { /** * The table name for this model * * @var string */ protected $_table = "routes"; /** * The name of the route * * @var string */ protected $_name; /** * The distance of the route ...
import {generalLog} from '../generalLog'; import {collectReportData, writeHtmlReport} from '../report'; import {collectFullEventsData} from './collectFullEventsData'; import type {EndE2edRunEvent} from '../../types/internal'; /** * Register end e2ed run event (for report) after closing of all tests. * @internal *...
# frozen_string_literal: true require 'test_helper' class UsersIndexTest < ActionDispatch::IntegrationTest def setup @user = users(:alfred) @admin = Admin.where(user_id: @user.id).first @other_user = users(:mary) @non_admin = Admin.where(user_id: @other_user.id).first end test 'Users list inclu...
* Si vous n’arrivez pas à consulter un médecin, contactez un médecin de garde. * Appelez le 15 si une gêne respiratoire ou des difficultés importantes pour vous alimenter ou boire apparaissent **pendant plus de 24 heures**.
$context = binding class Instruction < Struct.new(:name, :fields) def cpp_struct <<-EOS struct #{name} : public Instruction { static constexpr Instruction::ID ID = Instruction::#{name}; #{properties} #{emit} #{dump} }; EOS end def properties return unless fields ...
from django.contrib import admin from .models import Vendor, VendorUser, VendorOwner admin.site.register(Vendor) admin.site.register(VendorUser) admin.site.register(VendorOwner)
////////////////////////////////////////////////////// // Matrix TCL Pro 2.2 // Copyright (c) 2000-2011 Techsoft . All Rights Reserved. // File name: Matrix.h - Header file for matrix class (do NOT include this file) // Web: http://www.techsoftpl.com/matrix/ // #ifndef _MATRIX_H_12a08ba0_8940_11d3_910c_002018382069_INC...
import java.io._ import java.util.zip.{ZipException, ZipInputStream, ZipOutputStream} import sbt.Keys._ import sbt._ object Packaging { case class ModuleKey(id:ModuleID, attributes: Map[String,String]) sealed trait PackageEntry { val destination: String } object PackageEntry { final case class Dire...
import { join } from "path"; import * as fs from "graceful-fs"; import { PassThrough, Readable, Transform } from "stream"; import { layer } from "../layers/layers"; import { AllowOnly, formatMemory, log, logfn } from "../core/transforms/log"; import { costfn, CrossEntropyfn } from "../core/transforms/costfn"; import {...
# HumanQueryParser A tool for taking search queries of the form most users will expect, and producing ElasticSearch queries that do what most users would expect. For example: ``` some terms to search for ``` will produce a query that returns results that match as many as possible of "some", "terms", "to", "search",...
<?php namespace ConductorDrupalPlatformSupport\Deploy; use ConductorAppOrchestration\Config\ApplicationConfig; use ConductorAppOrchestration\Deploy\CodeDeploymentStateInterface; use ConductorCore\Shell\Adapter\ShellAdapterInterface; class CodeDeploymentState implements CodeDeploymentStateInterface { /** * @...
using SimpleSolvers using SimpleSolvers: initialize!, solver_step! using Test struct NonlinearSolverTest{T} <: NonlinearSolver end test_solver = NonlinearSolverTest{Float64}() @test_throws ErrorException config(test_solver) @test_throws ErrorException status(test_solver) @test_throws ErrorException initialize!(tes...
package com.noticemedan.finch.entity import java.time.Instant import javax.persistence.* @Entity data class ActivityLogLine( var message: String, var time: Instant, @ManyToOne @JoinColumn(name = "flow_id") var flow: Flow? = null, @Id @GeneratedValue(strategy = Generatio...
/* * Copyright (2020-present) The Delta Lake Project Authors. * * 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 ap...
--- title: "Troubleshooting: Longhorn-UI: Error during WebSocket handshake: Unexpected response code: 200 #2265" author: Clark Hsu draft: false date: 2021-03-09 catelogies: - "longhorn-ui" --- ## Applicable versions Existing Longhorn versions < v1.1.0 upgrade to Longhorn >= v1.1.0. ## Symptoms After upgrading Lon...
# frozen_string_literal: true require 'key_tree/forest' RSpec.describe KeyTree::Forest do it 'is a subclass of array' do expect(KeyTree::Forest[]).to be_an Array end context 'when initialized' do before :context do @tree = KeyTree::Tree[a: 1, b: { c: 3 }] end context 'with nothing' do ...
<?php /** * TechDivision\Import\Dbal\Actions\Processors\BlackHoleProcessor * * PHP version 7 * * @author Tim Wagner <t.wagner@techdivision.com> * @copyright 2021 TechDivision GmbH <info@techdivision.com> * @license https://opensource.org/licenses/MIT * @link https://github.com/techdivision/import-dba...
/*========================================================================= Program: Visualization Toolkit Module: vtkMAFInteractorStyleTrackballCamera.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details....
package com.nkola.edas /** * Implementation of the [[EdasSession]] trait to provide encryption and decryption services. * <br> * It delegates the encryption and decryption services to the [[EdasProviderManager]] which * will choose the appropriate provider to handle the encryption or decryption request. * ...
import 'dart:io'; import 'package:dcli/dcli.dart'; // ignore: implementation_imports import 'package:github/src/common/model/repos_releases.dart' as ghub; import 'package:mime/mime.dart'; import 'package:pub_release/pub_release.dart'; import '../pub_release.dart'; import 'simple_github.dart'; void createRelease( ...
package io.chopyourbrain.sample import io.github.aakira.napier.DebugAntilog import io.github.aakira.napier.Napier fun debugBuild() { Napier.base(DebugAntilog()) }
package server import ( "app/greetings" "database/sql" "github.com/julienschmidt/httprouter" ) func setupRoutes(router *httprouter.Router, db *sql.DB, apiKey string) { setupGreetingsRoutes(router, db, apiKey) } func setupGreetingsRoutes(router *httprouter.Router, db *sql.DB, apiKey string) { h := greetings.NewH...
2 8 0 0 0 0 7 7 0 0 0 2 5 2 0 0 0 2 7 2 0 0 0 5 0 1 0 0 0 5 1 5 0 0 0 5 2 5 0 0 0 5 5 2 0 0 0 7 0 1 0 0 0 7 1 5 0 0 0 7 5 5 0 0 1 0 0 7 0 0 1 0 7 7 0 0 1 2 2 2 0 0 2 0 0 0 0 0 2 0 1 0 0 0 2 0 3 0 0 0 2 7 5 5 0 0 5 0 0 0 0 0 5 0 1 0 0 0 5 0 7 1 0 0 5 1 1 1 0 0 5 1 2 1 0 0 6 0 0 0 0 0 7 0 0 0 0 0 7 0 1 0 0 0 7 2 1 1 0 1 ...
<?php /** * Created by PhpStorm. * User: rom * Date: 06.06.2017 * Time: 19:24 */ namespace Core\Data; interface ModelDataInterface extends DataInterface { /** * @return int */ public function getModelId(); /** * @return string */ public function getModelName(); /** ...
import axios from 'axios' import { ExpandedTxDetails } from 'src/logic/safe/store/models/types/gateway.d' import { getTxDetailsUrl } from 'src/config' /** * @param {string} clientGatewayTxId safeTxHash or transaction id from client-gateway */ export const fetchSafeTransaction = async (clientGatewayTxId: string): Pr...
# encoding: utf-8 module Docs class HTMLBeaufity < Nanoc::Filter identifier :beautify type :text => :text requires 'htmlbeautifier' def run(contents, params = {}) out = '' HtmlBeautifier::Beautifier.new(out).scan(contents) out end end end
pub(crate) mod write_templates { use clap::{App, SubCommand, Arg, ArgMatches}; use std::path::Path; use std::fs::File; use std::io::Write; use crate::{TEMPLATES,error_status}; pub(crate) fn def() -> App<'static, 'static> { SubCommand::with_name("write-templates") .about("Writes the default templa...
import { format, distanceInWordsStrict, differenceInHours, isSameYear, } from 'date-fns'; export function getRelativeTweetTime(date) { const parsedIntDate = parseInt(date, 10); if (!isSameYear(Date.now(), parsedIntDate)) { return format(parsedIntDate, 'D MMM YYYY'); } else if (Math.abs(differenceInH...
// ReSharper disable UnusedAutoPropertyAccessor.Global using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using ProjectWhitepaper.Core.Enums; namespace ProjectWhitepaper.Data.Entities { public class Person : EntityBase { [Required] [...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Animations; using UnityEngine.UIElements; public class RotateAround : MonoBehaviour { public GameObject target; public float rotateSpeed = 100; public Vector3 RotateVector = Vector3.up; private ...
using System.Threading.Tasks; using Netatmo.Models; namespace Netatmo { public interface ICredentialManager { CredentialToken CredentialToken { get; } string AccessToken { get; } Task GenerateToken(string username, string password, Scope[] scopes = null); void ProvideOAuth2Token...
using UnityEngine; public abstract class TransformTweener : MonoTweener { [Tooltip("If this field is not filled, instead uses the Transform on this GameObject")] [SerializeField] Transform transformToUse; public Transform target { get { if (!transformToUse) { ...
# module Battlesnake # export Boardstate, Snake, Position, Direction, up, down, left, right, move_from # ============== DIRECTION ==================# @enum Direction up down left right # ============== POSITION ==================# struct Position x::Int y::Int end function get_neighbors(pos::Position) ...
# docker-hashicorp-consul-template A busybox:glibc based Docker container running HashiCorp's consul-template on CoreOS instances. ## From cloud-config ``` #cloud-config coreos: units: - name: consul-template.service command: start content: | [Unit] Description=HashiCorp consul-templ...