repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
nofxx/georuby
spec/geo_ruby/simple_features/geometry_factory_spec.rb
260
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe GeoRuby::SimpleFeatures::GeometryFactory do # before(:each) do # @po = GeoRuby::SimpleFeatures::MultiPolygon.new # end # it "should f" do # violated # end end
mit
BenZhang/pixelforce_recipes
lib/pixelforce_recipes/capistrano_3_recipes/supervisor.rb
259
namespace :supervisor do desc "Setup supervisor configuration for this application" task :setup do on roles(:app) do template "supervisor.erb", "/tmp/supervisor" sudo "mv /tmp/supervisor /etc/supervisor/supervisord.conf" end end end
mit
maccery/pastpapers
resources/views/home.blade.php
1677
@extends('layouts.app') @section('content') <? $user = Auth::user() ?> <div class="content-row"> <div class="container"> <h1>Welcome, {{ $user->name }} </h1> </div> </div> <div class="content-row"> <div class="container"> <div class="alert aler...
mit
clchiou/garage
py/foreman/tests/testdata/path1/pkg3/build.py
61
raise AssertionError('This build file should not be loaded')
mit
thonkify/thonkify
src/lib/libfuturize/fixes/fix_division_safe.py
2211
""" For the ``future`` package. Adds this import line: from __future__ import division at the top and changes any old-style divisions to be calls to past.utils.old_div so the code runs as before on Py2.6/2.7 and has the same behaviour on Py3. If "from __future__ import division" is already in effect, this fixer...
mit
robbynshaw/stackattack
stackattack/Controllers/UserController.cs
1203
using stackattack.Core; using stackattack.Questions; using stackattack.Users; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace stackattack.Controllers { public class UserController : ApiController { private IQu...
mit
siderisltd/Telerik-Academy
Exams/Exams_C#_Part1/CSharp-Fundamentals-2011-2012-Part-1-Sample-Exam/Problem 2 - Miss Cat/MissCat.cs
3368
using System; class Program { static void Main() { int judge = int.Parse(Console.ReadLine()); int cat1 = 0; int cat2 = 0; int cat3 = 0; int cat4 = 0; int cat5 = 0; int cat6 = 0; int cat7 = 0; int cat8 = 0; int cat9 = 0; int...
mit
simplyianm/clububer
infusions/fusionboard4/forum/postnewthread.php
15618
<?php /* fusionBoard 4.0 php-Invent Team http://www.php-invent.com Developer: Ian Unruh (SoBeNoFear) ianunruh@gmail.com */ if (!defined("IN_FUSION")) { die("Access Denied"); } if (isset($_POST['previewpost']) || isset($_POST['add_poll_option'])) { $subject = trim(stripinput(censorwords($_POST['subject']))); $...
mit
kunalvarma05/Eloquent
src/main/java/eloquent/exceptions/EloquentException.java
185
package eloquent.exceptions; /** * @author Kunal */ public class EloquentException extends Exception { public EloquentException(String message) { super(message); } }
mit
edinferno/coach
edinferno_coach/include/lsd_opencv.hpp
8111
/*M/////////////////////////////////////////////////////////////////////////////////////// // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, /...
mit
ledermann/datev
lib/datev/field/boolean_field.rb
336
module Datev class BooleanField < Field def validate!(value) super unless value.nil? raise ArgumentError.new("Value given for field '#{name}' is not a Boolean") unless [true, false].include?(value) end end def output(value, _context=nil) value ? 1 : 0 unless value.nil? ...
mit
paulcull/mean-swimclub
public/modules/entities/config/entities.client.config.js
403
'use strict'; // Configuring the Articles module angular.module('entities').run(['Menus', function(Menus) { // Set top bar menu items Menus.addMenuItem('topbar', 'Entities', 'entities', 'dropdown', '/entities/(/create)?'); Menus.addSubMenuItem('topbar', 'entities', 'List Entities', 'entities'); Me...
mit
lysyi3m/npmdc
lib/npmdc/version.rb
44
module Npmdc VERSION = '0.5.1'.freeze end
mit
potatolondon/fluent-2.0
fluent/tests/test_models.py
5231
# -*- coding: utf-8 -*- from djangae.test import TestCase from django.conf import settings from django.core.exceptions import ValidationError from django.test import override_settings from fluent.models import MasterTranslation, Translation class MasterTranslationTests(TestCase): def test_creation_creates_counte...
mit
matz-e/lobster
lobster/cmssw/dataset.py
7741
import hashlib import logging import math import os import pickle import re import requests from retrying import retry import xdg.BaseDirectory from lobster.core.dataset import DatasetInfo from lobster.util import Configurable from dbs.apis.dbsClient import DbsApi from WMCore.Credential.Proxy import Proxy from WMCore...
mit
maastermedia/sfWhoisPlugin
lib/phpwhois/example.php
3591
<?php /* Whois.php PHP classes to conduct whois queries Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic Maintained by David Saez (david@ols.es) For the most recent version of this package visit: http://www.phpwhois.org This program is free software; you can redistribute it and/or modify it ...
mit
webdesignberlin/styleguide-colors
options.js
378
module.exports = class{ constructor(opt){ if(!opt){ opt = {} } this.separator = opt.separator || ','; this.headline = opt.headline || 'Colors'; this.wrapper = opt.wrapper || 'section'; this.templatePath = opt.templatePath || __dirname+'/template.html'; this.sassPath = opt.sassPath ||...
mit
shavenzov/free-sound-client
src/app/components/sort/sort-button/sort-button.component.ts
1075
/** * * This code has been written by Denis Shavenzov * If you have any questions or notices you can contact me by email shavenzov@gmail.com * */ import {Input, Output, Component, EventEmitter} from '@angular/core'; @Component({ selector: 'sort-button', templateUrl: './sort-button.component.html', styleUrl...
mit
ishmal/ldpc
test/rawcodes.js
6849
/** * hwere we will keep the raw codes from the 801.11n spec for tests, so that they will no add to the memory profile */ export const RawCodes = { "1/2": { "648": [ " 0 - - - 0 0 - - 0 - - 0 1 0 - - - - - - - - - -", "22 0 - - 17 - 0 0 12 - - - - 0 0 - - - - - - - - -", ...
mit
IrinKos/ArraysHomework
17. SubsetKWithSumS/Properties/AssemblyInfo.cs
1416
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("17...
mit
braindata/sfAdminThemejRollerPlugin
data/generator/sfDoctrineModule/jroller/template/templates/_pagination.php
2701
[?php $first = ($pager->getPage() * $pager->getMaxPerPage() - $pager->getMaxPerPage() + 1); $last = $first + $pager->getMaxPerPage() - 1; ?] <table id="sf_admin_pager"> <tbody> <tr> <td class="left"></td> <td class="center"> <table align="center" class="sf_admin_pagination"> <tbody>...
mit
LagoVista/Admin
src/LagoVista.UserManagement/Managers/IAppUserManager.cs
777
using LagoVista.Core.Models; using LagoVista.Core.Validation; using LagoVista.UserManagement.Models.Account; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace LagoVista.UserManagement.Managers { public interface IAppUserManager { Task<AppUser> G...
mit
johnshew/Pipeline
test/compiler/data/stagename-inline-simple/expected.js
110
const stageName = "fancyStage"; var tc = new TestClass(); tc.forward("fancyStage", {}, function (cs, ds) {});
mit
krcourville/mvc-grid-experiment
MvcTypescript.MvcWebClient/FormDesign/FormGridRow.cs
1300
using System; using System.Collections.Generic; using System.Linq; namespace MvcTypescript.MvcWebClient.FormDesign { public class FormGridRow { private IFormSectionMetaProvider formSectionMeta; public FormGridRow(IFormSectionMetaProvider formSectionMeta, ICollection<GriddedPropertyMetadata> i...
mit
rednaxelafx/jvm.go
jvmgo/native/sun/misc/Unsafe.go
1333
package misc import ( //"unsafe" . "github.com/zxh0/jvm.go/jvmgo/any" "github.com/zxh0/jvm.go/jvmgo/jvm/rtda" rtc "github.com/zxh0/jvm.go/jvmgo/jvm/rtda/class" ) func init() { _unsafe(arrayBaseOffset, "arrayBaseOffset", "(Ljava/lang/Class;)I") _unsafe(arrayIndexScale, "arrayIndexScale", "(Ljava/lang/Class;)I") ...
mit
MHerszak/meteor-react-starter
packages/lib-react/package.js
2291
Package.describe({ name: 'base2ind:lib-react', version: '0.0.1', // Brief, one-line summary of the package. summary: '', // URL to the Git repository containing the source code for this package. git: '', // To avoid submitting documentation, set this field to null. documentation: 'README.md' }); Npm.de...
mit
florin-chelaru/urho
Bindings/Portable/Skeleton.cs
1340
using System; using System.Runtime.InteropServices; namespace Urho { // Skeletons are typically references to internal storage in other objects // we surface this to C# as a pointer to the data, but to ensure that we do not // have dangling pointers, we only surface the constructor that retains a copy // to the c...
mit
astex/living-with-django
front/main.js
1056
require.config({ paths: { text: 'lib/require-text', json: 'lib/require-json', css: 'lib/require-css', jquery: 'lib/jquery', underscore: 'lib/underscore', 'underscore.crunch': 'lib/underscore.crunch', backbone: 'lib/backbone', marked: 'lib/marked', 'marked.highlight': 'lib/marke...
mit
eush77/blackbox
examples/stress/trivial.py
98
#!/usr/bin/python3 if __name__ == '__main__': n = int(input()) print(sum(range(1, n+1)))
mit
rkkautsar/cp-solutions
UVa/11733.cpp
2704
//IO #include <iostream> #include <fstream> #include <sstream> #include <iomanip> //C Header #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <ctime> //container #include <vector> #include <stack> #include <queue> #include <deque> #include <list> #include <set> #include <map> #inclu...
mit
n0ts/kumogata-template
template/cloudfront-origin-access-identity.rb
561
# # CloudFront origin access identity # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-cloudfrontoriginaccessidentity.html # require 'kumogata/template/helper' name = _resource_name(args[:name], "origin access identity") comment = args[:comment] || "access-identity-#{args[:name]...
mit
jhendess/metadict
metadict-core/src/main/java/org/xlrnet/metadict/core/services/storage/StorageInitializationException.java
1912
/* * The MIT License (MIT) * * Copyright (c) 2015 Jakob Hendeß * * 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,...
mit
rkusa/pdfjs
font/ZapfDingbats.js
103
const AFMFont = require('../lib/font/afm') module.exports = new AFMFont(require('./ZapfDingbats.json'))
mit
Maxwolf/DCM
Src/Forms/MainMenuBox.Designer.cs
5892
namespace DCM.Forms { partial class MainMenuBox { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <pa...
mit
twilio/twilio-php
src/Twilio/Rest/Supersim/V1/NetworkContext.php
1603
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Supersim\V1; use Twilio\Exceptions\TwilioException; use Twilio\InstanceContext; use Twilio\Values; use Twilio\Version; /** * PLEASE NOTE that this class contains beta products th...
mit
jjhesk/v-server-sdk-bank
core/connect_json_api.php
4578
<?php /** * Created by PhpStorm. 2013 @ imusictech * developed by Heskeyo Kam * User: Hesk * Date: 13年12月4日 * Time: 下午3:16 * Prevent loading this file directly * source: http://wordpress.org/plugins/json-api/other_notes/ * * 5.2. Developing JSON API controllers * Creating a controller * To start a new JSON A...
mit
szapata/Migol
app/cache/dev/twig/fe/7c/7e6328bcea9d45c502da2e2c4a3e.php
748
<?php /* TwigBundle:Exception:error.css.twig */ class __TwigTemplate_fe7c7e6328bcea9d45c502da2e2c4a3e extends Twig_Template { protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); // line 1 echo "/* "; ...
mit
weenhanceit/infrastructure
test/domain_test.rb
1094
# frozen_string_literal: true require "minitest/autorun" require "shared_infrastructure" require "test" class DomainTest < Test include TestHelpers def setup @o = SharedInfrastructure::Domain.new("example.com") end attr_reader :o def test_file_names assert_equal "/var/www/example.com/html", o.site...
mit
l33tdaima/l33tdaima
p735m/asteroid_collision.py
839
from typing import List class Solution: def asteroidCollision(self, asteroids: List[int]) -> List[int]: stack = [] for n in asteroids: while n < 0 and stack and stack[-1] > 0: if n + stack[-1] == 0: stack.pop() break ...
mit
lury-lang/lury
src/Lury.Core/Runtime/LuryEngine.cs
2259
/* * The MIT License (MIT) * * Copyright (c) 2016 Tomona Nanase * * 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 us...
mit
ershad/shipit-engine
app/controllers/concerns/api/paginable.rb
792
module Api module Paginable extend ActiveSupport::Concern LINK = 'Link'.freeze included do class_attribute :max_page_size class_attribute :default_page_size class_attribute :default_order self.max_page_size = 100 self.default_page_size = 30 self.default_order = {id: ...
mit
juroland/maze
model/evaluation.cpp
4218
#include "evaluation.h" #include "maze.h" #include "mazesolver.h" #include "mazegenerator.h" #include "algorithm.h" #include <chrono> #include <valarray> #include <QVector> struct EvaluationParameter { size_t nrow; size_t ncol; MazeSolver::ProgramFactory* programFactory; MazeGeneratorFactory* genera...
mit
hslayers/hslayers-ng
projects/hslayers/src/components/save-map/layman-utils.ts
1838
import {Layer} from 'ol/layer'; import {Source} from 'ol/source'; import {HsLaymanLayerDescriptor} from './layman-layer-descriptor.interface'; import {getName, getTitle} from '../../common/layer-extensions'; export const PREFER_RESUMABLE_SIZE_LIMIT = 2 * 1024 * 1024; // 2 MB /** * Get Layman friendly name for layer ...
mit
iwa-yuki/Actalogic
Actalogic/Actalogic/EntityWireUp.cpp
518
#include "pch.h" #include "EntityWireUp.h" EntityWireUp::EntityWireUp() : EntityWireUp({ 0, 0 }) { } EntityWireUp::EntityWireUp(const POINT &pt, bool removable) : EntityActalogicCell(pt, ActalogicCellType::WIRE_UP, removable) { } EntityWireUp::~EntityWireUp() { } void EntityWireUp::OnPreRender(InputHelper *pInputH...
mit
t2krew/lintcode-solution
python/9.fizz-buzz.py
981
# 9.Fizz Buzz 问题 / fizz-buzz # http://www.lintcode.com/problem/fizz-buzz # 给你一个整数n. 从 1 到 n 按照下面的规则打印每个数: # 如果这个数被3整除,打印fizz. # 如果这个数被5整除,打印buzz. # 如果这个数能同时被3和5整除,打印fizz buzz. # Example: # 比如 n = 15, 返回一个字符串数组 # [ # "1", "2", "fizz", # "4", "buzz", "fizz", # "7", "8", "fizz", # "buzz", "11", "fizz", # "13...
mit
yoshuawuyts/frontend-server
server.js
1187
const responseTime = require('koa-response-time') const summary = require('server-summary') const wreq = require('koa-watchify') const logger = require('koa-logger') const browserify = require('browserify') const route = require('koa-route') const watchify = require('watchify') const km...
mit
aqibmushtaq/servicenow-log-tailer
properties.js
163
module.exports = { cookie: { 'JSESSIONID' : '', 'BIGipServerpool_[insert instance name here]' : '' }, sessionToken: '', host: '' }
mit
pjkarlik/ReactUI
src/containers/HomeRange.js
926
import React from 'react'; import { resolve } from '../styles'; import RangeSlider from '../components/range/RangeSlider'; import SiteStyles from '../styles/Site.less'; /** Generic Home Page */ export default class Home extends React.Component { static displayName = 'Home'; static propTypes = { classes: React...
mit
GusBeare/NancyAngularTests
NancyAngularJS/Content/Components/home/home.ts
238
 (() => { angular .module('mySPA') .controller('homeController', homeController) function homeController () { const vm = this; vm.message = 'home controller message!' } })()
mit
WorldBrain/WebMemex
src/sidebar-overlay/epics.ts
2163
import 'rxjs/add/operator/debounceTime' import 'rxjs/add/operator/map' import 'rxjs/add/operator/filter' import { acts as searchBarActs } from 'src/overview/search-bar' import { acts as resultActs } from 'src/overview/results' import { actions as filterActs } from 'src/search-filters' import { searchAnnotations } from...
mit
jandoczy/superfakturacppapi
thirdparty/include/jsoncpp/jsoncpp.cpp
153915
/// Json-cpp amalgated source (http://jsoncpp.sourceforge.net/). /// It is intended to be used with #include "json/json.h" // ////////////////////////////////////////////////////////////////////// // Beginning of content of file: LICENSE // ////////////////////////////////////////////////////////////////////// /* The...
mit
EricSzla/Android-Apps
Weather-App/app/src/main/java/erpam/weatherapp/MainActivity.java
6061
package erpam.weatherapp; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bu...
mit
ottohernandezgarzon/tanks-colored-of-war
programar/node_modules/phaser-ce/tasks/options/copy.js
208
module.exports = { custom: { expand: true, flatten: true, cwd: '<%= compile_dir %>/', src: [ '*.js', '*.map' ], dest: '<%= target_dir %>/' } };
mit
emmertf/OpenBlocks
src/main/java/openblocks/common/entity/EntityCartographer.java
8321
package openblocks.common.entity; import com.google.common.collect.ImmutableSet; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.Random; import java.util.Set; import net.minecraft...
mit
KonstantinFilin/RandData
tests/src/RandData/Set/ParagraphTest.php
3667
<?php namespace RandData\Set; /** * Generated by PHPUnit_SkeletonGenerator on 2017-05-29 at 13:14:11. */ class ParagraphTest extends \PHPUnit_Framework_TestCase { /** * @var Paragraph */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This m...
mit
notthetup/ical-generator
example/example_toString.js
403
var ical = require('../lib/ical-generator.js'), cal = ical(); cal.setDomain('example.com'); cal.addEvent({ start: new Date(new Date().getTime() + 3600000), end: new Date(new Date().getTime() + 7200000), summary: 'Example Event', description: 'It works ;)', organizer: { name: 'Organizer\'s Name', email: 'org...
mit
GTXiee/RosterAdmin
src/controllers/WelcomeTabController.java
2369
package controllers; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.fxml.FXML; import javafx.scene.control.*; import javafx.scene.layout.GridPane; import datamodel.DialogUtilities; import datamodel.Datasource; import datamodel.Roster; import datamodel.Team; public c...
mit
iamtraviscole/schemer-rails-project
db/migrate/20171005223239_add_color_note_to_color_scheme_colors.rb
150
class AddColorNoteToColorSchemeColors < ActiveRecord::Migration[5.1] def change add_column :color_scheme_colors, :color_note, :string end end
mit
Kagami/material-ui
packages/material-ui-icons/src/DialerSipTwoTone.js
896
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M15.2 18.21c1.2.41 2.48.67 3.8.75v-1.5c-.88-.06-1.75-.22-2.59-.45l-1.21 1.2zM6.54 5h-1.5c.09 1.32.35 2.59.75 3.79l1.2-1.21c-.24-.83-.39-1.7-....
mit
georgefrick/mafia
src/net/s5games/mafia/beans/scanning/Scanner.java
16187
package net.s5games.mafia.beans.scanning; import java.util.HashMap; // Public domain, no restrictions, Ian Holyer, University of Bristol. /** * <p>A Scanner object provides a lexical analyser and a resulting token array. * Incremental rescanning is supported, e.g. for use in a token colouring * editor. ...
mit
levibostian/VSAS
kristenTesting/PreviousRecordingsScreen.py
4756
""" Previous Recordings Screen Author: Kristen Nielsen Email: kristen.e.nielsen@gmail.com Patterned after tkSimpleDialog This is called by the main screen and calls the screen that lists out the previous events """ from Tkinter import * import tkMessageBox as MsgBox from PreviousRecordingsListScreen import P...
mit
ogawatti/gcevent
lib/google/service_account.rb
627
module Google class ServiceAccount SCOPE = 'https://www.googleapis.com/auth/calendar' attr_reader :auth_uri, :token_uri attr_reader :client_id, :client_email attr_reader :auth_provider_x509_cert_url, :client_x509_cert_url attr_reader :project_id attr_reader :scope def initialize(secret...
mit
oliwierptak/Everon-Example-Mvc
Module/Auth/View/Error.php
340
<?php namespace Everon\Module\Auth\View; use Everon\View; use Everon\Dependency; use Everon\View as DefaultView; class Error extends DefaultView { public function show() { $this->set('error', 'the error message'); } public function test() { $this->set('View.Body', 'no template: te...
mit
gameknife/electron-shadermonki
lib/gk-component.js
9519
/** * Created by kaimingyi on 2016/11/18. */ const math = require("gl-matrix"); const mathext = require('./util/gl-matrix-extension.js'); const gkCore = window.gkCore; class Component { constructor() { this._host = null; } get host() { return this._host; } set host( target )...
mit
Iran/CnCMemoryWatchTool
Properties/Resources.Designer.cs
2795
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
mit
mleczek/cbuilder
src/Dependency/Resolver.php
4653
<?php namespace Mleczek\CBuilder\Dependency; use Mleczek\CBuilder\Dependency\Entities\Factory; use Mleczek\CBuilder\Package\Package; use Mleczek\CBuilder\Package\Remote; use Mleczek\CBuilder\Repository\Collection; use Mleczek\CBuilder\Repository\Exceptions\PackageNotFoundException; use Mleczek\CBuilder\Repository\Fac...
mit
whoGloo/nodespeed
test/fixtures/simple-integration-app/sdk/services/custom/Patient.ts
13425
/* tslint:disable */ import { Injectable, Inject, Optional } from '@angular/core'; import { Http, Response } from '@angular/http'; import { SDKModels } from './SDKModels'; import { BaseLoopBackApi } from '../core/base.service'; import { LoopBackConfig } from '../../lb.config'; import { LoopBackAuth } from '../core/auth...
mit
bigmountainideas/socializr
lib/providers/facebook.js
6071
var debug = require('debug')('socializr:provider:facebook') , stream = require('stream') , util = require('util') , request = require('superagent') , uuid = require('node-uuid') , _ = require('underscore') , oauth1a = require('../auth/oauth1a') , PubSubConnection = require('../auth/...
mit
DDuarte/feup-sope-unix
Proj/2/docs/html/search/functions_70.js
1424
var searchData= [ ['parsearguments',['ParseArguments',['../a00018.html#a912fd970d2f8667272597122b5d9fe89',1,'tpc.c']]], ['play',['Play',['../a00018.html#a209335d248e70fbe25a751fe6fad2a27',1,'tpc.c']]], ['player_5finit',['player_init',['../a00025.html#ga5c83feea6dbd6e2448404261375365e3',1,'player_init(player *p):&...
mit
mzdunek93/volt
lib/volt/server/template_handlers/view_processor.rb
2512
require 'volt/server/component_templates' require 'opal/sprockets/processor' require 'sprockets' require 'tilt' require 'opal/sprockets/processor' module Volt class ViewProcessor < ::Opal::TiltTemplate def initialize(client) @client = client end def app_reference if @client 'Volt...
mit
agc93/Cake.VisualStudio
src/Cake.VisualStudio.Shared/Menus/InstallDotNetFrameworkBashBootstrapperCommand.cs
4149
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.ComponentModel.Design; using Cake.VisualStudio.Helpers; using Microsoft.VisualStudio.She...
mit
rksdna/mobuco
application/functions/FunctionType.cpp
367
#include "FunctionType.h" FunctionType::FunctionType(int code, const QString &title) : m_code(code), m_title(title) { types().insert(code, this); } int FunctionType::code() const { return m_code; } QString FunctionType::title() const { return m_title; } FunctionType::Hash &FunctionType::types(...
mit
monsieurgustav/2DBoard
src/Level.cpp
1566
// // Level.cpp // Labyrinth // // Created by Guillaume on 12/10/13. // // #include "Level.h" #include "cinder/app/App.h" #include "fmod.hpp" Level::Level(Board && b, Actor && p, Drawer && d, EventManager && m) : board(b), player(p), drawer(d), eventManager(m), current(0) { } Level::Level(Le...
mit
lelenaic/Paradox
pages/website-take-course.php
21286
<div class="parallax bg-white page-section third"> <div class="container parallax-layer" data-opacity="true"> <div class="media v-middle media-overflow-visible"> <div class="media-left"> <span class="icon-block s30 bg-lightred"><i class="fa fa-github"></i></span> </di...
mit
mr-rampage/reactive-boids
src/js/app.js
238
'use strict'; (function () { var ToggleStream = require('./stream/toggle-stream.js'); require('./model/Entity.js'); var $ = require('jqlite'); $(document).ready(function () { ToggleStream.create(null, $('body')); }); })();
mit
wael-Fadlallah/overflow
asset/tinymce/src/core/src/main/js/init/Render.js
6980
/** * Render.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.core.init.Render', [ 'ephox.katamari.api.Type', 'global!window', 'tinymc...
mit
pleary/inaturalist
tools/frequency_cells_populate.rb
2920
OPTS = Optimist::options do banner <<-EOS Create a FrequencyCell grid of the globe and populate each cell with its respective FrequencyCellMonthTaxon, broken out by month observed. The all_taxa_counts API will return leaf-style counts, and will include accumulation counts for all ancestors up the taxonomic tree. T...
mit
arapovavikka/InstaKiller
InstaKiller.Wpf/HttpClientWrapper.cs
1016
using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using InstaKiller.Model; using System.Text; using System.Threading.Tasks; using System.Net.Http.Formatting; namespace InstaKiller.Wpf { class HttpClientWrapper { private readonly st...
mit
lsadam0/BEx
BEx/Transaction.cs
3375
// Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using BEx.ExchangeEngine; using BEx.ExchangeEngine.Utilities; using BEx.ExchangeEngine.API; namespace BEx { public struct Transaction : IEquatable<Transaction>, IExchangeResult { inter...
mit
angularcolombia/angularcolombia.com
src/app/shared/components/user-auth/user-auth.component.spec.ts
643
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { UserAuthComponent } from './user-auth.component'; describe('UserAuthComponent', () => { let component: UserAuthComponent; let fixture: ComponentFixture<UserAuthComponent>; beforeEach(async(() => { TestBed.configureTestingMod...
mit
polypodes/EuradioNantes.eu
src/RadioSolution/ProgramBundle/Controller/EmissionController.php
5508
<?php namespace RadioSolution\ProgramBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use RadioSolution\Pr...
mit
distributions-io/laplace-random
test/test.typedarray.js
2537
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: random = require( './../lib/typedarray.js' ), // Module to calculate the mean mean = require( 'compute-mean' ), // Kolmogorov-Smirnov test kstest = require( 'compute-k...
mit
xyproto/algernon
vendor/github.com/caddyserver/certmagic/cache.go
11897
// Copyright 2015 Matthew Holt // // 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 in...
mit
HenryHarper/Acquire-Reboot
gradle/src/language-scala/org/gradle/language/scala/internal/toolchain/DefaultScalaToolProvider.java
3238
/* * Copyright 2014 the original author or authors. * * 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 applica...
mit
happylindz/algorithms-tutorial
lintcode/Backpack/backpack.py
2416
# coding: utf8 ''' LintCode: http://www.lintcode.com/zh-cn/problem/backpack/ 92.背包问题: 在n个物品中挑选若干物品装入背包,最多能装多满?假设背包的大小为m,每个物品的大小为A[i] 注意事项: 你不可以将物品进行切割。 样例: 如果有4个物品[2, 3, 5, 7] 如果背包的大小为11,可以选择[2, 3, 5]装入背包,最多可以装满10的空间。 如果背包的大小为12,可以选择[2, 3, 7]装入背包,最多可以装满12的空间。 函数需要返回最多能装满的空间大小。 ''' # 法一: 动态规划 # 状态: res[i][S...
mit
vuetifyjs/vuetify
ecosystem-win.config.js
1045
// PM2 process file // http://pm2.keymetrics.io/docs/usage/application-declaration/ const fs = require('fs') const separator = process.platform === 'win32' ? ';' : ':' const paths = process.env.PATH.split(separator).map(p => `${p}/yarn.js`) const yarnjsPaths = [ 'c:/Program Files (x86)/yarn/bin/yarn.js', 'c:/Prog...
mit
danydunk/Augusto
resources/test/rft/Refinement_upmfull_crudHelper.java
1434
// DO NOT EDIT: This file is automatically generated. // // Only the associated template file should be edited directly. // Helper class files are automatically regenerated from the template // files at various times, including record actions and test object // insertion actions. Any changes made directly to a he...
mit
ruthlesshelp/Presentations
NDbUnit/4_Unit_Finish/Tests.Unit.Lender.Slos.Database/Bases/SurfaceTestingBase.cs
1087
using System; using System.Diagnostics.CodeAnalysis; namespace Tests.Unit.Lender.Slos.Database.Bases { [ExcludeFromCodeCoverage] public class SurfaceTestingBase<TContext> : IDisposable where TContext : TestContextBase, new() { ~SurfaceTestingBase() { Dispose(false); ...
mit
scottbrenneman/auto-wrapper
AutoWrapper/AutoWrapper/CodeGen/ContractGenerator.cs
2531
using AutoWrapper.CodeGen.Contracts; using System; using System.CodeDom; using System.Linq; using System.Reflection; namespace AutoWrapper.CodeGen { public sealed class ContractGenerator : GeneratorBase { private readonly IContractGeneratorOptions _contractGeneratorOptions; private readonly MemberGenerato...
mit
astral-keks/powershell-workbench
src/Core/Models/Command.cs
840
 using System.Collections.Generic; namespace AstralKeks.Workbench.Models { public class Command { public const string Default = "Default"; public const string Workspace = "Workspace"; public string Name { get; set; } public List<string> Arguments { get; set; } ...
mit
pankleks/TypeScriptBuilder
src/TypeScriptBuilder/TypeScriptGenerator.cs
12333
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Newtonsoft.Json; namespace TypeScriptBuilder { public class TypeScriptGenerator { readonly HashSet<Type> _defined = new HashSet<Type>(); readonly Stack<Type> ...
mit
conanite/sepa
lib/sepa/payments_initiation/financial_identification_scheme_name_1_choice.rb
173
class Sepa::PaymentsInitiation::FinancialIdentificationSchemeName1Choice < Sepa::Base code_or_proprietary def empty? [code, proprietary].join.strip == "" end end
mit
merorafael/DelphiCompat
src/Mero/DelphiCompat/TColor.php
1670
<?php namespace Mero\DelphiCompat; class TColor { /** * @var string Color in TColor format */ private $tcolor; /** * @var array Color in RGB format */ private $rgb; /** * @var string Color in hex format */ private $hex; /** * TColor constructor. *...
mit
novuso/service
src/Novuso/Component/Service/Exception/ServiceNotFoundException.php
363
<?php /** * This file is part of the Novuso Framework * * @author John Nickell * @copyright Copyright (c) 2013, Novuso. (http://novuso.com) * @license http://opensource.org/licenses/MIT The MIT License */ namespace Novuso\Component\Service\Exception; use InvalidArgumentException; class ServiceNotFoundExce...
mit
intothevoid/bosskey
BossKee/BossKeeDlg.cpp
7309
// BossKeeDlg.cpp : implementation file // #include "stdafx.h" #include "BossKee.h" #include "BossKeeDlg.h" #include "afxdialogex.h" #ifdef _DEBUG #define new DEBUG_NEW #endif //Constants const int HOTKEY_ID = 100; //Global mappings of window titles and handles map<CString,HWND> g_mapMain; //Global window name to...
mit
tatemae/muck-activities
test/app/controllers/default_controller.rb
100
class DefaultController < ApplicationController def index @user = current_user end end
mit
lytics/ember-components
addon/components/lio-option.js
3198
import { tagForType } from '../util/namespace'; import ChildComponentMixin from '../mixins/child'; import ActiveStateMixin from '../mixins/active-state'; import TransitionMixin from '../mixins/transition'; import Ember from 'ember'; const Component = Ember.Component; const get = Ember.get; const set = Embe...
mit
pchrysa/Memento-Calendar
android_mobile/src/main/java/com/alexstyl/specialdates/upcoming/widget/today/UserOptions.java
473
package com.alexstyl.specialdates.upcoming.widget.today; final class UserOptions { private final float opacityLevel; private final WidgetVariant widgetVariant; UserOptions(float opacityLevel, WidgetVariant widgetVariant) { this.opacityLevel = opacityLevel; this.widgetVariant = widgetVarian...
mit
AstramMC/ArcadeAPI
src/me/astramg/arcadeapi/api/Game.java
87
package me.astramg.arcadeapi.api; public class Game { public int x = 0; }
mit
markwylde/Symfony-CookBook
app/cache/dev/appDevUrlMatcher.php
12822
<?php use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\RequestContext; /** * appDevUrlMatcher * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlMatcher ext...
mit