code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
Design and Layout ================= Design ------ This system consists of a few things: * `nginx` runs on 443 and 80, and has a lot of server blocks to listen as * `moxxi` - a custom written binary - listens on 8080 and generates configs with given input from each request - putting all those configs in one directory...
JackKnifed/moxxi
design.md
Markdown
mit
5,062
// bundles everything except TS files which will be built by rollup. // webpack stuff var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var failPlugin = require('webpack-fail-plugin'); var helpers = require('./helpe...
samdevx1029/angular-ts-webpack-ngc-rollup
config/webpack.dev.js
JavaScript
mit
2,491
<?php use yii\db\Schema; use yii\platform\geo\models\Locations; class m130524_200441_locations extends \yii\db\Migration { public function up() { $tableOptions = null; if ($this->db->driverName === 'mysql') { $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB...
Filsh/yii2-platform
console/migrations/m130524_200441_locations.php
PHP
mit
1,146
-- randexpr1.test -- -- db eval {SELECT coalesce((select c from t1 where t1.b between t1.b and -17),coalesce((select -t1.e from t1 where (select count(distinct coalesce((select case t1.b-t1.a*(b)*13 when 11 then (a) else 11 end from t1 where a not in ((t1.e),c,11) and e>b),13)) from t1) in (t1.d,b,13) and not t1.b<1...
bkiers/sqlite-parser
src/test/resources/randexpr1.test_2094.sql
SQL
mit
1,522
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="Asciidoctor 1.5.4"> <title>gitweb.conf(5)</title> <link rel="stylesheet" hre...
alinlupu/visualize-git
docs/git-doc/gitweb.conf.html
HTML
mit
80,506
<?php namespace Acme\TwigBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.c...
gabrielnotong/noonka
src/Acme/TwigBundle/DependencyInjection/Configuration.php
PHP
mit
873
<!DOCTYPE html> <html> <head> <title>牛妞和痲痲的宫斗... | MoMoKo.in | 丸子家.在内</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="http://MOMOKO.in/theme/css/bootstrap.min.css" type="text/css" /> ...
momokowan/momokowan.github.io
niuniu/say-nn2564.html
HTML
mit
6,916
import { css, ThemedStyledProps } from 'styled-components'; import { ripple } from '../../utils/animations'; import { Theme } from '../../themes/default'; import { StyleProps } from './default'; export const style = ({ theme, main, }: ThemedStyledProps<StyleProps, Theme>) => css` display: flex; flex: 0 0 1; ...
gaearon/redux-devtools
packages/devui/src/Tabs/styles/material.ts
TypeScript
mit
1,407
<div class="wrapper-container"> <div class="navbar-container zoom-in"> <a class="title" href="/">Video feed</a> </div> <main class="content-container"> <video-section ng-repeat="videoItem in $ctrl.videoList track by $index" video-item="videoItem"> </video-section> </...
AndriyBilyak/video-feed
src/app/app.component.html
HTML
mit
333
<?php use Mockery as m; use Permit\Support\Laravel\CurrentUser\GuardContainer; use Permit\User\GenericUser; use PHPUnit\Framework\TestCase; class GuardContainerTest extends TestCase { public function testImplementsInterfaces() { $container = $this->newContainer(); $this->assertInstanceOf( ...
mtils/permit
tests/unit/Support/Laravel/CurrentUser/GuardContainerTest.php
PHP
mit
2,897
module Ubidots module Constants API_URL = "http://things.ubidots.com/api/v1.6/" end end
ubidots/ubidots-ruby
lib/ubidots/constants.rb
Ruby
mit
96
package com.agamemnus.cordova.plugin; import com.google.android.gms.ads.AdListener; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.AdView; import com.google.android.gms.ads.InterstitialAd; import com.google.android.gms.ads.mediation.admob.AdMobE...
agamemnus/cordova-plugin-admob
src/android/AdMob.java
Java
mit
20,788
exports.up = function (knex, Promise) { return Promise.all([ knex.schema.createTable('locations', function (table) { table.uuid('id').notNullable().primary() table.string('title').notNullable().unique() table.text('description') table.string('address_1') table.string('address_2') ...
ztolley/conference-digital-web
src/db/migrations/20161212145712_location_conference.js
JavaScript
mit
978
#RuneScape Hiscore Checker Built with [Meteor.js](https://www.meteor.com) ###Running aplication Make sure you got Meteor.js installed, if not, install it: <code>$ curl https://install.meteor.com/ | sh</code> Clone this repository and access it: <pre> <code> $ git clone https://github.com/michaltakac/rs-hiscore-check...
michaltakac/rs-hiscore-checker
README.md
Markdown
mit
655
# Promise
CNBlackJ/NodeBook
base-knowledge/promise.md
Markdown
mit
11
import numpy import pytest import theano class TestInputLayer: @pytest.fixture def layer(self): from lasagne.layers.input import InputLayer return InputLayer((3, 2)) def test_input_var(self, layer): assert layer.input_var.ndim == 2 def test_get_output_shape(self, layer): ...
diogo149/Lasagne
lasagne/tests/layers/test_input.py
Python
mit
1,255
--- published: true author: Robin Wen layout: post title: "程序员的奋斗史(七)沟通交流、表达能力的重要性" category: 程序员 summary: "你明白和你能把别人讲明白是两码事。很多时候自己也有这种感觉,自己对这个问题是很清楚的,但是不注重表达的方式,反而把别人讲晕了,越扯越复杂。同一个问题,换不同的人,换不同的表达方式,或许得到的效果就不一样。这充分体现了沟通交流、表达能力的独到之处。" tags: - 程序员 - 想法 --- `文/Robin` 一个优秀的IT综合型人才不仅表现在技术方面,其他的素质也很重要。本文就从沟通交流、表达能力说起。 你明白和...
dbarobin/dbarobin.github.io
_posts/程序员/2012-07-29-the-importance-of-communication.md
Markdown
mit
3,084
using System.ComponentModel; using System.Linq; using System.Windows.Data; using Smellyriver.TankInspector.Common; using Smellyriver.TankInspector.Pro.Data.Entities; using Smellyriver.TankInspector.Pro.Data.Tank; using Smellyriver.TankInspector.Pro.Repository; namespace Smellyriver.TankInspector.Pro.CustomizationConf...
smellyriver/tank-inspector-pro
src/Smellyriver.TankInspector.Pro.CustomizationConfigurator/CustomizationConfigVM.cs
C#
mit
3,537
<?php namespace Zeeml\DataSet\Exception; class UnknownDataSetTypeException extends \Exception { }
Zeeml/Dataset
src/Exception/UnknownDataSetTypeException.php
PHP
mit
100
class Solution { public: vector<int> ori, cur; random_device rd; mt19937 g; Solution(vector<int> nums) : ori(nums), cur(nums), g(rd()) { } /** Resets the array to its original configuration and return it. */ vector<int> reset() { return cur = ori; } /**...
llwwns/leetcode_solutions
384#shuffle-an-array/solution.cpp
C++
mit
672
@extends('layouts.app_defect_vk') @section('content') <div class='col-sm-4 col-sm-offset-4'> <h2></i> Изменить <div class="pull-right"> {!! Form::open(['url' => '/defect/vkam/tables/ceh/' . $ceh->id, 'method' => 'DELETE']) !!} {!! Form::submit('Удалить', ['class' => 'btn btn-dange...
jips/mls-laravel
resources/views/defect/vkam/tables/ceh_edit.blade.php
PHP
mit
1,499
package fi.ozzi.tapsudraft.service; import com.google.common.collect.ImmutableMap; import fi.ozzi.tapsudraft.model.Player; import fi.ozzi.tapsudraft.model.Position; import fi.ozzi.tapsudraft.repository.PlayerRepository; import lombok.NonNull; import lombok.RequiredArgsConstructor; import org.apache.http.HttpResponse; ...
osmoossi/tapsudraft
src/main/java/fi/ozzi/tapsudraft/service/PlayerFetchService.java
Java
mit
3,834
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script type="text/javascript"> //数组直接量形式创建数组 var arr=[];//空数组 var arr1=[1,2,3,4,5,6]; var arr2=[1,2.3,true,false,null,undefined,[1,2,3],{x:1,y:2}]; var x=1; var arr3=[x,x*3,x+2,x+3]; c...
290388252/My-H5
javascript/demo1/array.html
HTML
mit
2,652
# OSIAM ## 3.0 - Unreleased **Breaking changes!** In this release, the auth-server and resource-server have been merged into a single application. For a detailed explanation about how to migrate from OSIAM 2.5 to OSIAM 3.0, see the [migration notes](docs/migration.md). ### Features - Run as a standalone applicatio...
fwilhe/osiam
CHANGELOG.md
Markdown
mit
4,408
root = "./" thread = 1 logger = nil harbor = 1 address = "127.0.0.1:2526" master = "127.0.0.1:2013" start = "main" -- main script bootstrap = "toy bootstrap" -- The service for bootstrap standalone = "0.0.0.0:2013" luaservice = root.."service/?.lua;"..root.."examples/?.lua" --..root.."test/?.lua;" lualoader = "lualib/l...
tanxunrong/mruby-toy
config.lua
Lua
mit
543
<fieldset class="layui-elem-field layui-field-title"> <legend>搜索</legend> </fieldset> <form class="layui-form layui-form-pane" action="{:url('recycle')}" search> <div class="layui-form-item"> <label class="layui-form-label">商品名称</label> <div class="layui-input-inline"...
lovezhao311/luffycms
application/admin/view/goods/recycle.html
HTML
mit
4,301
(function( window, $, undefined ) { // http://www.netcu.de/jquery-touchwipe-iphone-ipad-library $.fn.touchwipe = function(settings) { var config = { min_move_x: 20, min_move_y: 20, wipeLeft: function() { }, wipeRight: function() { }, wipeUp: function() { }, wipeDown: function() { }, pr...
LechDutkiewicz/serfenta_theme
lib/extensions/rg-gallery/jquery.elastislide.js
JavaScript
mit
13,063
#include "test2D.hpp" namespace boom { namespace test2d { MonoPolygon::MonoPolygon(DistV&& dL, DistV&& dR, const Vec2& ori, const Vec2& dir, float wofs): _vOrigin(ori), _vDir(dir), _distL(std::move(dL)), _distR(std::move(dR)), _widthOffset(wofs) {} MonoPolygon MonoPolygon::Random(const FRandF& rf...
degarashi/boomstick
tests/monopolygon.cpp
C++
mit
3,121
<?php /* * This file is part of AppBundle the package. * * (c) Ruslan Muriev <muriev.r@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RonteLtd\JsonApiBundle\Serializer\Normalizer; use Doctrine\Common\Collect...
ronte-ltd/JsonApiBundle
Serializer/Normalizer/Collection.php
PHP
mit
1,811
// $flavio.lisboa @ 2017-09-04. // /* * @file basic_octdiff_cons.hpp */ #ifndef adl__oct__cons__basic_octdiff_cons__hpp__ #define adl__oct__cons__basic_octdiff_cons__hpp__ #include <type_traits> #include <string> #include <iosfwd> #include <stdexcept> #include "adl.cfg.hpp" #include "adl/oct.fwd.hpp" #include "adl...
flisboac/adl
include/adl/oct/cons/basic_octdiff_cons.hpp
C++
mit
10,062
#!/usr/bin/env node var _ = require('lodash'); var async = require('async-chainable'); var asyncFlush = require('async-chainable-flush'); var colors = require('chalk'); var doop = require('.'); var glob = require('glob'); var fs = require('fs'); var fspath = require('path'); var program = require('commander'); var sha...
MomsFriendlyDevCo/doop-cli
doop-list.js
JavaScript
mit
5,758
#include "NoReturnFunctionExtractionValidator.hpp" #include <cppmanip/boundary/ExtractMethodError.hpp> #include <boost/range/adaptor/transformed.hpp> #include <boost/algorithm/string/join.hpp> #include <boost/range/algorithm_ext/push_back.hpp> #include <boost/range/algorithm/sort.hpp> namespace cppmanip { namespace {...
rafalprzywarski/libcppmanip
library/src/cppmanip/NoReturnFunctionExtractionValidator.cpp
C++
mit
1,135
<?php namespace DomainBundle\Entity\Super; use Doctrine\ORM\Mapping as ORM; /** * @ORM\MappedSuperclass */ abstract class IntegerID extends Entity { /** * @var int * * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ private $id = null; pub...
sugatov/web-pms
src/DomainBundle/Entity/Super/IntegerID.php
PHP
mit
528
if(!Hummingbird) { var Hummingbird = {}; } Hummingbird.Base = function() {}; Hummingbird.Base.prototype = { validMessageCount: 0, messageRate: 20, initialize: function() { this.averageLog = []; this.setFilter(); this.registerHandler(); }, registerHandler: function() { this.socket.registe...
mikejihbe/hummingbird
public/js/widgets/base.js
JavaScript
mit
1,907
/* * 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 com.github.sunnybat.paxchecker.setup.email; import com.github.sunnybat.commoncode.email.EmailAddress; import com.github.sunnyb...
SunnyBat/PAXChecker
src/main/java/com/github/sunnybat/paxchecker/setup/email/EmailSetupGUI.java
Java
mit
22,577
#include "PSF.h" #include "Utils.h" #include <cassert> #include <iostream> #include <fstream> using namespace std; using namespace arma; PSF::PSF(int size) :size(size) ,pixels(size, vector<double>(size, 0.)) ,fft_ready(false) { assert(size%2 == 1); pixels[size/2][size/2] = 1.; } void PSF::set_size(int new_size) { ...
eggplantbren/TwinPeaks3
Code/C++/Models/PSF.cpp
C++
mit
3,180
--- layout: post title: "Spark(二):Standalone和YARN方式部署集群" date: 2016-04-05 08:11:11 author: 伊布 categories: tech tags: spark cover: "/assets/instacode.png" --- * TOC {:toc} Spark有三种集群部署方式: - standalone - mesos - yarn 其中standalone方式部署最为简单,下面做一下简单的记录。后面我还补充了YARN的方式。 > 其实最简单的是local方式,单机。 ### ...
silenceshell/silenceshell.github.io
_posts/2016-04-05-spark-standalone.md
Markdown
mit
8,336
define([ 'knockout' ],function( ko ){ ko.bindingHandlers.withfirst = { 'init' : function(element, valueAccessor, allBindings, viewModel, bindingContext) { var savedNodes; ko.computed(function() { var dataValue = ko.utils.unwrapObservable(valueAccessor()); var shouldDisplay = typeof...
ssddi456/ko_custom_bindings
ko.withfirst.js
JavaScript
mit
1,190
#include "cpu.h" void CCF(cpu_state_t *state, enum ARG_TYPE arg0, union REG_INPUT i0, enum ARG_TYPE arg1, union REG_INPUT i1) { cpu_set_carry(state, !cpu_carry(state)); cpu_set_subtract(state, 0); cpu_set_half_carry(state, 0); }
Wynjones1/gbemu
src/instructions/ccf.c
C
mit
237
var bunyanConfig = require('../index'); var bunyan = require('bunyan'); var path = require('path'); describe('bunyan-config', function () { it('should not convert things it does not understand', function () { bunyanConfig({ name: 'test', streams: [{ path: '/tmp/log.l...
LSEducation/bunyan-config
test/bunyanConfig.test.js
JavaScript
mit
5,253
``` a = 1 + 2 #=> 3 ```
CodePadawans/ataru
test/resources/test_expectation_warning.md
Markdown
mit
24
# Moment.js 一个轻量级的小类库,可用来对日期进行解析、格式化等操作。 --- ## 模块依赖 - [seajs](seajs/README.md) ## 使用说明 请参考漂亮的官方文档:<http://momentjs.com/docs/> ## 更新 当 Moment.js 发布新版本,需要更新时,只要运行: ``` $ cd arale/dist $ spm install moment ```
leoner/arale
lib/moment/README.md
Markdown
mit
356
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 3.0 */ package org.cfeclipse.cfml.parser.cfscript; /** * This exception is thrown when parse errors are encountered. * You can explicitly create objects of this exception type by * calling the method generateParseException in the generat...
cybersonic/org.cfeclipse.cfml
src/org/cfeclipse/cfml/parser/cfscript/ParseException.java
Java
mit
6,569
'use strict'; var http = require('http'); var Logger = require('bunyan'); var log = new Logger({ name: 'test-server', level: 'debug' }); var server = http.createServer(function (request) { var data = ''; log.info({ url: request.url }, 'Incoming Request'); request.on('data', function (chunk) { ...
timemachine3030/jenkman
test/test-server-errors.js
JavaScript
mit
476
<!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>Haha factsheet on ARKive - Cyanea stictophylla</title> ...
andrewedstrom/cs638project
raw_data/arkive-critically-endangered-html/cyanea-stictophylla.html
HTML
mit
2,781
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.12.23 at 08:...
r24mille/IesoPublicReportBindings
src/main/java/ca/ieso/reports/schema/iomspublicplannedoutageday/ConfidentialityClass.java
Java
mit
1,298
#include "uritests.h" #include "../guiutil.h" #include "../walletmodel.h" #include <QUrl> void URITests::uriTests() { SendCoinsRecipient rv; QUrl uri; uri.setUrl(QString("mehcoin:LQDPC5rbjDB72fGFVHu4enYhxGAZuRiFh9?req-dontexist=")); QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv)); uri.setUrl(QString...
bitmagnet/mehcoin
src/qt/test/uritests.cpp
C++
mit
2,842
/* * Catch v1.7.2 * Generated: 2017-02-13 15:57:33.350226 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software Lice...
RossBencina/StaticMode
test/Catch/catch.hpp
C++
mit
401,037
## What is this ## Efficient and fast sound (i.e. record) recognition software. ## Where can You use it ## * You can listen to live radio station and log how many your advertisements are played per day * You can scan your music library for multiple recordings * You can match special operator messages when trying to ...
zyzyis/SoundPatty
README.md
Markdown
mit
6,630
#region licence // ===================================================== // EfSchemeCompare Project - project to compare EF schema to SQL schema // Filename: DbUpRunner.cs // Date Created: 2016/04/06 // // Under the MIT License (MIT) // // Written by Jon Smith : GitHub JonPSmith, www.thereformedprogrammer.net // ===...
JonPSmith/EfSchemaCompare
DbUpHelper/DbUpRunner.cs
C#
mit
1,582
#include "PrimitiveBatch.h" #include "onut.h" namespace onut { PrimitiveBatch::PrimitiveBatch() { // Create a white texture for rendering "without" texture unsigned char white[4] = {255, 255, 255, 255}; m_pTexWhite = Texture::createFromData({1, 1}, white, false); auto pDevice =...
Daivuk/ggj16
onut/src/PrimitiveBatch.cpp
C++
mit
4,307
<!-- HTML header for doxygen 1.8.6--> <!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" conte...
lucasbrsa/OpenCV-3.2
docs/3.2/dc/d9f/feature__description_8markdown.html
HTML
mit
7,705
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import EmailField from '../EmailField'; // EmailField // props: inputId // behavior: renders a <Field /> component // test: renders a <Field /> component describe('<EmailField />', () => { it('should render a Fie...
F-Ruxton/taskata
src/components/EmailField/__test__/EmailField.test.js
JavaScript
mit
461
// // File: GameController.cpp // Class: GameController // Author: John Barbero Unenge // All code is my own except where credited to others. // // Copyright (c) 2012 Catch22. All Rights Reserved. // // Date: 24/9/12 // // License: The following code is licensed under the Catch22-License // #include "Ga...
JBarberU/CatchLib
src/Controller/GameController.cpp
C++
mit
2,744
require 'bundler/setup' require 'minitest/autorun' require 'mocha/setup' require 'omniauth/strategies/facebook' OmniAuth.config.test_mode = true module BlockTestHelper def test(name, &blk) method_name = "test_#{name.gsub(/\s+/, '_')}" raise "Method already defined: #{method_name}" if instance_methods.includ...
joelmahoney/discoverbps
.gems/gems/omniauth-facebook-1.6.0/test/helper.rb
Ruby
mit
1,465
--- title: "Hipages" excerpt: "Homepage redesign that focuses on scalablity, branding and growth" header: image: teaser: "/assets/images/HipagesHPThumb2x.png" sidebar: - title: "Role" text: "Information Architect, UX Design" - title: "tl;dr" text: "Redesigned the homepage for scalability, growth and ado...
khuan86/khuan86.github.io
_portfolio/08_hipages-redesign.md
Markdown
mit
4,944
<!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' xml:lang='en' lang='en'><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> <title>99-12-7.smi.png.html</title> </head> <b...
andrewdefries/ToxCast
Figure3/Tox21_nnm/WorkHere/99-12-7.smi.png.html
HTML
mit
1,662
namespace DrinkAndRate.Web.User { using DrinkAndRate.Data; using DrinkAndRate.Models; using System; using System.Linq; using System.Web; using System.Web.UI; public partial class EventCreate : BaseUserPage { private IDrinkAndRateData data; protected void P...
AynRandTelerik/DrinkAndRate
DrinkAndRate.Web/User/EventCreate.aspx.cs
C#
mit
2,328
require 'spec_helper' include Warden::Test::Helpers RSpec.describe "GroceryLists", :type => :request do describe "GET /grocery_lists" do it "works! (now write some real specs)" do @user = FactoryGirl.create(:user, :confirmed) login_as @user, scope: :user get grocery_lists_path expect(resp...
sachac/quantified
spec/requests/grocery_lists_spec.rb
Ruby
mit
369
<?php /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\TestCase; use Monolog\Logger; /** * @cover...
Amaire/filmy
vendor/monolog/monolog/tests/Monolog/Handler/NullHandlerTest.php
PHP
mit
741
using BenchmarkDotNet.Attributes; using Obj2ObjMapBench.Models; using System.Collections.Generic; using System.Linq; namespace Obj2ObjMapBench { public abstract class BaseBenchmark { const int iterations = 10000; protected IEnumerable<SimplePoco> _simpleData; protected IEnumerable<Nes...
lusocoding/dotnet-objmap-benchmark
Obj2ObjMapBench/Benchmarks/BaseBenchmark.cs
C#
mit
2,686
/** * FieldLevelSearchMetadata.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.sforce.soap.partner; public class FieldLevelSearchMetadata implements java.io.Serializable { private java.lang.String label; ...
jwiesel/sfdcCommander
sfdcCommander/src/main/java/com/sforce/soap/partner/FieldLevelSearchMetadata.java
Java
mit
5,935
import Ember from 'ember'; export default Ember.Component.extend({ actions: { addFavorite() { this.sendAction('addFavorite', this.get('newFavorite')); } } });
fostertheweb/kappa-client
app/components/add-channel-form.js
JavaScript
mit
178
<?php namespace UserBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Security\Core\User\UserInterface; use Doctrine\ORM\Mapping as ORM; /** * Class User * @package UserBundle\Entity * @ORM\Entity(repositoryClass="\UserBundle\Entity\Repository\UserRepository") * @ORM\Table(name...
moroztaras/symfony_blog.dev
src/UserBundle/Entity/User.php
PHP
mit
6,624
package sprites; public class Enemy extends Paddle { public Enemy(int x, int y) { super(x,y); } int updateFrameCounter = 0; float moveDirection = 0; public void update(float dt, Ball ball) { //if(++updateFrameCounter%3==0) //{ updateFrameCounter = 0; if(position.y < ball.position.y) move...
lightofanima/GameDevelopmentTutorial
Pong/core/src/sprites/Enemy.java
Java
mit
564
namespace StreetPacMan.Server { public class InitialApple { public AppleKind Type = AppleKind.Normal; public double Lon; public double Lat; public override string ToString() { return string.Format("{0} apple at ({1}, {2})", Type, Lat, Lon); } } }
QuickUnit/PacmanTlv
StreetPacMan.Server/InitialApple.cs
C#
mit
322
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/sub_dr_template.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="...
tommeagher/pythonGIJC15
website/death_row/dr_info/ramirezjohn.html
HTML
mit
12,684
#ifndef SEMANT_H #define SEMANT_H #include "ast.h" void Semant_check(Prog_t); #endif
sabertazimi/hust-lab
compilers/cminus/lab8/semant.h
C
mit
88
''' Created on Nov 19, 2011 @author: scottporter ''' class BaseSingleton(object): _instance = None @classmethod def get_instance(cls): if cls._instance is None: cls._instance = cls() return cls._instance
freneticmonkey/epsilonc
resources/scripts/core/basesingleton.py
Python
mit
263
<!DOCTYPE html> <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="keywords" content=" "> <title>addLine | LivePerson Technical Documentation</title> <link rel="styl...
LivePersonInc/dev-hub
content4/consumer-experience-javascript-chat-addline.html
HTML
mit
115,360
(function ($) { 'use strict'; // Device check for limiting resize handling. var IS_DEVICE = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); function FullHeight(el, options) { this.el = $(el); var data = {}; $.each(this.el.data(), function (attr, value) { if (...
yrkup3/jquery-fullheight
src/jquery-fullheight.js
JavaScript
mit
2,998
# LoginRadius Ruby SDK ![Home Image](http://docs.lrcontent.com/resources/github/banner-1544x500.png) ## Introduction ## LoginRadius Customer Registration wrapper provides access to LoginRadius Identity Management Platform API. LoginRadius is an Identity Management Platform that simplifies user registration while s...
LoginRadius/ruby-on-rails-gem
README.md
Markdown
mit
3,098
require 'spec_helper' require 'rspec' require 'active_model' class RegonBastard include ActiveModel::Validations attr_accessor :regon validates :regon, :presence => true, :regon => true end describe RegonValidator do before :each do @model = RegonBastard.new end it "should be valid" do @model.s...
zaiste/valideez
spec/regon_validator_spec.rb
Ruby
mit
829
<!DOCTYPE html> <html lang="en"> <head> <!-- Meta --> <meta charset="utf-8"> <title>Switcheroo</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <!-- Css - CDN????--> <!-- <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> ...
HSAScript/demobar
index.html
HTML
mit
3,331
{- | module: Main description: Testing the FEN to Unicode conversion license: MIT maintainer: Joe Leslie-Hurd <joe@gilith.com> stability: provisional portability: portable -} module Main ( main ) where import qualified Unicode import qualified Chess tests :: [(String,String,Chess.Edge)] tests = [("Initial posi...
gilith/opentheory
data/haskell/fen2s/src/Test.hs
Haskell
mit
765
<?php namespace Modules\Dynamicfield\Composers; use Illuminate\Contracts\View\View; use Mcamara\LaravelLocalization\Facades\LaravelLocalization; use Modules\Dynamicfield\Utility\DynamicFields; use Request; use Route; class FrontendViewComposer { /** * @param View $view */ public function compose(Vi...
stone-lab/Dynamicfield
Composers/FrontendViewComposer.php
PHP
mit
1,619
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
n3wt0n/BugGuardian.WebForms
TestApp/BugGuardian.WebForms.TestWebApp/Account/ManageLogins.aspx.designer.cs
C#
mit
806
<!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=""> <title>SELCT People</title> <!-- ...
selct/selct.github.io
people.html
HTML
mit
18,964
# curl-cache-bust curl-cache-bust is a curl.js shim that adds the ability to "bust the cache" during development. Cache busting isn't something I think a module loader should normally do, yet people ask for it [a lot](https://github.com/cujojs/curl/issues/159)), so I added the capability via this shim. ## Usage cur...
unscriptable/curl-cache-bust
README.md
Markdown
mit
1,676
<?php use Beanbun\Beanbun; use JonnyW\PhantomJs\Client; require_once(__DIR__ . '/vendor/autoload.php'); $beanbun = new Beanbun; $beanbun->name = 'phantom'; $beanbun->count = 5; $beanbun->interval = 2; $beanbun->timeout = 10; $beanbun->seed = [ 'https://www.zhihu.com/question/23660494', 'https://www.zhihu.com/...
kiddyuchina/Beanbun
examples/phantomjs.php
PHP
mit
1,249
implicit none integer, parameter :: MAXTSTP = 801, NGRID = 64 real pyRho(NGRID,NGRID,MAXTSTP), pyVR(NGRID,NGRID,MAXTSTP), & pyVZ(NGRID,NGRID,MAXTSTP), pyErg(NGRID,NGRID,MAXTSTP) call fast2d(pyRho,pyVR,pyVZ,pyErg) !write (*,*) PYOUT(50,1,:) end program
scienceopen/pyLCPFCT
src/RunFast2d.f90
FORTRAN
mit
257
#### 4/17/17 Questions and notes - what does the wittgensteinian "empirical"/"ethnography entail? - genre, habitus, practices all seem to be able to be explained as roughly equivalent, so - Why is Wittgenstein better or what does he bring to the table that Bourdieu, Giddens, Miller, etc don't? - Does W's "anti-t...
lexicondevil12/thesis_notes
docs/meeting_questions_notes.md
Markdown
mit
811
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module VideoStorageSample class Application < Rails::Application # Settings in config/environments/*...
istickz/video_storage_sample
config/application.rb
Ruby
mit
1,321
/** * Copyright (c) 2013-2014 Quentin Smetz <qsmetz@gmail.com>, Sebastien * Jodogne <s.jodogne@gmail.com> * * 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, inclu...
npettiaux/orthanc-viewer
Code/Model/ViewConfiguration.cpp
C++
mit
2,158
module Andrake::Generator autoload :Rakefile, 'andrake/generator/rakefile' end
masarakki/andrake
lib/andrake/generator.rb
Ruby
mit
81
<?php function old_width($left, $right) { $width = 540; if (!$left ) { $width = $width +190; } if (!$right) { $width = $width +190; } return $width; } /** * Return a themed breadcrumb trail. * * @param $breadcrumb * An array containing the breadcrumb links. * @return a string conta...
thomasturnbull/nycwhisky-angular
app/sites/nycwhisky.com/themes/old/template.php
PHP
mit
628
# Home IoT light switch on NodeMCU (ESP8266) Устройство предназначено для управления освещением либо вентиляцией в квартире. Каждое устройство размещается в распределительной коробке комнаты, куда приходит питание, провода от ламп либо вентиляторов и от кнопок. Предполагается, что реле можно управлять как удаленно, так...
ssk181/home-switch-nodemcu
README.md
Markdown
mit
2,977
#ifdef __OBJC__ #import <Cocoa/Cocoa.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double SnapKitVersionNumber; FOUNDATION_EXPORT const unsigned char SnapKitVersionString[];
wjk930726/Nexus
Nexus/Pods/Target Support Files/SnapKit/SnapKit-umbrella.h
C
mit
306
using System; namespace RecoTwAPI { [Serializable] public class RecoTwException : Exception { public RecoTwException(ErrorCollection errors) { this.Errors = errors; } public ErrorCollection Errors { get; set; } } }
atst1996/RecoTwAPI
RecoTwException.cs
C#
mit
235
var _ = require('lodash'), restify = require('restify'), async = require('async'); module.exports = function(settings, server, db){ var globalLogger = require(settings.path.root('logger')); var auth = require(settings.path.lib('auth'))(settings, db); var api = require(settings.path.lib('api'))(se...
prokilogrammer/keet
routes.js
JavaScript
mit
4,425
using Ghost.Server.Mgrs.Map; using PNetR; using System; using System.Numerics; namespace Ghost.Server.Utilities.Abstracts { public abstract class CreatureObject : WorldObject { protected bool _dead; protected StatsMgr _stats; protected NetworkView _view; protected MovementGener...
Ignis34Rus/LoE-Ghost.Server
Ghost.Server/Utilities/Abstracts/CreatureObject.cs
C#
mit
2,904
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>CMsgGCCStrike15V2ServerVarValueNotificationInfo | demofile</title> <meta name="description" content="Documentation for demofile"> <meta name="viewport" content="width=device-width...
saul/demofile
docs/interfaces/_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2servervarvaluenotificationinfo.html
HTML
mit
10,139
require 'test_helper' class PostsControllerTest < ActionController::TestCase setup do @post = posts(:one) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:posts) end test "should get new" do get :new assert_response :success end test "s...
pittuxx/arb
test/controllers/posts_controller_test.rb
Ruby
mit
1,359
/* * dpkg - main program for package management * script.c - maintainer script routines * * Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk> * Copyright © 2007-2013 Guillem Jover <guillem@debian.org> * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
nisc-code/dpkg
dpkg-1.17.5ubuntu5.3/src/script.c
C
mit
10,035
/******************************************************************************* * Manchester Centre for Integrative Systems Biology * University of Manchester * Manchester M1 7ND * United Kingdom * * Copyright (C) 2008 University of Manchester * * This program is released under the Academic Free License ("AF...
mcisb/SuBliMinaLToolbox
src/main/java/org/mcisb/subliminal/metacyc/MetaCycExtracter.java
Java
mit
7,913
'use strict'; /** * @ngdoc directive * @name SubSnoopApp.directive:pieChart * @description * # pieChart */ angular.module('SubSnoopApp') .directive('donutChart', ['d3Service', '$window', '$document', 'subFactory', '$filter', 'moment', 'sentiMood', 'reaction', function (d3Service, $window, $document, subFact...
sharibarboza/SubSnoop
app/scripts/directives/donutchart.js
JavaScript
mit
14,247
package com.stuffwithstuff.magpie.interpreter.builtin; import com.stuffwithstuff.magpie.interpreter.Interpreter; import com.stuffwithstuff.magpie.interpreter.Obj; public interface BuiltInCallable { Obj invoke(Interpreter interpreter, Obj thisObj, Obj arg); }
munificent/magpie-optionally-typed
src/com/stuffwithstuff/magpie/interpreter/builtin/BuiltInCallable.java
Java
mit
263
class UserAgentsController < ApplicationController before_action :set_user_agent, only: [:show, :update, :destroy] # GET /user_agents # GET /user_agents.json def index @user_agents = UserAgent.all render json: @user_agents end # GET /user_agents/1 # GET /user_agents/1.json def show render...
deangiberson/myWakatimeApi
app/controllers/user_agents_controller.rb
Ruby
mit
1,286
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Jabra Browser Integration</title> <link href="main.css" rel="stylesheet" /> <link href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet" /> </head> <body> <a href="https://github.com/gnaudio/jabra-brow...
gnaudio/jabra-browser-integration
src/DeveloperSupportBeta/development/index.html
HTML
mit
2,679
module RotpRails VERSION = '0.0.1' end
steakknife/rotp_rails
lib/rotp_rails/version.rb
Ruby
mit
41