repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
PsychoLlama/mytosis
packages/mytosis/src/connection-group/test.js
8301
/* eslint-disable require-jsdoc */ import expect, { createSpy } from 'expect'; import { Connection } from '../mocks'; import ConnectionGroup from './index'; import Stream from '../stream'; describe('ConnectionGroup', () => { let group, conn; beforeEach(() => { group = new ConnectionGroup(); conn = new Co...
mit
wael-Fadlallah/overflow
asset/tinymce/src/core/src/test/js/browser/undo/LevelsTest.js
5857
asynctest( 'browser.tinymce.core.undo.LevelsTest', [ 'ephox.agar.api.Pipeline', 'ephox.mcagar.api.LegacyUnit', 'ephox.mcagar.api.TinyLoader', 'tinymce.core.Env', 'tinymce.core.undo.Levels', 'tinymce.themes.modern.Theme' ], function (Pipeline, LegacyUnit, TinyLoader, Env, Levels, Theme) {...
mit
numedik/nmcore
db/migrate/20150804070337_create_treatmentnotetypes.rb
251
class CreateTreatmentnotetypes < ActiveRecord::Migration def change create_table :treatmentnotetypes do |t| t.string :code t.string :name t.boolean :disabled, :default => false t.timestamps null: false end end end
mit
RealGeeks/lead_router.py
leadrouter/alerts.py
1519
import pprint import json from leadrouter import sentry class Alerts(object): '''Alerts is an interface to both a standard python logger and sentry Only critical() messages are sent to sentry. Make sure SENTRY_DSN environment variable is set (see sentry.py) ''' def __init__(self, logger): ...
mit
red2901/sandbox
exceldna/Libs/Bemu/BEmu_cpp/src/HistoricalDataRequest/HistoricElementFieldData.cpp
4374
//------------------------------------------------------------------------------ // <copyright project="BEmu_cpp" file="src/HistoricalDataRequest/HistoricElementFieldData.cpp" company="Jordan Robinson"> // Copyright (c) 2013 Jordan Robinson. All rights reserved. // // The use of this software is governed by th...
mit
codeforanchorage/collective-development
app/mod_user/views.py
5138
import string from random import randint from flask import Blueprint, g, current_app, render_template, flash, redirect, request, url_for, jsonify, session, Markup, abort from flask.ext.login import current_user, login_required, login_user from flask.ext.babel import gettext as _ #from app.utils import url_for_school #...
mit
chregu/hack-examples
opaquetypealiasing.php
208
<?hh // File1.php newtype SecretID = int; function modify_secret_id(SecretID $sid): SecretID { return $sid - time() - 2042; } function main_ot1(): void { echo modify_secret_id(44596); } main_ot1();
mit
ccoakley/dbcbet
dbcbet/dbcbet.py
25651
""" dbcbet: The library for design-by-contract The public API is: @inv(some_predicate) and @dbc applied to a class @pre(some_predicate) and @post(some_predicate) applied to a method @pre_final applied to a method @throws(exception1, ...) applied to a method The functions (predicates) used by the decorators have diffe...
mit
twasilczyk/gg-dissector
dissect-gg11.cpp
11536
#include "packet-gg.hpp" #include "dissect-gg11.hpp" #include "dissect-protobuf.hpp" #include <vector> #include <iostream> using namespace std; gint ett_option = -1; gint ett_mpanotify_data = -1; class GGPDisplayOption : public PBDisplay { public: GGPDisplayOption():PBDisplay(PBTYPE_STRING) {} virtual void displ...
mit
robertrypula/AudioNetwork
src-still-es5/data-link-layer/data-link-layer-builder.js
3786
// Copyright (c) 2015-2018 Robert Rypuła - https://audio-network.rypula.pl 'use strict'; (function () { AudioNetwork.Injector .registerFactory('Rewrite.DataLinkLayer.DataLinkLayerBuilder', DataLinkLayerBuilder); DataLinkLayerBuilder.$inject = [ 'Rewrite.DataLinkLayer.DataLinkLayer' ]; ...
mit
billletson/dominion
dominion/__init__.py
103
from .deck import * from .game import * from .strategies import buy_strategies, action_strategies
mit
Guillaume-Docquier/Thingy
static/javascript/posts/controllers/search.controller.js
5041
(function(){ 'use strict' angular .module('thingy.posts.controllers') .controller('SearchController', SearchController); SearchController.$inject = ['$rootScope', '$scope', 'Posts', '$route', '$cookies', '$location', '$sce']; function SearchController($rootScope, $scope, Posts, $route, $cookies, $loc...
mit
BlueEastCode/loopback-graphql-relay
server/boot/root.js
1469
// Copyright IBM Corp. 2015. All Rights Reserved. // Node module: loopback-example-relations // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict'; module.exports = function(app) { const router = app.loopback.Router(); router.get('/', (req, r...
mit
rawphp/Http-Bundle
src/Behat/HttpContext.php
3887
<?php namespace RawPHP\HttpBundle\Behat; use Behat\Behat\Context\Context; use Behat\Behat\Hook\Scope\ScenarioScope; use Behat\Gherkin\Node\TableNode; use Behat\Symfony2Extension\Context\KernelAwareContext; use Behat\Symfony2Extension\Context\KernelDictionary; use GuzzleHttp\Psr7\Request; use GuzzleHttp\Psr7\Response;...
mit
ElofssonLab/web_common_backend
proj/pred/app/run_job.py
35204
#!/usr/bin/env python # Description: run job for the backend. result will not be cached import os import sys import subprocess from libpredweb import myfunc from libpredweb import webserver_common as webcom import glob import hashlib import shutil from datetime import datetime from dateutil import parser as dtparser fr...
mit
OysteinAmundsen/gymsystems
server/src/api/graph/user/dto/login-user.dto.ts
322
import { ApiModelProperty } from '@nestjs/swagger'; export class LoginUserDto { @ApiModelProperty({ description: `The username as previously registerred in the system` }) username: string; @ApiModelProperty({ description: `The unencrypted password as previously registerred in the system` }) password: string; ...
mit
techdev-solutions/trackr-frontend
test/backendMock.js
12757
define(['fixtures'], function(fixtures) { 'use strict'; return function($httpBackend) { $httpBackend.when('GET', 'api/principal').respond({ id: 0, email: 'admin@techdev.de', enabled: true, authorities: [ {authority: 'ROLE_ADMIN'} ...
mit
desjarlais/restfuloutlook
RESTfulOutlook/Forms/CategoriesForm.Designer.cs
2392
namespace RESTfulOutlook.Forms { partial class CategoriesForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
mit
giannispan/cms-laravel-angular
app/Http/Controllers/Auth/AuthController.php
1813
<?php namespace App\Http\Controllers\Auth; use App\User; use Validator; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ThrottlesLogins; use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; class AuthController extends Controller { /* |-------------------------------------------...
mit
chentr/silverplate
silverplate/urls.py
822
"""silverplate URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
mit
rustyhann/examples
csharp/FtpSync/SqlServerMigrations/Migrations/20160506100955_CREATE_CSP_SYNC_TRANSACTIONS.cs
384
using System; using FluentMigrator; namespace SqlServerMigrations { [Migration(20160506100955)] public class CREATE_CSP_SYNC_TRANSACTIONS : Migration { public override void Up() { Execute.EmbeddedScript("20160506100955_CREATE_CSP_SYNC_TRANSACTIONS.sql"); } publi...
mit
irfanHasbek/mkb-andios-backend
back-end/Routers/HesapRouter.js
4525
var express = require('express'); var fs = require('fs') var KullaniciModeli = require('../Modeller/KullaniciModeli') var VersionModeli = require('../Modeller/VersiyonModeli') var KurumsalIzinler = require('../Modeller/KurumsalIzinlerModeli') var HakkimizdaModeli = require('../Modeller/HakkimizdaModeli') var IletisimMo...
mit
msburgess3200/PERP
gamemodes/perp/gamemode/vgui/phone.lua
15329
local PANEL = {}; surface.CreateFont("PhoneFont", { font="Tahoma", size=ScreenScale(7), weight=1000, antialias=true }) surface.CreateFont("PhoneFontSmall", { font="Tahoma", size=ScreenScale(6), weight=1000, antialias=true }) local phone_text_r = CreateClientConVar("perp2_phone_text_r", "0", true, false); l...
mit
leschenko/simple_slug
lib/simple_slug/railtie.rb
215
module SimpleSlug class Railtie < Rails::Railtie initializer 'simple_slug.model_additions' do ActiveSupport.on_load :active_record do include SimpleSlug::ModelAddition end end end end
mit
jmhol9/Scheme
test/mailers/invite_notifier_test.rb
127
require 'test_helper' class InviteNotifierTest < ActionMailer::TestCase # test "the truth" do # assert true # end end
mit
freezestudio/hana.zh
hana/detail/has_common_embedding.hpp
2449
/*! @file Defines `boost::hana::detail::has_[nontrivial_]common_embedding`. @copyright Louis Dionne 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_DETAIL_HAS_COMMON_EMBEDDING_HPP #define BOOST_H...
mit
julesbond007/owlpad
owlpad-service-impl/src/main/java/com/owlpad/service/model/Region.java
1603
package com.owlpad.service.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToOne; /** * * @author Jay Paulynice * */ @Entity(name = "region") public ...
mit
datokrat/nodejs-odata-server
ast2query.js
1772
module.exports = { getQueryFromSyntaxTree: getQueryFromSyntaxTree }; var queries = require('./queries'); var navi = require('../abnfjs/ast-navigator'); var queryFactory = require('./dbqueryfactory'); function getQueryFromSyntaxTree(ast, schema) { return getQueryFromCondensedSyntaxTree(ast.evaluate(), schema); } fu...
mit
YaniLozanov/Software-University
C#/05. C# Web Development/Back-End/04. Web Server - EF Core Exercises/WebServer/ByTheCakeApplication/ViewModels/Products/ProductInCartViewModel.cs
205
namespace WebServer.ByTheCakeApplication.ViewModels.Products { public class ProductInCartViewModel { public string Name { get; set; } public decimal Price { get; set; } } }
mit
auth0/java-jwt
lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.java
2628
package com.auth0.jwt.impl; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import java.io.IOException; import java.util.*; /** * Jackson serializer implementation for converting into JWT Payload ...
mit
Projesh07/Python-basic
python data types/string.py
4196
#String with double qoutes variable_string="Hello world" print(variable_string) #Output Hello world #String with single qoutes you migh use escape char for this kind of string variable_string='Python\'s world' print(variable_string) #Output Python's world #String with multi line python use three double quotes var...
mit
tlossen/stakkenblokken
src/main/java/stakkenblokken/model/Color.java
397
// automatically generated by the FlatBuffers compiler, do not modify package stakkenblokken.model; public final class Color { private Color() { } public static final byte Red = 1; public static final byte Green = 2; public static final byte Blue = 3; public static final String[] names = { "Red", "Green", ...
mit
fayfox/fayfox
vendor/cms/modules/admin/controllers/CommentController.php
1143
<?php namespace cms\modules\admin\controllers; use cms\library\AdminController; use fay\core\Sql; use fay\models\tables\Messages; use fay\common\ListView; class CommentController extends AdminController{ public function __construct(){ parent::__construct(); $this->layout->current_directory = 'message'; } pub...
mit
PublicaMundi/pycsw
pycsw/plugins/outputschemas/atom.py
5170
# -*- coding: iso-8859-15 -*- # ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2012 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files...
mit
Razborges/algGrafos
Trabalho2/bfs.py
1487
# coding: utf-8 __author__ = 'Rafael Borges' ''' Ex. de implementação do algoritmo BFS (Busca em largura em Grafo) imprimindo todos os vértices do grafo ''' import sys, os def bfs(grafo, inicio): q = [] visitado = [] pais = {} q.append(inicio) visitado.append(inicio) print(inicio, end='\t') ...
mit
fenos/graphql-thinky
test/unit/typeMapper.test.js
7139
import test from 'ava'; import thinky from './../helpers/db/thinky'; import thinkySchema from 'thinky-export-schema'; import {expect} from 'chai'; import {toGraphQLDefinition,attributeToGraphQLType} from './../../src/typeMapper'; import { GraphQLString, GraphQLBoolean, GraphQLInt, GraphQLObjectType, GraphQLL...
mit
olavloite/spanner-jdbc-converter
src/main/java/nl/topicus/spanner/converter/data/TablePreparer.java
793
package nl.topicus.spanner.converter.data; import java.sql.Connection; import java.util.concurrent.Callable; public class TablePreparer implements Callable<ConversionResult> { private final AbstractTableWorker worker; private final Connection source; private final Connection destination; public Ta...
mit
slolam/XecMe
src/Common/Zip/IZipIOBlock.cs
745
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Axp.Fx.Common.Zip { internal interface IZipIOBlock { // Methods bool GetDirtyFlag(bool closingFlag); void Move(long shiftSize); PreSaveNotificationScanControlInstruc...
mit
RPGroup-PBoC/gist_pboc_2017
code/fly_transcription.py
5909
# Import the necessary modules. import numpy as np import matplotlib.pyplot as plt import seaborn as sns # For getting file names. import glob # For image processsing. import skimage.io import skimage.filters import skimage.segmentation import skimage.measure # In this exercise, we will measure the rate of transcrip...
mit
luiighi2693/karma
karmathegame/phpMyAdmin/libraries/ip_allow_deny.lib.php
5212
<?php /* $Id: ip_allow_deny.lib.php 9781 2006-12-07 18:00:46Z lem9 $ */ // vim: expandtab sw=4 ts=4 sts=4: /** * This library is used with the server IP allow/deny host authentication * feature */ /** * Gets the "true" IP address of the current user * * @return string the ip of the user * * @access priva...
mit
digital-local-laws/git_law
spec/spec_helper.rb
4397
# Add coverage testing require "codeclimate-test-reporter" CodeClimate::TestReporter.start # Support specs for access control policies require 'pundit/rspec' # This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The ...
mit
karim/adila
database/src/main/java/adila/db/t6wl.java
202
// This file is automatically generated. package adila.db; /* * HTC OneMaxVZW * * DEVICE: t6wl * MODEL: HTC6600LVW */ final class t6wl { public static final String DATA = "HTC|OneMaxVZW|"; }
mit
Beanstream-DRWP/beanstream-java
src/main/java/com/beanstream/domain/Token.java
2178
/* The MIT License (MIT) * * Copyright (c) 2014 Beanstream Internet Commerce Corp, Digital River, Inc. * * 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 w...
mit
kbccoin/kbc
src/init.cpp
58514
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Darkcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #inc...
mit
authbucket/user
src/Pantarei/User/Model/RoleManagerInterface.php
586
<?php /** * This file is part of the pantarei/user package. * * (c) Wong Hoi Sing Edison <hswong3i@pantarei-design.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Pantarei\User\Model; interface RoleManagerInterfac...
mit
muravjov/fablib
src/o_p.py
4628
#!/usr/bin/env python # coding: utf-8 import os import shutil def join(path, *fname): return os.path.join(path, *fname) def without_ext(fname): # удалить расширение из имени файла/пути return os.path.splitext(fname)[0] def extension(fname): """ В отличие от splitext, точка вначале убирается; ...
mit
1wheel/scraping
blackout/bin/parse.js
992
var fs = require('fs') var d3 = require('d3') var ƒ = require('forte-f') var queue = require('queue-async') var glob = require('glob') var request = require('request') var _ = require('lodash') var zips = d3.tsv.parse(fs.readFileSync(__dirname + '/zip.tsv', 'utf-8')) glob(__dirname + "/raw-html/*.html", function (er...
mit
andest01/trout-maps
src/ui/core/MapboxModule.selectors.js
530
// import { createSelector } from 'reselect' export const mapboxModuleSelector = state => { return state.mapModule.mapModule } export const isMapboxModuleLoadedSelector = state => { return state.mapModule.mapModuleStatus } // const ROOT = '/' // export const isRootPageSelector = createSelector( // [locationSele...
mit
dylan-danse/Recyzone
src/AppBundle/Entity/Commune.php
1100
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Commune * * @ORM\Table(name="commune") * @ORM\Entity(repositoryClass="AppBundle\Repository\CommuneRepository") */ class Commune { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\Gener...
mit
edosgn/colossus-sit
src/JHWEB/SeguridadVialBundle/Repository/SvSenialDemarcacionRepository.php
277
<?php namespace JHWEB\SeguridadVialBundle\Repository; /** * SvSenialDemarcacionRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class SvSenialDemarcacionRepository extends \Doctrine\ORM\EntityRepository { }
mit
Travix-International/frint
packages/frint-react-server/src/renderToString.spec.js
2896
/* eslint-disable import/no-extraneous-dependencies, func-names, react/prop-types */ /* global describe, it */ import React from 'react'; import { expect } from 'chai'; import { createApp } from 'frint'; import { observe, streamProps, Region } from 'frint-react'; import renderToString from './renderToString'; descri...
mit
Myndale/Simbuino
src/Simbuino.Emulator/HiPerfTimer.cs
1569
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Simbuino.Emulator { // high performance timer used for profiling, code courtesy Daniel Strigl http:/...
mit
travismartinjones/Dauber.Azure
Dauber.Azure.Settings/ISettingsBlobStoreSettings.cs
141
using Dauber.Azure.Blob.Contracts; namespace Dauber.Azure.Settings { public interface ISettingsBlobStoreSettings : IBlobSettings {} }
mit
space-wizards/space-station-14
Content.Server/StationEvents/Events/PowerGridCheck.cs
2685
using System.Collections.Generic; using System.Threading; using Content.Server.Power.Components; using JetBrains.Annotations; using Robust.Shared.Audio; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Localization; using Robust.Shared.Player; using Robust.Shared.Random; using Timer = Robus...
mit
freeman-lab/pixel-grid
util/layout.js
381
function layout (rows, columns, padding, size, aspect) { var grid = [] for (var i = 0; i < rows; i++) { for (var j = 0; j < columns; j++) { var x = -1 + aspect * ((i) * (padding + size) + (padding) + (size / 2)) var y = 1 - ((j) * (padding + size) + (padding) + (size / 2)) grid.push([y, x]) ...
mit
PhillyNJ/SAMD21
cryptoauthlib/docs/html/search/defines_c.js
109
var searchData= [ ['tbd',['TBD',['../a00179.html#a427c0d9dc4a1052229c8c75a6d126577',1,'atca_basic.h']]] ];
mit
StadGent/laravel_site_opening-hours
database/seeds/DefaultCalendarSeeder.php
210
<?php use Illuminate\Database\Seeder; class DefaultCalendarSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // } }
mit
okgreece/RDFBrowser
resources/themes/obeu/views/layouts/browser_partials/footer.blade.php
244
<footer class="footer"> Powered by <a href='http://github.com/okgreece/RDFBrowser'>RDFBrowser</a>. Developed by <a href="http://www.okfn.gr">OKF GREECE</a>.</strong> {!! trans('theme/browser/footer.aknowledgement') !!} </footer>
mit
Sudei/Anagram-Hero
web/app/Modules/game/game.js
5956
'use strict'; var game = angular.module('anagram_hero.game', [ 'ngRoute', 'anagram_hero.game.round_service', 'anagram_hero.game.anagram_service', 'anagram_hero.game.filters' ]) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/game', { templateUrl : 'Modules/game/...
mit
neotext/neotext-wordpress
js/versions/0.4/0.4.1-CiteIt-quote-context.js
17220
/* * Quote-Context JS Library * https://github.com/CiteIt/citeit-jquery * * Copyright 2015-2020, Tim Langeman * http://www.openpolitics.com/tim * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT * * This is a jQuery function that locates all "blockquote" and "q" tags * within an htm...
mit
onedata/oneclient
src/events/types/quotaExceeded.cc
974
/** * @file quotaExceeded.cc * @author Krzysztof Trzepla * @copyright (C) 2016 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in * 'LICENSE.txt' */ #include "quotaExceeded.h" #include "messages.pb.h" #include <sstream> namespace one { namespace client { namespace events { ...
mit
danopia/uberha.us
occupancy/input.js
2142
var spawn = require('child_process').spawn; var http = require('http'); var util = require('util'); var config = require('./../lib/config'); var ddwrt = config.node.occupancy.ddwrt; var routerUrl = util.format('http://%s:%s@%s/Info.live.htm', ddwrt.user, ddwrt.pass, ddwrt.ip); exports.scanWifi = function (cb) { var...
mit
adam3smith/csl-editor
src/cslParser.js
5326
"use strict"; // This converts between the following two formats: // // 1. A *.csl text file. // 2. A JSON object as used by get() and set() in src/Data define(['src/xmlUtility', 'src/debug'], function (CSLEDIT_xmlUtility, debug) { // Recursively generates and returns a CSL style JSON node, converted from the given...
mit
JohnBat26/league_tutorial
src/app/club/club.spec.js
1463
/** * Unit tests for the club functionality */ describe( 'Clubs list controller', function() { var scope, httpBackend; //mock Application to allow us to inject our own dependencies beforeEach(angular.mock.module('league')); //mock the controller for the same reason and include $rootScope and $contro...
mit
bfleyshe/ProjectAttitude
ProjectAttitude/app/src/main/java/com/projectattitude/projectattitude/Activities/ViewProfileActivity.java
19205
/* * MIT License * * Copyright (c) 2017 CMPUT301W17T12 * Authors rsauveho vuk bfleyshe henrywei cs3 * * 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 wi...
mit
JaniAnttonen/BierCell
config/env/test.js
1271
'use strict'; module.exports = { db: 'mongodb://localhost/bier-cell-test', port: 3001, app: { title: 'Bier Cell - Test Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: ...
mit
dayse/gesplan
src/xfuzzy/xfsg/XfsgBlock.java
3566
//--------------------------------------------------------------------------------// // COPYRIGHT NOTICE // //--------------------------------------------------------------------------------// // Copyright (c) 2012, Instituto de Microelectronica de Sevill...
mit
snitko/straight-server
spec/lib/orders_controller_spec.rb
10996
require 'spec_helper' RSpec.describe StraightServer::OrdersController do before(:each) do DB.run("DELETE FROM orders") @gateway = gateway = StraightServer::Gateway.find_by_id(2) allow(gateway).to receive_message_chain("address_provider.takes_fees?").and_return(false) allow(gateway).to receive_messag...
mit
wromero/mentornotas
src/Jazzyweb/AulasMentor/NotasBackendBundle/Admin/TarifaAdmin.php
1096
<?php namespace Jazzyweb\AulasMentor\NotasBackendBundle\Admin; use Sonata\AdminBundle\Admin\Admin; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Validator\ErrorElement; use Sonata\AdminBundle\Form\FormMapper; class TarifaAdmin extends Admin { pro...
mit
hasaki/ExpressiveData
ExpressiveData.Sample/Models/Repositories/SampleDataRepository.cs
2546
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Threading.Tasks; namespace ExpressiveData.Sample.Models.Repositories { public abstract class SampleDataRepository { protected void ExecuteQuery<TModel>(string...
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highcharts/config/SeriesScatterDragDropDragHandle.scala
4116
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highcharts]] */ package com.highcharts.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScri...
mit
eddmash/powerorm
tests/RegistryApp/Models/Author.php
565
<?php /** * This file is part of the powerorm package. * * (c) Eddilbert Macharia (http://eddmash.com)<edd.cowan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Eddmash\PowerOrm\Tests\RegistryApp\Models; use...
mit
Brodan/PubNub-Neopixel-Demo
publisher.py
1416
import re import os import argparse from pubnub.pnconfiguration import PNConfiguration from pubnub.pubnub import PubNub def hex_to_rgb(value): """Return (Red, Green, Blue) for the color given as #rrggbb. src: http://stackoverflow.com/a/214657/5045925 """ value = value.lstrip('#') lv = len(value) ...
mit
AccelerateX-org/NINE
Sources/TimeTable/MyStik.TimeTable.Data/Migrations/201712291128017_ExamV3.designer.cs
811
// <auto-generated /> namespace MyStik.TimeTable.Data.Migrations { using System.CodeDom.Compiler; using System.Data.Entity.Migrations; using System.Data.Entity.Migrations.Infrastructure; using System.Resources; [GeneratedCode("EntityFramework.Migrations", "6.2.0-61023")] public sealed parti...
mit
J-Y/RubyQuiz
ruby_quiz/quiz100_sols/solutions/Marcel Ward/lexer_mw.rb
10533
#!/usr/bin/env ruby ################################################################## # = lexer_mw.rb - generic lexical analyser # # Author:: Marcel Ward <wardies ^a-t^ gmaildotcom> # Documentation:: Marcel Ward # Last Modified:: Monday, 06 November 2006 # # Solution for Ruby Quiz number 100 - http://www.ruby...
mit
Puliyedath/NoteSharer
config/env/production.js
1424
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/notesharer', assets: { lib: { css: [ ], js: [ 'public/lib/angular/angular.min.js', 'public/lib/angular-resource/angular-resource.min.js', 'public/lib/angular-touch/angular-touch...
mit
Allov/obgj-tap-dungeon
src/objects/ColoredText.js
853
// example: // let center = { x: this.game.world.centerX, y: this.game.world.centerY } // let text = new ColoredText(this.game, center.x, center.y, '- ph{#ff0000}aser -\nwith a spr{#00ff00}inkle of\nco{#0000ff}lors', { font: '45px Arial', fill: '#ffffff', align: 'center' }); const PATTERN = /\{(.*?)\}/g; export defaul...
mit
jeremytammik/forgefader
src/client/viewer.components/Viewer.Extensions/Viewing.Extension.Configurator.Predix/index.js
129
import './Viewing.Extension.Configurator.Predix' import './Predix.scss' export default 'Viewing.Extension.Configurator.Predix'
mit
mixerp4/frapid
src/Frapid.Web/Areas/Frapid.Core/WebAPI/Properties/AssemblyInfo.cs
1366
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("Fr...
mit
NullVoxPopuli/aeonvera-ui
app/routes/events/show/raffles/show/raffle-tickets/index.js
240
import Ember from 'ember'; import Index from 'aeonvera/mixins/routes/crud/events/index'; export default Ember.Route.extend(Index, { modelName: 'raffle-ticket', parentIdKey: 'raffle_id', parentPathRoot: 'events.show.raffles.show' });
mit
Nrupesh29/Web-Traffic-Visualizer
vizceral/src/base/node.js
8573
/** * * Copyright 2016 Netflix, Inc. * * 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 a...
mit
OblivionNW/Nucleus
src/main/java/io/github/nucleuspowered/nucleus/modules/item/commands/lore/LoreCommand.java
1058
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.item.commands.lore; import io.github.nucleuspowered.nucleus.internal.annotations.command.Permissions; import io.github...
mit
alphaleonis/AlphaFS
src/AlphaFS/Filesystem/Directory Class/Directory Junctions, Links/Directory.CreateSymbolicLinkTransacted.cs
4839
/* Copyright (C) 2008-2018 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov * * 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 t...
mit
redg3ar/aeiou
vendor/github.com/bwmarrin/discordgo/user.go
751
package discordgo import "fmt" // A User stores all data for an individual Discord user. type User struct { ID string `json:"id"` Email string `json:"email"` Username string `json:"username"` Avatar string `json:"avatar"` Discriminator string `json:"discriminator"` Token s...
mit
Rebilly/ReDoc
src/common-elements/schema.ts
1510
import styled from '../styled-components'; import { darken } from 'polished'; export const OneOfList = styled.div` margin: 0 0 3px 0; display: inline-block; `; export const OneOfLabel = styled.span` font-size: 0.9em; margin-right: 10px; color: ${props => props.theme.colors.primary.main}; font-family: ${pr...
mit
yolosec/zeman-parser
zemanfeed/daemon.py
6751
''' *** Modified generic daemon class *** Author: http://www.jejik.com/articles/2007/02/ a_simple_unix_linux_daemon_in_python/www.boxedice.com License: http://creativecommons.org/licenses/by-sa/3.0/ Changes: 23rd Jan 2009 (David Mytton <david@boxedice.com>) ...
mit
makasim/ValuesORM
tests/ValuesTest.php
8272
<?php namespace Formapro\Values\Tests; use function Formapro\Values\add_value; use function Formapro\Values\build_object; use function Formapro\Values\clone_object; use function Formapro\Values\get_value; use function Formapro\Values\get_values; use function Formapro\Values\set_value; use function Formapro\Values\set_...
mit
manishksmd/react-scheduler-smartdata
src/ResourceGrid.js
9874
import React, { Component } from 'react'; import cn from 'classnames'; import { findDOMNode } from 'react-dom'; import dates from './utils/dates'; import localizer from './localizer' import DayColumn from './DayColumn'; import TimeColumn from './TimeColumn'; import Header from './Header'; import getWidth from 'dom-he...
mit
mickleness/pumpernickel
src/main/java/com/pump/plaf/AquaTileLocationBrowserUI.java
739
/** * This software is released as part of the Pumpernickel project. * * All com.pump resources in the Pumpernickel project are distributed under the * MIT License: * https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt * * More information about the Pumpernickel project is available he...
mit
CasualX/CasualX.github.io
docs/pupil-rs/0.1.3/implementors/core/cmp/trait.Ord.js
515
(function() {var implementors = {}; implementors["libc"] = [];implementors["pupil"] = ["impl <a class='trait' href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html' title='core::cmp::Ord'>Ord</a> for <a class='enum' href='pupil/op/enum.Order.html' title='pupil::op::Order'>Order</a>",]; if (window...
mit
skettios/Text-Adventure-API
TA-API/src/test/java/com/skettios/textadventure/command/CommandJeric.java
966
package com.skettios.textadventure.command; import com.skettios.textadventure.api.TextAdventureAPI; import com.skettios.textadventure.api.command.ICommand; import java.util.List; public class CommandJeric implements ICommand { @Override public String[] getCommandAliases() { return new String[]{ "jeric", "ako-si...
mit
TelerikWebFormsOrganization/SimpleBlogSystem
SimpleBlogSystemSolution/SimpleBlogSystem.Common/Properties/AssemblyInfo.cs
1422
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("Si...
mit
maxstorm/investorreports
adodb/drivers/adodb-pdo.inc.php
19326
<? /* V4.63 17 May 2005 (c) 2000-2005 John Lim (jlim#natsoft.com.my). All rights reserved. Released under both BSD license and Lesser GPL library license. Whenever there is any discrepancy between the two licenses, the BSD license will take precedence. Set tabs to 4 for best viewing. Latest version is a...
mit
werrett/ssh-ldap-publickey
main.go
2793
package main import ( "bufio" "crypto/tls" "flag" "fmt" "net" "net/url" "os" "regexp" "strconv" "strings" "github.com/mavricknz/ldap" ) var config = make(map[string]string) var configFile = "/etc/openldap/ldap.conf" var configRegexp = regexp.MustCompile(`^(\w+)\s+(.+)$`) var sshAttributeName = "sshPublicK...
mit
cruzfg/izi_inventory_tracker
src/main/java/com/izi/inventory/tracker/repository/ParkRepository.java
652
package com.izi.inventory.tracker.repository; import com.izi.inventory.tracker.model.Park; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframew...
mit
md2k/fabio
route/target.go
676
package route import ( "net/url" "github.com/eBay/fabio/metrics" ) type Target struct { // Service is the name of the service the targetURL points to Service string // Tags are the list of tags for this target Tags []string // URL is the endpoint the service instance listens on URL *url.URL // FixedWeigh...
mit
techynaf/incuba
model/messages.js
176
Messages = new Mongo.Collection("messages"); Messages.allow({ 'insert' : function(){ return true; }, 'update' : function(){ return true; } });
mit
dmsr45/github_sf_media
src/Service/General.php
26461
<?php namespace App\Service; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; use Symfony\Component\Yaml\Yaml; class General { const TYPE_BOOL = 'bool'; const TYPE_INT = 'int'; const TYPE_FLOAT = 'float'; const TYPE_NULL = 'null'; const TYPE_ARRAY = 'array'; const TYPE_OBJECT = 'object'; ...
mit
hgabka/KunstmaanBundlesCMS
src/Kunstmaan/MediaBundle/Helper/RemoteSlide/RemoteSlideHandler.php
4764
<?php namespace Kunstmaan\MediaBundle\Helper\RemoteSlide; use Kunstmaan\MediaBundle\Entity\Media; use Kunstmaan\MediaBundle\Form\RemoteSlide\RemoteSlideType; use Kunstmaan\MediaBundle\Helper\Media\AbstractMediaHandler; /** * RemoteSlideStrategy. */ class RemoteSlideHandler extends AbstractMediaHandler { /** ...
mit
grokify/swaggman
openapi3lint/openapi3lint1/check_parameters.go
916
package openapi3lint1 import ( "strconv" "strings" oas3 "github.com/getkin/kin-openapi/openapi3" "github.com/grokify/simplego/text/stringcase" ) func ParametersCheck(params oas3.Parameters, jsPointerParameters string, rules Policy) PolicyViolationsSets { vsets := NewPolicyViolationsSets() for i, paramRef := r...
mit