code
stringlengths
4
1.01M
run_date() { EXPECT_EQ '1136160000' "$(TZ=UTC sub::strtotime "${1}")" EXPECT_EQ '1136127600' "$(TZ=Asia/Tokyo sub::strtotime "${1}")" } run_datetime() { EXPECT_EQ '1136214245' "$(TZ=UTC sub::strtotime "${1}")" EXPECT_EQ '1136181845' "$(TZ=Asia/Tokyo sub::strtotime "${1}")" } run_fixed_datetime() { EXPECT_EQ...
'use strict'; /** * Email.js service * * @description: A set of functions similar to controller's actions to avoid code duplication. */ const _ = require('lodash'); const sendmail = require('sendmail')({ silent: true }); module.exports = { send: (options, cb) => { return new Promise((resolve, reject) => ...
package se.sciion.quake2d.level; import java.io.File; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.utils.ObjectMap; import se.sciion.quake2d.ai.behaviour.BehaviourTree; import se.sciion.quake2d.level.items.Weapon; public class Statistics { private ObjectMap<BehaviourTree,Float> totalDamageG...
USE ITIN20LAP; GO INSERT INTO Einrichtungen(Beschreibung) VALUES('Stuhl'); INSERT INTO Einrichtungen(Beschreibung) VALUES('Tisch'); INSERT INTO Einrichtungen(Beschreibung) VALUES('Monitor'); INSERT INTO Einrichtungen(Beschreibung) VALUES('Computer'); INSERT INTO Einrichtungen(Beschreibung) VALUES('Kasten'); GO INSER...
<!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title> Dados </title> </head> <body> <form method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>"> Lanzamiento de dados del jugador 1:<input type="checkbox" name="dado1" required> Lanzamiento de dados...
callback_functions = ["collision_enter", "collision_stay", "collision_exit"] length_area_world = 75 raise_exception = False # import all required modules from game import * from gameobject import * from contracts import * from configuration import * from component import * from loader import * from physics import * f...
/** * The MIT License * Copyright (c) 2011 Kuali Mobility Team * * 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, ...
--- title: "Yesus, Saudara Setia Kita" date: 15/01/2022 --- ### Bacalah untuk Pelajaran Pekan Ini Im. 25: 25-27; Ibr. 2: 14-16; Ibr. 11: 24-26; 1 Kor 15: 50; Ibr. 5: 8, 9; Ibr. 12: 1-4. > <p>Ayat Hafalan</p> > "Karena anak-anak itu adalah anak-anak dari darah dan daging, maka la juga menjadi sama dengan mereka dan m...
using System.Threading.Tasks; using BattleMech.WebAPI.PCL.Transports.CharacterProfile; using BattleMech.WebAPI.PCL.Transports.Common; using BattleMech.WebAPI.PCL.Transports.Internal; namespace BattleMech.WebAPI.PCL.Handlers { public class CharacterProfileHandler : BaseHandler { public CharacterProfileHan...
# Data com mês por extenso. Construa uma função que receba uma data # no formato DD/MM/AAAA e devolva uma string no formato D de mesPorExtenso de AAAA. # Opcionalmente, valide a data e retorne NULL caso a data seja inválida. require 'test/unit' require_relative 'date_format' class TestDateFormat < Test::Unit::Te...
DS.classes.Message = function(create){ var relations = []; //check check(create, { time: DS.classes.Time, data: Match.Optional(Object) }); //create _.extend(this, create); //add relations this.addRelation = function(relation, reversed){ check(relation, DS.cla...
{template '_header'} {template 'diypage/_common'} <div class="page-heading"> <span class='pull-right' style="padding: 15px 10px;"> <strong>左侧跟随</strong> <input class="js-switch small" id="phoneposition" type="checkbox" value="1" checked /> </span> <h2>{if !empty($menu)}编辑{else}新建{/if}自定义菜单 {if...
#!/usr/bin/ruby require 'sinatra' require 'sinatra/json' require 'json' settings.public_folder = "client" get '/' do send_file File.join( settings.public_folder, "client.html" ) end get '/api' do fp = "#{params['file_path']}/*" files = [] folders = [] Dir.glob(fp).select do |f| if (!File.direc...
from functools import reduce # constants used in the multGF2 function mask1 = mask2 = polyred = None def setGF2(degree, irPoly): """Define parameters of binary finite field GF(2^m)/g(x) - degree: extension degree of binary field - irPoly: coefficients of irreducible polynomial g(x) """ def i...
# -*- coding: utf8 -*- from __future__ import unicode_literals import unittest import os import sys from flake8.api import legacy as engine if sys.version_info[0] == 3: unicode = str if sys.version_info[:2] == (2, 6): # Monkeypatch to make tests work on 2.6 def assert_less(first, second, msg=None): ...
{% extends "base.html" %} {% block content %} <div class="row"> <div class="span12"> <div class="page-header"> <h2>File Not Found</h2> </div> <p>The file you are looking for cannot be found.</p> </div> </div> {% endblock %}
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>set_c...
package com.cezarykluczynski.stapi.etl.template.starship_class.dto; public class StarshipClassTemplateParameter { public static final String NAME = "name"; public static final String OWNER = "owner"; public static final String OPERATOR = "operator"; public static final String AFFILIATION = "affiliation"; public ...
'use strict'; import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; var products = []; function addProducts(quantity) { var startId = products.length; for (var i = 0; i < quantity; i++) { var id = startId + i; products.push({ id: id, name: "Item n...
--- layout: post title: 棋子翻转(美团) categories: C和C++基础 description: 编程基础。 keywords: C++,基础 --- #### 题目描述 在4x4的棋盘上摆满了黑白棋子,黑白两色的位置和数目随机,其中左上角坐标为(1,1),右下角坐标为(4,4),现在依次有一些翻转操作,要对一些给定支点坐标为中心的上下左右四个棋子的颜色进行翻转,请计算出翻转后的棋盘颜色。 给定两个数组A和f,分别为初始棋盘和翻转位置。其中翻转位置共有3个。请返回翻转后的棋盘。 测试样例: [[0,0,1,1],[1,0,1,0],[0,1,1,0],[0,0,1,0]],[[2,2],[...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>pi-calc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
//////////////////////////////////////////////////////////////////////////////////// ////// Events //////////////////////////////////////////////////////////////////////////////////// 'use strict'; // DI var db, responseHandler; /** * * @param req the HTTP requests, contains header and body parameters * @param re...
'use strict'; const path = require('path'); const request = require('supertest'); const pedding = require('pedding'); const assert = require('assert'); const sleep = require('ko-sleep'); const mm = require('..'); const fixtures = path.join(__dirname, 'fixtures'); const baseDir = path.join(fixtures, 'app-event'); desc...
/*! * Kaiseki * Copyright(c) 2012 BJ Basañes / Shiki (shikishiji@gmail.com) * MIT Licensed * * See the README.md file for documentation. */ var request = require('request'); var _ = require('underscore'); var Kaiseki = function(options) { if (!_.isObject(options)) { // Original signature this.appli...
# == Schema Information # # Table name: tags # # ID :integer not null, primary key # Name :string(100) # TagType :string(5) default("other"), not null # Uses :integer default(1), not null # class Tag < ActiveRecord::Base end
(function(app) { "use strict"; app.directive("ratingInput", [ "$rootScope", function($rootScope) { return { restrict: "A", link: function($scope, $element, $attrs) { $element.raty({ score: $attrs.cdRatingInput, ...
{ "status": { "error": false, "code": 200, "type": "success", "message": "Success" }, "pagination": { "before_cursor": null, "after_cursor": null, "previous_link": null, "next_link": null }, "data": [ { "id": 1111, ...
var gulp = require('gulp'); var connect = require('gulp-connect'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var opn = require('opn'); var config = { rootDir: '.', servingPort: 8080, servingDir: './dist', paths: { src: { scripts: './src/**/*.js', styles: './src/*...
<?php /** * VersionControl_HG * Simple OO implementation for Mercurial. * * PHP Version 5.4 * * @copyright 2014 Siad Ardroumli * @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://siad007.github.io/versioncontrol_hg */ namespace Siad007\VersionControl\HG\Command; /** * Simple OO ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hardware: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ceramist: 2 h 5 m 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel=...
use reversi::*; pub trait AI { fn consider(&mut self, board: &mut Board) -> Command; }
--- layout: post title: MongoDB Atlas tags: [NoSQL] categories: [MongoDB] image: background: triangular.png --- #### What is Mongo Atlas ? Mongo Atlas is the cloud hosted version of MongoDB. This is the software-as-a-service flavor of the NoSQL database. #### Why MongoDB Atlas ? Since this is the software as a ...
// Copyright (c) 2017-2019 Jae-jun Kang // See the file LICENSE for details. using System.Reflection; [assembly: AssemblyTitle("x2net.xpiler")] [assembly: AssemblyDescription("x2net.xpiler")]
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="utf-8"> <title>io.js 주간 뉴스 2015년 3월 27일 | Node.js 한국 커뮤니티</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="io.js 1.6.2 릴리스 이번 주에는 v1.6.2 릴리스가 있었습니다. GitHub에서 전체 변경사항을 볼 수 있습니...
import React from 'react' import {Observable} from 'rx' import {TextField} from 'material-ui' import ThemeManager from 'material-ui/lib/styles/theme-manager'; import MyRawTheme from '../components/Theme.js'; import ThemeDecorator from 'material-ui/lib/styles/theme-decorator'; import {compose} from 'recompose' import...
<!DOCTYPE HTML> <html lang="en"> <head> <title>Shower Presentation Engine</title> <meta charset="utf-8"> <meta name="viewport" content="width=792, user-scalable=no"> <meta http-equiv="x-ua-patible" content="ie=edge"> <link rel="stylesheet" href="shower/themes/ribbon/styles/screen.css"> <link rel="stylesheet" href...
<?php declare(strict_types=1); namespace Webuntis\Tests\Models; use PHPUnit\Framework\TestCase; use Webuntis\Models\Classes; /** * ClassesTest * @author Tobias Franek <tobias.franek@gmail.com> * @license MIT */ final class ClassesTest extends TestCase { public function testCreate() : void { $d...
### 定义 - 资源是整数 - 可以自动销毁
(function(ns) { /** * JSON CORS utility * Wraps up all the cors stuff into a simple post or get. Falls back to jsonp */ var JSONCORS = function() { var self = this; var supportsCORS = ('withCredentials' in new XMLHttpRequest()) || (typeof XDomainRequest != 'undefined'); /**********************************...
package fr.inria.jessy.transaction.termination.vote; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import fr.inria.jessy.ConstantPool; /** * * @author Masoud Saeida Ardekani * */ public class VotePiggyback implements Externalizable { privat...
{ //using constants const a = 2; console.log( a ); // 2 a = 3; // TypeError! } { //an array constant const a = [1,2,3]; a.push( 4 ); console.log( a ); // [1,2,3,4] a = 42; // TypeError! } //we can change the object using its methods, we just cannot reassign it...
import {ProviderSpecification} from 'dxref-core/system/provider/provider-specification'; import { module, test } from 'qunit'; module('Unit | dxref-core | system | provider | provider-specification'); test('provider-specification', function(assert) { var myFunc = function() {}; var providerSpec = new Provid...
version https://git-lfs.github.com/spec/v1 oid sha256:c1d57d1ad50c4639ecd398deb6c1db998e272cc6faf1314dec77ca509ca49153 size 1303
require "active_support/core_ext/date/calculations" require "active_support/core_ext/numeric/time" require "active_support/core_ext/object/try" require "google/api_client" require "google/api_client/client_secrets" require "ruboty" require "time" module Ruboty module Handlers class GoogleCalendar < Base DE...
package controller; import java.text.DecimalFormat; import util.Teclado; public class Ex_5 { public static void main(String[] args){ double salario; salario = Teclado.lerDouble("Digite o salário desejado: "); DecimalFormat df = new DecimalFormat("R$ ###, ###, ###.00"); System.out.println(df.format(salario));...
team1 = {"name" : "Iron Patriot", "key": "MURICA", "puzzles" : [{"idPz": 0}, // Breakfast {"idPz": 1}, // Blueprints, all {"idPz": 2}, // Morning Rotation # 1 // {"idPz": 14}, // Morning Rotation # 1 Item! (to alieviate routing issues slightly) {"idPz": 3}, // M...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
package com.asksunny.rpc.admin; import java.util.concurrent.ExecutorService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.asksunny.protocol.rpc.RPCAdminCommand; import com.asksunny.protocol.rpc.RPCAdminEnvelope; import com.asksunny.protocol.rpc.RPCEnvelope; import com.asksunny.rpc.mtserver.RPC...
import DBService, { BuilderSingle } from '../DBService' import Approval from '../../../models/extprod/Approval' import { Map } from '../../../utils/map' import { UndefinedError } from '../../../models/Error' interface FindAllOptions { userId?: string } export default class ApprovalService extends DBService<Approval...
<?php /* |-------------------------------------------------------------------------- | Oculus XMS |-------------------------------------------------------------------------- | | This file is part of the Oculus XMS Framework package. | | (c) Vince Kronlein <vince@ocx.io> | | For the full copyright and license inf...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateRestaurantCusineTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('restaurant_cuisine', function (Blueprint $tab...
import Off from './Off'; import On from './On'; // ============================== // CONCRETE CONTEXT // ============================== export default class Computer { constructor() { this._currentState = null; this._states = { off: new Off(), on: new On() }; } ...
// Copyright (c) Eugene Berdnikov. See License.txt in the project root for license information. using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace Recaptcha.Web.Tests.Compatibility { #pragma warning disable 618 [TestClass] public class EnumTests { [TestMethod] [Te...
/* * Functions used to build the ast */ #pragma once #include "structures.h" /* TreeNode, NodeList and such*/ #include <stdio.h> /*printfs*/ #include <stdlib.h> /*mallocs et all*/ #include <string.h> /*strcmp*/ TreeNode* InitTreeNode(enum NodeType type); NodeList* InitNodeList(TreeNode* node); TreeNode* InsertTermin...
module UkAddressParser VERSION = "0.2.0" end
module SpecHelpers def setup_site site = create('test site') writers = build(:content_type, site: site, name: "Writers", _user: true) writers.entries_custom_fields.build(label: "Email", type: "email") writers.entries_custom_fields.build(label: "First Name", type: "string", required: false) writer...
var dir_f4703b3db1bd5f8d2d3fca771c570947 = [ [ "led.c", "led_8c.html", "led_8c" ], [ "tick.c", "tick_8c.html", "tick_8c" ], [ "usart2.c", "usart2_8c.html", "usart2_8c" ] ];
<!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]--> <head> <!-- Basic...
using System; using System.Text.RegularExpressions; using System.CodeDom.Compiler; using System.IO; using System.Reflection; namespace Backend { /// <summary> /// Operation compiler. /// </summary> public static class OperationCompiler { /// <summary> /// Compiles a mathematical operation given by a string a...
module Kissable VERSION = "1.0.1" end
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("circle", { cx: "7.2", cy: "14.4", r: "3.2" }), h("circle", { cx: "14.8", cy: "18", r: "2" }), h("circle", { cx: "15.2", cy: "8.8", r: "4.8" })), 'BubbleChart');
import UtilMath = require('./UtilMath'); import Timer = require('./Timer'); import Browser = require('./Browser'); import BaserElement = require('./BaserElement'); import AlignedBoxes = require('./AlignedBoxes'); import BackgroundContainer = require('./BackgroundContainer'); import Checkbox = require('./Checkbox'); imp...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
var Nightmare = require('nightmare') var NTU = require('./NightmareTestUtils') const NounPhraseTest = (nightmare, delay) => { return nightmare // Can I open the addedit form and make it go away by clicking cancel? .click('#add-np').wait(delay) .click('#np-addedit-form #cancel').wait...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../image/favicon....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
<?php namespace Soga\NominaBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="trasladoeps") * @ORM\Entity(repositoryClass="Soga\NominaBundle\Repository\TrasladoEpsRepository") */ class TrasladoEps { /** * @ORM\Id * @ORM\Column(name="id", type="integer") */ private $id; ...
<!doctype html> <html> <head> <title>400</title> <link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon"/> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta name="format-detection" content="...
import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js'; import { AddObjectCommand } from './commands/AddObjectCommand.js'; import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js'; import { MultiCmdsCommand } from './commands/MultiCmdsCommand.js'; import { SetMaterialValueCommand } from './comm...
using System.Collections.Generic; using System.Threading; using LanguageExt; namespace SJP.Schematic.Core { public interface IDatabaseViewProvider { OptionAsync<IDatabaseView> GetView(Identifier viewName, CancellationToken cancellationToken = default); IAsyncEnumerable<IDatabaseView> GetAllVi...
import React from 'react'; class Icon extends React.Component { constructor(props) { super(props); this.displayName = 'Icon'; this.icon = "fa " + this.props.icon + " " + this.props.size; } render() { return ( <i className={this.icon}></i> ); } } export defa...
module.exports={A:{A:{"2":"L H G E A B jB"},B:{"1":"8","2":"C D e K I N J"},C:{"1":"DB EB O GB HB","2":"0 1 2 3 4 5 7 9 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q r s t u v w x y z JB IB CB aB ZB"},D:{"1":"8 HB TB PB NB mB OB LB QB RB","2":"0 1 2 3 4 5 7 9 F L H G E A B C D ...
import './init' import React from 'react' import ReactDom from 'react-dom' import Root from './root' import {APP_THEMES_LIGHT, APP_THEMES_DARK} from 'reducers/settings/constants' import LocalStorage from 'lib/localStorage' import {initializeStore} from './redux/store' import {initServiceWorker} from './swWindow' // ren...
import pyak import yikbot import time # Latitude and Longitude of location where bot should be localized yLocation = pyak.Location("42.270340", "-83.742224") yb = yikbot.YikBot("yikBot", yLocation) print "DEBUG: Registered yikBot with handle %s and id %s" % (yb.handle, yb.id) print "DEBUG: Going to sleep, new yakker...
A CMSViewDescription is a data structure to describe what information any CMSEmbeddedComponent shall contain and how it is supposed to be built. Instance Variables buttons: <OrderedCollection> generalStructure: <OrderedCollection> header: <String> tables: <OrderedCollection > traceDescription: <OrderedCollec...
/** * @author Kai Salmen / www.kaisalmen.de */ 'use strict'; if ( KSX.test.projectionspace === undefined ) KSX.test.projectionspace = {}; KSX.test.projectionspace.VerifyPP = (function () { PPCheck.prototype = Object.create(KSX.core.ThreeJsApp.prototype, { constructor: { configurable: true,...
# The Aya Programming Language ![Running Aya from the command line.](images/aya-demo.png) ## Features - Terse, yet readable syntax - Standard library written in aya code - Key-value pair dictionaries and objects - Number types: double, arbitrary precision float, rational, and complex - Basic supp...
# Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :address do name "" city "" postal_number "00970" country "" street "Aarteenetsijänkuja 8D 24" phone_number "+358445655606" description "" end end
package com.avocarrot.adapters.sample.admob; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.text.TextUtils; import android.view.V...
google-site-verification: google11bac26bd88984eb.html
--- layout: post title: "A Python Watchdog with Threaded Queuing" date: 2017-09-06 categories: [python] --- So here's something cool I made this afternoon at work. Currently I am building an ETL pipeline that ingests some god-awful proprietary software data format type, decodes it into something useful, performs a ...
# frozen_string_literal: true require 'expectacle/version' require 'expectacle/thrower' # Expectable: simple pry/expect wrapper. module Expectacle; end
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2012-2013 Esteban Tovagliari, Jupiter Jazz Limited // Copyright (c) 2014-2018 Esteban Tovagliari, The appleseedhq Organizat...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2014-2019 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <wallet/db.h> #...
<?php /** * @link http://zoopcommerce.github.io/shard * @package Zoop * @license MIT */ namespace Zoop\Shard\Serializer\Reference; use Zend\ServiceManager\ServiceLocatorAwareInterface; use Zend\ServiceManager\ServiceLocatorAwareTrait; /** * * @since 1.0 * @author Tim Roediger <superdweebie@gmail...
package com.piggymetrics.user.domain; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.NamedQuery; @Entity @NamedQuery(name = "User.findByName", query = "select name,address from User u where u.name=?1") pu...
import test from 'ava' import Vue from 'vue' import {createRenderer} from 'vue-server-renderer' import ContentPlaceholder from '../src' test.cb('ssr', t => { const rows = [{height: '5px', boxes: [[0, '40px']]}] const renderer = createRenderer() const app = new Vue({ template: '<content-placeholder :rows="row...
## About Autoloads JS files based on name when the class is needed. This is designed to be used with Joose classes in the "Foo.Bar.Baz" format This module removes the needs of using require() all over your files. Simply define the autoloader to your codebase, and use the names relative to the files. ie lib/Foo/Bar/Ba...
App::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server...
package com.hkm.urbansdk.gson; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import java....
{% extends "empty_layout.html" %} {% block title %}{{ _('Edit voting variant') }} :: {% endblock %} {% block body %} <h1>{{ _('Voting variant editor') }}</h1> <ol class="breadcrumb"> <li><a href="{{ url_for('voting.voting_list') }}">{{ _('Votings') }}</a></li> <li><a href="{{ url_for('voting.voting_page', votin...
package net.h31ix.travelpad.api; import net.h31ix.travelpad.LangManager; import org.bukkit.Location; import org.bukkit.entity.Player; /** * <p> * Defines a new Unnamed TravelPad on the map, this is only used before a pad is named by the player. */ public class UnnamedPad { private Location location = nul...
package jelly.exception.level; public class LevelNotFound extends Exception { }
import { dealsService } from '../services'; const fetchDealsData = () => { return dealsService().getDeals() .then(res => { return res.data }) // Returning [] as a placeholder now so it does not error out when this service // fails. We should be handling this in our DISPATCH_REQUEST_FAILURE ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Quicken.Core.Index.Enumerations { public enum TargetType { File = 0, Desktop = 1, Metro = 2 } }
-- Faster lookup for built-in globals. local find = string.find local fmt = string.format local cut = string.sub local error = error -- The heart of the matter. local function spliter(str, delimiter) -- Handle special cases concerning the delimiter parameter. -- If the pattern is nil, split on contiguous whitespac...
<!DOCTYPE html> <html> <meta charset="utf-8"> <head> <title>🐾 Teach Brian How to Code</title> <link rel="stylesheet" href="stylesheets/blog-stylesheet.css" type="text/css"> </head> <body> <div class="sub-div"> <p><a href="../index.html">Back to Home</a></p> </div> <main> <h6>Create jQuery Libra...
# generator-hapi-mysql-routes
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Peach.Transformers.compress</title> <link rel="stylesheet" href="epydoc.css" type="text/css...