code
stringlengths
4
1.01M
<?php namespace Symfasize\Bundle\ConfigurationBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolv...
# react-share [![npm version](https://badge.fury.io/js/react-share.svg)](https://badge.fury.io/js/react-share) [![Download Count](http://img.shields.io/npm/dm/react-share.svg?style=flat-square)](https://npmjs.org/package/react-share) > Easy social media share buttons and share counts. <img src="example.png" alt="Sha...
#define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "utils/VerticalLinearizer2D.hpp" #include <cstdlib> void verticalLinearizer2D_test_array(const std::size_t width, const std::size_t height) { VerticalLinearizer2D linearizer (width, height, -10, -20); std::size_t linearized = 0; for(int y...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Npgsql; namespace YuGiOh.Common.Interfaces { public interface IBackupsRepositoryConfiguration { NpgsqlConnection GetBackupsDbConnection(); } }
#include <seqan/sequence.h> #include <seqan/index.h> using namespace seqan; int main() { String<Dna5> genome = "TTATTAAGCGTATAGCCCTATAAATATAA"; Index<String<Dna5>, IndexEsa<> > esaIndex(genome); Finder<Index<String<Dna5>, IndexEsa<> > > esaFinder(esaIndex); while(find(esaFinder, "TATAA")){ std...
#content { position: relative; left: 50%; transform: translateX(-50%); padding: 9.5px; border-radius: 4px; width: 70%; } fieldset { margin: 0 auto; font-family: sans-serif; background: #fff; border-radius: 5px; padding: 15px; margin-bottom: 20px; box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 ...
<section> <?php echo getClientPage(10); ?> </section>
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; import { jqxCheckBoxComponent } from 'components/angular_jqxcheckbox'; @NgModule({ imports: [BrowserModule, Fo...
import AnswerRating from './answerRating'; import FeedBackResults from './feedbackResults'; import './less/feedback.less'; // Check if bar rating should be initialized const ratingWrapper = document.querySelector('.rating-wrapper'); if (ratingWrapper !== null) { AnswerRating(); } // Check if feed back results char...
![Ameisen general](https://raw.githubusercontent.com/Gummibeer/igjam10/master/src/img/logo.png) **Issues:** https://trello.com/b/VfMhU57V/ig10 **Game:** http://ct.gummibeer.de/ ## Installation ``` npm install npm start ```
#ifdef __cplusplus extern "C" { #endif typedef struct mData { int chan; int note; int vel; } mData; extern void __stdcall mPlay(void *); extern void __stdcall mStop(); extern void __stdcall mGetData(mData *,int,int); //first int is a channel number, second int is 'fake velocity' fadeout (from max to ...
{# copyright and footer links #}
from __future__ import print_function import sys sys.path.append('..') # help python find cyton.py relative to scripts folder from openbci import cyton as bci import logging import time def printData(sample): # os.system('clear') print("----------------") print("%f" % (sample.id)) print(sample.chann...
package com.tazine.container.collection.set.cases.stud; import java.util.HashSet; import java.util.Iterator; import java.util.Set; /** * @author frank * @since 1.0.0 */ public class Client { public static void main(String[] args) { Set<Student> set = new HashSet<>(); Student s1 = new Student...
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. #region Using Statements using System; using WaveEngine.Common.Math; using WaveEngine.Framework; using WaveEngine.Framework.Graphics; #endregion namespace WaveEngine.Components.GameActions { /// <summary> /// Game acti...
function initialize(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), exec: { build: { command: 'make build' }, // 'build-types': { command: 'make build-types' }, 'build-style': { command: 'make build-style' }, ...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="ApiGen 2.8.0" /> <meta name="robots" content="noindex" /> <title>File vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php | seip</title> <script type="text/javascript...
__author__ = 'mengpeng' import os from unittest import TestCase from pycrawler.scraper import DefaultScraper from pycrawler.handler import Handler from pycrawler.utils.tools import gethash from test_scraper import SpiderTest class TestTempHandler(TestCase): def test_setargs(self): h = Handler.get('TempHan...
<?php namespace Fbf\LaravelSimpleFaqs; use Eloquent; class Faq extends Eloquent { const DRAFT = 'DRAFT'; const APPROVED = 'APPROVED'; protected $table = 'fbf_laravel_simple_faqs'; public static $sluggable = array( 'build_from' => 'question', 'save_to' => 'slug', 'unique' => true, ); }
#ifndef __ACTOR_H__ #define __ACTOR_H__ /* // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // -- // -- File Name: FOUR.Actor.h // -- // -- Author(s): Paul Nispel // -- // -- Creation Date: 4/17/2013 // -- /...
--- title: Criando uma linguagem de programação com o ANTLR4 layout: post date: '2017-10-08 16:00:00' disqus: 'true' categories: compilers --- Neste artigo, vamos aprender como criar uma linguagem de programação simples com o **ANTLR4**, que é uma ferramenta em que você define uma gramática, e por meio do resultado de...
--- layout: default date: 2016-12-04T12:06:24+08:00 categories: api title: API documentation permalink: /api --- <a href="/cn/api" class="ui labeled icon mini button"><i class="hand point right icon"></i>中文</a> ## Template functions ### Common functions <div class="ui styled accordion" style="width: 100%"> <!-- ...
const should = require('should'); const MissionLog = require('../lib/log').MissionLog; const Severity = require('../lib/Severity'); describe('MissionLog', function () { it('should test the properties', function () { const Log = new MissionLog(); Log.should.have.property('severities').with.lengthOf(...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Rych Data, Elizabeth's Experiments in Data Science"> <title>python tag // Rych Data // Elizabeth's Experiments in Data Science</ti...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Matrix</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script...
# DAG.Project
#include "include/global.h" #include "alinous.lock/ConcurrentGate.h" #include "alinous.db.table.lockmonitor/IDatabaseLock.h" #include "alinous.db.table.lockmonitor/RowLock.h" #include "alinous.db.table.lockmonitor/IThreadLocker.h" #include "alinous.db.table/IDatabaseTable.h" #include "alinous.db.table.lockmonitor.db/...
<!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <title>Sling Mega Menu</title> <link rel="stylesheet" href="styles/adobe.megamenu/pygment.css"> <link rel="stylesheet" href="styles/adobe.megamenu/megamenu.css"> <meta name="viewport" content="width=device-width,...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2013 The paccoin developer // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "base58.h" #include "paccoinrpc.h" #i...
#OroApiBundle
<?php class PostsController extends AppController { var $name = 'Posts'; var $uses = array('Post', 'User', 'Answer', 'History', 'Setting', 'Tag', 'PostTag', 'Vote', 'Widget'); var $components = array('Auth', 'Session', 'Markdownify', 'Markdown', 'Cookie', 'Email', 'Recaptcha', 'Htmlfilter'); var $helpers = a...
package game; import game.ItemWindow.ItemOption; import java.util.ArrayList; import org.unbiquitous.uImpala.engine.asset.AssetManager; import org.unbiquitous.uImpala.engine.asset.Text; import org.unbiquitous.uImpala.engine.core.GameRenderers; import org.unbiquitous.uImpala.engine.io.MouseSource; import org...
<!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...
import datetime def suffix(d): return 'th' if 11<=d<=13 else {1:'st',2:'nd',3:'rd'}.get(d%10, 'th') def custom_strftime(format, t): return t.strftime(format).replace('{S}', str(t.day) + suffix(t.day)) print "Welcome to GenerateUpdateLines, the nation's favourite automatic update line generator." start = in...
--- layout: post title: "一些有用的游戏资源破解工具" date: 2017-05-10 14:28:00 +0800 categories: "resources" tag: ["game tools"] --- * content {:toc} ##### 二、编程开发资源: - 1.一个很好的开发者pdf书籍网站:http://www.finelybook.com ##### 二、资源学习网站: - 1.voxel地形学习网站 https://garvinized.com/ - 2.Tom Looman http://www.tomlooman.com/blog/ - 3.织梦网(CG)...
const { getURL, sockets } = require('../common/configuration.js'); const io = require('socket.io-client'); const os = require('os'); const socket = io.connect(getURL(sockets.measures), { query: `id=${os.hostname()}&cores=${os.cpus().length}` }); setInterval(() => { socket.emit('new.load', { load: os.loadavg(), ...
## Primo Central ### Known Facets * creator * lcc * Library of Congress Classification (https://www.loc.gov/catdir/cpso/lcco) * lang * ISO 639-2/B language codes * rtype * books * reviews * articles * journals * other * text_resources * websites * newspaper_articles * reference_entrys * techni...
require "scss_shorthand/version" require "scss_shorthand/railtie"
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Test Focus and Aria | Fancytree</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></scr...
/* * Copyright (c) 2014 Jose Carlos Lama. www.typedom.org * * 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, modi...
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { IGuest } from '../../core'; @Component({ selector: 'wd-guest-form', styles: [require('./guest-form.css').toString()], template: require('./guest-form.html') }) export class GuestFormComponent { @Input() title: string; @Input() ...
#!/usr/bin/python import praw import re import os import pickle from array import * import random #REPLY = "I want all the bacon and eggs you have." REPLY = array('i',["I want all the bacon and eggs you have", "I know what I'm about son", "I'm not interested in caring about people", "Is this not rap?"]) if not os.pat...
// Copyright (C) 2000 Per M.A. Bothner. // This is free software; for terms and warranty disclaimer see ../../COPYING. package kawa.standard; import gnu.expr.*; import gnu.lists.*; import gnu.mapping.*; import gnu.kawa.io.InPort; import gnu.kawa.lispexpr.*; import kawa.lang.*; import java.io.File; public class defin...
<?php /** * This file has been @generated by a phing task from CLDR version 31.0.1. * See [README.md](README.md#generating-data) for more information. * * @internal Please do not require this file directly. * It may change location/format between versions * * Do not modify this file directly! */ return array (...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
import React from 'react' import { mount, shallow, render } from 'enzyme' import { Stepper } from './Stepper' import Step from './Stepper.Step' import { StepUI, StepperUI } from './Stepper.css' const mockSteps = [ { id: 'Id1', title: 'Test Title 1', }, { id: 'Id2', title: 'Test Title 2', }, {...
module.exports = middleware; var states = { STANDBY: 0, BUSY: 1 }; function middleware(options) { var regio = require('regio'), tessel = require('tessel'), camera = require('camera-vc0706').use(tessel.port[options.port]), app = regio.router(), hwReady = false, current; camera.on...
package api import ( "errors" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Error", func() { Context("Marshalling", func() { It("will be marshalled correctly with a wrapped error", func() { apiErr := WrapErr(errors.New("boom!"), 500) result := []byte(apiErr.HTTPBody()) expe...
# Training * Make sure you've created datasets like [here](https://github.com/TengdaHan/Convolutional_Sketch_Inversion/tree/master/src/data), and load them correctly in [train.py](https://github.com/TengdaHan/Convolutional_Sketch_Inversion/blob/master/src/train.py) * Run in terminal: `python train.py`
import { gql } from '@apollo/client' import fullBlockShareFragment from 'v2/components/FullBlock/components/FullBlockShare/fragments/fullBlockShare' export default gql` fragment FullBlockActions on Konnectable { __typename ... on Image { find_original_url downloadable_image: resized_image_url(do...
#WP Preview ![wp preview](https://raw.githubusercontent.com/stephengreer08/wp-preview/master/screenshot.png) WP Preview is a simple WordPress theme that allows you to stage flat website designs in a browser for demoing purposes. Demo: [WP Preview](http://wppreview.stephengreer.me/) Created by: [Stephen Greer](https:...
--- layout: post title: poj-2549 Sumsets categories: pro-sol excerpt: "" tag: [poj, ] --- ## 傳送門: #### [Sumsets](http://poj.org/problem?id=2549) ## code: {% highlight cpp linenos %} typedef vector<pair<int, pii> >::iterator Iter; inline bool operator!= (const pii &x, const pii &y){ return (x.X != y.X && x.X != ...
/* ** FFI C call handling. ** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_str.h" #include "lj_tab.h" #include "lj_ctype.h" #include "lj_cconv.h" #include "lj_cdata.h" #include "lj_ccall.h"...
'use strict'; var ObjectUtil, self; module.exports = ObjectUtil = function () { self = this; }; /** * @method promiseWhile * @reference http://blog.victorquinn.com/javascript-promise-while-loop */ ObjectUtil.prototype.promiseWhile = function () { };
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Threading.Tasks; using System.Collections.Generic; using System.Linq; using Azure.Analytics.Synapse.Spark; using Azure.Analytics.Synapse.Spark.Models; using Azure.Analytics.Synapse.Tests; using Az...
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by Text.rc // #define IDS_STRING1 1 #define IDS_STRING2 2 #define IDS_STRING3 3 #define IDS_STRING4 4 #define IDS_STRING5 5 #define IDS_...
// // OCLogService.h // OCLogService // // Created by Dmitry Fantastik on 11/16/13. // Copyright (c) 2013 fantastik. All rights reserved. // #import <OCLogService/OCLogServiceConfigurator.h> #import <OCLogService/OCLogObject.h> #import <OCLogService/OCLogNestedObject.h> #import <OCLogService/OCApiBatchObject.h> #i...
html { overflow-y: scroll; } @font-face { font-family: typekeys; src: url("Type Keys Filled.ttf") } @font-face { font-family: street; src: url(Streetvertising.ttf); } body { margin: 0; } .page { font-family: "georgia"; letter-spacing: .2px; background-color: #FFFFFF; ...
var assert = require('chai').assert; var Pad = require('../lib/pad'); describe('Pad', function() { it('should be an object', function() { var pad = new Pad(); assert.isObject(pad); }); it('should have a x coordinate of 310 by default', function() { var terminator = new Pad(); assert.equal(termin...
<?php class Db{ //member variables private static $_con = null, $_driver = "sqlsrv", $_host = "localhost", $_user = "arsan", $_pass = "a1254n", $_db = "APDPLN", $_error = false; //established connection to the database private func...
--- layout: page title: Tucker Family Reunion date: 2016-05-24 author: Larry Alvarez tags: weekly links, java status: published summary: Nulla posuere urna vitae erat porta suscipit. Vivamus ac lorem. banner: images/banner/leisure-05.jpg booking: startDate: 10/24/2018 endDate: 10/29/2018 ctyhocn: MOBDTHX groupC...
using PoppertechCalculator.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PoppertechCalculator.Processors { public class ForecastGraphCalculations : IForecastGraphCalculations { private const decimal _leftTail = 10; private const decimal ...
module Conratewebshop class ProductsController < ApplicationController helper Btemplater::ApplicationHelper helper Btemplater::IndexHelper helper Btemplater::ShowHelper helper Btemplater::NewHelper helper Btemplater::EditHelper include Btemplater::Tools def show @obj = Conratewebsho...
<title> UTCS CAD Home page </title> <h1> CAD For VLSI Research Group </h1> <h2>Address</h2> Department of Computer Sciences, TAY 2.124, <br> The University of Texas at Austin, <br> Austin, TX 78712-1188 <br> <h2> People </h2> This group is supervised by <a href="http://www.cs.utexas.edu/users/cad/wong.html">Prof....
USE [VotingInfo] DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Auth'; ------------------------------------------------------------------- -- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE ------------------------------------------------------------------- IF DB_NAME() IN ('master', 'msdb', 'model', 'distributi...
package space.harbour.l111.ehcache; import net.sf.ehcache.Cache; import net.sf.ehcache.CacheManager; import net.sf.ehcache.config.CacheConfiguration; import net.sf.ehcache.store.MemoryStoreEvictionPolicy; /** * Created by tully. */ public class EhcacheHelper { static final int MAX_ENTRIES = 10; static final...
#pragma once #include "StockTypeMacro.h" #include "BigNumber/BigNumberAPI.h" #include <vector> #include <memory> #include "IntDateTime/IntDateTimeAPI.h" enum FilterType { FILTER_INIT, ALL_STOCK, RISE_UP, FALL_DOWN, }; enum StrategyType { STRATEGY_INIT, SAR_RISE_BACK_COUNT, SAR_RISE...
# tullaRange An addon for World of Warcraft that makes buttons appear red when out of range
#include "Image.h" // to avoid compiler confusion, python.hpp must be include before Halide headers #include <boost/format.hpp> #include <boost/python.hpp> #define USE_NUMPY #ifdef USE_NUMPY #ifdef USE_BOOST_NUMPY #include <boost/numpy.hpp> #else // we use Halide::numpy #include "../numpy/numpy.hpp" #endif #endif /...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>ROKOS • Bitcoin Full node OS Distros • Downloads for Raspberry Pi, Pine64+, Banana Pro, Odroid and IoT Devices</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content="ROKOS is an OK Bitcoin F...
version https://git-lfs.github.com/spec/v1 oid sha256:fd2ad8a08df37f7b13dad35da22197faf51ef6887162bf5f74ce30df59fdba0f size 15638
module Kakin class Configuration def self.tenant @@_tenant end def self.setup config = { 'auth_url' => ENV['OS_AUTH_URL'], 'tenant' => ENV['OS_TENANT_NAME'] || ENV['OS_PROJECT_NAME'], 'username' => ENV['OS_USERNAME'], 'pas...
// client.express.js JavaScript Routing, version: 0.3.4 // (c) 2011 Mark Nijhof // // Released under MIT license. // ClientExpress={};ClientExpress.createServer=function(){return new ClientExpress.Server};ClientExpress.supported=function(){return typeof window.history.pushState=="function"};ClientExpress.logger=functi...
<div ng-controller="Umbraco.Editors.Content.CopyController"> <div class="umb-dialog-body form-horizontal" ng-cloak> <div class="umb-pane"> <div ng-show="error"> <div class="alert alert-error"> <div><strong>{{error.errorMsg}}</strong></div> ...
const R = require('ramda'); const {thread} = require('davis-shared').fp; const DataLoader = require('dataloader'); const Task = require('data.task'); const Async = require('control.async')(Task); const when = require('when'); const task2Promise = Async.toPromise(when.promise); module.exports = (entityRepository, entit...
// // SimpleAuthGooglePlusLoginViewController.h // SimpleAuth // // Created by Martin Pilch on 16/5/15. // Copyright (c) 2015 Martin Pilch, All rights reserved. // #import "SimpleAuthWebViewController.h" @interface SimpleAuthGooglePlusLoginViewController : SimpleAuthWebViewController @end
<?php if(isset($_GET['pemail'])) { $pemail=$_GET['pemail']; } else { $pemail = ''; } //echo $pemail; //exit; ?> <!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="...
'use strict'; var spawn = require('child_process').spawn; var font2svg = require('../'); var fs = require('graceful-fs'); var noop = require('nop'); var rimraf = require('rimraf'); var test = require('tape'); var xml2js = require('xml2js'); var parseXML = xml2js.parseString; var fontPath = 'test/SourceHanSansJP-Nor...
<?php /** * This file is part of Terminalor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Terminalor core application class responsible for managing user defined * commands. * * @package Terminalor * @subpackage Applicati...
# frozen_string_literal: true module RuboCop module Cop module Metrics # This cop checks for methods with too many parameters. # The maximum number of parameters is configurable. # On Ruby 2.0+ keyword arguments can optionally # be excluded from the total count. class ParameterLists...
import { propValues, isConstructor, initializeProps, parseAttributeValue, ICustomElement, ConstructableComponent, FunctionComponent, PropsDefinition, } from "./utils"; let currentElement: HTMLElement & ICustomElement; export function getCurrentElement() { return currentElement; } export function noS...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Rawrecords3 = mongoose.model('Rawrecords3'), agent = request.agent(app); /** * Globals */ var credentials, user, rawrecords3; /** * Rawr...
/* Encoder Library, for measuring quadrature encoded signals * http://www.pjrc.com/teensy/td_libs_Encoder.html * Copyright (c) 2011,2013 PJRC.COM, LLC - Paul Stoffregen <paul@pjrc.com> * * Version 1.2 - fix -2 bug in C-only code * Version 1.1 - expand to support boards with up to 60 interrupts * Version 1.0 - ini...
namespace SharpCompress.Compressor.LZMA { using System; using System.Collections.Generic; using System.Reflection; using System.Text; internal class BitVector { private uint[] mBits; private int mLength; public BitVector(List<bool> bits) : this(bits.Count) { ...
version https://git-lfs.github.com/spec/v1 oid sha256:b63ef97b9f85b0d4a07926b186083c9952568e26bbb65d610b592d15208f79a9 size 24953
package proxy import ( "bytes" "net/http" ) type Response interface { Status() int Header() http.Header Body() []byte } type WriterRecorder struct { http.ResponseWriter status int body bytes.Buffer } func (w *WriterRecorder) WriteHeader(status int) { w.ResponseWriter.WriteHeader(status) w.status = statu...
/* UnaryOperator Copyright (C) 1998-2002 Jochen Hoenicke. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This prog...
--- layout: page-fullwidth show_meta: true title: "FOSI GRID" meta_title: "Chris Henrick featured work: FOSI GRID" teaser: "Map navigation UI for the new Family Online Safety Institute website." date: "2016-03-28" tags: - web cartography category: - work header: no permalink: "/work/fosi-grid.html" --- <strong>Pr...
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Security...
using System; using Computers.Common.Contracts; namespace Computers.Common.Models.Components { public abstract class Cpu : MotherboardComponent, ICpu { private const int MinValue = 0; private const string NumberTooLow = "Number too low."; private const string NumberTooHigh = "Number t...
/* globals Promise:true */ var _ = require('lodash') var EventEmitter = require('events').EventEmitter var inherits = require('util').inherits var LRU = require('lru-cache') var Promise = require('bluebird') var Snapshot = require('./snapshot') var errors = require('../errors') var util = require('../util') /** * @...
<!DOCTYPE html> <html lang="en-gb" dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>选项卡 - UIkit 中文文档</title> <meta name="description" content="UIkit提供了不同样式的选项卡导航,可以轻松创建水平排列,垂直排列的各式选项卡导航。"> <meta name="author...
#-- # Copyright (c) 2017 Michael Berkovich, theiceberk@gmail.com # # __ __ ____ _ _ _____ ____ _ ______ ___ ____ # | |__| || || | | | | || || | | | / _]| \ # | | | | | | | | | | | __| | | | | | | / [_ | D ) # | | | | | | | |_...
import { Cache } from '../cache/cache'; import { BoundedCache } from '../cache/bounded'; import { KeyType } from '../cache/key-type'; import { BoundlessCache } from '../cache/boundless'; import { Weigher } from '../cache/weigher'; import { DefaultLoadingCache } from '../cache/loading'; import { ExpirationCache } from '...
using Microsoft.Azure.AppService.ApiApps.Service; using System.Collections.Generic; using System.IO; namespace FileWatcher.Models { // A simple in-memory trigger store. public class InMemoryTriggerStore { private static InMemoryTriggerStore instance; private IDictionary<string,...
#ifndef _LINUX_AUXVEC_H #define _LINUX_AUXVEC_H //lux 辅助信息常量定义,在加载可执行文件时用到,see binfmt_elf.c #include <asm/auxvec.h> /* Symbolic values for the entries in the auxiliary table put on the initial stack */ #define AT_NULL 0 /* end of vector */ #define AT_IGNORE 1 /* entry should be ignored */ #define AT_EXECFD 2 /* f...
<?php namespace Application\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\Id; use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\OneToMany; use Doctrine\ORM\Mapping\ManyToOne; /** * Person entity. ...
# Dev shit if ENV["BAK_SHELL_DEV_SHIT"] == "devshit" require "awesome_print" rescue nil end # Standard lib shit require "fileutils" # Require gems shit require "gli" require "rainbow/ext/string" module BakShell BACKUP_DIR = File.expand_path(File.join(ENV["HOME"], "bak")) end require_relative "./bak-shell/versio...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, css } from 'aphrodite'; import { changeTimeSignature } from '../../actions/track'; import HoverableText from './HoverableText'; const styles = StyleSheet.create({ text: { fontFamily: 'Optima, Segoe, Segoe UI, C...
<?php /** * To rebuild the `snapshots` directory after changing * files in `source`, run `php tests/rebuild.php`. */ shell_exec('./jigsaw build testing'); removeDirectory('tests/snapshots'); rename('tests/build-testing', 'tests/snapshots'); function removeDirectory($path) { if (! $path) { exit("Path to...