repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Akagi201/learning-golang
src/misc/mysql/conn-pool.go
1250
//数据库连接池测试 // ab -c 100 -n 1000 'http://localhost:9090/pool' // show processlist package main import ( "database/sql" "fmt" "log" "net/http" _ "github.com/go-sql-driver/mysql" ) var db *sql.DB func init() { db, _ = sql.Open("mysql", "root:@tcp(127.0.0.1:3306)/test?charset=utf8") db.SetMaxOpenConns(2000) db....
mit
ikedam/gaetest
testutil/appengine_sdk.go
3122
// +build appengine package testutil import ( sdk_appengine "appengine" "appengine_internal" "fmt" "io" "net/http" "golang.org/x/net/context" "google.golang.org/appengine" "google.golang.org/appengine/aetest" ) func (m *AppengineMock) mockInstance(inst aetest.Instance) aetest.Instance { return &mockInsta...
mit
jhbruhn/communicat0r
public/javascripts/script.js
357
var socket = io.connect(); // Sound.initialize(); var factor = (2 * Math.PI) / 44100.0; var s = new Sound(); Microphone.initialize(); Microphone.onready(function() { Microphone.enable(); Microphone.ondata(function(data) { socket.emit('input', data); }); }); socket.on('output', function (data) { ...
mit
Vanare/behat-cucumber-formatter
src/Node/ExampleRow.php
924
<?php namespace Vanare\BehatCucumberJsonFormatter\Node; class ExampleRow { /** * @var array */ private $cells = []; /** * @var int */ private $line = 0; /** * @var string */ private $id = ''; /** * @return array */ public function getCells() ...
mit
vimeo/psalm
src/Psalm/Issue/UndefinedPropertyFetch.php
153
<?php namespace Psalm\Issue; class UndefinedPropertyFetch extends PropertyIssue { public const ERROR_LEVEL = 6; public const SHORTCODE = 39; }
mit
CodeKittey/lycheeJS
projects/cultivator/api/source/Main.js
9795
lychee.define('tool.Main').requires([ 'lychee.data.HTML', 'lychee.data.JSON', 'lychee.data.MD', 'tool.API' ]).includes([ 'lychee.app.Main' ]).tags({ platform: 'html' }).supports(function(lychee, global) { if (global.location instanceof Object && typeof global.location.hash === 'string') { if (typeof global....
mit
fit2cloud/aliyun-api-java-wrapper
src/main/java/com/fit2cloud/aliyun/ecs/model/response/ListSecurityPermissionsResponse.java
1561
package com.fit2cloud.aliyun.ecs.model.response; import com.fit2cloud.aliyun.Response; import com.fit2cloud.aliyun.ecs.model.Permissions; public class ListSecurityPermissionsResponse extends Response { private String Description; private Permissions Permissions; private String SecurityGroupId; private String Secu...
mit
alphagov/govuk_admin_template
spec/layout/layout_spec.rb
3728
require "spec_helper" describe "Layout" do subject(:body) { page.body } it "yields the specified content" do visit "/" expect(body).to include("app_title") expect(body).to include("navbar_right") expect(body).to include("navbar_item") expect(body).to include("main_content") expect(body).to...
mit
aizhar777/buch
resources/lang/ru/modules.php
2309
<?php return [ 'access_denied' => 'В доступе отказано. У вас нет разрешения на эту операцию!', 'breadcrumbs' => [ 'dashboard' => 'Панель управления', 'users' => 'Пользователи', 'roles' => 'Группы пользователей', 'role' => 'Группа :Role', 'permissions' => 'Разрешения', ...
mit
cthoret/personal-website
src/Clemac/PortfolioBundle/Entity/Achievement.php
2552
<?php namespace Clemac\PortfolioBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * achievement * * @ORM\Table() * @ORM\Entity(repositoryClass="Clemac\PortfolioBundle\Entity\AchievementRepository") */ class Achievement { /** * @var integer * * @ORM\Column(name="id", type="integer") * @...
mit
niieani/nandu
app/tests/Blipoteka/UserTest.php
2657
<?php /** * Blipoteka.pl * * LICENSE * * This source file is subject to the Simplified BSD License that is * bundled with this package in the file docs/LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://blipoteka.pl/license * * If you did not receive a copy of the license an...
mit
lioneil/pluma
config/mimetypes.php
2014
<?php return [ /** *-------------------------------------------------------------------------- * Mime Types *-------------------------------------------------------------------------- * * An attempt to document most of the file formats used frequently on the * web. This is by no means...
mit
northwesternapis/ruby-client
lib/northwestern-api.rb
1136
require 'net/http' require 'uri' require 'json' module Northwestern BASE_URL = 'https://api.asg.northwestern.edu/' class << self def terms(params={}) self.get('/terms', {}) end def schools(params={}) self.get('/schools', {}) end def terms(params={}) self.get('/terms', {}) ...
mit
QuantumFractal/Morinda
Morinda/Component/Component.cs
223
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Morinda { /// <summary> /// Base interface for Components /// </summary> interface Component { } }
mit
innogames/gitlabhq
spec/controllers/registrations_controller_spec.rb
19821
# frozen_string_literal: true require 'spec_helper' RSpec.describe RegistrationsController do include TermsHelper before do stub_application_setting(require_admin_approval_after_user_signup: false) end describe '#new' do subject { get :new } it 'renders new template and sets the resource variab...
mit
CountrySideEngineer/Ev3Controller
dev/src/Ev3Controller/Ev3Command/Command_30.cs
917
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ev3Controller.Ev3Command { public abstract class Command_30 : ACommand_ResLenFlex { #region Constructors and the Finalizer /// <summary> /// Constru...
mit
havoc-io/mutagen
cmd/mutagen/compose/port.go
1380
package compose import ( "github.com/spf13/cobra" ) // portCommand is the port command. var portCommand = &cobra.Command{ Use: "port", Run: passthrough, SilenceUsage: true, DisableFlagParsing: true, } // portConfiguration stores configuration for the port command. var portCon...
mit
kanonirov/lanb-client
src/main/java/ru/lanbilling/webservice/wsdl/SoapPayClass.java
4910
package ru.lanbilling.webservice.wsdl; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for soapPayClass complex type. * ...
mit
screeny05/corrode
test/corrode-helper.test.js
1434
const { expect } = require('chai'); const Corrode = require('../src'); /** @test {Corrode} */ describe('Corrode - Helpers', () => { beforeEach(function(){ this.base = new Corrode(); this.eqArray = require('./helpers/asserts').eqArray.bind(this); }); /** * coverage fix * @test {Co...
mit
Mj258/weiboapi
anjularjsdemo/demo/show-properties.ts
277
// TypeScript import {Component, View, bootstrap} from 'angular2/angular2'; @Component({ selector: 'display' }) @View({ template: ` <p>My name: {{ myName }}</p> ` }) class DisplayComponent { myName: string; constructor() { this.myName = "Alice"; } }
mit
wp-plugins/nokautwl
src/NokautWL/Routing/ProductsUrl.php
3031
<?php namespace NokautWL\Routing; use Nokaut\ApiKit\Ext\Data; use NokautWL\Admin\Options; class ProductsUrl { /** * @var string */ private static $baseUrl; /** * @var string */ private static $defaultProductsQuery; /** * @return string */ private static function...
mit
noelrappin/summer_breeze
lib/summer_breeze/fixture.rb
3416
module SummerBreeze class Fixture extend SummerBreeze::BeforeAndAfter attr_accessor :name, :controller, :initializers, :controller_class, :action, :method, :limit_to_selector, :params, :session, :flash, :filename def initialize(name, controller, &initialize_block) @name = nam...
mit
knub/skypyblue
tests/testrunner.py
749
#!/usr/bin/env python3 """ Usage: ./testrunner.py -> executes all tests ./testrunner.py <TestCaseClass> -> executes only tests from this testcase """ if __name__ != "__main__": exit() import unittest, sys sys.path.append("../src") sys.path.append("./performance") from constraint_system_t...
mit
bricooke/my-biz-expenses
vendor/gems/currency-0.4.0/lib/currency/exchange/rate/source/historical.rb
1823
# Copyright (C) 2006-2007 Kurt Stephens <ruby-currency(at)umleta.com> # See LICENSE.txt for details. require 'currency/exchange/rate/source/base' # Gets historical rates from database using Active::Record. # Rates are retrieved using Currency::Exchange::Rate::Source::Historical::Rate as # a database proxy. # # See Cu...
mit
dtiarks/ThesisPlot
Chap5/pi_phase_shift_estimate.py
5855
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 13 11:25:42 2017 @author: daniel """ import numpy as np import matplotlib.pyplot as plt import pandas as pd import os import json import io from scipy.optimize import newton from scipy import integrate from scipy.optimize import curve_fit import re...
mit
kkolodziejczak/Archivist
Documentation/html/search/functions_d.js
2550
var searchData= [ ['save',['Save',['../class_archivist_1_1_storage.html#ab2b3fd85dcd58550b561abf0067a7640',1,'Archivist::Storage']]], ['savesettings',['SaveSettings',['../class_archivist_1_1_settings_view_model.html#a5cb9a0b51d9af637d1a22c9abb426496',1,'Archivist::SettingsViewModel']]], ['selectprojectclick',['Se...
mit
nationalfield/symfony
lib/plugins/sfPropelPlugin/lib/vendor/phing/types/selectors/OrSelector.php
2553
<?php /* * $Id: OrSelector.php 123 2006-09-14 20:19:08Z mrook $ * * 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....
mit
jguadagno/StartR
src/StartR.Lib/Messaging/IHandleCallBackEntity.cs
280
using System; using System.Collections.Generic; using System.Linq; using System.Text; using StartR.Domain; namespace StartR.Lib.Messaging { public interface IHandleCallBackEntity<ICommand, IEntity> { void Handle(ICommand msg, Action<IEntity> completion); } }
mit
hulop/BLELocalization
location-service-library/src/hulo/localization/project/TrainDataReader.java
1589
/******************************************************************************* * Copyright (c) 2014, 2015 IBM Corporation * * 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...
mit
FLamparski/meteor-moment-locales
bower_components/moment/locale/en-au.js
2518
// moment.js locale configuration // locale : australian english (en-au) (function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else if (t...
mit
opengl-8080/slidedown
src/main/java/gl8080/slidedown/util/observer/IOObserver.java
457
package gl8080.slidedown.util.observer; import gl8080.slidedown.util.observer.Observer; import java.io.IOException; import java.io.UncheckedIOException; @FunctionalInterface public interface IOObserver extends Observer { @Override default void update() { try { this.ioUpdate(); ...
mit
wardmundy/php-api-tesla
set_hvac_on.php
250
#!/usr/bin/php -q <?php // Copyright (C) 2017, Ward Mundy & Associates LLC with MIT license include("init.php"); init(); $response =queryTeslaAPI($TOKEN, "api/1/vehicles/".$ID."/command/auto_conditioning_start",true); var_export($response); ?>
mit
johanlantz/headsetpresenter
HeadsetPresenter_Bluetools/HeadsetPresenter/Speech/Source Files/MixerControl.cpp
12725
#include "StdAfx.h" #include "..\Header Files\mixercontrol.h" #include "mmsystem.h" #include "SS_Log.h" bool MixerControl::RUN_THREAD = true; int MixerControl::pollInterval = 1000; CString MixerControl::nameOfAudioInDevice = ""; MixerControl::MixerControl(void) { } MixerControl::~MixerControl(void) { ...
mit
JoseRego/summer-rush
Assets/Scripts/Gameplay/PacmanColliding.cs
1632
using UnityEngine; using System.Collections; public class PacmanColliding : MonoBehaviour { public GameObject gameController; private InterfaceScript inter; private SoundController soundCtrl; private LevelController lvlCtrl; // Use this for initialization void Start () { inter = gameController.GetComponent<I...
mit
Ivorius/pohoda-export
src/InvoiceItem.php
7303
<?php /** * Author: Ivo Toman */ namespace Pohoda; class InvoiceItem { const VAT_NONE = "none"; const VAT_HIGH = "high"; const VAT_LOW = "low"; const VAT_THIRD = "third"; private $text; private $quantity = '1.0'; private $unit; private $coefficient = '1.0'; private $payVAT = false; //unitPrice is with (t...
mit
alphonsekurian/corefx
src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.cs
81234
// 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.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net.Soc...
mit
ardune/layouttest
LayoutTest/Features/Shared/Window1.xaml.cs
608
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
mit
camsys/transam_sign
app/models/support_size_type.rb
154
class SupportSizeType < ActiveRecord::Base default_scope { order(:name) } scope :active, -> { where(active: true) } def to_s name end end
mit
howma03/sporticus
workspace/web-client-angular/src/app/organisation/manage/manage-group/add-group-member-dialog/add-group-member-dialog.component.ts
826
import {Component, Inject, OnInit} from '@angular/core'; import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material'; import {User} from '../../../../services/users.service'; @Component({ selector: 'app-add-group-member-dialog', templateUrl: './add-group-member-dialog.component.html', styleUrls: ['./add-grou...
mit
atumachimela/oec
config/env/development.js
1368
'use strict'; module.exports = { db: 'mongodb://localhost/e-amity-dev', app: { title: 'PRO SERVICE - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' ...
mit
DavidLGoldberg/voting-server-tutorial
src/index.js
259
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root'; import { createHistory } from 'history'; const history = createHistory(); ReactDOM.render( <Root history={history} />, document.getElementById('root') );
mit
4Catalyzer/found
examples/global-pending/src/index.js
2052
import ElementsRenderer from 'found/ElementsRenderer'; import Link from 'found/Link'; import StaticContainer from 'found/StaticContainer'; import createBrowserRouter from 'found/createBrowserRouter'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; function LinkItem(prop...
mit
mpociot/laravel-apidoc-generator
src/Extracting/Strategies/RequestHeaders/GetFromRouteRules.php
436
<?php namespace Mpociot\ApiDoc\Extracting\Strategies\RequestHeaders; use Illuminate\Routing\Route; use Mpociot\ApiDoc\Extracting\Strategies\Strategy; use ReflectionClass; use ReflectionMethod; class GetFromRouteRules extends Strategy { public function __invoke(Route $route, ReflectionClass $controller, Reflectio...
mit
Hedde/fabric-bolt
fabric_bolt/hosts/migrations/0001_initial.py
940
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Host' db.create_table(u'hosts_host', ( (u'id'...
mit
VR-Robotica/AvatarComponents
Assets/VR_Robotica/SimpleEyeGaze/Scripts/VRR_ObjectOfInterest.cs
2088
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace com.VR_Robotica.AvatarComponents { /// <summary> /// Attach this script to any object to Identify it as something the Avatar is /// interested in looking at. A designer can specify which points on the object /// are of inte...
mit
Steven-N-Hart/vcf-miner
mongo_view/src/main/webapp/js/collections/DatabaseIndexList.js
206
// COLLECTION of DatabaseIndex models var DatabaseIndexList = Backbone.Collection.extend({ model: DatabaseIndex, localStorage: new Backbone.LocalStorage("mongo-backbone"), comparator: 'todo' });
mit
carborgar/gestionalumnostfg
gestionalumnos/urls.py
6315
from django.conf.urls import patterns, include, url from principal.forms import ValidatingPasswordChangeForm from django.contrib.auth import views as auth_views # Custom error views handler404 = 'principal.views.StaticViews.error_404' handler500 = 'principal.views.StaticViews.error_500' urlpatterns = patterns( ''...
mit
rootsdev/gedcomx-fs-js
test/NameForm.js
912
var assert = require('chai').assert, GedcomX = require('gedcomx-js'); describe('NameForm property extensions', function(){ describe('nameFormInfo', function(){ var json = { "nameFormInfo" : [ { "order" : "http://familysearch.org/v1/Eurotypic" } ] }; it('Create with JSON...
mit
WeCamp/flyingliquourice
src/Domain/Game/FieldAlreadyBeenShotException.php
117
<?php namespace Wecamp\FlyingLiquorice\Domain\Game; class FieldAlreadyBeenShotException extends GameException { }
mit
kolrinah/pmc_sf2
src/Pmc/IntranetBundle/Form/FiltrosPublicacoesType.php
3060
<?php /** * Description of FiltrosPublicacoesType * * @author Héctor Martínez / +58-416-9052533 */ namespace Pmc\IntranetBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Doctrine\ORM...
mit
ricmrodrigues/webapplicationframeworks
myproject/config/initializers/secret_token.rb
500
# Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attac...
mit
Deathnerd/CSC310
src/main/com/gilleland/george/exceptions/ElementNotFoundException.java
153
package com.gilleland.george.exceptions; /** * Created by Wes Gilleland on 11/23/2015. */ public class ElementNotFoundException extends Exception { }
mit
asabirov/yspell
lib/yspell/cli/presenter.rb
1742
# coding: utf-8 require 'rainbow' module YSpell module CLI class Presenter require 'rainbow/ext/string' def initialize(out, err) @out = out @err = err @verbose = false end def draw(text, spell_errors, options) @verbose = options.verbose if spell_...
mit
chstein/sportdiary
sources/Sporty.Jobs/IScheduledJob.cs
213
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sporty.Jobs { public interface IScheduledJob { void Run(); } }
mit
lenonwang/AndroidLibrary
AndroidProjectLibrary/src/com/goldpalm/shanggang/utils/package-info.java
188
/** * Copyright@2014 * * Author is wanglei. * * All right reserved * * Created on 2014 2014-9-1 下午12:16:20 */ /** * @author wanglei */ package com.goldpalm.shanggang.utils;
mit
Tnifey/webpack-kit
webpack.config.js
3303
const webpack = require('webpack'); const path = require('path'); const HWP = require('html-webpack-plugin'); const BSWP = require('browser-sync-webpack-plugin'); const NIWP = require('npm-install-webpack-plugin'); module.exports = { /* entry point */ entry: "./src/app.js", // default: ./src/app.js /* output optio...
mit
emartech/split-sms
lib/gsmvalidator.js
1637
'use strict'; // '@£$¥èéùìòÇ\nØø\rÅåΔ_ΦΓΛΩΠΨΣΘΞÆæßÉ\x20!"#¤%&\'()*+,-./0123456789:;<=>?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà\f^{}\\[~]|€' var GSM_charCodes = [ 10,12,13,32,33,34,35,36, 37,38,39,40,41,42,43,44, 45,46,47,48,49,50,51,52, 53,54,55,56,57,58,59,60, 61,62,63,64,65,66,67,68...
mit
Shigeppon/derrata
app/models/resource_data.rb
44
class ResourceData < ActiveRecord::Base end
mit
andersonjonathan/Navitas
navitas/recipes/migrations/0002_recipe_modified.py
558
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.utils.timezone import utc import datetime class Migration(migrations.Migration): dependencies = [ ('recipes', '0001_initial'), ] operations = [ migrations.AddField( ...
mit
jakegornall/MeatFestWebsite
node_modules/flow-runtime/lib/errorReporting/makeTypeError.js
2524
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s....
mit
spleenboy/pallium
app/ui/SortableList.js
2614
import React, { Component, PropTypes } from 'react'; import styles from './SortableList.css'; export default class SortableList extends Component { static propTypes = { items: PropTypes.array.isRequired, onChange: PropTypes.func, onSortStart: PropTypes.func, onSortStop: PropTypes.func, } const...
mit
beowulfe/HAP-Java
src/main/java/io/github/hapjava/characteristics/impl/slat/SlatTypeEnum.java
768
package io.github.hapjava.characteristics.impl.slat; import io.github.hapjava.characteristics.CharacteristicEnum; import java.util.Arrays; import java.util.Map; import java.util.stream.Collectors; /** 0 ”Horizontal” 1 ”Vertical” */ public enum SlatTypeEnum implements CharacteristicEnum { HORIZONTAL(0), VERTICAL(1...
mit
mathiasbynens/iso-8859-15
scripts/transform-data.js
2188
const fs = require('fs'); const jsesc = require('jsesc'); const template = require('lodash.template'); function format(object) { return jsesc(object, { json: true, compact: false, }) + '\n'; } function parse(source) { const indexByCodePoint = {}; const indexByPointer = {}; let decoded = ''; const encoded = ...
mit
GluuFederation/oxCore
oxJsfUtil/src/main/java/org/gluu/jsf2/customization/Utils.java
1806
package org.gluu.jsf2.customization; import java.io.File; import org.gluu.util.StringHelper; /** * Created by eugeniuparvan on 5/1/17. */ public final class Utils { private static final String SERVER_BASE_PATH = "server.base"; private static final String CUSTOM_PAGES_PATH = "/custom/pages"; private sta...
mit
ParrotFx/Parrot.Ruby
Lexer/unexpected_token_exception.rb
51
class UnexpectedTokenException < StandardError end
mit
cofoundry-cms/cofoundry
src/Cofoundry.Web.Admin/Admin/Modules/Shared/Js/UIComponents/DocumentAssets/FormFieldDocumentAsset.js
4816
/** * A form field control for an image asset that uses a search and pick dialog * to allow the user to change the selected file. */ angular.module('cms.shared').directive('cmsFormFieldDocumentAsset', [ '_', 'shared.internalModulePath', 'shared.internalContentPath', 'shared.modalDialogService', ...
mit
jreinert/social-share-privacy
lib/generators/social_share_privacy/install_generator.rb
534
module SocialSharePrivacy module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) def copy_locales copy_file "en_social_share_privacy.yml", "config/locales/en_social_share_privacy.yml" copy_file "de_social_share_pr...
mit
minodisk/DefinitelyTyped
types/gulp-pug/gulp-pug-tests.ts
198
import { src, dest } from 'gulp'; import * as gulpPug from 'gulp-pug'; let s1 = gulpPug(); let s2 = gulpPug({}); let s3 = gulpPug({ basedir: '.' }); src('fixtures.js').pipe(s1).pipe(s2).pipe(s3);
mit
okhosting/OKHOSTING.Hosting
src/PCL/OKHOSTING.Hosting.Shared.Plesk/Sql/Server.cs
9461
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OKHOSTING.Hosting.SQL; using System.Xml.Linq; namespace OKHOSTING.Hosting.Shared.Plesk.SQL { public class Server: Hosting.SQL.Server { public Plesk.Server Container { get; set; } pub...
mit
petar-p/Java
Homeworks/01-IntroductionToJava/exercises/SummationOfSeries.java
767
package exercises; import java.util.Scanner; public class SummationOfSeries { // Write a program that displays the result of // 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + ... n public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("This program prints the summa...
mit
danielesteban/LedNet
firmware/src/config.hpp
273
#ifndef __CONFIG_HPP__ #define __CONFIG_HPP__ /* Server config */ #define SERVER_HOST "projects.gatunes.com" #define SERVER_PATH "/lednet/led/" #define SERVER_PORT 443 #define SERVER_SSL 1 /* Hardware config */ #define BUTTON 2 #define LED 0 #endif /* __CONFIG_HPP__ */
mit
if-Team/__DEPRECATED__
HmHmmHm/src/pocketmine/command/defaults/SpawnpointCommand.php
2912
<?php /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___...
mit
DevinLow/DevinLow.github.io
test/scripts/helpers/list_categories.js
11407
'use strict'; const Promise = require('bluebird'); describe('list_categories', () => { const Hexo = require('../../../lib/hexo'); const hexo = new Hexo(__dirname); const Post = hexo.model('Post'); const Category = hexo.model('Category'); const ctx = { config: hexo.config }; ctx.url_for = require('...
mit
codahale/grump
Godeps/_workspace/src/github.com/Bowery/prompt/output.go
2651
// Copyright 2013-2014 Bowery, Inc. package prompt import ( "os" "unicode/utf8" ) // toBytes converts a slice of runes to its equivalent in bytes. func toBytes(runes []rune) []byte { char := make([]byte, utf8.UTFMax) bytes := make([]byte, 0) for _, r := range runes { n := utf8.EncodeRune(char, r) bytes = a...
mit
zlsoftdq/Notebook
app/backgrounds/window.js
1938
import fs from 'fs' import path from 'path' import { app, BrowserWindow, screen } from 'electron' const dir = app.getPath('userData') export default (name, options) => { const stateStoreFile = path.join(dir, 'window-state-' + name + '.json') const defaultSize = { width: options.width, height: options.height } ...
mit
muskovicsnet/conrate
vendor/engines/pages/lib/conratepages/engine.rb
98
module Conratepages class Engine < ::Rails::Engine isolate_namespace Conratepages end end
mit
Bhare8972/LOFAR-LIM
LIM_scripts/stationTimings/autoCorrelator3_stochastic_fitter.py
58592
#!/usr/bin/env python3 #python import time from os import mkdir, listdir from os.path import isdir, isfile from itertools import chain #from pickle import load #external import numpy as np from scipy.optimize import least_squares, minimize, approx_fprime #from scipy.signal import hilbert from matplotlib import pyplot...
mit
ginach/msgraph-sdk-dotnet
src/Microsoft.Graph/Models/Generated/WorkbookFunctionsBesselKRequestBody.cs
1423
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
mit
ginfuru/vscode-onedark-raincoat
node_modules/vso-node-api/HttpClient.js
15454
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) {...
mit
dawikur/c8
include/chip/executor.hpp
584
// Copyright 2016 Dawid Kurek. All Rights Reserved. #ifndef INCLUDE_CHIP_EXECUTOR_HPP_ #define INCLUDE_CHIP_EXECUTOR_HPP_ #include "callbacks.hpp" #include "chip/memory.hpp" #include "chip/opcode.hpp" namespace chip { class Executor { public: Executor(); void operator()(Opcode const &, Memory &, GetKey const ...
mit
josegonzalez/php-queuesadilla
src/josegonzalez/Queuesadilla/Event/EventListenerInterface.php
1066
<?php namespace josegonzalez\Queuesadilla\Event; /** * Objects implementing this interface should declare the `implementedEvents` function * to notify the event manager what methods should be called when an event is triggered. * */ interface EventListenerInterface { /** * Returns a list of events this o...
mit
terut/ltsv-logger
spec/ltsv-logger_spec.rb
646
# coding: utf-8 require 'spec_helper' describe LTSV do context 'shortcut method' do context '.logger' do before do LTSV::Logger.open(RSpec.configuration.test_log_path) end it 'module has logger instance' do LTSV.logger.should be_an_instance_of(LTSV::Logger::Logger) end ...
mit
hakatashi/esolang-battle
contests/5.js
4427
const random = require('lodash/random'); const printableRegex = /[a-z0-9!"#$%&'()*+,./:;<=>?@[\\\]^_`{|}~-]/gi; module.exports.getPrecedingIndices = (cellIndex) => { const x = cellIndex % 24; const y = Math.floor(cellIndex / 24); const isOdd = Math.floor(y / 2) % 2 === 0; const dx = x % 4; const dy = y % 2; con...
mit
cdubuc/arakey
src/AppBundle/Controller/Car.php
10188
<?php /** * Created by IntelliJ IDEA. * User: c.dubuc * Date: 06/11/2016 * Time: 23:56 */ namespace AppBundle\Controller; use FOS\RestBundle\Controller\FOSRestController; use FOS\RestBundle\Controller\Annotations\RouteResource; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use FOS\RestBundle\Contro...
mit
Haacked/Rothko
src/Rothko/Infrastructure/IFileFacade.cs
28116
using System.Collections.Generic; using System.IO; using System.Security.AccessControl; using System.Text; namespace Rothko { public interface IFileFacade { /// <summary> /// Creates or overwrites the specified file with the specified buffer size, /// file options, and file security. ...
mit
sproutcoin/sprouts
src/qt/locale/bitcoin_da.ts
127726
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="da"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Sprouts</source> <translation type="unfinished"></t...
mit
cuckata23/wurfl-data
data/sonyericsson_x1i_ver1_subr1aa.php
579
<?php return array ( 'id' => 'sonyericsson_x1i_ver1_subr1aa', 'fallback' => 'sonyericsson_x1i_ver1', 'capabilities' => array ( 'mobile_browser_version' => '7.11', 'uaprof' => 'http://wap.sonyericsson.com/uaprof/X1iR101.xml', 'release_date' => '2008_november', 'columns' => '16', 'rows' => '3...
mit
vesln/tryc
karma.conf.js
227
module.exports = function(config) { config.set({ files: [ 'build/build.js', 'test/support/index.js', 'test/index.js' ], browsers: ['PhantomJS', 'Chrome', 'Firefox'], singleRun: true }); };
mit
kosua20/GL_Template
docs/theme/process-glsl.py
3542
#!/usr/bin/env python # -*- coding: utf-8 -*- # If no documentation is generated, make sure that this file is executable. import sys import os def printout(text): sys.stdout.write(text) doxyFullNames = {"vert" : "vertex", "frag" : "fragment", "geom" : "geometry", "glsl" : "general", "tessc" : "tesselation control"...
mit
togusafish/app2641-_-hacker-bookmark
config/routes.rb
1591
Rails.application.routes.draw do # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" root 'index#index' # Example of regular route: # get 'products/:id' => 'catalo...
mit
CyclopsMC/IntegratedDynamics
src/main/java/org/cyclops/integrateddynamics/block/BlockMenrilSlabConfig.java
1237
package org.cyclops.integrateddynamics.block; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.SlabBlock; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.material.MaterialColor; import org.cyclops.cyclo...
mit
trentm/node-bunyan
test/safe-json-stringify.test.js
2150
/* * Copyright 2020 Trent Mick * * If available, use `safe-json-stringfy` as a fallback stringifier. * This covers the case where an enumerable property throws an error * in its getter. * * See <https://github.com/trentm/node-bunyan/pull/182> */ var exec = require('child_process').exec; var test = require('tap...
mit
charlielor/blt2
web/js/blocks/package.block.js
17741
$(document).ready(function() { // Get the modal for Package var packageModal = $("#packageModal"); // Get the id for the each of the select2 dropdown boxes var select2Shipper = $("#select2-Shipper"); var select2Vendor = $("#select2-Vendor"); var select2Receiver = $("#select2-Receiver"); //...
mit
montanaflynn/phpjs
_unported/xdiff/xdiff_string_bpatch.js
37
function xdiff_string_bpatch () { }
mit
roderickwang/apollo-menu-static
src/js/lib/DateConflict.js
116
/** * Created by pengfei on 2015/8/2. */ export default class DateConflict{ constructor(schemeData){ } }
mit
k2works/baukis-kai
app/presenters/confirming_user_form_presenter.rb
401
class ConfirmingUserFormPresenter < ConfirmingFormPresenter def full_name_block(name1, name2, label_text, options = {}) markup(:div, class: 'AppForm__input-block') do |m| m << decorated_label(name1, label_text, options) m.div(object.send(name1) + ' ' + object.send(name2), class: 'AppForm--field-value'...
mit
coveord/Blitz2016-Server
sample-clients/java-client/src/main/java/com/coveo/blitz/client/bot/SimpleBot.java
860
package com.coveo.blitz.client.bot; import com.coveo.blitz.client.dto.GameState; /** * Most basic interface for a bot * <p/> * The SimpleBot gets a GameState and is expected to return a BotMove. The response to the server is a Move, * but since a SimpleBot does not know its API key, it returns a BotMove to indic...
mit
brewhk/follower
server/index.js
121
import Followers from '../lib/collections.js'; import './methods.js'; import './publications.js'; export { Followers };
mit
fujaru/lasku
www/install/actions/test.php
7136
<?php defined('SYSPATH') or die('No direct script access.'); /* BEGIN TESTING */ $tests = array(); $releases = include INSTPATH.'releases'.EXT; $ver_exists = false; // Current Lasku Version $tests['version'] = array( 'label' => "Existing Lasku Installation", ); if(!file_exists(APPPATH.'config/lasku.version'.EXT)) ...
mit
contentful/contentful-management.js
lib/enhance-with-methods.ts
1091
/** * This method enhances a base object which would normally contain data, with * methods from another object that might work on manipulating that data. * All the added methods are set as non enumerable, non configurable, and non * writable properties. This ensures that if we try to clone or stringify the * base ...
mit