code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
using AzureFromTheTrenches.Commanding.Abstractions; namespace InMemoryCommanding.Commands { public class CommandWithoutResult : ICommand { public string DoSomething { get; set; } } }
JamesRandall/AccidentalFish.Commanding
Samples/InMemoryCommanding/Commands/CommandWithoutResult.cs
C#
mit
207
/* * Copyright (C) 2020 wea_ondara * * BungeePerms is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * BungeePerms is distribu...
weaondara/BungeePerms
src/main/java/net/alpenblock/bungeeperms/TabCompleter.java
Java
mit
12,243
using EleicaoBrasil.Web.ModelView; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web; namespace EleicaoBrasil.Web.Util { public class HttpUtil { public static HttpResponseMessage TrataException(Exception e, HttpRequestMessage r...
Politbook/politbook_server
EleicaoBrasil.Web/Util/HttpUtil.cs
C#
mit
744
require 'model_id/version' require 'model_id/base' module ModelId end
abonec/model_id
lib/model_id.rb
Ruby
mit
71
import {storeFreeze} from "ngrx-store-freeze"; import {localStorageSync} from "ngrx-store-localstorage"; import {combineReducers, StoreModule} from "@ngrx/store"; import {appReducers} from "./shared/store/reducers/app.reducer"; import {AgmCoreModule} from "angular2-google-maps/core"; import {RouterStoreModule} from "@...
apollo-utn-frd/apollo
client/src/app/app.exports.ts
TypeScript
mit
2,209
import datetime import requests import numpy as np import pandas as pd import sys # August 3, 2015: Updated the getNipa() method to accomodate possible differences in data availability for series in tables. # Cleaned up and organized the code substantially. class initialize: def __init__(self,a...
letsgoexploring/beapy-package
beapy.py
Python
mit
25,953
#include <iostream> #include <seqan/align.h> using namespace seqan; using namespace std; int main() { typedef String<char> TSequence; // sequence type typedef Align<TSequence,ArrayGaps> TAlign; // align type typedef Row<TAlign>::Type TRow; // gapped sequence type ...
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/qhuulr654q26tohr/2013-04-10T10-48-27.899+0200/sandbox/PMSB13/apps/5.0/5.0.cpp
C++
mit
1,130
# vim:ts=4:sts=4:sw=4:expandtab """The public API of satori.events. """ import hashlib import random import traceback from satori.objects import Object from satori.events.misc import Namespace from .dispatcher import Dispatcher from .protocol import KeepAlive, Disconnect, Attach, Detach, Map, Unmap, Send, Receive ...
zielmicha/satori
satori.events/satori/events/api.py
Python
mit
2,752
<?php if (!isset($login) || $login->validated != '1') { include DIR."/php/controller/403.php"; die(); } else { function htmlHead() { ?> <script src="http://maps.google.com/maps/api/js"></script> <script src="/jslib/gmaps.js"></script> <style> #map, #panorama { height:450px; background:#6699cc; } ...
fandisus/SSBIN
php/view/common/speciesmap.php
PHP
mit
3,611
module Mediadrawer module Rails VERSION = "0.0.2" end end
tracersoft/mediadrawer-rails
lib/mediadrawer/rails/version.rb
Ruby
mit
66
var Square = UI.component({ components: [Animator, KeyInput], animationMap: { moveLeft: { transform: [-50, 0, 0], time: 200, easing: "linear" }, moveRight: { transform: [50, 0, 0], time: 200, easing: "linear" } }, handleKeyPress: function(e) { if(e.keyCode === 37) { this.Animator.an...
davedx/lustro
examples/auto-atlassing.js
JavaScript
mit
1,618
class RenameTableAttributesOptionToAttributeList < ActiveRecord::Migration def change rename_table :attributes_options, :attribute_lists rename_table :attribute_class_options_attributes_options, :attribute_class_options_attribute_lists rename_column :attribute_class_options_attribute_lists, :attributes_op...
andrew2net/sitescan_common
db/migrate/20160315133239_rename_table_attributes_option_to_attribute_list.rb
Ruby
mit
488
package edu.cmu.hcii.whyline.bytecode; /** * @author Andrew J. Ko * */ public abstract class Instantiation extends Instruction { public Instantiation(CodeAttribute method) { super(method); } public String getReadableDescription() { return "new"; } public String getAssociatedName() { return null; } publi...
andyjko/whyline
edu/cmu/hcii/whyline/bytecode/Instantiation.java
Java
mit
383
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("GorokuEdit")] [assembly: AssemblyDescription("")] [assem...
go63/BenzGorokuSearch
GorokuEdit/Properties/AssemblyInfo.cs
C#
mit
2,757
<!-- Unsafe sample input : get the field userData from the variable $_GET via an object SANITIZE : use in_array to check if $tainted is in the white list File : unsafe, use of untrusted data in a quoted property value (CSS) --> <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agree...
stivalet/PHP-Vulnerability-test-suite
XSS/CWE_79/unsafe/CWE_79__object-classicGet__whitelist_using_array__Use_untrusted_data_propertyValue_CSS-quoted_Property_Value.php
PHP
mit
1,677
package MestreCuca; public enum Medidas { grama, unidade, xicara, colher_sopa }
glauber-barboza/crescer-2015-1
eclipse/MestreCucaAntigo/src/MestreCuca/Medidas.java
Java
mit
88
// Copyright (c) 2018-2020 The DÃSH Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <script/script.h> #include <test/test_biblepay.h> #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(scrip...
biblepay/biblepay
src/test/script_p2pk_tests.cpp
C++
mit
2,196
(function myAppCoreConstants() { 'use strict'; angular .module('myApp.core') .constant('FIREBASE_URL', 'https://blistering-heat-2473.firebaseio.com'); })();
neggro/angularjs_firebase
client/app/core/core.constants.js
JavaScript
mit
183
#!/usr/bin/env node const fs = require('fs'); const yaml = require('js-yaml'); const cli = require('../lib/cli'); // define cli options const optionList = [ { name: 'help', type: Boolean, description: 'show this help' }, { name: 'host', alias: 'h', type: String, description: 'host name' }, { name: 'port', alias:...
stefda/drsync
bin/drsync.js
JavaScript
mit
2,107
<?php namespace water\session; /* * This class will manage session cookied and allow the opening a session via * a user object and getting a user by there session ID. */ use water\database\Users; class SessionStore{ public static function hasSession(){ if(isset($_SESSION['login-data'])){ $da...
Falkirks/TeamShog
src/session/SessionStore.php
PHP
mit
1,586
/** * Created by alykoshin on 20.01.16. */ 'use strict'; var gulp = require('gulp'); module.exports = function(config) { // Define test task gulp.task('task21', function () { console.log('task21 is running, config:', config); }); // Define test task gulp.task('task22', function () { console.lo...
alykoshin/require-dir-all
demo/21_gulp_advanced/gulp/tasks-enabled/task2.js
JavaScript
mit
371
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. from types import StringType from Bio.Alphabet import ProteinAlphabet from Bio.Seq import...
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/Bio/PDB/Polypeptide.py
Python
mit
11,950
const { FuseBox, QuantumPlugin, UglifyJSPlugin } = require("fuse-box"); const fuse = FuseBox.init({ target: "browser@es5", homeDir: ".", output: "dist/$name.js", plugins: [ QuantumPlugin({ treeshake: true, target: "browser", }), UglifyJSPlugin({ }) ], }); fuse.bundle("remark-bundle").instructions(...
zipang/markdown-bundle
src/remark/bundle/fuse.js
JavaScript
mit
348
import { Controller } from 'marionette'; import Layout from '../commons/layout'; import MainPage from '../pages/mainPage'; import ImportPage from '../pages/importPage'; import ProfileView from '../pages/profileView'; export default Controller.extend({ defaultRoute(){ Layout.main.show( new MainPage() ); ...
jbsouvestre/challengr
Challengr/public/js/routes/controller.js
JavaScript
mit
619
require 'pp' require "google_drive" require "ruby-progressbar" ENV['SSL_CERT_FILE'] = Gem.loaded_specs['google-api-client'].full_gem_path+'/lib/cacerts.pem' module Pairity class GoogleSync CONFIG_FILE = Dir.home + "/.pairity_google.json" attr_reader :sheet_url def initialize(matrix) @matrix = m...
kitlangton/pairity
lib/pairity/google_sync.rb
Ruby
mit
4,194
import{ FETCH_TIMELOGS } from '../actions/TimelogActions'; function ajax(url, callback) { var data; var fetch; fetch = new XMLHttpRequest(); fetch.onreadystatechange = function() { if (fetch.readyState == XMLHttpRequest.DONE ) { if(fetch.status == 200){ var data = JSON.parse(fetch.responseTe...
pdx-code/teampro
src/reducers/TimelogReducer.js
JavaScript
mit
1,374
# This is an example of adding a custom plugin to Projeny # If you uncomment this then initialize a new project (for eg. "prj -p MyProject -bf") # Then after that completes there should be a new file at UnityProjects/MyProject/MyP-win/MyExampleFile.txt #import mtm.ioc.Container as Container #from mtm.ioc.Inject impor...
modesttree/Projeny
Source/prj/plugins/ExamplePlugin.py
Python
mit
745
package com.sensepost.yeti.gui; import java.awt.event.ActionEvent; import java.util.ArrayList; import java.util.HashSet; import com.sensepost.yeti.common.JIPCalc; import com.sensepost.yeti.persistence.DataStore; /** * * @author willemmouton */ public class ReverseLookupInit extends BaseDlg { private String bu...
sensepost/yeti
src/main/java/com/sensepost/yeti/gui/ReverseLookupInit.java
Java
mit
11,627
using System; using System.Collections.Generic; using System.IO; 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 ...
ewasow/learning-cs
MessParser/MessParser/MainWindow.xaml.cs
C#
mit
1,583
/** * @fileoverview Tests for cli. * @author Ian Christian Myers */ //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var assert = require("chai").assert, CLIEngine = require("../../l...
roadhump/eslint
tests/lib/cli-engine.js
JavaScript
mit
28,534
/* global angular, moment */ var app = angular.module('flowList', ['ui.grid']); app.controller('flowListCtrl', function($scope, $http) { 'use strict'; $http.get('/json/rawFlowsForLast/5/minutes') .success(function(data) { var retList = []; data.forEach(function(element) { ...
skarfacegc/FlowTrack2
www/js/flowListController.js
JavaScript
mit
836
require('date-utils'); var sendgrid = require('sendgrid')("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"); module.exports = function(app, config, passport, mongoose, fs, path){ var isAuthenticated = function(req, res, next){ if(req.isAuthenticated()){ return next(); } else { ...
prabhuramkumar/ThoughtPool
config/routes.js
JavaScript
mit
3,415
package com.mapzen.tangram; import android.support.annotation.Keep; import java.util.Map; /** * {@code LabelPickResult} represents labels that can be selected on the screen */ @Keep public class LabelPickResult { /** * Options for the type of LabelPickResult */ public enum LabelType { IC...
quitejonny/tangram-es
platforms/android/tangram/src/main/java/com/mapzen/tangram/LabelPickResult.java
Java
mit
1,122
<?php require_once __DIR__ . '/../../vendor/autoload.php'; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class Progres...
dcsg/phplx-how-to-build-console-app
examples/Helpers/progress.php
PHP
mit
795
using System; namespace Infrastructure.Interface { public interface ITrackableEntity { DateTime CreatedDate { get; set; } string CreatedBy { get; set; } DateTime UpdatedDate { get; set; } string UpdatedBy { get; set; } } }
Radigeco/webapi-jwt-angular-boilerplate
Context/ITrackableEntity.cs
C#
mit
273
class Recipe < ActiveRecord::Base acts_as_taggable validates :name, presence: true validates :people, presence: true validates :duration, presence: true validates :instructions, presence: true belongs_to :user has_many :ingredient_groups, dependent: :destroy has_many :links, dependent: :destroy ac...
joren/recipes
app/models/recipe.rb
Ruby
mit
498
class AddRailSafetyFeatures < ActiveRecord::DataMigration def up [ {name: 'Event Data Recorders', description: 'Report the total number of fleet vehicles equipped with event data recorders according to IEEE 1482.1 standard.', active: true}, {name: 'Emergency Lighting', description: 'Report the tot...
camsys/transam_transit
db/data_migrations/20200528175309_add_rail_safety_features.rb
Ruby
mit
1,076
(function () { 'use strict'; angular.module('AngularPanelsApp.theme') .directive('trackWidth', trackWidth); /** @ngInject */ function trackWidth() { return { scope: { trackWidth: '=', minWidth: '=', }, link: function (scope, element) { scope.trackWidth = $(e...
mauroBus/angular-panels-app
src/app/theme/directives/trackWidth.js
JavaScript
mit
752
import { DynamoStore } from '@shiftcoders/dynamo-easy' import { Person } from '../models' const objectToPut: Person = { id: 'vogelsw', name: 'Werner Hans Peter Vogels', yearOfBirth: 1958, } // object literal or new Person(...) new DynamoStore(Person) .put(objectToPut) .ifNotExists() .exec() .then(() => ...
shiftcode/dynamo-easy
snippets/store-requests/put.snippet.ts
TypeScript
mit
341
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * SDialogRepDpsList.java * * Created on 11/08/2010, 10:49:56 AM */ package erp.mtrn.form; import erp.data.SDataConstants; import erp.data.SDataConstantsSys; import erp.data.SDataUtilities; import erp.lib.SLibCo...
swaplicado/siie32
src/erp/mtrn/form/SDialogRepDpsList.java
Java
mit
25,545
<?php return array( 'controllers' => array( 'factories' => array( \Saas\Controller\Frontend\SaasController::class => \Saas\Controller\Frontend\SaasControllerFactory::class, ), ), 'bjyauthorize' => array( 'guards' => array( 'BjyAuthorize\Guard\Controller' => arra...
gregorybesson/playground
module/Saas/config/module.config.php
PHP
mit
1,171
#### # # This module allows for easy integration with Slack (https://slack.com/). The # messages are sent via JSON over plaintext, so don't use them for transmitting # anything sensitive. # #### ## Imports import json import urllib2 #### # # API Description # # These are all of the Slack API fields supported in this ...
univ-of-utah-marriott-library-apple/management_tools
management_tools/slack.py
Python
mit
10,760
function testRequest(place) { //Pebble.sendAppMessage({"status": "Initiated"}); var req = new XMLHttpRequest(); req.open('GET', 'http://maps.googleapis.com/maps/api/geocode/json?address='+ place + '&sensor=false', true); req.onload = function(e) { if (req.readyState == 4 && req.status == 200) { ...
alin256/MultiZoneNew
src/pkjs/js/pebble-js-app.js
JavaScript
mit
3,399
version https://git-lfs.github.com/spec/v1 oid sha256:91f5e00183c2613cc249e316de2c35c08d8068c7e57cf90d3d4ea7b0179ef7cf size 651743
yogeshsaroya/new-cdnjs
ajax/libs/yasgui/0.0.6/yasgui.min.js
JavaScript
mit
131
<?php namespace Alloparty\UserBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symf...
ybert/alloparty
src/Alloparty/UserBundle/DependencyInjection/Configuration.php
PHP
mit
883
'use strict'; const inView = require('in-view'); const forEach = require('lodash/forEach'); require('gsap'); class Animations { constructor () { this.root = document; this.h1 = this.root.querySelector('[data-hat-title] h1'); this.curtainH1 = this.root.querySelector('[data-curtain-goRight]'); this.g...
dnlml/myvc
src/assets/scripts/parts/animations.js
JavaScript
mit
9,136
<?php namespace Quoty\QuoteBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Category * * @ORM\Table() * @ORM\Entity(repositoryClass="Quoty\QuoteBundle\Entity\CategoryRepository") */ class Category { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(str...
Elfhir/quoty
src/Quoty/QuoteBundle/Entity/Category.php
PHP
mit
903
"use strict"; var notify = require("gulp-notify"); module.exports = function(error) { if( !global.isProd ) { var args = Array.prototype.slice.call(arguments); // Send error to notification center with gulp-notify notify.onError({ title: "Compile Error", message: "<%= error.message %>" ...
polygon-city/citygml-visual-debugger
gulp/util/handleErrors.js
JavaScript
mit
560
<?php namespace Olegf13\Jivochat\Webhooks\Request; use Olegf13\Jivochat\Webhooks\PopulateObjectViaArray; /** * Holds data on completed chatting (chat rank and messages list). * * @package Olegf13\Jivochat\Webhooks\Request */ class Chat { use PopulateObjectViaArray; /** * @var Message[] Messages lis...
Olegf13/jivochat-webhooks-api
src/Request/Chat.php
PHP
mit
1,516
/* colorstrip.js, a plugin for jQuery Copyright (C) 2011 John Watson <john@flagrantdisregard.com> flagrantdisregard.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, includ...
Overdriven-Labs/Mexicoen140
app_server/public/js/colorstrip.js
JavaScript
mit
3,808
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: AssemblyTitle("K8055Simulator.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("K8055Simulator.Tests")] [assembly...
bbartels/K8055Simulator
K8055Simulator.Tests/Properties/AssemblyInfo.cs
C#
mit
641
<?php defined('SYSPATH') OR die('No direct script access.'); return array( // Leave this alone 'modules' => array( // This should be the path to this modules userguide pages, without the 'guide/'. Ex: '/guide/modulename/' would be 'modulename' 'functest' => array( // Whether this modules userguide pages sho...
OpenBuildings/functest
config/userguide.php
PHP
mit
464
/* Matali Physics Demo Copyright (c) 2013 KOMIRES Sp. z o. o. */ using System; using System.Collections.Generic; using OpenTK; using OpenTK.Graphics.OpenGL; using Komires.MataliPhysics; namespace MataliPhysicsDemo { /// <summary> /// This is the main type for your game /// </summary> public cl...
stomppah/KAOS-Engine
Dependencies/MataliPhysicsBasic/MataliPhysicsOpenTK/Mono/MataliPhysicsDemo/MataliPhysicsDemo/Objects/Menu.cs
C#
mit
15,509
<?php // FrontendBundle:Pedido:reporteGeneral.html.twig return array ( 'b9ccb8c' => array ( 0 => array ( 0 => 'bundles/frontend/css/jquery.dataTables.css', ), 1 => array ( 0 => 'cssrewrite', ), 2 => array ( 'output' => '_controller/css/b9ccb8c.css', 'name...
pacordovad/project3
app/cache/dev/assetic/config/5/5ea803aa63bdc4efbcdc7be159654a7b.php
PHP
mit
2,903
asc.component('asc-combobox', function(){ this.afterInit = function (combobox) { var div = eDOM.el('div.dropdown-list'); while (combobox.children.length) { var item = combobox.children[0]; if (item.tagName === "ITEM") { item.innerText += item.getAttribute("tex...
vestlirik/apple-style-controls
src/combobox/code.js
JavaScript
mit
2,304
package ic2.api.item; import net.minecraft.item.ItemStack; import java.util.ArrayList; import java.util.List; /** * Allows for charging, discharging and using electric items (IElectricItem). */ public final class ElectricItem { /** * IElectricItemManager to use for interacting with IElectricItem ItemStacks. *...
planetguy32/TurboCraftingTable
src/api/java/ic2/api/item/ElectricItem.java
Java
mit
1,731
package me.zhongmingmao.connection; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import java.io.IOException; import java.util.concurrent.TimeoutException; public class ConnectionTest { private static final String HOST = "localhost"; public static void main(St...
zhongmingmao/rabbitmq_demo
basic-tutorial/src/main/java/me/zhongmingmao/connection/ConnectionTest.java
Java
mit
556
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("キャプチャされるのは変数という問題")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assemb...
autumn009/TanoCSharpSamples
Chap2/キャプチャされるのは変数という問題/キャプチャされるのは変数という問題/Properties/AssemblyInfo.cs
C#
mit
1,748
require "spec_helper" describe ChunkyPNG::Datastream do describe ".from_io" do it "should raise an error when loading a file with a bad signature" do filename = resource_file("damaged_signature.png") expect { ChunkyPNG::Datastream.from_file(filename) }.to raise_error(ChunkyPNG::SignatureMismatch) ...
wvanbergen/chunky_png
spec/chunky_png/datastream_spec.rb
Ruby
mit
6,371
<?php namespace Platformsh\Cli\Tests\Service; use Platformsh\Cli\Service\Filesystem; use Platformsh\Cli\Tests\HasTempDirTrait; class FilesystemServiceTest extends \PHPUnit_Framework_TestCase { use HasTempDirTrait; /** @var Filesystem */ protected $fs; /** * @{inheritdoc} */ public fun...
platformsh/platformsh-cli
tests/Service/FilesystemServiceTest.php
PHP
mit
6,295
using AutoMapper; using Volo.SqliteDemo.Authorization.Users; namespace Volo.SqliteDemo.Users.Dto { public class UserMapProfile : Profile { public UserMapProfile() { CreateMap<UserDto, User>(); CreateMap<UserDto, User>().ForMember(x => x.Roles, opt => opt.Ignore()); ...
aspnetboilerplate/aspnetboilerplate-samples
SqliteDemo/aspnet-core/src/Volo.SqliteDemo.Application/Users/Dto/UserMapProfile.cs
C#
mit
474
from __future__ import division def run () : import libtbx.load_env # import dependency for module in libtbx.env.module_list : print module.name if (__name__ == "__main__") : run()
hickerson/bbn
fable/fable_sources/libtbx/command_line/list_modules.py
Python
mit
194
var context; var plainCanvas; var log; var pointerDown = {}; var lastPositions = {}; var colors = ["rgb(100, 255, 100)", "rgb(255, 0, 0)", "rgb(0, 255, 0)", "rgb(255, 0, 0)", "rgb(0, 255, 100)", "rgb(10, 255, 255)", "rgb(255, 0, 100)"]; var onPointerMove = function(evt) { if (pointerDown[evt.pointerId]) {...
rtillery/html5demos
draw/index.js
JavaScript
mit
2,482
# Set up gems listed in the Gemfile. # See: http://gembundler.com/bundler_setup.html # http://stackoverflow.com/questions/7243486/why-do-you-need-require-bundler-setup ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) # Require ge...
gardoroman/yick
config/environment.rb
Ruby
mit
1,495
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Nito.AsyncEx; using NUnit.Framework; using SJP.Schematic.Core; using SJP.Schematic.Core.Extensions; using SJP.Schematic.Tests.Utilities; namespace SJP.Schematic.PostgreSql.Tests.Integration {...
sjp/Schematic
src/SJP.Schematic.PostgreSql.Tests/Integration/PostgreSqlDatabaseQueryViewProviderTests.cs
C#
mit
10,531
namespace Bolt { internal static class StringExensions { public static bool EqualsNoCase(this string first, string second) { if (Equals(first, second)) { return true; } return string.CompareOrdinal(first?.ToLowerInvariant() ?? fir...
yonglehou/Bolt
src/Bolt.Sources/StringExensions.cs
C#
mit
387
/** * @fileOverview Cross */ import React, { PureComponent, SVGProps } from 'react'; import classNames from 'classnames'; import { isNumber } from '../util/DataUtils'; import { filterProps } from '../util/types'; interface CrossProps { x?: number; y?: number; width?: number; height?: number; top?: number; ...
recharts/recharts
src/shape/Cross.tsx
TypeScript
mit
1,177
import http from 'http'; function upsertState(state) { var postData = JSON.stringify(state); var options = { hostname: 'localhost', port: 3000, path: '/application', method: 'POST', headers: { 'Content-Type': 'application/json', 'Content-Length': postData.length } }; var r...
doug-wade/incubator-application
browser/reducers/index.js
JavaScript
mit
2,674
version https://git-lfs.github.com/spec/v1 oid sha256:00be998e9791a319bc3751b20c19ce0fa3cb25a87c8dbf9030a728c92af8d95c size 100787
yogeshsaroya/new-cdnjs
ajax/libs/rxjs/2.3.24/rx.all.compat.min.js
JavaScript
mit
131
require_relative 'game_element' class GamePackage include GameElement attr_reader :items attr_reader :capacity def initialize(capacity) @capacity = capacity @items = [] end def add(item) @items << item end def discard() @item end def [](i) @items[i] ...
HungryAnt/ruby-demo
src/game_package.rb
Ruby
mit
419
import PropTypes from 'prop-types' import React from 'react' const Card = ({title}) => <h3>{title}</h3> Card.propTypes = { title: PropTypes.string.isRequired } export default Card
dustinspecker/the-x-effect
app/components/card/index.js
JavaScript
mit
187
namespace FoldAndSum { using System; using System.Collections.Generic; using System.Linq; class FoldAndSum { static void Main(string[] args) { var input = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int k = input.Length / 2 / 2; ...
davidvaleff/ProgrammingFundamentals-Sept2017
07.DictionariesLambda&LINQ/Lab/FoldAndSum/FoldAndSum.cs
C#
mit
705
package com.bijoykochar.launcher.view; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.provider.CalendarContract; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view....
BijoySingh/One-Launcher
app/src/main/java/com/bijoykochar/launcher/view/CalendarView.java
Java
mit
4,170
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The VCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "tinyformat.h" const std::string CURRENCY_UNIT = "BT...
vcoin-project/v
src/amount.cpp
C++
mit
815
using System; using System.Globalization; namespace SharpRemote.WebApi.Routes.Parsers { internal sealed class Int64Parser : IntegerParser { public override Type Type => typeof(long); public override bool TryExtract(string str, int startIndex, out object value, out int consumed) { string digits; ...
Kittyfisto/SharpRemote
SharpRemote.WebApi/Routes/Parsers/Int64Parser.cs
C#
mit
634
<?php namespace App\Core\Contracts; interface CartInterface { }
storecamp/storecamp
app/Core/Contracts/CartInterface.php
PHP
mit
66
require "json" require "sinatra/base" require "github-trello/version" require "github-trello/http" module GithubTrello class Server < Sinatra::Base #Recieves payload post "/posthook-github" do #Get environment variables for configuration oauth_token = ENV["oauth_token"] api_key = ENV["a...
makoetting/github-trello
lib/github-trello/server.rb
Ruby
mit
2,318
#include <node.h> #include <node_buffer.h> #include <iostream> #include <cstdlib> using namespace v8; using namespace std; using namespace node; /* Random number generators */ static Handle<Value> UniformRandom(const Arguments& args) { HandleScope scope; double d_min = 0, d_max = 1.0; Local<Object> that ...
ashgti/node-math-utils
math_utils.cc
C++
mit
1,424
module Admin class FeedbackReportCSVWriter < CSVWriter columns :id, :service, :feedbackable_type, :rating, :created_at, :review, :acknowledged, :email, :phone, :traveler associations :user def traveler @record.user && @record.user.email end def service return nil if @record.feedba...
camsys/oneclick-core
app/serializers/admin/feedback_report_csv_writer.rb
Ruby
mit
845
require 'spec_helper' require 'guard/plugin' describe Guard::Commander do describe '.start' do before do ::Guard.stub(:setup) ::Guard.instance_variable_set('@watchdirs', []) ::Guard.stub(listener: double('listener', start: true)) ::Guard.stub(runner: double('runner', run: true)) ::G...
yujinakayama/guard
spec/guard/commander_spec.rb
Ruby
mit
5,527
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.storage.v2019_04_01.implementation; import com.m...
navalev/azure-sdk-for-java
sdk/storage/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/storage/v2019_04_01/implementation/StorageManagementClientImpl.java
Java
mit
9,641
package by.trapecia.dao; import by.trapecia.Main; import by.trapecia.model.Client; import by.trapecia.model.Rent; import java.sql.*; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; /** * Created by Denis on 15.12.2015. */ public class RentDaoImpl implements RentDao { ...
Maximenya/Trapezia-1.01
src/main/java/by/trapecia/dao/RentDaoImpl.java
Java
mit
3,231
import { IAppToken, createToken } from '../lib/authorization' import * as KoaRouter from 'koa-router' import { User } from '../models' import { IsomorphicRenderController } from '../controllers/IsomorphicRender' import { clearCookieToken, restrictIdentifiedAccess, restrictUnidentifiedAccess } from '../lib/authorization...
rodrigopivi/PlayApp
src/server/controllers/User.ts
TypeScript
mit
3,330
from django.core.management.base import BaseCommand from openkamer.verslagao import create_verslagen_algemeen_overleg class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('year', nargs='+', type=int) parser.add_argument('--max', type=int, help='The max number of docum...
openkamer/openkamer
openkamer/management/commands/create_verslagen_ao.py
Python
mit
553
var arr = 'ciao come va'.split(' '); var filtered = arr.filter(function(item) { return item != 'va'; }); Array.prototype.filtroMio = function() { if (arr.length == 2) { return this } return []; }; var ar2 = arr.filtroMio(); console.log(ar2); console.log(filtered);
brugnara/node-lessons
lessons/05-filtered.js
JavaScript
mit
280
#ifndef SERVER_BASE_HPP #define SERVER_BASE_HPP #include <boost/asio.hpp> #include <regex> #include <unordered_map> #include <thread> #include <iostream> #include <ctime> #include "Request.h" #include "Response.h" namespace MyWeb { typedef std::map<std::string, std::unordered_map<std::string, std::function<vo...
neveis/WebNote
server_base.hpp
C++
mit
4,506
// Search index songs package song import ( "github.com/ambientsound/pms/song" ) // Song is a Bleve document representing a song.Song object. type Song struct { Album string Albumartist string Artist string File string Genre string Title string Year string } // New gener...
ambientsound/pms
index/song/song.go
GO
mit
693
'use strict'; const test = require('tape'); const Postman = require('../fixtures/postman'); test('`it` without any args', (t) => { let postman = new Postman(t); describe('my test suite', () => { it(); }); postman.checkTests({ '1. my test suite - test #1 (this.fn is not a function)': false, }); ...
BigstickCarpet/postman-bdd
test/specs/it.spec.js
JavaScript
mit
5,442
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
fferz/lapagina
app/AppKernel.php
PHP
mit
1,567
#include "Mutex.h" /* Library C++ Mutex - Mutex fot threads. Copyright 2013 Eduardo Moura Sales Martins (edimartin@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, ...
Edimartin/edk-source
edk/thread/Mutex.cpp
C++
mit
2,587
"""group_mod tests.""" from unittest import TestCase from pyof.v0x04.controller2switch.group_mod import GroupMod from pyof.v0x04.common.action import ( ActionExperimenter, ActionSetField, ListOfActions) from pyof.v0x04.common.flow_match import OxmClass, OxmOfbMatchField, OxmTLV from pyof.v0x04.common.port import P...
kytos/python-openflow
tests/unit/v0x04/test_controller2switch/test_group_mod.py
Python
mit
6,137
#-*- coding: utf-8 -*- """ EOSS catalog system Implementation of urthecast catalog access https://developers.urthecast.com/sign-in """ __author__ = "Thilo Wehrmann, Steffen Gebhardt" __copyright__ = "Copyright 2016, EOSS GmbH" __credits__ = ["Thilo Wehrmann", "Steffen Gebhardt"] __license__ = "GPL" __version__ = "1.0...
eoss-cloud/madxxx_catalog_api
catalog/manage/urthecastcatalog.py
Python
mit
2,226
require 'test_helper' class ConfirmationsControllerTest < ActionController::TestCase test "should get new" do get :new assert_response :success end test "should get create" do get :create assert_response :success end end
helmlogic/catalyst
test/functional/confirmations_controller_test.rb
Ruby
mit
248
import sqlalchemy class Connection(object): def __init__(self, auth): url = self._build_url(auth) self.engine = sqlalchemy.create_engine(url, convert_unicode=True) self.connection = None self.transaction = None def connect(self): self.connection = self.engine.conn...
trackingwire/witchcraft
witchcraft/connection.py
Python
mit
2,023
// Copyright (c) 2011-2013 The mitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "mitcoinunits.h" #include "primitives/transaction.h" #include <QStringList> mitcoinUnits::mitcoinUnits(QObject *p...
anders94/mitcoin
src/qt/mitcoinunits.cpp
C++
mit
5,957
<?php function build_order_no(){ $year_code = array('a','b','c','d','e','f','g','h','i','j'); $order_sn = (intval(date('Y'))- 2014) . strtoupper(dechex(date('m'))) . strtoupper(dechex(date('d'))). substr(time(),-5).substr(microtime(),2,5).sprintf('%d',rand(0,99)); return $order_sn; } $num = 0; wh...
z32556601/90ping
doc/test.php
PHP
mit
388
'use strict'; var Promise = require('bluebird'); var util = require('./util'); module.exports = function (bookshelf) { var BaseModel = bookshelf.Model.extend({ initialize: function () { this.on('saving', this.validate); }, validate: function (model, attrs, options) { return Promise.resolve(...
murmur76/bookshelf-validation
index.js
JavaScript
mit
545
require 'spec_helper' describe "User", :type => :model do before(:all) do self.class.fixtures :categories, :departments, :notes, :things, :brokens, :users end describe "hierarchical structure" do it "roots_class_method" do found_by_us = User.where(:parent_uuid => nil).to_a found_by_roots = U...
collectiveidea/awesome_nested_set
spec/models/users_spec.rb
Ruby
mit
28,195
#dice guideline from random import randint #FOR program module moduleName="Dice Module" #moduleName="The Lusty Orc Dice Module" #FOR dice rolls #mulligan_yes_or_no=True not implemented the_lowest_possible_roll=1 the_number_of_sides_on_a_die=6 the_number_of_rolls_in_a_set=4 reroll_if_equal_or_less=0 number_of_lowest_...
RZMC/dndCharGen
dice guideline.py
Python
mit
7,477
'use strict'; module.exports = { up: function(queryInterface, Sequelize) { return queryInterface.createTable('users', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, ...
geanjunior/cracha
migrations/20170127020036-create-user.js
JavaScript
mit
1,093