text
stringlengths
27
775k
function Entry(title, body) { this.title = title; this.body = body; } Entry.prototype.wordCount = function(body) { return body.split(" ").length; }; Entry.prototype.countVowels = function(body) { return body.match(/[aeiou]/gi).length; }; Entry.prototype.countConsonants = function(body) { return body.match(...
package by.vorokhobko.controlq.saxparsing; import by.vorokhobko.controlq.model.Book; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import java.util.HashMap; import java.util.Map; /** * Handler. * * Class Handler for control questions 005_Pro, lesson 7. ...
package com.github.peacetrue.spring.security; import java.util.Objects; import java.util.function.Function; /** * 代理编码器 * * @author xiayx */ public class ProxyEncoder implements Encoder { private Encoder encoder; private Function<String, String> converter; public ProxyEncoder(Encoder encoder, Functi...
<?php namespace Narcisonunez\LaravelActionableModel\Traits; use Exception; use Illuminate\Database\Eloquent\Model; use Narcisonunez\LaravelActionableModel\Contracts\CanBeActionable; use Narcisonunez\LaravelActionableModel\OwnerActionHandler; trait CanPerformActions { /** * @param Model $actionable * @...
#![crate_type = "rlib"] #![feature(fundamental)] pub trait Misc {} #[fundamental] pub trait Fundamental<T> {}
using System; using System.Collections.Generic; #nullable disable namespace MVC.Data { public partial class Journal { public int JournalId { get; set; } public string Name { get; set; } public string Cover { get; set; } public string Fbtoken { get; set; } public string...
package typingsSlinky.awsSdk.snowballMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ClusterListEntry extends StObject { /** * The 39-character ID...
# Copyright 2017 The Forseti Security Authors. 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
from . import tempserver as ts import multiprocessing as mp import webbrowser import os def auth_upstox() -> str: """Helps in authorizing Upstox user and returns the access_token. Returns ------- str Returns the access token for the verified individual. """ def start_server(queue): ...
using RenderBox.Core; using System; namespace RenderBox.Shared.Modules.Mandelbrot.Filters { public class Filter1 : IPaletteFilter { public override Color GetColor(double rate, double zoom) { var r = rate * rate * rate; var g = rate; var b = 0; r...
import stlab from collections import OrderedDict import matplotlib.pyplot as plt import numpy as np import peakutils import os from scipy.signal import argrelextrema from scipy.fftpack import fft, fftfreq import pickle def ensure_dir(file_path): ''' Checks if directory exists. If not, it creates a new one. ...
# LobbyAlarm 🚨 Browser Plugin to Highlight Lobbyism (in Germany). ## License Mit.
# frozen_string_literal: true class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :check_logged_in def check_logged_in if session[:full_name].nil? redirect_to new_session_path end end end
Contributions are welcome, and can be made by either opening an issue or making a pull request to this repo.
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Pizza; use App\User; use Auth; use Route; use App\Transaction; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function redirectToHome(){ if (R...
import * as React from 'react' import { ButtonGroup, Button } from '@reapit/elements' import { cx } from 'linaria' import { History } from 'history' import qs from 'query-string' import { ROUTES } from '@/core/router' import { timeButtonGroupContainer } from './__styles__' export type HandleChangeTimeParams = { time...
package chapter3; import java.util.Scanner; public class Factorial { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter some number:"); int number = Integer.parseInt(input.nextLine()); long factorial = 1L; for (int a...
package dec22 class Stack<T> private constructor(private val items: List<T>) { constructor(): this(emptyList()) fun isEmpty() = items.isEmpty() fun peek(): T? { return items.first() } fun push(value: T): Stack<T> { return Stack(listOf(value) + items) } fun pop(): Pair<T,...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace MiroV1 { public class ENEdit : MonoBehaviour { public Text _Text; public Slider _SDEN,_SDENMax; public MiroV1PlacementMgr _mgr; // Use this for initialization void Start () { } // Upd...
#!/usr/bin/env bash # Made by jomo if [ -z "$1" ]; then echo "Usage: $0 <domain-name> [DNS server]" >&2 exit 1 fi dns="$2" if [ -n "$dns" ]; then echo "# Using DNS server '$dns'" >&2 dns="@$dns" fi function check_tld { # $dns is not quoted so it's ignored if empty if [ -z "$(dig +short SOA "$1" $dns)" ];...
#!/bin/sh # Create default providers.json if necessary if [ ! -f /config/providers.json ]; then echo "[]" > /config/providers.json fi pm2-runtime server.js
<?php $time_now = microtime(); $time = explode(' ', $time_now); print_r($time); //phpinfo() print(); $exec = 'test.txt.bak'; echo '<BR>'.$perfix; //include_once(); //require_once(); ?>
;; Copyright (c) 2015 <Diego Souza> ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation ;; files (the "Software"), to deal in the Software without ;; restriction, including without limitation the rights to use, copy, ;; modify, merge, publish...
package model.actors import akka.actor.{Actor, ActorLogging, ActorRef} import work.{Work, WorkFailure} trait MyActor extends Actor with ActorLogging { implicit val m_logger = log // def failureResponseActor : ActorRef final override def unhandled(message : Any) { val errorInf...
using Nop.Web.Framework; using Nop.Web.Framework.Mvc; namespace Nop.Admin.Models.Customers { public partial class RegisteredCustomerReportLineModel : BaseNopModel { [NopResourceDisplayName("Admin.Customers.Reports.RegisteredCustomers.Fields.Period")] public string Period { get; set; } ...
<?php namespace Akamai\Sdk\Repository\NS; use Akamai\Sdk\Model\NS\UploadAccount; use Akamai\Sdk\Repository\AbstractAkamaiRepository; class UploadAccountRepository extends AbstractAkamaiRepository { protected $version = 'v1'; /** * @return mixed */ public function getModelClass() { ...
package com.erisu.cloud.megumi.command import com.erisu.cloud.megumi.pattern.Pattern @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER) @kotlin.annotation.Retention(AnnotationRetention.RUNTIME) @MustBeDocumented annotation class Command( val commandType: Command...
--- layout: api-command language: Ruby permalink: api/ruby/line/ command: line related_commands: point: point/ polygon: polygon/ circle: circle/ --- # Command syntax # {% apibody %} r.line([lon1, lat1], [lon2, lat2], ...) &rarr; line r.line(point1, point2, ...) &rarr; line {% endapibody %} # Description #...
USE [HappyScoopers_DW] GO -- Drop the table if it is already present in the database DROP TABLE IF EXISTS [int].[Lineage] -- Create the Lineage table CREATE TABLE [int].[Lineage] ( [LineageKey] [int] IDENTITY(1,1) NOT NULL, [TableName] [nvarchar](200) NOT NULL, [StartLoad] [datetime] NOT NULL, [FinishLoad] ...
/** * @file ChatRoomPlugin.cpp * * This is a plug-in for the Excalibur web server, designed * to demonstrate a simple chat-room type application. * * © 2018 by Richard Walters */ #include <algorithm> #include <condition_variable> #include <functional> #include <Http/Server.hpp> #include <inttypes.h> #include <J...
import com.tang.hwplib.annotation.ID import com.tang.hwplib.annotation.LinkID import com.tang.hwplib.builder.template.emptydocument.HWPEmptyDocumentTemplate import com.tang.hwplib.objects.HWPDocument import com.tang.hwplib.objects.docinfo.HWPParaShape import com.tang.hwplib.objects.docinfo.charshape.HWPFaceNameIds impo...
using System; using System.Drawing; using System.Globalization; using System.Windows.Forms; using Defter.StarCitizen.ConfigDB.Model; namespace NSW.StarCitizen.Tools.Controls { public partial class NumericFloatSetting : UserControl, ISettingControl { public Control Control => this; public BaseSe...
using Plugin.ValidationRules.Interfaces; using System; using System.Collections.Generic; using System.Text; namespace Plugin.ValidationRules.Formatters { public class BoolNegationFormatter : IValueFormatter<bool> { public bool TrueValue { get; set; } public bool FalseValue { get; set; } ...
GOPATH=/tmp go get -t github.com/shirou/gopsutil/disk go build -i installer.go config.go go build -i product.go config.go
unit UVaryingRestitution; interface {$I ..\..\Physics2D\Physics2D.inc} uses uTestBed, UPhysics2DTypes, UPhysics2D, SysUtils; type TVaryingRestitution = class(TTester) public constructor Create; override; end; implementation // Note: even with a restitution of 1.0, there is some energy change //...
package org.sagebionetworks.bridge.exporter.metrics; import java.util.Collection; import java.util.Map; import com.amazonaws.services.dynamodbv2.document.Item; import com.google.common.base.Joiner; import com.google.common.collect.Multiset; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfra...
use core::mem::size_of; #[cfg(target_arch = "x86")] use core::arch::x86::*; #[cfg(target_arch = "x86_64")] use core::arch::x86_64::*; use crate::consts::K64; cpufeatures::new!(avx2_cpuid, "avx2"); pub fn compress(state: &mut [u64; 8], blocks: &[[u8; 128]]) { if avx2_cpuid::get() { unsafe { s...
<?php use yii\helpers\Html; use common\models\PostAction; ?> <?php if(Yii::$app->user->isGuest):?> <?=Html::a('<span class="icon"></span>', null, [ 'class' => 'login-modal-btn', ]);?> <?php elseif($post->userCan(PostAction::TYPE_LIKE)):?> <?=Html::a('<span class="icon"></span>', null, [ '...
<?php namespace App\Http\Controllers\Self; use App\Exceptions\BadRequestException; use App\Http\Controllers\Controller; use App\Http\Transformers\Self\BankTransformer; use App\Models\Self\Bank; use Cacing69\BITBuilder\BITBuilder; use Cacing69\BITBuilder\Filterable; use Cacing69\BITBuilder\Sortable; use Illuminate\Htt...
var bcrypt = require("bcryptjs"); module.exports = function (sequelize, DataTypes) { var User = sequelize.define("User", { id: { type: DataTypes.UUID, primaryKey: true, defaultValue: DataTypes.UUIDV4, allowNull: false }, name: { ...
//! Handles synchronization within the kernel. pub mod mutex; pub mod time; pub use self::mutex::Mutex; use crate::arch::{self, Architecture}; /// Saves the state when disabling preemtion, so it can be restored later. #[derive(Default)] pub struct PreemptionState { /// Saves whether interrupts were enabled, when...
import { types } from "../types/types"; import { axiosInstance } from "../plugins/axios"; export const searchDonors = (search) => { return (dispatch) => { return new Promise((resolve, reject) => { const url = search === "" ? "/donors/" : `/donors/?blood_group=${search}` axiosInstance .get(url...
package com.plugin.frege.psi.mixin import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.plugin.frege.psi.FregeBody import com.plugin.frege.psi.FregeScopeElement import com.plugin.frege.psi.impl.FregeCompositeElementImpl abstract class FregeBodyMixin(node: ASTNode) : FregeCompositeElementImpl...
const nhl = require('../src') const _ = require('lodash') // 7654 var plyobj = {} let allPlayers = {} function makeSortable(obj) { var sortable = []; for (var val in obj) { sortable.push([val, obj[val]]); } sortable.sort(function(a, b) { return a[1] - b[1]; }); return sortable } for (var i = ...
import 'package:sudo/screens/shared/wallpaper_view/wallpaper_view.dart'; import 'package:sudo/screens/basic/home/basic.dart'; import 'package:flutter/material.dart'; // ignore: must_be_immutable class SaveGalleryButton extends StatefulWidget { dynamic basicState; WalpaperViewState wallpaperViewState; SaveGallery...
import sys import traceback import maya.cmds as cmds def mayaQuit(code): def doQuit(): sys.stdout.flush() sys.__stdout__.flush() sys.stderr.flush() sys.__stderr__.flush() cmds.quit(abort=1, exitCode=code) # If for some reason quitting immediately doesn't work, # reg...
package main import ( "fmt" "strconv" "sync" "time" "github.com/xkeyideal/gokit/httpkit" ) const ( HttpConnTimeout = 3 * time.Second HttpReadWriteTimeout = 5 * time.Second HttpRetry = 0 HttpRetryInterval = 2 * time.Second ) func doHttp(addr string, val int, wg *sync.WaitGroup) { defer ...
using UnityEngine; using UnityEngine.UI; using System.Collections; public class Music : MonoBehaviour { void Start() { if (PlayerPrefs.HasKey(Constants.MusicEnabled)) { var musicEnabled = PlayerPrefs.GetInt(Constants.MusicEnabled) == 1; if (musicEnabled) ...
<?php declare(strict_types=1); namespace AirSlate\Datadog\Services; use Illuminate\Contracts\Queue\Job; /** * Class QueueJobMeter * * @package AirSlate\Datadog\Services */ class QueueJobMeter { /** * @var string */ protected $previousId; /** * @var float */ protected $jobStar...
import * as cp from "child_process"; import * as fs from "fs"; import * as path from "path"; import { info } from "prettycli"; import listPrompt from "./list-prompt"; export const pkgManager = (): string => fs.existsSync(path.resolve(process.cwd(), "yarn.lock")) ? "yarn" : "npm"; export const runScript = (script: str...
use std::net::{SocketAddr, Ipv4Addr, IpAddr}; fn main() -> Result<(), Box<dyn std::error::Error>> { let proxy_address = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 25566); let server_address = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 25565); proxy::start(proxy_address, server_a...
package skysim import akka.actor.{ActorRef, Props} import skysim.DBActor.{ExecSql, InitDb, SqlResult} import skysim.JobActor.{GetJob, InitJobs, InitJobsDone, ReceiveJob} import scala.util.Random case class JobActorState( jobs: Map[String, List[String]], db: ActorRe...
drop user ENDCY cascade; drop tablespace KD_ENDCY_TBS including contents and datafiles cascade constraints; --建表空间 CREATE TABLESPACE KD_ENDCY_TBS LOGGING DATAFILE 'KD_ENDCY_TBS.DBF' SIZE 100M REUSE AUTOEXTEND ON NEXT 10M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; --建用户 CREATE USER END...
This file is a work-in-progress. This project was inspired by Rob Landley's project, [toybox](https://github.com/landley/toybox), and uses the same reference manuals cited on http://landley.net/toybox/status.html with the exception being that `cugo` _also_ cares about Unix/BSD compatibility. When reviewing Unix/BSD re...
package persister import ( "fmt" "log" "os" "path/filepath" ) // Persister interface has a Write func that takes domain and data and returns an error if writing fails. type Persister interface { Write(string, string) error } // NewFilePersister returns a new file persister that writes data to files into specifi...
// Copyright © 2019 Alvaro Saurin // // 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 agreed to...
#-*_coding:utf8-*- import db.dbhelper as afh from datetime import datetime d = datetime(2016, 8, 1) t = datetime.today() print(d)
package exec import scala.gui.threadInfoPanel import scala.io.Source /** * Created by ltrogr on 10/26/14 (edited by Ramil Mustafayev on 11/28/2019). */ class ComputingThread(threadIdNumber:Int, fileName: String) { var minPrime = Int.MaxValue var maxPrime = 0 var prime = 0 def getFileName = fileName def...
# encoding: UTF-8 require 'test_helper' class Wankel::ParsingJSONFixturesTest < Minitest::Test fixtures = File.join(File.dirname(__FILE__), 'fixtures/*.json') passed, failed = Dir[fixtures].partition { |f| f['pass'] } PASSED = passed.inject([]) { |a, f| a << [ f, File.read(f) ] }.sort FAILED = failed.inject...
# This file was automatically generated for Expedited Addons by APIMATIC v2.0 ( https://apimatic.io ) on 06/03/2016 module RealEmail class APIController < BaseController @@instance = APIController.new # Singleton instance of the controller class def self.instance @@instance end #...
#include "optimizer/rule/arithmetic_simplification.hpp" #include "optimizer/rule/case_simplification.hpp" #include "optimizer/rule/comparison_simplification.hpp" #include "optimizer/rule/conjunction_simplification.hpp" #include "optimizer/rule/constant_folding.hpp" #include "optimizer/rule/distributivity.hpp" #include ...
/* * 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 dados; import java.util.ArrayList; import java.util.Date; /** * * @author Douglas */ public class Venda { privat...
/* * Program: Truncate a file * * Author: Mark Crispin * Networks and Distributed Computing * Computing & Communications * University of Washington * Administration Building, AG-44 * Seattle, WA 98195 * Internet: MRC@CAC.Washington.EDU * * Date: 30 June 1994 * Last Edited: 24 October 2000 * * The ...
import numpy as np from typing import List from abc import ABC, abstractmethod from acrolib.sampling import Sampler, SampleMethod from acrolib.quaternion import Quaternion from acrolib.geometry import ( rpy_to_rot_mat, rotation_matrix_to_rpy, tf_inverse, quat_distance, ) from acrobotics.robot import R...
<?php namespace common\components\IEXTradingApi\Responses\Stocks; use common\components\IEXTradingApi\Responses\IEXTradingApiResponse; class StockLogo extends IEXTradingApiResponse { /** * @var string Refers to url of the company's logo */ public $url; /** * StockLogo constructor * ...
#!/usr/bin/perl # # genlogon.pl # # Perl script to generate user logon scripts on the fly, when users # connect from a Windows client. This script should be called from smb.conf # with the %U, %G and %L parameters. I.e: # # root preexec = genlogon.pl %U %G %L # # The script generated will perform # the following: # # ...
import React from 'react'; import { AppBar, Toolbar, Typography, Hidden } from '@material-ui/core'; import { css } from '@emotion/core'; import { Link } from 'gatsby'; import gdlLogo from '../images/GDL-logo.svg'; import colors from '../styles/colors'; const styles = { logo: css` img { margin-top: 2px; ...
/* =========================================================================== The Open Game Libraries. Copyright (C) 2007-2010 Lusito Software Author: Santo Pfingsten (TTK-Bandit) Purpose: Preload Manager ----------------------------------------- This software is provided 'as-is', without any express or im...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Kesantrian extends CI_Controller { var $tahunAktif ; public function __construct() { parent::__construct(); is_login(); is_boleh(); $this->load->model('User_model','um'); $this->load->model('Santri_model','sm'); $this->t...
# Snap A code push-deployment tool writtin in python. ## Philosophy The goal of snap is to make it easy for a codebase to dictate its deployment procedures itself, and not have that information exist somewhere else (in a chef repo, for instance). Snap reads deployment procedures from a file inside the repo itself, m...
function inplaceResetChildren(children) { //debugger; $(children).each(function(index,elem) { $(`#${elem}_id`).val('').trigger('change'); if (!$(`#${elem}_remove`).hasClass('hide')) { $(`#${elem}_remove`).addClass('hide'); } $(`#${elem}_value`).val(''); }); } onLoad(function() { //mu...
const BaseAction = require('../BaseAction') const EmployeeModel = require('../../models/EmployeeModel') class ListEmployeesAction extends BaseAction { static get validationRules () { return { query: { ...this.baseQueryParams } } } /** * Run action * @param {object} ctx * @re...
module KnownItemSearchClassifier class DefaultTrainingSet attr_reader :categories_probabilities, :categories_summaries def initialize @categories_probabilities={:unknown=>0.835, :known=>0.165} @categories_summaries= { :unknown=>{ 0=>{:mean=...
Rails.application.routes.draw do root to: 'application#index' match '/m/:id' => 'shortener/shortened_urls#show', :via => [:get] id_regex = /[1-9][0-9]*/ namespace :api, defaults: { format: 'json' } do resources :categories, only: [:index, :show, :create, :update, :destroy], id: id_regex resources :c...
package main import ( "os" "code.cloudfoundry.org/winc/runtime" specs "github.com/opencontainers/runtime-spec/specs-go" "github.com/urfave/cli" ) var execCommand = cli.Command{ Name: "exec", Usage: "execute new process inside a container", ArgsUsage: `<container-id> <command> [command options] || -p process...
# Anonymous Proxy Final evaluation of module 1 in Adalab. <br> It is a Web App developed with HTML and SCSS, based on the structure of the Adalab Web Starter Kit. <br> <ul> <li>How to install: npm install</li> <li>How to start the project: npm start</li> <li>How to publish the project: npm run docs</li> </ul>
var group___s_t_m8_a_f___s_t_m8_s_struct_a_w_u__t = [ [ "APR", "group___s_t_m8_a_f___s_t_m8_s.html#ab348052156241b5bdca888b526984fab", null ], [ "APR", "group___s_t_m8_a_f___s_t_m8_s.html#a23c0c7e535b2b2f6775bce7927c28abd", null ], [ "APR", "group___s_t_m8_a_f___s_t_m8_s.html#abc28a4a9a52744890de3b5388d48cb...
package scalaz package std.java object EnumTest extends SpecLite { import syntax.equal._ import std.java.`enum`._ import java.util.concurrent.TimeUnit "equal" in { TimeUnit.values forall (tu => tu === tu) } "not equal" in { //get all 2-element subsets of TimeUnit @annotation.tailrec def pai...
package integration_test import ( "strings" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" boshsettings "github.com/cloudfoundry/bosh-agent/settings" ) var _ = Describe("SystemMounts", func() { var ( registrySettings boshsettings.Settings ) Context("mounting /tmp", func() { BeforeEach(fu...
using System; using System.Linq; using Microsoft.Extensions.DependencyInjection; using OPCAIC.Application.Dtos.Base; using OPCAIC.Application.Services; using OPCAIC.TestUtils; using Xunit; using Xunit.Abstractions; namespace OPCAIC.Services.Test { public class StorageServiceTest : ServiceTestBase { /// <inheritdo...
import { Aluno } from './../../domain/aluno.domain'; import { Roles } from './../../roles.decorator'; import { RolesGuard } from './../../roles.guard'; import { EntradaUser } from '../../dto/entrada-user.dto'; import { JwtAuthGuard } from '../auth/jwt-auth.guard'; import { UsersService } from './users.service'; i...
package combinationsumii import ( "testing" "github.com/WindomZ/testify/assert" ) func Test_combinationSum2(t *testing.T) { assert.Equal(t, [][]int{}, combinationSum2([]int{}, 0)) assert.Equal(t, [][]int{{2}}, combinationSum2([]int{1, 2}, 2)) assert.Equal(t, [][]int{{7}}, combinationSum2([]int{2, 3, 6, 7}, 7)) ...
package gpod /* #include "stdlib.h" #include "glib.h" */ import "C" import ( "errors" "unsafe" ) func cstr(str string) *C.gchar { return (*C.gchar)(C.CString(str)) } func free(str *C.gchar) { C.free(unsafe.Pointer(str)) } func str(str *C.gchar) string { return C.GoString((*C.char)(str)) } func err(err *C.GErr...
/* jshint node:true, strict:false */ var exportable, nodemailer = require('nodemailer'), EmailTemplate = require('email-templates').EmailTemplate, EventEmitter = require('events').EventEmitter, fs = require('fs'), path = require('path'), Q = require('q'), _ = require('lodash'), orm = require('./orm'), ...
# Here is my list of favourite thing - Long Walk - Dance - Open Source - Learning Git and Github
mod base; mod internal; pub mod service; #[macro_use] extern crate quick_error; // // #[cfg(test)] // fn init_log() { // // let _ = env_logger::try_init(); // }
package com.seanshubin.condorcet.logger import java.io.PrintWriter import java.io.StringWriter interface Logger { fun log(lines: List<String>) fun log(line: String) { log(listOf(line)) } fun log(exception: Throwable) { val stringWriter = StringWriter() val printWriter = Print...
import { JsonRpcBatchProvider, StaticJsonRpcProvider } from '@ethersproject/providers'; import networks from '../networks.json'; const providers = {}; export default function getProvider(network: string, type = 'archive') { let url: any = networks[network].rpc[0]; if (type === 'light' && networks[network].lig...
<?php use App\Http\Controllers\Api\AuthController; use App\Http\Controllers\BlogPostController; use App\Http\Controllers\CategoryController; use App\Http\Controllers\CommentController; use App\Http\Controllers\ContactController; use App\Http\Controllers\FeedbackController; use App\Http\Controllers\ProblemController; u...
// // SENADSDKDelegate.h // Flappy Bird // // Created by luochao on 2018/10/8. // Copyright © 2018年 Agney Patel. All rights reserved. // #import <Foundation/Foundation.h> @protocol SENADSDKDelegate <NSObject> /** SDK初始化结果回调 @param isSuccess init result @param error isSuccess为false error为失败的错误信息 */ - (void)...
/** @file module.cpp @author Philip Abbet Entry point of the Javascript module of Athena::Entities */ #include <v8.h> #include <Athena-Scripting/ScriptingManager.h> #include <Athena/Prerequisites.h> #include <string> using namespace v8; using namespace Athena::Scripting; using namespace Athena; /********...
package net.cydhra.technocracy.foundation.api.blocks import it.zerono.mods.zerocore.api.multiblock.IMultiblockPart import net.minecraft.tileentity.TileEntity import net.minecraft.util.math.BlockPos import net.minecraft.world.World interface TCMultiBlock<out T> where T : TileEntity, T : IMultiblockPart { fun creat...
import os import re import shutil from datetime import datetime from os import path from PySide.QtGui import QDesktopServices from qtlayoutbuilder.lib.multiline_string_utils import MultilineString class OriginalFileReWriter(object): """ This class is able to overwrite the original input file provided to ...
module ATP.Tableaux ( unifyLiterals , deepen , prawitz , tab , splittab ) where import ATP.Util.Prelude import qualified ATP.Fol as Fol import qualified ATP.Formula as F import ATP.FormulaSyn import qualified ATP.Prop as Prop import qualified ATP.Skolem as Skolem import qualified ATP.Unif as Unif import ...
import events from './__name__.events.ts'; import { h } from 'jsx-dom'; import readme from './readme.md'; const Template = (args) => ( <__name__ {...args}></__name__> ); export const story1 = Template.bind({}); story1.args = { 'some-prop': 'opt1' }; story1.documentation = { title: 'Title which will be rendere...
{-# LANGUAGE ParallelArrays #-} {-# OPTIONS -fvectorise #-} module Vectorised where import Data.Array.Parallel hiding (Bool, True, False, not) import Data.Array.Parallel.Prelude hiding (Bool, True, False, not) import Data.Array.Parallel.Prelude.Int import qualified Prelude as P data Thing ...
# Box plot #### Schematic Top down 1. **_Maximum_** Maximum value of column dataset 2. **_Third quartile_** Sort the dataset, take average of the bigger half values 3. **_Median_** Average of entire dataset 4. **_First quartile_** Sort the dataset, take average of the smaller half value 5. **_Minimum_** Minimum...
package org.learning.by.example.reactive.kotlin.microservices.KotlinReactiveMS.routers import org.springframework.core.io.ClassPathResource import org.springframework.web.reactive.function.server.router internal class StaticRouter { companion object{ private val ROUTE = "/**" private val PUBLIC =...
! Verify that the frontend driver error-out if multiple actions are specified ! RUN: not %flang_fc1 -E -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=ERROR ! RUN: not %flang_fc1 -fsyntax-only -fsyntax-only %s 2>&1 | FileCheck %s --check-prefix=ERROR ! ERROR: error: Only one action option is allowed end progream...
import { increment } from '../increment'; describe('increment', () => { it('increments positive numbers', () => { expect(increment(2)).toBe(3); }); it('increments negative numbers', () => { expect(increment(-2)).toBe(-1); }); });