repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
hgsigner/gootstrap
goot_file.go
2702
package main import ( "fmt" "io" "os" "strings" ) var minimalPackage = []string{"doc", "main", "test"} var lightPackage = []string{"main", "test"} type gootFile struct { anchor, packName, fileName string okMessage, subcommand string template Parseble output io.Write...
mit
Respect/ValidationLocale
Rules/CountrySubdivision/FjCountrySubdivision.php
551
<?php namespace Respect\Validation\Rules\CountrySubdivision; use Respect\Validation\Rules\AbstractSearcher; /** * Validator for Fiji country subdivision. * * ISO 3166-1 alpha-2: FJ * * @link http://www.geonames.org/FJ/administrative-division-fiji.html */ class FjCountrySubdivision extends AbstractSearcher { ...
mit
cgg5207/crypt_des
lib/crypt_des.rb
173
module CryptDes class << self def encrypt(key,data) `java -jar #{RAILS_ROOT}/vendor/plugins/crypt_des/lib/crypt_des.jar '#{key}' '#{data}'` end end end
mit
mNisblee/MineSweeperMatrix
example/example.cpp
3805
/** * @file example.cpp * * @date 18.11.2012 * @author Moritz Nisblé moritz.nisble@gmx.de */ #include <cstdlib> #include <stdint.h> #include <iostream> #include <string> #include <ctime> #include "matrix.hpp" void dumpMatrix(msm::Matrix& matrix) { for (uint16_t iI = 0; iI < matrix.getDimensions().getY(); iI++)...
mit
alu0100789331/Practica11
lib/PRACTICA6/version.rb
41
module PRACTICA6 VERSION = "0.1.0" end
mit
AdmitHub/ScholarFisher
imports/redux/actions/personalInfo.js
1181
import { SELECT_DISABILITY_STATUS, SELECT_DISABILITY_TYPE, SELECT_CLICKED_ARRAY, SELECT_SPECIAL_CHARACT, SELECT_SPECIAL_CLICKED_ARRAY, SELECT_HERITAGE_TYPE, DE_SELECT_HERITAGE_TYPE, SELECT_STUDENT_LOCATION, SELECT_FROM_STUDENT_LOCATION, } from './actionTypes'; export function selectDisabilityStatus(d...
mit
brandonpelfrey/gaia
tasks/task_orchestrator.hh
492
#ifndef TASK_ORCHSTRATOR_H #define TASK_ORCHSTRATOR_H #include <thread> #include "core/utilities.hh" #include "tasks/task_queue.hh" #include "tasks/task_worker.hh" class TaskOrchestrator { private: std::vector<std::unique_ptr<TaskWorker>> workers; TaskQueue task_queue; public: TaskOrchestrator() { } TaskOrch...
mit
yaelduckwen/lo_imaginario
web2/modules/mod_sj_vm_categories/assets/js/jquery.imagesloaded.js
4423
/*! * jQuery imagesLoaded plugin v2.1.1 * http://github.com/desandro/imagesloaded * * MIT License. by Paul Irish et al. */ /*jshint curly: true, eqeqeq: true, noempty: true, strict: true, undef: true, browser: true */ /*global jQuery: false */ ; (function ($, undefined) { 'use strict'; // blank image data-u...
mit
transloadit/uppy
packages/@uppy/locales/src/gl_ES.js
5887
const gl_ES = {} gl_ES.strings = { addMore: 'Engadir máis', addMoreFiles: 'Engadir máis arquivos', addingMoreFiles: 'Engadir máis arquivos', allowAccessDescription: 'Para tomar fotos ou grabar video coa túa cámara, por favor permite a este sitio o acceso á cámara.', allowAccessTitle: 'Por favor permite o acc...
mit
DremyGit/HfutEduLib
src/main/java/cn/dremy/hfut/hfutedulib/service/Fetch.java
3301
package cn.dremy.hfut.hfutedulib.service; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import cn.dremy.hfut.hfute...
mit
JCThePants/NucleusFramework
src/com/jcwhatever/nucleus/managed/scoreboards/IScoreboardExtension.java
2325
/* * This file is part of NucleusFramework for Bukkit, licensed under the MIT License (MIT). * * Copyright (c) JCThePants (www.jcwhatever.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 ...
mit
Dimimo/Booklet
app/Http/Controllers/Auth/ForgotPasswordController.php
1001
<?php /** * Copyright (c) 2017. Puerto Parrot Booklet. Written by Dimitri Mostrey for www.puertoparrot.com * Contact me at admin@puertoparrot.com or dmostrey@yahoo.com */ namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\SendsPasswordResetEmails; class Forgot...
mit
team-diana/nucleo-dynamixel
docs/html/group___r_c_c_ex___private___macros.js
160
var group___r_c_c_ex___private___macros = [ [ "RCC Private macros to check input parameters", "group___r_c_c_ex___i_s___r_c_c___definitions.html", null ] ];
mit
maiha/ext
lib/ext/grid/grid_editor.rb
101
class Ext::Grid::GridEditor < Ext::Base ext_class "Ext.grid.GridEditor" fixed_args :editor end
mit
leosperry/Chroniton
ChronitonShared/ISingularity.cs
5280
using System; namespace Chroniton { public class ScheduledJobEventArgs { /// <summary> /// the job /// </summary> public IJobBase Job { get; internal set; } /// <summary> /// the schedule on which the job runs /// </summary> public ISchedule Sch...
mit
hendrawidjaja92/ta
application/views/view_barang_temp_view.php
9537
<?php $id_user = $this->session->userdata('id_user'); $username = $this->session->userdata('username'); ?> <!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"> <!-- The ab...
mit
straydogstudio/phd
spec/phd_spec.rb
2412
require 'spec_helper' require 'phd' require 'sqlite3' describe 'Phd' do before :all do @date, @time = Time.now.strftime("%Y%m%d_%H%M%S").split(/_/) @opts = { directory: "spec/dummy", database: "tmp/phd_#{@date}_#{@time}.db" } @db = Phd::DB::SQlite3.new @opts[:database] @direct_db = SQL...
mit
Steffkn/TelerikAcademy
Programming/04. KPK/06.HQMethods/Methods/Student.cs
506
using System; namespace Methods { class Student { public string FirstName { get; set; } public string LastName { get; set; } public DateTime BirthDay { get; set; } public string OtherInfo { get; set; } public bool IsOlderThan(Student otherStudent) { ...
mit
wlaroche/WpfSplashScreenSingleInstanceMultipleShells
WpfSplashScreenSingleInstanceMultipleShells/WpfSplashScreen.Infrastructure/EventArguments/ComputeProgressEventArgs.cs
313
using System; namespace WpfSplashScreen.Infrastructure.EventArguments { public class ComputeProgressEventArgs : EventArgs { public int ProgressValue { get; set; } public ComputeProgressEventArgs(int progressValue) { ProgressValue = progressValue; } } }
mit
GlobalTradingTechnologies/workflow-extensions-bundle
src/Trigger/Event/AbstractActionListener.php
5666
<?php /** * This file is part of the Global Trading Technologies Ltd workflow-extension-bundle package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * (c) fduch <alex.medwedew@gmail.com> * @date 29.06.16 */ declare(strict_types=...
mit
haefele/Mileage
src/03 Server/Mileage.Server.Infrastructure/Api/Controllers/MetricsController.cs
1898
using System.Globalization; using System.Net; using System.Net.Http; using System.Threading.Tasks; using System.Web.Http; using Metrics; using Metrics.Json; using Metrics.MetricData; using Metrics.Utils; using Mileage.Server.Contracts.Commands; using Mileage.Server.Infrastructure.Api.Filters; using Mileage.Server.Infr...
mit
jivoo/core
tests/I18n/LocaleTest.php
8886
<?php namespace Jivoo\I18n; use Jivoo\InvalidPropertyException; use Jivoo\InvalidArgumentException; class LocaleTest extends \Jivoo\TestCase { public function testSetAndGet() { $l = new Locale(); $this->assertEquals(array(), $l->getMessages()); $this->assertEquals('Hello, World!...
mit
ltearno/hexa.tools
hexa.core/src/main/java/fr/lteconsulting/hexa/client/ui/widget/GenericEditor.java
1909
package fr.lteconsulting.hexa.client.ui.widget; import com.google.gwt.event.logical.shared.AttachEvent; import com.google.gwt.user.client.ui.Focusable; import com.google.gwt.user.client.ui.Widget; import fr.lteconsulting.hexa.client.ui.tools.IEditor; import fr.lteconsulting.hexa.client.ui.tools.IEditorHost; public a...
mit
gems-uff/oceano
core/src/main/java/br/uff/ic/oceano/ostra/dao/DataMiningResultDao.java
735
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package br.uff.ic.oceano.ostra.dao; import br.uff.ic.oceano.core.dao.generics.DaoGenerico; import br.uff.ic.oceano.core.exception.ObjetoNaoEncontradoException; import br.uff.ic.oceano.ostra.model.DataMiningResult; impor...
mit
sridharmane/ResourceManagement
test/karma.conf.js
2817
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2016-01-21 using // generator-karma 1.0.0 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
mit
willdmoore/exam-master
public/modules/core/tests/information.client.controller.test.js
1849
'use strict'; (function() { // Information Controller Spec describe('Information Controller Tests', function() { // Initialize global variables var InformationController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating a...
mit
AndrewAlva/DAIVA
index.php
301
<?php // Include and instantiate the class. require_once 'Mobile_Detect.php'; $detect = new Mobile_Detect; // Any mobile device (phones or tablets). if ( $detect->isMobile() ) { header("Location: http://www.daiva.mx/m/home/"); } else { header("Location: http://www.daiva.mx/home/"); } ?>
mit
yasserglez/metaheuristics
Problems/SPP/ILS2OptBest4SPP/AssemblyInfo.cs
980
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("ILS2OptBest4SPP")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [ass...
mit
hydrantwiki/hwMobileAPI
src/hwMobileApi/Extensions/RequestBodyExtension.cs
441
using System.IO; using Nancy.IO; namespace HydrantWiki.Mobile.Api.Extensions { public static class RequestBodyExtensions { public static string ReadAsString(this RequestStream _requestStream) { string output = null; using (var reader = new StreamReader(_requestStream))...
mit
kiloe/ui
src/icons/DonutLargeIcon.js
452
import React from 'react'; import Icon from '../Icon'; export default class DonutLargeIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M22 10.16V4C12 5 4 13.62 4 24s8 19 18 20v-6.16c-6-.96-12-6.8-12-13.84s6-12.88 12-13.84zM37.94 22H44c-.9...
mit
JakubLukas/NewEngine
src/editor/widgets/material_widget.cpp
3311
#include "material_widget.h" #include "../widget_register.h" #include "../external/imgui/imgui.h" #include "core/allocator.h" #include "core/engine.h" #include "renderer/pipeline.h" #include "renderer/renderer.h" #include "core/resource/resource_manager.h" #include "renderer/resource_managers/material.h" #include "ren...
mit
kevinyien/KeyValueStore
tests/Doctrine/Tests/KeyValueStore/Functional/SingleBasicCrudTest.php
856
<?php namespace Doctrine\Tests\KeyValueStore\Functional; use Doctrine\Common\Cache\ArrayCache; use Doctrine\KeyValueStore\Storage\DoctrineCacheStorage; class SingleBasicCrudTest extends BasicCrudTestCase { private $cache; protected function createStorage() { $this->cache = new ArrayCache(); ...
mit
efexen/messenger_platform
spec/spec_helper.rb
2210
# This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause # this file to always be loaded, without a need to explicitly require ...
mit
head-first-csharp/third-edition
VS2013/Chapter_9/SerializeADeckOfCards/SerializeADeckOfCards/Suits.cs
261
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SerializeADeckOfCards { enum Suits { Spades, Clubs, Diamonds, Hearts } }
mit
influxdata/telegraf
plugins/inputs/rethinkdb/rethinkdb_data_test.go
2062
package rethinkdb import ( "testing" "github.com/stretchr/testify/require" "github.com/influxdata/telegraf/testutil" ) var tags = make(map[string]string) func TestAddEngineStats(t *testing.T) { engine := &Engine{ ClientConns: 0, ClientActive: 0, QueriesPerSec: 0, TotalQueries: 0, ReadsPerSec: 0...
mit
npenin/domojs
packages/media/src/server/commands/player/playlist.ts
160
import { State } from "../../player"; export default async function playlist(this: State, name: string) { return this.players[name].dispatch('playlist'); }
mit
danielwestendorf/blow_pipe
test/helpers/blow_pipe/blow_helper_test.rb
95
require 'test_helper' module BlowPipe class BlowHelperTest < ActionView::TestCase end end
mit
inaturalist/iNaturalistAndroid
iNaturalist/src/main/java/org/inaturalist/android/LanguageListPreference.java
3678
package org.inaturalist.android; import android.content.Context; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.widget.AppCompatCheckedTextView; import androidx.preferen...
mit
mathiasbynens/unicode-data
5.0.0/blocks/Old-Italic-code-points.js
549
// All code points in the Old Italic block as per Unicode v5.0.0: [ 0x10300, 0x10301, 0x10302, 0x10303, 0x10304, 0x10305, 0x10306, 0x10307, 0x10308, 0x10309, 0x1030A, 0x1030B, 0x1030C, 0x1030D, 0x1030E, 0x1030F, 0x10310, 0x10311, 0x10312, 0x10313, 0x10314, 0x10315, 0x10316, 0x10317, 0x10318, 0...
mit
austinsand/journalist
client/ui/pages/admin/integration_servers/integration_server_status_map.js
7579
import './integration_server_status_map.html'; import './integration_server_status_map.css'; import { Template } from 'meteor/templating'; import SimpleSchema from 'simpl-schema'; import { RobaDialog } from 'meteor/austinsand:roba-dialog'; import { IntegrationServers } from '...
mit
Fakor/congov
engine/src/transport_commands.cpp
394
#include "basics/transport_commands.h" CommandLoad::CommandLoad() : Command{utility::COMMAND_LOAD} { add_specific_value(loader); add_specific_value(unloader); add_specific_value(resources); } bool CommandLoad::perform_command(double step_time){ loader->exchange_resources(resources, unloader->get_reso...
mit
mmkassem/gitlabhq
lib/api/resource_state_events.rb
1822
# frozen_string_literal: true module API class ResourceStateEvents < Grape::API::Instance include PaginationParams helpers ::API::Helpers::NotesHelpers before { authenticate! } [Issue, MergeRequest].each do |eventable_class| eventable_name = eventable_class.to_s.underscore params do ...
mit
johannesjo/angular2-promise-buttons
projects/angular2-promise-buttons/src/angular2-promise-buttons.module.ts
726
import {ModuleWithProviders, NgModule} from '@angular/core'; import {PromiseBtnDirective} from './promise-btn.directive'; import {PromiseBtnConfig} from './promise-btn-config'; import {userCfg} from './user-cfg'; @NgModule({ declarations: [ PromiseBtnDirective, ], imports: [], exports: [ PromiseBtnDire...
mit
minton/binda
src/binda.tests/Properties/Settings.Designer.cs
1068
//------------------------------------------------------------------------------ // <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
skht777/chatwork-java
src/com/skht777/chatwork/parameter/Role.java
215
/** * */ package com.skht777.chatwork.parameter; /** * @author skht777 * */ public enum Role { ADMIN, MEMBER, READONLY; @Override public String toString() { return super.toString().toLowerCase(); } }
mit
alphagov/finder-frontend
spec/models/keyword_facet_spec.rb
2011
require "spec_helper" describe KeywordFacet do let(:query) { "Happy Christmas" } let(:query_with_quotes) { "\"Merry Christmas\"" } let(:query_with_multiple_quotes) { "\"Merry Christmas\"\" Happy Birthday\" i'm 100 today" } describe "#sentence_fragment" do context "keywords without quotes" do subject...
mit
zzzzRuby/Skuld
src/tools/CompilePipeline/src/DXILReflect.cpp
4763
#include <Skuld/Render/Misc.h> #include <dxc/dxcapi.h> #include <vector> #include <dxc/DXIL/DXIL.h> #include <dxc/DxilContainer/DxilContainer.h> #include <llvm/Bitcode/ReaderWriter.h> #include <llvm/IR/LLVMContext.h> namespace Skuld { namespace Tool { namespace CompilePipeline { using ShaderAttriType = Render...
mit
fraisse/socrates-craft-rochegude
Gruntfile.js
590
'use strict'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.initConfig({ browserify: { options: { transform: ['babelify'], watch: true, browserifyOptions:...
mit
forty-two-labs/angular2-webpack-starter
src/app/models/interfaces.ts
190
import {ConstructFromJson} from '../providers/interfaces' export interface BaseModel extends ConstructFromJson { } export interface LabelMapType { [key: string]: string | LabelMapType; }
mit
Jamkyle/raha.zeuweb
app/cache/dev/appDevUrlGenerator.php
44214
<?php use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Exception\RouteNotFoundException; use Psr\Log\LoggerInterface; /** * appDevUrlGenerator * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlGenerator extends Symfony\Component\Routing\Genera...
mit
TheCbac/MICA-Desktop
app/containers/CollectDataContainer.js
1350
/* @flow */ /* ********************************************************** * File: containers/CollectDataContainer.js * * Brief: Actions for the scanning devices * * Authors: Craig Cheney * * 2017.09.14 CC - Document created * ********************************************************* */ import { bindActionCreators } fro...
mit
cuponthetop/bg-scraper
lib/routes/v1/user.js
552
let express = require('express'); module.exports = function (controllers) { let user = express(); let userCTRL = controllers.user; user.post('/user', userCTRL.addUser.bind(userCTRL) ); user.delete('/user/:userid', userCTRL.loadUser.bind(userCTRL), userCTRL.removeUser.bind(userCTRL) ); user...
mit
davidvuong/pynodebb
test/api/test_topics.py
3419
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import json import unittest import httpretty from pynodebb import Client class TestPyNodeBBTopics(unittest.TestCase): def setUp(self): self.client = Client('http://localhost:4567', 'master_token123') @httpretty.ac...
mit
asydorchuk/robotics
python/robotics/examples/prototype.py
1824
import time from RPi import GPIO as gpio from robotics.actors.redbot_motor_actor import RedbotMotorActor from robotics.interfaces.spi.mcp3008_spi_interface import MCP3008SpiInterface from robotics.sensors.redbot_wheel_encoder_sensor import RedbotWheelEncoderSensor from robotics.sensors.sharp_ir_distance_sensor import...
mit
Accela-Inc/accela-rest-ruby
lib/accela/api/api.rb
2210
module Accela class API include Escaper def self.connection new end def login(username, password, scope) config.token = auth.login(username, password, scope) end def get(path, auth_type, query={}, headers={}) uri = config.base_uri + path headers = headers(auth_type)....
mit
jvalen/pixel-art-react
postcss.config.js
174
module.exports = { plugins: [ require('autoprefixer'), require('postcss-import'), require('precss'), require('lost'), require('postcss-reporter'), ] }
mit
coryginsberg/game-review-project
systemjs.config.js
1959
/** * System configuration for Angular 2 apps * Adjust as necessary for your application needs. */ (function(global) { // map tells the System loader where to look for things var map = { 'app': 'app', // 'dist', '@angular': 'node_modules/@angular', 'angular2...
mit
manybots/manybots-googlecalendar
config/routes.rb
207
ManybotsGooglecalendar::Engine.routes.draw do resources :calendar do collection do get 'callback' end member do post 'import' end end root :to => 'calendar#index' end
mit
viegas/modulorh
ModuloRH/src/main/java/br/edu/ifrs/restinga/modulorh/controle/ServidorController.java
4207
/* * 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 br.edu.ifrs.restinga.modulorh.controle; import br.edu.ifrs.restinga.modulorh.dao.ServidorDAO; import br.edu.ifrs.restinga.modu...
mit
medcat/ducky
lib/ducky/format.rb
1012
module Ducky module Format extend self def format(information) out = "" information[:head].each do |head| out << head << "\n" end body = "" information[:body].children.each do |child| content = word_wrap(child.content.gsub(/\s+/, " ")) case child.name ...
mit
tilleryj/rio
public/javascripts/lib/attr.js
21985
/** @class Attr is the basis for most of rio. It is the class from which all apps, pages, models, and components are derived, though you will rarely have to use Attr directly. Attr provides all of the functionality related to attributes, bindings, dependency management, and events. @author Jason Tillery @co...
mit
reybango/jingotest
node_modules/node-syntaxhighlighter/test/inlinescripts.js
6539
/*jshint asi:true, esnext:true */ var should = require('should') , nsh = require('../node-syntaxhighlighter') ; describe('inline scripts', function () { describe('highlighting inline javascript', function () { var code = [ '<!DOCTYPE HTML>' , '<html>' , '<head>' , ' <m...
mit
bdisney/eShop
db/migrate/20170124123428_add_roles_to_users.rb
262
class AddRolesToUsers < ActiveRecord::Migration def change add_column :users, :superadmin_role, :boolean, default: false add_column :users, :supervisor_role, :boolean, default: false add_column :users, :user_role, :boolean, default: true end end
mit
ghjconan/angularjs_demos
client/WeatherDemo/filters/ashtml.filter.js
499
/// <reference path="../../../typings/angularjs/angular.d.ts" /> /// <reference path="../../../typings/angularjs/angular-route.d.ts" /> var WeatherDemo; (function (WeatherDemo) { "use strict"; function asHtml($sce) { return function (text) { return $sce.trustAsHtml(text); }; } ...
mit
kubeIot/wish
src/app/dashboard/capability-add/newCapability.component.ts
3546
/** * Created by skytzi on 6.5.17. */ import {Component, OnInit,AfterViewInit,trigger,state,style,transition,animate,keyframes} from '@angular/core'; import { Validators, FormGroup, FormArray, FormBuilder } from '@angular/forms'; import { Location } from '@angular/common'; import {ActivatedRoute, Params} from "@an...
mit
bskinn/h5cube
tests.py
6279
# ------------------------------------------------------------------------------ # Name: tests # Purpose: Master script for h5cube testing suite # # Author: Brian Skinn # bskinn@alum.mit.edu # # Created: 29 Aug 2016 # Copyright: (c) Brian Skinn 2016 # License: The MIT License; s...
mit
bmnick/ember-voting-sample
config/environments/test.rb
1681
Maplist::Application.configure do # Settings specified here will take precedence over those in config/application.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test ...
mit
ykhs/slack-moment
packages/slack-moment-client/src/js/config/firebase.js
100
import firebase from 'firebase'; import config from './'; firebase.initializeApp(config.firebase);
mit
PareshNavalakha/ObjectDiffUtil
src/test/java/com/paresh/diff/util/test/TestDataProvider.java
6512
package com.paresh.diff.util.test; import com.paresh.diff.annotations.Description; import com.paresh.diff.annotations.Identifier; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; public class TestDataProvider { public static Person getPerson(final int age, final St...
mit
guillegalor/PracticasED
Practicafinal/conecta4_v2.1/src/main.cpp
1132
#include "JugadorAuto.hpp" #include "ArbolGeneral.hpp" #include "../include/tablero.hpp" #include "mando.hpp" #include <iostream> #include <vector> #include <ctime> #include <cstdlib> #include <stdio.h> #include <unistd.h> #include <termio.h> void imprimeTablero(Tablero &t, Mando &m){ cout << m.GetJugador() << en...
mit
FractalFlows/Emergence
app/imports/client/Pages/Home/Components/FooterColumn.js
269
import styled from 'styled-components' const FooterColumn = styled.div` width: 33.33%; padding: 20px; &:not(:last-child) { border-right: 1px solid #DDD; } @media (max-width: 780px){ width: 100%; border-right: none; } ` export default FooterColumn
mit
dave-redfern/somnambulist-value-objects
src/Types/Web/Url.php
2926
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
mit
basecrm/basecrm-java
src/main/java/com/getbase/models/LossReason.java
2416
// WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema package com.getbase.models; import com.fasterxml.jackson.annotation.JsonView; import com.getbase.serializer.Views; import org.joda.time.DateTime; public class LossReason { protected @JsonView(Views.ReadOnly.class) Long id; prote...
mit
giraudsa/serialisation
src/main/java/giraudsa/marshall/deserialisation/text/TextUnmarshaller.java
1862
package giraudsa.marshall.deserialisation.text; import java.io.IOException; import java.io.Reader; import java.text.DateFormat; import java.text.SimpleDateFormat; import giraudsa.marshall.annotations.TypeRelation; import giraudsa.marshall.deserialisation.Unmarshaller; import giraudsa.marshall.exception.Fabri...
mit
1Computer1/megumin-selfbot
megumin.js
1014
const MeguminClient = require('./src/struct/MeguminClient'); const Logger = require('./src/util/Logger'); const config = require('./config.json'); const client = new MeguminClient(config); client.build(); client.on('ready', () => { Logger.info('Megumin connected.'); }); client.on('disconnect', close => { Log...
mit
xcatliu/react-select
lib/Select.js
21268
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var React = require('react'), Input = requ...
mit
unball/ieee-very-small
software/include/unball/strategy/tangential_potential_field.hpp
762
/** * @file tangential_potential_field.hpp * @author Izabella Thais Oliveira Gomes * @date 29/07/2015 * * @attention Copyright (C) 2015 UnBall Robot Soccer Team * * @brief Potential field that affects objects to be oriented * around to the origin according to the distance to its * origin. */ #ifndef UNBA...
mit
ninejs/ninejs
_nineplate/utils/parser/grammar.js
11254
'use strict'; // a grammar in JSON var grammar = { 'comment': 'Nineplate template language definition', 'lex': { 'rules': [ ['\\s+', 'return "WhiteSpace"'], ['\\<', 'return "LT"'], ['\\>', 'return "GT"'], ['\\/', 'return "SL"'], ['\\=', 'return "EQ"'], ['\\\\', 'return "_BackSlash"'], ['\\\''...
mit
Jirka-Mayer/Mycelium
tests/App/HttpKernel.php
1505
<?php namespace Tests\App; use Illuminate\Foundation\Http\Kernel; class HttpKernel extends Kernel { protected $middleware = [ \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \Illuminate\Foundation\Http\...
mit
atyndall/cits4404
GPRobot/src/ga/decisions/concrete/HitByBulletLT.java
306
package ga.decisions.concrete; import ga.decisions.IntThresholdDecision; public class HitByBulletLT extends IntThresholdDecision { public HitByBulletLT() { super(); } @Override public boolean decision() { return this.getRobot().getEventsCounter().getHitByBullet() < this.getThreshold(); } }
mit
ForbesLindesay/passport-redgate
test/index.js
423
'use strict' var assert = require('assert') var it = require('testit') var RedGateStrategy = require('../') var strategy = new RedGateStrategy({returnURL: 'https://www.example.com'}, function () { }) it('should be named redgate', function () { assert.equal(strategy.name, 'redgate') }) it('should have correct provi...
mit
sbarulic/AuthorizationServerExample
WindowsAuthorizationService/Areas/HelpPage/HelpPageConfigurationExtensions.cs
22795
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Web.Http; using System.Web.Http.Controllers; using Syst...
mit
robertSahm/port
src/config.js
1301
require('babel-polyfill'); const environment = { development: { isProduction: false }, production: { isProduction: true } }[process.env.NODE_ENV || 'development']; module.exports = Object.assign({ host: process.env.HOST || 'localhost', port: process.env.PORT, apiHost: process.env.APIHOST || 'loc...
mit
kig/gl-volume3d-demo
shaders/shaderLib.js
880
module.exports = { raytrace: ` struct Box { vec3 minPoint; vec3 maxPoint; }; bool boxIntersect(vec3 ro, vec3 rd, Box box, out float t1, out float t2, out vec3 nml) { vec3 ird = 1.0 / rd; vec3 v1 = (box.minPoint - ro) * ird; vec3 v2 = (box.maxPoint - ro) * ird; vec3...
mit
TruRating/trumodule-core-csharp-framework
TruRating.TruModule.Tests.Unit/TruModuleStandaloneTests/Lookup/WhenGettingLookupDataAndResoponseDoesNotContainDeviceLangauge.cs
1867
// The MIT License // // Copyright (c) 2017 TruRating Ltd. https://www.trurating.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, including without limitation...
mit
huitiemesens/PHPoAuthLib
src/OAuth/OAuth1/Service/Withings.php
2800
<?php namespace OAuth\OAuth1\Service; use OAuth\OAuth1\Signature\SignatureInterface; use OAuth\OAuth1\Token\StdOAuth1Token; use OAuth\Common\Http\Exception\TokenResponseException; use OAuth\Common\Http\Uri\Uri; use OAuth\Common\Consumer\CredentialsInterface; use OAuth\Common\Http\Uri\UriInterface; use OAuth\Common\St...
mit
aemadrid/nsq-ruby
spec/lib/nsq/connection_spec.rb
2520
# -*- encoding: utf-8 -*- describe Nsq::Connection do describe '#new' do it 'should raise an exception if it cannot connect to nsqd' do cluster.halt! expect { Nsq::Connection.new host: host, port: tcp_port }.to raise_error Errno::ECONNREFUSED end end it 'should raise an except...
mit
yangguoyk2015/sbux-notification-center
app/component/service-configuration/filter-configuration.module.js
86
'use strict'; // Define the `home` module angular.module('filterConfiguration', []);
mit
pavben/monoclock
monoclock.go
912
package monoclock import ( "syscall" "unsafe" ) type MonoTimer struct { startTime int64 } // Creates a new monotonic timer and starts it. func NewMonoTimer() *MonoTimer { startTime := GetMonoTime() return &MonoTimer { startTime: startTime, } } // Returns the number of milliseconds that have elapsed since t...
mit
jwkpeter/tincan
ext/json.hpp
504365
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ | | |__ | | | | | | version 2.1.1 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. Copyright (c) 2013-2017 Niels Lohmann <http://nlohmann.me>. Permission is...
mit
shusson/sgc
src/app/model/beacon.ts
771
import { HttpParams } from '@angular/common/http'; const INDEX_BASE = 1; export class Beacon { reference: string; chromosome: string; position: string; allele: string; constructor(data: any) { this.reference = data.reference ? data.reference : null; this.chromosome = data.chromoso...
mit
jonathana/yeoman-angular-bootstrap-sass-express-seed
api/server.js
1232
/** * Module dependencies. */ var express = require('express') , request = require('request') , conf = require('./conf'); var winston = require('winston'); var args = process.argv.slice(2); var app = module.exports = express(); // Configuration app.enable('trust_proxy'); app.configure(function(){ app.use(...
mit
doug65536/filetolines
test/standalone.js
1798
var nodeunit = require('nodeunit'), reporter = nodeunit.reporters.default; process.chdir(__dirname + '/..'); var testModule = require(__dirname + '/../test'); function CustomRunner() { this.failures = 0; } CustomRunner.prototype = { log: function(assertion) { if (assertion.failed()) { ...
mit
taeke/AsyncAutomapper
src/ts/App.ts
911
/// <reference path='./../../typings/tsd.d.ts' /> 'use strict'; var app = angular.module('app', ['ngResource', 'ngMockE2E']); app.constant('API', { links: [{ rel:'persons', href:'/api/persons' }]}); app.run(($httpBackend: any) => { $httpBackend.whenGET('/api/persons').respond( { items: [ { name: 'Ge...
mit
restfb/restfb
src/main/lombok/com/restfb/types/webhook/messaging/airline/PriceInfoItem.java
1504
/* * Copyright (c) 2010-2022 Mark Allen, Norbert Bartels. * * 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, ...
mit
Azure/azure-sdk-for-java
sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventPositionIntegrationTest.java
13149
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.eventhubs; import com.azure.core.util.IterableStream; import com.azure.core.util.logging.ClientLogger; import com.azure.messaging.eventhubs.models.EventPosition; import com.azure.messaging.event...
mit
kckolz/jerrens-weekend
app/js/directives.js
1203
'use strict'; /* Directives */ var jerrensWeekendDirectives = angular.module('jerrensWeekend.directives', []); jerrensWeekendDirectives.directive('submitVote', function() { return { restrict: 'A', scope: true, link: function(scope, element, attrs) { element.bind('click', functi...
mit
alexkrause/geotracer
entities/Geolocation.php
1100
<?php /** * @Entity @Table(name="geolocation") **/ class Geolocation { /** @Id @Column(type="integer") @GeneratedValue **/ protected $id; /** @Column(type="bigint") **/ protected $timestamp; /** @Column(type="float") **/ protected $latitude; /** @Column(type="float") **/ protected $longitud...
mit
Snaquaza/Test
config/formats.js
37749
exports.Formats = [ //These are the real formats, for the rulesets for these formats look in the data folder ~~ Oiawesome // Singles //////////////////////////////////////////////////////////////////// { name: "Random Battle", section: "Singles", team: 'random', canUseRandomTeam: true...
mit
phpManufaktur/kfContact
Library/libphonenumber/src/libphonenumber/data/PhoneNumberMetadata_KY.php
3650
<?php /** * This file is automatically @generated by {@link BuildMetadataPHPFromXml}. * Please don't modify it directly. */ return array ( 'generalDesc' => array ( 'NationalNumberPattern' => '[3589]\\d{9}', 'PossibleNumberPattern' => '\\d{7}(?:\\d{3})?', ), 'fixedLine' => array ( 'NationalN...
mit