text
stringlengths
27
775k
module.exports = { db: process.env.MONGODB|| 'mongodb://localhost:27017/test', sessionSecret: process.env.SESSION_SECRET || 'Your Session Secret goes here', localAuth: true, mailgun: { login: process.env.MAILGUN_LOGIN || 'Your Mailgun SMTP Username', password: process.env.MAILGUN_PASSWORD || 'Your Ma...
def function_for_each(array, &block) array.each &block end function_for_each [1, 2, 3, 4, 5] { |number| puts number * 10 } # o que acontece, é que ele vai passar o array, para ele poder interar
/*************************************************************************** * * Copyright (c) 2013 Baidu.com, Inc. All Rights Reserved * **************************************************************************/ /** * @file module_status_manager.cpp * @author huangwei(huangwei02@baidu.com) * @date 2013/06/1...
import 'package:agility_redux/agility_redux.dart'; import 'package:agility_redux_bloc/src/bloc_function.dart'; import 'bloc_page.dart'; import 'bloc_popup_box.dart'; import 'bloc_widget.dart'; /// Represents a pluggable business module abstract class Bloc { /// Used to identify the module and cannot be repeated. ...
FactoryGirl.define do factory :message do body "MyText" account nil chat_room nil end end
import { MysqlError, initRoutes, testREST, GET, POST, PUT, DELETE, } from '../../utils/testUtils'; import { OK, NOT_FOUND, NO_CONTENT, CONFLICT, CREATED, } from '../../utils/httpStatusCodes'; describe('restServers/estaciones', () => { beforeAll(() => { initRoutes(); }); describe('/',...
package com.jayjaylab.ui.anatomy.view.view; import com.jayjaylab.ui.anatomy.model.data.instagram.Node; import java.util.List; /** * Created by jjkim on 2016. 7. 17.. */ public interface InstagramImageView { void showImage(Node node); void showImage(List<Node> list); }
// /d/dragon/tower1/room1.c #include <std.h> #include <objects.h> inherit ROOM; void create() { room::create(); set_property("light",1); set_property("indoors",1); set_short("Ivory Tower"); set_long( @GRAYHAWK This room is very bright, with light coming from the four crystal globes, one in ea...
package org.sunbird.integration.test.textbook.toc; import com.consol.citrus.annotations.CitrusTest; import com.consol.citrus.context.TestContext; import com.consol.citrus.testng.CitrusParameters; import org.springframework.http.HttpStatus; import org.sunbird.common.action.TOCUtil; import org.sunbird.common.action.Test...
<?php /* * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of this source code package. */ namespace iwareprint\forms; use iwareprint\representations\AddressData; /** * Description of UserRegisterForm * * @author yagular */ class UserAddForm { const USER_T...
pub mod cmd; pub mod create_cmd; pub mod utils; use clap::App; use clap::Arg; use create_cmd::CreateCommand; use std::io::Result; static VERSION: &'static str = "1.0.0"; #[cfg(target_os = "linux")] fn main() -> Result<()> { use crate::cmd::CommandRunner; let app = App::new("machinery") .version(VERS...
/* * Copyright (c) 2005, The JUNG Authors * All rights reserved. * * This software is open-source under the BSD license; see either "license.txt" * or https://github.com/jrtom/jung/blob/master/LICENSE for a description. * * Created on Aug 23, 2005 */ package org.jungrapht.visualization.subLayout; import java.u...
--- layout: post title: Beignets date: 1969-12-31 19:00:00 -0500 category: sides tags: bread breakfast donuts fried french --- 3440 Cal (16x 215) 2 tsp. yeast 3/4 cup warm water (110F) 1/4 cup sugar 1/2 tsp. salt 1 egg, beaten 1/2 cup evaporated milk 3 1/2 cup flour 2 Tbsp. shortening 2 cups vegetable ...
const queriesController = require('../controllers/queriesController'); const displayFavorites = (request, response, next) => { let userid = request.user.id; queriesController.getFavorites(userid) .then(result => { response.render('favorites', {result}) }) .catch((err) => ...
import os def getCommId(vertexId, dict): if vertexId in dict: return dict[vertexId] else: return 0 def getNoOfVertices(commId, dict): if commId in dict: return dict[commId] else: return 0 def getDegree(vertexId, dict): if vertexId in dict: return dict[vertexId] else: ...
<?php return array ( 'register_new_account' => '', 'register_new_membership' => '', 'i_agree_to_the' => '', 'terms' => '', 'i_already_have_a_membership' => '', 'login' => '', 'register_a_new_membership' => '', );
import { TypeORMFacility } from "@plumier/typeorm" import Plumier, { WebApiFacility } from "plumier" new Plumier() .set(new WebApiFacility()) // install TypeORMFacility, it normalize TypeORM entities // to make Plumier reflection library able to introspect them. // put connection string on environment...
import { colors, spacers } from '@dhis2/ui' import css from 'styled-jsx/css' export const fileMenuStyles = css` .menu-toggle { display: inline-flex; position: relative; align-items: center; justify-content: center; font-size: 14px; font-weight: 400; text-tran...
/* * Copyright 2021 Fluence Labs Limited * * 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 a...
# simplesocial Basic social networking model created in Golang, with a MySQL database. **First installation guide** -> Download directory to '$GOPATH/src' -> Download all external dependencies -> Create link of folder "$GOPATH/src/simplesocial/simplesocialtmp" in directory '$GOPATH/bin' -> Rename link "simplesocia...
# frozen_string_literal: true shared_examples "a Logplex::ApiController endpoint" do it "responds with an empty body" do expect(response.body).not_to be_present end it "responds with a content length of zero" do expect(response.headers["Content-Length"].to_i).to be_zero end end
import React, {useState, useEffect} from "react"; import {Input, InputGroup, InputGroupText} from "reactstrap"; import {OscDeviceConfig} from "generated/graphql"; import {objectMap} from "helpers/objectMap"; type DeviceConfigForm = { [key in keyof Required<OscDeviceConfig>]: string; }; type DeviceConfigFormValidity...
<?php return [ 'jobtasks' => 'Jobtasks', 'jobtasks_add' => 'Jobtasks|Add', 'jobtasks_edit' => 'Jobtasks|Edit', 'jobtasks_detail' => 'Jobtasks|Detail', 'jobtask_list' => 'All', 'add_jobtask' => 'Add', 'employee' => 'Employee', 'job_name' => 'JobName', 'job_type' => 'JobType', '...
require 'rbconfig' require_relative 'modules/system' require_relative 'modules/util' require_relative 'modules/command_line' require_relative 'modules/average_filter' require_relative 'modules/python' MINGW_COMPILER = 'MinGW'.freeze MSVC_COMPILER = 'MSVC'.freeze options = CommandLine.parse([CommandLine.filter_sample_...
$ mkdir -p foo/bar $ mkdir -p foo/qux $ find foo foo foo/bar foo/qux
import env from 'config/env' import logger from 'config/logger' import { APIError, ExtendableError } from 'server/helpers/error' import { graphqlExpress } from 'apollo-server-express' import { schema } from './merge' import * as JWT from 'jsonwebtoken' import { IJsonWebTokenContents } from 'server/controllers/auth.cont...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Parking.Storage.Repository.MySQL; public class FieldInformation { public FieldInformation() { } public FieldInf...
use crate::Account; use hashbrown::HashMap as Map; use primitive_types::{H160, H256, U256}; use crate::AccountInfo; use auto_impl::auto_impl; use bytes::Bytes; #[auto_impl(& mut, Box)] pub trait Database { /// Whether account at address exists. fn exists(&mut self, address: H160) -> Option<AccountInfo>; ...
import pytest from flask import Flask from flask_sqlalchemy import SQLAlchemy from sql_alchemy import __version__ from sql_alchemy.models import Student from sql_alchemy.student_repository import StudentRepository @pytest.fixture def flask_app_mock(): app_mock = Flask(__name__) db = SQLAlchemy(app_mock) ...
<?php namespace Rest\Controller; use Zend\Mvc\Controller\AbstractRestfulController; use Application\Form\AlbumForm; use Zend\View\Model\JsonModel; class RestController extends AbstractRestfulController { public function getList() { $em = $this->getServiceLocator()->get('Doctrine\ORM\Entit...
package com.stylingandroid.muselee.topartists.database import com.stylingandroid.muselee.providers.DataMapper import com.stylingandroid.muselee.topartists.entities.Artist class DatabaseTopArtistsMapper : DataMapper<Triple<Int, Artist, Long>, Pair<DbArtist, Collection<DbImage>>> { override fun encode(source: Trip...
import 'package:json_annotation/json_annotation.dart'; part 'neuralNetOptions.g.dart'; @JsonSerializable(explicitToJson: true) class NeuralNetOptions { num chanceToAddLink; num chanceToAddNode; num chanceToAddLoop; num compatibilityThreshold; int sizeOfGeneration; num crossOverPercent; NeuralNetOptions(...
--- layout: watch title: TLP2 - 25/05/2021 - M20210525_023933_TLP_2T.jpg date: 2021-05-25 02:39:33 permalink: /2021/05/25/watch/M20210525_023933_TLP_2 capture: TLP2/2021/202105/20210524/M20210525_023933_TLP_2T.jpg ---
package io.github.j4ckofalltrades.steam_webapi.wrapper import io.github.j4ckofalltrades.steam_webapi.core.AppId import io.github.j4ckofalltrades.steam_webapi.core.WebApiClient import io.github.j4ckofalltrades.steam_webapi.types.AppNewsWrapper import io.github.j4ckofalltrades.steam_webapi.types.NewsForAppParams import ...
**You are trying to cross the river, but you are carried away by the stream.** You hit the rock, and die ☠️. [🔄 Restart the game](../../begin-journey.md)
// Frank Poth 04/03/2018 /* Changes since part 4: 1. Added the Game.World.TileSet & Game.World.TileSet.Frame classes. 2. Added the Game.World.Object.Animator class. 3. Updated the Player object to include frame sets for his animations. Updated the Player to update position and animation separately. 4. Removed tile_...
const { TestHelper } = require("@openzeppelin/cli"); const { Contracts, ZWeb3 } = require("@openzeppelin/upgrades"); /* Initialize OpenZeppelin's Web3 provider. */ ZWeb3.initialize(web3.currentProvider); /* Retrieve compiled contract artifacts. */ const DCWallet = Contracts.getFromLocal("DCWallet"); const ERC20 = art...
# frozen_string_literal: true def make_data_node_params(name, opts = {}) params = { db_name: TEST_DB_NAME, name: name } params.reverse_merge!(opts) end # Creates a Dataflow::Nodes::DataNode def make_data_node(name, opts = {}) Dataflow::Nodes::DataNode.create(make_data_node_params(name, opts)) end # c...
template "packs/pack.js.erb", "#{PACKS_PATH}/#{name}.js" template "single_file_components/index.vue", "#{PARTS_PATH}/#{name}.vue"
package com.polymorphism; /** * Created by stevenlee on 2018/1/23. */ public class Init { public static void main(String[] args) { //多态 Animal ani1=new Animal(); //父类引用可以指向子类对象 Animal pig = new Dog(); ani1.eat(); //父类对象的吃方法 pig.eat(); //子类对象的吃方法 //子类引用不能指向...
<?php namespace TreeHouse\SkeletonBundle\Tests; class SkeletonTest extends \PHPUnit_Framework_TestCase { /** * @test */ public function test_something() { $this->assertTrue(true); } }
///*ElginFont /// ///Change the font class ElginFont { const ElginFont._internal(this.value); final int value; static const FONTA = ElginFont._internal(0); static const FONTB = ElginFont._internal(1); static const UNDERLINE = ElginFont._internal(2); static const BOLD = ElginFont._internal(8); static const...
package com.akexorcist.example.camerax.ui import android.Manifest import android.os.Bundle import android.util.Size import android.view.* import android.widget.SeekBar import android.widget.Toast import androidx.annotation.FloatRange import androidx.appcompat.app.AppCompatActivity import androidx.camera.core.* import ...
--- layout: default --- ###### [IO](../index.md) > [Path Class](../path.md) # Path::changeExtension Method (string, string) Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner. ## Syntax ```php public static function c...
# frozen_string_literal: true class Rubyoshka # The Compiler class compiles Rubyoshka templates class Compiler DEFAULT_CODE_BUFFER_CAPACITY = 8192 DEFAULT_EMIT_BUFFER_CAPACITY = 4096 def initialize @level = 1 @code_buffer = String.new(capacity: DEFAULT_CODE_BUFFER_CAPACITY) end de...
#ifndef LIBPAS_UDP_H #define LIBPAS_UDP_H #include <stdio.h> #include <string.h> #include <unistd.h> extern int initUDPServer(int *fd, int port); extern void freeSocketFd(int *udp_fd); extern int initUDPClient(int *fd, __time_t tmo) ; extern int makeUDPClientAddr(struct sockaddr_in *addr, const char *addr_str, int ...
# boilerplate This is a boilerplate and starting template for all my production grade MERN (REST) applications.
module ProtocolsHelper def protocol_tag(protocol) return nil if protocol.nil? protocol.name end def protocol_link(protocol) return nil if protocol.nil? link_to(protocol_tag(protocol).html_safe, protocol) end def protocols_search_form render('/protocols/quick_search_form') end de...
/* * ll_mem_helper.h * LLAMA Graph Analytics * * Copyright 2014 * The President and Fellows of Harvard College. * * Copyright 2014 * Oracle Labs. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
use std::{ fs, path::{Path, PathBuf}, }; use chrono::{DateTime, NaiveDateTime, ParseResult, Utc}; use openssl::{ asn1::Asn1TimeRef, pkey::{PKey, Private}, x509::X509, }; /// Identity certificate that holds server certificate, along with its corresponding private key /// and chain of certificates t...
import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; import * as shell from 'shelljs'; export type ExecToolFunction = ( command: string, options: shell.ExecOptions & { async?: false } ) => shell.ShellString; export function requireTool(name: string): ExecToolFunction { const toolPath =...
function addDefaultColumns(table) { table.timestamps(true, true); table.datetime('deleted_at'); } function createNameTable(knex, tableName) { return knex.schema.createTable(tableName, (table) => { table.increments().notNullable(); table.string('name').notNullable().unique(); addDefaultColumns(table);...
using SampleBank.Core.Entity; using SampleBank.Core.Model; using SampleBank.Core.Model.Account; namespace SampleBank.Core.Abstractions.Business { public interface IBusinessAccount : IBusinessBase<Account> { ServiceResponse<bool> OpenAccount(OpenAccountModel model); } }
#testAnalogy.py #argv[1]: space pkl file #argv[2]: analogy test file #EXAMPLE: python testAnalogy.py ../../spaces/wikipedia.pkl analogy_dataset.txt #------- from composes.utils import io_utils from composes.utils import scoring_utils from composes.similarity.cos import CosSimilarity from composes.composition.weighted_a...
import { matchRoutes, Route, Routes, useLocation } from "react-router"; import Header from './components/Header'; import Footer from './components/Footer'; import routes from './routes/Routes'; import './App.css'; const routeObj = routes.map(({ component: Component, path }) => ({ caseSentitive: false, element: <C...
<?php namespace App\Repositories\User; use App\Models\User; interface UserRepositoryInterface { public function me(); public function save(User $user): User; public function getUserByNickname(string $nickname): ?User; public function getUserByEmail(string $email): ?User; public function getUserBy...
var get = Ember.get, set = Ember.set; Ep.EmbeddedHelpersMixin = Ember.Mixin.create({ serializerFor: function(type) { var key = get(type, 'typeKey'); // TODO: move this to a custom resolver return this.container.lookup('serializer:' + key) || this.container.lookup('serializer:main'); }, e...
package opcodes // Opcode - opcode type Opcode byte const ( // Nop Opcode - no operation opcode Nop Opcode = iota // Unreachable - unreachable opcode Unreachable // Select - select opcode Select // I32Const - int32 const opcode I32Const // I32Add - int32 add opcode I32Add // I32Sub - int32 subtract op...
/* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
# Wachincoki Proyecto desarrollado en Unity para MalagaJam Weekend IX (2019). https://jammers-granada.itch.io/zurbi-whisckey
require "ps2/client/em_runner" Signal.trap("INT") do puts "Caught interrupt, stopping..." EmRunner.exit!(125) EM.stop_event_loop if EM.reactor_running? end Signal.trap("TERM") do puts "Caught TERM signal, stopping..." EmRunner.exit!(125) end
<?php namespace Bitbucket\Tests\API\Users; use Bitbucket\Tests\API as Tests; use Bitbucket\API; class EmailsTest extends Tests\TestCase { public function testGetAllEmails() { $endpoint = 'users/gentle/emails'; $expectedResult = json_encode('dummy'); $emails = $this->getApiMock(...
using System; using Autodesk.Revit.DB; using Autodesk.Revit.UI; namespace BuildingGraph.Integrations.Revit.UIAddin { [Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)] class RevitGraphSyncCommand : IExternalCommand { public Result Execute(ExternalCommandData...
using Newtonsoft.Json; namespace GuildWars2.API.Model.Items { public class InfixAttribute { [JsonProperty("attribute")] public ItemAttribute Attribute { get; set; } [JsonProperty("modifier")] public int Modifier { get; set; } } }
package com.iamshekhargh.myapplication.ui.mainFragment import android.content.Intent import android.os.Bundle import android.view.Menu import android.view.MenuInflater import android.view.MenuItem import android.view.View import androidx.appcompat.widget.SearchView import androidx.fragment.app.Fragment import androidx...
// import Head from 'next/head'; // import Image from 'next/image'; // import Link from 'next/link'; // import { useRouter } from 'next/router'; export default function MetaTag(props) { return ( <> <meta name="description" content={props.description} /> <meta name="keywords" content={props.keyword} /...
require 'spec_helper' describe "Sessions Controller" do describe '/login' do it 'loads the login page' do get '/login' expect(last_response.status).to eq(200) end it 'loads /donations after login' do Donor.create(:name=>'john', :email=>'a@b.com', :password=>'test') visit('/login...
package com.manywords.softworks.tafl.network.packet.ingame; import com.manywords.softworks.tafl.engine.clock.TimeSpec; import com.manywords.softworks.tafl.network.packet.NetworkPacket; /** * Created by jay on 5/28/16. */ public class ClockUpdatePacket extends NetworkPacket { public static final String PREFIX = ...
package gosesh import ( "testing" "time" ) func TestNewSession(t *testing.T) { session := NewSession(16, 2*time.Minute) // Check if session impliments SessionInterface var sesh SessionInterface = session if session.created != sesh.Accessed() { t.Error("Session's initial created and accessed times are differe...
def get_cost(arr, num): s = 0 for ind, i in enumerate(arr): s += abs(num**ind - i) return s def main(): n = int(input()) arr = list(map(int, input().split())) arr = sorted(arr) max_cost = get_cost(arr, 1) high_limit = int(max_cost**(1/(n-1)))+1 print(high_limit) mi...
using Microsoft.VisualStudio.TestTools.UnitTesting; namespace MigradorZeosParaADO.Tests { [TestClass] public class PasTests { #region Teste no uses [TestMethod] public void DeveSubstituirUses() { // Arrange var toReplace = "uses Windows,Messages,ZAb...
/* -*- coding: utf-8 -*- * ---------------------------------------------------------------------- * Copyright © 2010, RedJack, LLC. * All rights reserved. * * Please see the LICENSE.txt file in this distribution for license * details. * ---------------------------------------------------------------------- */ ...
/// Encode an ASCII string into its location in a Polybius square. /// Only alphabetical characters are encoded. pub fn encode_ascii(string: &str) -> String { string .chars() .map(|c| match c { 'a' | 'A' => "11", 'b' | 'B' => "12", 'c' | 'C' => "13", '...
require "bundler/capistrano" load "deploy/assets" load "config/recipes/base" load "config/recipes/nginx" load "config/recipes/unicorn" load "config/recipes/postgresql" load "config/recipes/nodejs" load "config/recipes/rbenv" load "config/recipes/check" server "YOUR_IP_HERE", :web, :app, :db, primary: true set :user, ...
package utils.converters import database.tables.{DelegateEntity, GroupDelegateEntity} import models.{Delegate, DelegateGroup} object DelegateConverter { implicit class EntityToDelegate(d: DelegateEntity) { def asDelegate: Delegate = Delegate(d.id, d.name) } implicit class DelegateWithUserEntityToDelegate(...
/* * Copyright 2020-2021 Anton Trushkov * * 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 ag...
json.array!(@reservations) do |reservation| json.extract! reservation, :id, :court, :time_from, :time_to json.url reservation_url(reservation, format: :json) json.user_data do json.id reservation.user.id json.email reservation.user.email end end
<?php namespace App\Services; class ParseTCX { protected $xml; protected $points = []; public function __construct($file) { if (!is_file($file)) { throw new \Exception(sprintf('Unable to read file "%s"', $file)); } $this->xml = simplexml_load_file($file); if...
#pragma once #include <utility> #include "utl/clear_t.h" #include "utl/pipes/make_range.h" namespace utl { template <typename Range, typename TakeWhile> struct take_while_range : public clear_t<Range> { using parent_t = clear_t<Range>; take_while_range(Range&& r, TakeWhile&& take_while) : parent_t(std::f...
require 'spec_helper' require 'time' describe ProjectsController do describe "without a logged in user" do describe "status" do let(:project) { projects(:socialitis) } before { get :status, :id => project.id, :tiles_count => 8 } it "should render dashboards/_project" do response.should...
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:weather/app_router.dart'; import 'package:weather/core/themes/app_theme.dart'; import 'package:weather/l10n/...
<?php declare(strict_types=1); namespace Rackspace\Test\Compute\v2\Models; use GuzzleHttp\Psr7\Response; use OpenCloud\Test\TestCase; use Rackspace\Compute\v2\Api; use Rackspace\Compute\v2\Models\Keypair; class KeypairTest extends TestCase { private $keypair; public function setUp() { parent::se...
module Daybreak # Database format serializer and deserializer. You can create # your own implementation of this class and define # your own database format! # @api public class Format # Read database header from input stream # @param [#read] input the input stream # @return void def read_heade...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Managed.Adb { /// <summary> /// /// </summary> public class ClientData { /// <summary> /// /// </summary> private const String PRE_INITIALIZED = "<pre-initialized>"; /// <summary> /// /// </summary> ...
package com.github.sebrichards.postmark import org.joda.time.DateTime /** Details of a successful e-mail attempt */ case class PostmarkSuccess( To: String, Message: String, MessageID: String, SubmittedAt: DateTime)
var person1 = function() { this.id = null; this.name = null; this.create_at = 0; } person1.prototype.getId = function() { return this.id; } person1.prototype.setId = function(id) { this.id = id; } person1.prototype.getName = function() { return this.name; } person1.prototype.setName = function(name) { this.n...
package com.malliina.musicpimp.json /** Clients specify the desired response format, including version, in the `Accept` HTTP header. * * This trait contains the supported JSON formats. * * Adapted from http://developer.github.com/v3/media/ */ trait JsonFormatVersions { val JSONv17 = versionString(Some(17))...
using System; using System.Linq; namespace Eto.UnitTest.Filters { public class NotRunFilter : ITestFilter { Func<ITest, ITestResult> LookupResult { get; } public NotRunFilter(Func<ITest, ITestResult> lookupResult) { LookupResult = lookupResult; } public o...
import pandas as pd def series(df, options, *args, **kwargs): idx = df.index col = df.columns data = df.values assert(isinstance(idx, pd.core.index.Index)) series = [] for k, c in enumerate(col): if df[c].dtype.kind in 'fib': v = data[:, k] sec = c in kwa...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::create('layout',function($users){ $users->bigIncrements('id'); $users->string('...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Home.framework/Home */ @interface HFValueSetFormatter : NSFormatter { id /* block */ _stringProvider; long long _unitStyle; } @property (nonatomic, copy) id /* block */ stringProvider; @property (nonatomic) long long unitStyle; + (...
# hexip ![GitHub release](http://img.shields.io/github/release/bells17/hexip.svg?style=flat-square) [![CircleCI](https://img.shields.io/circleci/project/github/bells17/hexip.svg)](https://circleci.com/gh/bells17/hexip) ![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square) ## Installation ...
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -O -fhpc -fplugin-opt=Test.Inspection.Plugin:quiet #-} module HPCs (main) where import Test.Inspection main :: IO () main = return () theTwo :: Int theTwo = 2 anotherTwo :: Int anotherTwo = 2 theOnePlusOne :: Int theOnePlusOne = 1 + 1 inspect $ 'theTwo ==- 'theOneP...
package org.apache.kafka.cep import java.util.concurrent.TimeUnit import org.apache.kafka.cep.utils.Observed class Composite(timeFrame: Long, unit: TimeUnit, compositeDetectors: Seq[Detector])(implicit val system: CEP) extends Detector(timeFrame, unit) { def this(detector: Detector)(implicit system: CEP) = this...
import React from "react"; import Draw from "../services/draw"; import "./Canvas.css"; export default class App extends React.PureComponent { /* 重置功能 */ reset() { Draw.clear(); } /* 导出 */ exp() { let exportImg = Draw.exportImg(); console.log('exportImg: ', exportImg); if(exportImg === -1) { ...
## Background This document is intended to provide the rationale for a platform through which the Creative Commons Global Network (CCGN) and GLAM organisations can engage in activities related to releasing their content. The support for an Open GLAM platform was initially discussed at the 2017 CC Global Summit sessi...
/** * @Description: * @Author: Naccl * @Date: 2020-04-14 */ public class ConcreteCommand implements Command{ CompanyArmy army; public ConcreteCommand(CompanyArmy army) { this.army = army; } @Override public void execute() { army.sneakAttack(); } }
using System; using MaterialCMS.Web.Areas.Admin.Models.SEOAnalysis; namespace MaterialCMS.Web.Areas.Admin.Helpers { public static class SEOAnalysisExtensions { public static string GetTableClass(this SEOAnalysisStatus status) { switch (status) { case SEO...
- https://en.wikipedia.org/wiki/Feldpost - Feldpost is the German military mail service. # Stamps - https://polona.pl/item/678104/1/ - http://www.heimatsammlung.de/topo_unter/weissrussland/images_01/13-postkarte-weissrussland-grodno.jpg
require('rspec') require('numwords_logic') require('pry') describe('NumberConverter') do it('takes a number from the user and returns it in words') do user_input = NumberConverter.new(8) expect(user_input.wordResponse).to(eq( "eight")) end it('takes a number from the user and returns it in words'...