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 |
|---|---|---|---|---|---|
// © Copyright 2013 Paul Thomas <paul@stackfull.com>. All Rights Reserved.
// sf-virtual-repeat directive
// ===========================
// Like `ng-repeat` with reduced rendering and binding
//
(function(){
'use strict';
// (part of the sf.virtualScroll module).
var mod = angular.module('sf.virtualScroll');
... | looker/angular-virtual-scroll | src/virtual-repeat.js | JavaScript | mit | 14,764 |
require('../helpers');
const assert = require('assert');
const ironium = require('../../src');
const Promise = require('bluebird');
describe('processing', ()=> {
const errorCallbackQueue = ironium.queue('error-callback');
const errorPromiseQueue = ironium.queue('error-promise');
const errorGeneratorQueue... | djanowski/ironium | test/queues/error_test.js | JavaScript | mit | 2,127 |
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def mainRoute():
return render_template('hello.html')
@app.route('/jujitsu')
def jujitsu():
return render_template('jujitsu.html')
if __name__ == '__main__':
app.run(debug=True,host='0.0.0.0', port=8080)
| CrazyDiamond567/docker-cloud-test | unh698.py | Python | mit | 302 |
/**
* Created by Andrei on 10/14/2014.
*/
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.net.InetAddress;
public class ThreadPoolApp {
public static... | abrabete/threadpool_example | IntelliJ/src/ThreadPoolApp.java | Java | mit | 4,608 |
#ifndef WF_INPUT_DEVICE_HPP
#define WF_INPUT_DEVICE_HPP
#include <wayfire/nonstd/wlroots.hpp>
namespace wf
{
class input_device_t
{
public:
/**
* General comment
* @return The represented wlr_input_device
*/
wlr_input_device *get_wlr_handle();
/**
* @param enabled Whether the compos... | ammen99/wayfire | src/api/wayfire/input-device.hpp | C++ | mit | 758 |
require 'wasted'
begin
require 'pry'
# rescue LoadError
end
| tombroomfield/wasted | spec/spec_helper.rb | Ruby | mit | 64 |
<?php
namespace Oro\Bundle\EmailBundle\EventListener\Datagrid;
use Oro\Bundle\DataGridBundle\Datasource\Orm\OrmDatasource;
use Oro\Bundle\DataGridBundle\Event\BuildAfter;
use Oro\Bundle\EmailBundle\Datagrid\EmailQueryFactory;
class IncomingEmailGridListener
{
/** @var EmailQueryFactory */
protected $emailQu... | orocrm/platform | src/Oro/Bundle/EmailBundle/EventListener/Datagrid/IncomingEmailGridListener.php | PHP | mit | 847 |
<?php
namespace GhaenCollege\ScrumBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* TestRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class TestRepository extends EntityRepository
{
}
| mahmud-kasaei/Scrum4u | src/GhaenCollege/ScrumBundle/Entity/TestRepository.php | PHP | mit | 264 |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated ... | emoacht/WlanProfileViewer | Source/ReactivePropertyTest/Properties/AssemblyInfo.cs | C# | mit | 2,287 |
module.exports = {
getDates: function(d) {
var today = padDate(d);
return {
startTime: today + lowerBoundTime(),
endTime: today + upperBoundTime()
};
}
};
function padDate (d){
function pad (n) { return n < 10 ? '0' + n : n }
return d.getUTCFullYear() + '-'
+ pad(d.getUTCMonth() + 1 ) + '-'
+ pad... | iOnline247/heyo | utils/dateHelpers.js | JavaScript | mit | 449 |
/**
* Java Modular Image Synthesis Toolkit (JMIST)
* Copyright (C) 2018 Bradley W. Kimmel
*
* 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 lim... | bwkimmel/jmist | jmist-core/src/main/java/ca/eandb/jmist/framework/scatter/ABMSieveAbsorbingSurfaceScatterer.java | Java | mit | 2,738 |
module.exports = require("./src/moment-interval"); | luisfarzati/moment-interval | index.js | JavaScript | mit | 50 |
// namespace plexus
var plexus = plexus || {};
window._plexus = plexus;
(function(plx) {
console.log("plexus.js [loaded]");
//------------------------------
// Plexus utilties functions
//------------------------------
plx.each = function(obj, iterator, context) {
if (!obj) return;
... | keyhom/xstudio-html5 | src/plexus/js/plexus-base.js | JavaScript | mit | 12,046 |
using System;
namespace SingleSignOnKata.sso
{
public interface SingleSignOnRegistry
{
SSOToken RegisterNewSession(String userName, String password);
bool IsValid(SSOToken token);
void Unregister(SSOToken token);
}
}
| emilybache/Single-Sign-On-Kata | CSharp/SingleSignOnKata/sso/SingleSignOnRegistry.cs | C# | mit | 257 |
<?php
namespace Ackintosh\Snidel;
/**
* @codeCoverageIgnore
*/
function msg_send()
{
return false;
}
| ackintosh/snidel | tests/msg_send.php | PHP | mit | 108 |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your need!
*/
class Version20120802054929 extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migration... | theaudience-brett/podcasts | app/DoctrineMigrations/Version20120802054929.php | PHP | mit | 1,101 |
require 'spec_helper'
require 'date'
require 'bigdecimal'
require 'xeroid/objects/invoice'
require 'xeroid/objects/account'
require 'xeroid/objects/payment'
module Xeroid::Objects
describe Payment do
let(:invoice) { Invoice.new(id: "abcde-12345-abcde-12345") }
let(:account) { Account.new(code: "NWBC") }
... | fidothe/xeroid | spec/xeroid/objects/payment_spec.rb | Ruby | mit | 1,277 |
const sqlite = require('sqlite');
const exec = require('child_process').exec;
const program = require('commander');
const config = require('./config');
const fetchGroups = require('./lib/fetch-groups');
const fetchMembers = require('./lib/fetch-members');
program
.version('0.0.0')
.option('-a, --accessToken [valu... | suricactus/fb-group-members | index.js | JavaScript | mit | 3,912 |
<?php
namespace FS\Injection\Pico;
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
class Engine
{
protected $delimiter;
protected $pattern;
public function __construct($delimiter = ['\{{2}', '\}{2}'])
{
$this->setDelimiter($delimiter);
}
public function setDelim... | flagshipcompany/flagship-for-woocommerce | src/Injection/Pico/Engine.php | PHP | mit | 1,971 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Mysql::Mgmt::V2017_12_01
module Models
#
# The properties used to create a new server.
#
class ServerPropertiesForCreate
... | Azure/azure-sdk-for-ruby | management/azure_mgmt_mysql/lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb | Ruby | mit | 2,647 |
import * as HTTPStatus from 'http-status-codes';
import * as express from 'express';
import Logger from './Logger';
export default class ErrorHandler {
private logger: Logger;
constructor() {
this.logger = new Logger('ErrorHandler');
}
handleError(err: Error, _, res: express.Response, next: Function): e... | simon-tannai/nodejs-typescript-boilerplate | src/utils/ErrorHandler.ts | TypeScript | mit | 599 |
'use strict';
let mongoose = require('mongoose'),
fs = require('fs');
require('../models/project-model');
let Project = mongoose.model('Project');
require('../models/user-model');
let User = mongoose.model('User');
let getCount = function(req, res, next) {
Project.count({}, function(err, count) {
if... | veselints/belin | controllers/projects-controller.js | JavaScript | mit | 3,316 |
import Logger from 'utils/logger';
const logger = new Logger('[push-simple/serviceworker]');
function onPush(event) {
logger.log("Received push message", event);
let title = (event.data && event.data.text()) || "Yay a message";
let body = "We have received a push message";
let tag = "push-simple-demo-notifica... | rossta/serviceworker-rails-sandbox | app/assets/javascripts/push-simple/serviceworker.js | JavaScript | mit | 697 |
var http = require('../simpleHttp'),
config = require('../config'),
zmq = require('zmq'),
_ = require('lodash'),
argv = require('yargs').argv,
logic = (argv.logic ? require('./' + argv.logic).logic : require('./sampleLogic').logic),
modelRoot = (argv.modelRoot ? argv.modelRoot : '/Store/TestOrg');
//Stuff going out
va... | JediMindtrick/Hyperloop | App3_BusinessLogicProcessor/serveBLP.js | JavaScript | mit | 1,833 |
// Generated by jsScript 1.10.0
(function() {
AutoForm.hooks({
updatePassword: {
onSubmit: function(insertDoc, updateDoc, currentDoc) {
if (insertDoc["new"] !== insertDoc.confirm) {
sAlert.error('Passwords do not match');
return false;
}
Accounts.changePassword(in... | patrickbolle/meteor-starter-purejs | client/views/account/account.js | JavaScript | mit | 879 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsIotLedDriver
{
// An interface used to get callbacks from the animator or in a chain of animation.
internal interface IAnimationTickListner
{
// This callback will ... | QuinnDamerell/WindowsIotLedDriver | WindowsIotLedDriver/Interfaces/IAnimationTickListener.cs | C# | mit | 487 |
import sys
import time as tmod
import warnings
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
import pandas as pd
warnings.simplefilter("ignore")
sys.path.insert(0, "../FATS/")
import FATS
iterations = 100000
lc_size = 1000
random = np.random.RandomState(42)
results = {
... | carpyncho/feets | res/paper/reports/features_montecarlo.py | Python | mit | 1,591 |
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("sq... | LazarDL/TelerikHomeworks | C#1/Operators/squareSurface/Properties/AssemblyInfo.cs | C# | mit | 1,402 |
<?php
/**
* Group
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package LinkIgniter
* @subpackage Models
* @author YOUR_NAME_HERE <YOUR@NAME.HERE>
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
class Group extends Base_Group
{
} | linkworks/linkigniter | application/models/Group.php | PHP | mit | 302 |
#!/usr/bin/ruby
##
##Author: Shashank Mathur
##
#
require "rubygems"
require "json"
require "net/http"
require "uri"
require 'open-uri'
require 'nokogiri'
require 'thread'
require 'monitor'
require 'io/console'
require 'openssl'
#Function to Analyze URL
def analyze(url)
#Preparing to call RESTapi and json results
b... | shashankm/ssllabs-report | ssllabs-report.rb | Ruby | mit | 6,298 |
import { View } from '../core/view';
import { Property } from '../core/properties';
/**
* Represents an time picker.
*/
export class TimePicker extends View {
/**
* Gets the native [android.widget.TimePicker](http://developer.android.com/reference/android/widget/TimePicker.html) that represents the user interfac... | NativeScript/NativeScript | packages/core/ui/time-picker/index.d.ts | TypeScript | mit | 2,307 |
using System;
namespace NgPlateVerifier
{
public class PlateInfo
{
public string PlateNumber { get; set; }
public string Owner { get; set; }
public string Color { get; set; }
public string Model { get; set; }
public string Chasis { get; set; }
public string Stat... | matmape/ngPlateNumberVerifier | PlateInfo.cs | C# | mit | 455 |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Container,
TextInput,
Label,
Text,
View,
Button,
} from 'react-native';
import LoginScreen from './Login.js';
import RegisterScreen from './Register.js';
import { StackNavigator, TabNavigator } from 'react-navigation';
expo... | nyc-fiery-skippers-2017/AwesomeProject | Users/UserControl.js | JavaScript | mit | 671 |
require "spec_helper"
RSpec.describe Realms::Cards::TradingPost do
include_examples "type", :outpost
include_examples "defense", 4
include_examples "factions", :trade_federation
include_examples "cost", 3
describe "#primary_ability" do
include_context "base_ability" do
before do
game.base_... | tonywok/realms | spec/cards/trading_post_spec.rb | Ruby | mit | 809 |
import path from 'path';
const {
SupRuntime,
} = global;
SupRuntime.registerPlugin('dependencyBundle', {
loadAsset(player, asset, callback) {
window.__dependencyBundles = window.__dependencyBundles || {};
const bundleScript = document.createElement('SCRIPT');
bundleScript.addEventListener('load', () =... | antca/superpowers-package-manager-plugin | src/runtime/index.js | JavaScript | mit | 538 |
let path = document.location.pathname,
details,
login,
url;
if (m = path.match(/^\/([\w-]+)\??.*?/)) {
login = m[1].trim();
if (-1 === ['timeline', 'languages', 'blog', 'explore'].indexOf(login)) {
url = 'http://coderstats.net/github#' + login;
details = document.getElementsByClassN... | coderstats/fxt_coderstats | coderstats/coderstats.js | JavaScript | mit | 997 |
using System;
using System.Runtime.InteropServices;
namespace Vanara.PInvoke
{
public static partial class Kernel32
{
/// <summary>The memory allocation attributes.</summary>
[Flags]
public enum GMEM
{
/// <summary>Combines GMEM_MOVEABLE and GMEM_ZEROINIT.</summary>
GHND = 0x0042,
/// <summary>All... | dahall/vanara | PInvoke/Kernel32/WinBase.MemMgmt.cs | C# | mit | 44,045 |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | jamesbigler/Legion | src/Support/openexr-2.0.1/IlmImfTest/testTiledLineOrder.cpp | C++ | mit | 21,673 |
package main
import "fmt"
// Bitcoin represents a number of Bitcoins
type Bitcoin int
func (b Bitcoin) String() string {
return fmt.Sprintf("%d BTC", b)
}
// Wallet stores the number of Bitcoin someone owns
type Wallet struct {
balance Bitcoin
}
// Deposit will add some Bitcoin to a wallet
func (w *Wallet) Depos... | a233894432/Golang-lesson | src/my_example/gctt/pointers_demo/v2/wallet.go | GO | mit | 595 |
import pymc3 as pm
from lasagne.layers.helper import *
from lasagne.layers.helper import __all__ as __helper__all__
__all__ = [
"find_parent",
"find_root",
] + __helper__all__
def find_parent(layer):
candidates = get_all_layers(layer)[::-1]
found = None
for candidate in candidates:
if isin... | ferrine/gelato | gelato/layers/helper.py | Python | mit | 551 |
import inspect
__all__ = ['GenericVisitor']
class GenericVisitor(object):
"""
A generic visitor.
To define handlers, subclasses should define :data:`visit_Foo`
methods for each class :data:`Foo` they want to handle.
If a specific method for a class :data:`Foo` is not found, the MRO
of the c... | opesci/devito | devito/tools/visitors.py | Python | mit | 4,134 |
package xsmeral.pipe.context;
import java.io.File;
/**
* A file system context, based on the notion of a single working directory.
* @author Ron Šmeral (xsmeral@fi.muni.cz)
*/
public interface FSContext {
/**
* Sets the working directory to the given path (relative or absolute)
*/
public void se... | rsmeral/semnet | PipedObjectProcessor/src/xsmeral/pipe/context/FSContext.java | Java | mit | 619 |
//---------------------------------------------------------------------------
//
// <copyright file="FillRuleValidation.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved.
// </copyright>
//
// This file was generated, please do not edit it directly.
//
// Please see http://wiki/de... | mind0n/hive | Cache/Libs/net46/wpf/src/Shared/MS/Internal/Generated/FillRuleValidation.cs | C# | mit | 1,605 |
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("Ta... | Digiman/Tasker | Tasker.TaskAntImporter/Properties/AssemblyInfo.cs | C# | mit | 1,420 |
# Die Class 1: Numeric
# I worked on this challenge [by myself]
# I spent [.5] hours on this challenge.
# 0. Pseudocode
# Input: integer amount of sides on a die object
# Output: either integer number of sides or random integer
# Steps:
# => IF there is less than one side THEN
# => => RAISE an Argument Error
# => ... | themcny/phase-0 | week-5/die-class/my_solution.rb | Ruby | mit | 2,564 |
// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
// for both bitco... | BlakeBitcoin/BlakeBitcoin | src/version.cpp | C++ | mit | 2,628 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.Serialization;
using uWebshop.Domain;
using uWebshop.Domain.Helpers;
using uWebshop.Domain.Interfaces;
namespace uWebshop.API
{
[DataContract(Namespace = "")]
internal class BasketStore : IStore
{
private readonly Do... | uWebshop/uWebshop-Releases | Core/uWebshop.Domain/API/DataClasses/BasketStore.cs | C# | mit | 2,701 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Claims;
using Ascon.Pilot.Core;
using Ascon.Pilot.Server.Api;
using Ascon.Pilot.Server.Api.Contracts;
using Ascon.Pilot.Transport;
using Microsoft.AspNet.Http;
using ISession = Microsoft.AspNet.Http.Features.ISess... | perminov-aleksandr/askon-pilot-client-asp | src/Ascon.Pilot.WebClient/Extensions/ClientsStorage.cs | C# | mit | 4,520 |
package io.swagger.client.api;
import io.swagger.client.ApiClient;
import io.swagger.client.model.InlineResponse200;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* API tests for StoriesApi
*/
public class Stor... | amardeshbd/android-daily-headlines | api-lib/src/test/java/io/swagger/client/api/StoriesApiTest.java | Java | mit | 903 |
/**
* @Author: shenyu <SamMFFL>
* @Date: 2016/12/08 10:18:06
* @Email: samfec@163.com
* @Last modified by: SamMFFL
* @Last modified time: 2016/12/13 14:39:33
*/
import React, {Component} from 'react';
import {
StyleSheet,
Text,
View,
Image,
TouchableHighlight,
ScrollView,
} from 'react-na... | yeeFlame/animate-for-RN | studyAnimate/containers/examples/setNativePropsDemo.js | JavaScript | mit | 5,282 |
package simpul.core;
import simpul.Interfaces;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class EventEmitter implements Interfaces.EventEmitter{
private class RegisteredCallback{
private final Interfaces.EventCallback cb;
private fina... | parroit/simpul | src/main/java/simpul/core/EventEmitter.java | Java | mit | 2,783 |
#!/usr/bin/env python2
import argparse
import xml.etree.ElementTree as ET
import subprocess
import os.path as path
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
import time
OUT_DIR = './_out'
HAXE_PATH = 'haxe'
def get_main_info(meta_root):
server_main, client_main ... | Jusonex/haxe-mtasa-typings | example/build.py | Python | mit | 3,302 |
<?php
/**
* Copyright (c) 2017. Puerto Parrot Booklet. Written by Dimitri Mostrey for www.puertoparrot.com
* Contact me at admin@puertoparrot.com or dmostrey@yahoo.com
*/
namespace App\Http\Controllers;
use App\Models\City;
use App\Models\Province;
use App\Models\Service;
use DB;
/**
* Class ApiController
*
* ... | Dimimo/Booklet | app/Http/Controllers/ApiController.php | PHP | mit | 6,538 |
package utils.verbos;
/** Clase que representa una conjugación verbal
* Se ordena por valor completo, pero su igualdad se mira con la conjugación (sin tildes)
* @author andoni
*
*/
public class Conjugacion extends SufijoVerbal {
// en Conjugacion el modelo genérico pasa a ser ya el infinitivo concreto
private St... | andoni-eguiluz/UD-Prog3-ant | src/utils/verbos/Conjugacion.java | Java | mit | 4,580 |
const SPRINTER_COUNT = 7; // how many lanes there are, including the player
var runners = []; // lineup
var runner; // player
var laneWidth; // width of each lane
var startTime; // beginning of the game
function setup() {
createCanvas(window.innerWidth, window.innerHeight);
/* initialize opponents */
var opp... | Kaelinator/AGAD | Sprinter Game/SprinterGame.js | JavaScript | mit | 2,082 |
<?php
if (! defined('BASEPATH')) exit('No direct Script access allowed');
class Prova_model extends CI_Model
{
/*------------------------------
ATRIBUTOS
------------------------------*/
private $idProva;
private $nome;
private $introducao;
private $inicio;
private $termino... | Lasterblade/SGPLTE | application/models/Prova_model.php | PHP | mit | 8,474 |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo... | Roxcoin/roxcointor | src/qt/qrcodedialog.cpp | C++ | mit | 4,343 |
using System;
using Microsoft.Tools.WindowsInstallerXml.Bootstrapper;
namespace Shimmer.Client.WiXUi
{
public interface IWiXEvents
{
IObservable<DetectBeginEventArgs> DetectBeginObs { get; }
IObservable<DetectPackageCompleteEventArgs> DetectPackageCompleteObs { get; }
IObservable<Detec... | stefanolson/Squirrel.Windows.MahApps | src/Shimmer.WiXUiClient/IWiXEvents.cs | C# | mit | 1,324 |
/**
* Tree View Collapse
* @see https://github.com/cpojer/mootools-tree
*/
export default new Class({
Implements: [Options, Class.Single],
options: {
animate: false,
fadeOpacity: 1,
className: 'collapse',
selector: 'a.expand',
listSelector: 'li',
childSelector: 'ul'
},
initialize: ... | codepolitan/caoutchouc | src/view/tree/utils/collapse.js | JavaScript | mit | 3,649 |
#ifndef ADD_BINARY_HPP_
#define ADD_BINARY_HPP_
#include <string>
using namespace std;
class AddBinary {
public:
string addBinary(string a, string b);
};
#endif // ADD_BINARY_HPP_
| yanzhe-chen/leetcode | include/AddBinary.hpp | C++ | mit | 188 |
require 'spec_helper'
describe Authorization do
let(:client_id) { "12345" }
let(:client_secret) { "Y9axRxR9bcvSW2cc0IwoWeq7" }
let(:expires_in) { 3600 }
let(:access_token) { "75sf4WWbwfr6HYd5URpC6KBk" }
subject do
described_class
end
before do
stub_requests
end
describe '#with_authorizat... | VAGAScom/exact_target_rest | spec/lib/exact_target_rest/authorization_spec.rb | Ruby | mit | 2,830 |
<?php
return array (
'id' => 'mot_xt882_ver1',
'fallback' => 'generic_android_ver2_3',
'capabilities' =>
array (
'uaprof' => 'http://uaprof.motorola.com/phoneconfig/motomb860/Profile/motoxt882.rdf',
'model_name' => 'XT882',
'brand_name' => 'Motorola',
'marketing_name' => 'MOTO XT882',
'phys... | cuckata23/wurfl-data | data/mot_xt882_ver1.php | PHP | mit | 461 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace AssaultBird2454.VPTU.Server.Instances
{
public class ServerInstance
{
#region Variables and Objects
#region Base Server
/// <summary>
... | AssaultBird2454/Virtual-Pokemon-Tabletop | Virtual Pokemon Tabletop/AssaultBird2454.VPTU/Server/Instances/ServerInstance.cs | C# | mit | 13,894 |
angular.module('myApp').directive('allPosts', function ($location, $cookieStore) {
// console.log('DSSDFLDSFU');
return {
restrict: 'E',
scope: {
data: '='
},
templateUrl: 'modules/posts/views/allPosts.html',
// controller: function () {
// console.... | smokezp/angular-blog | app/modules/posts/js/directives/allPosts.js | JavaScript | mit | 774 |
using JsonRPC;
using Newtonsoft.Json;
namespace KerioConnect
{
public class TypedResponse<TType> : Response where TType : class
{
/// <summary>The result if no error occured.</summary>
[JsonProperty("result", Required = Required.Default)]
public TType Result;
public bool Shoul... | peschuster/kerioconnect-csharp | source/KerioConnect/TypedResponse.cs | C# | mit | 409 |
using Microsoft.Media.AdaptiveStreaming.Dash.Smooth;
using Microsoft.Media.ISO;
using Microsoft.Media.ISO.Boxes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Microsoft.Media.AdaptiveStreaming.Dash
{
internal abstract class CffFileParse... | bondarenkod/pf-arm-deploy-error | playerframework/Universal.WinRT.AdaptiveStreaming.Dash/CFF/CffFileParser.cs | C# | mit | 3,253 |
using System;
namespace Strings.MakingAnagrams
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
} | anton-abyzov/Hackerrank.CrackingTheInterview | Strings.MakingAnagrams/Program.cs | C# | mit | 202 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package gctrpc
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package... | thrasher-/gocryptotrader | gctrpc/rpc_grpc.pb.go | GO | mit | 155,402 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace WPFTemplate.Helpers
{
/// <summary>
/// Command (<see cref="Action"/>) that can be executed based on an optional
/// function ... | Deadpikle/NetSparkle | src/NetSparkle.UI.WPF/Helpers/RelayCommand.cs | C# | mit | 4,839 |
const T = {
'compares the test result against snapshot'() {
return 'ok'
},
}
export default T | Sobesednik/zoroaster | test/spec/snapshot.js | JavaScript | mit | 102 |
var mongo = require("mongodb").MongoClient,
//url = "mongodb://localhost:27017/learnyoumongo",
dbName = process.argv[2],
url = "mongodb://localhost:27017/" + dbName ;
function main() {
mongo.connect(url, function (err, db) {
var collection;
if (err) { throw err; }
... | kwpeters/workshopper-solutions | learnyoumongo-solutions/06-update/solution.js | JavaScript | mit | 608 |
/*
* Copyright (c) 2008-2013 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See https://github.com/geoext/geoext2/blob/master/license.txt for the full
* text of the license.
*/
/**
* The model for scale values.
*
* @class GeoExt.data.ScaleModel
*/
Ext.define('GeoExt.data.ScaleMo... | gisprogrammer/wsp.geo.pl | external/geoext2/src/GeoExt/data/ScaleModel.js | JavaScript | mit | 700 |
class BarginCondition < ActiveRecord::Base
belongs_to :bargin
OBJECTS = [
"Comment",
"Vote"
]
OPERATORS = {
'>' => 'more than',
'<' => 'less than',
'>=' => 'more than or equal to',
'<=' => 'less than or equal to',
'==' => 'is equal to',
'!=' => 'is not equal to'
}
attr_acc... | Prizzm/mightbuy-models | app/models/bargin_condition.rb | Ruby | mit | 530 |
# classifier.py
#
# This module contains code to support the classifier notebook
import numpy as np
import pylab as plt
def p_correct_given_pos(sens, fpr, b):
""" Returns a simple Bayesian probability for the probability
that a prediction is correct, given that the prediction
was positive, given ... | widdowquinn/Teaching-SfAM-ECS | workshop/tools/classifier.py | Python | mit | 2,237 |
<?php
// ::layout1.html.twig
return array (
);
| SulivanDotEu/hca | app/cache/dev/assetic/config/a/a7c05bf748b79f85f6838ebb28ddc2a0.php | PHP | mit | 48 |
/**
* Created by dandan on 17-8-29.
*/
import * as types from "./mutation-types";
const mutations = {
[types.SET_SINGER](state, singer){
state.singer = singer
},
[types.SET_PLAYING_STATE](state, flag){
state.playing = flag
},
[types.SET_FULL_SCREEN](state,flag){
state.full... | xiaodanli/web-music | src/store/mutations.js | JavaScript | mit | 1,170 |
"""manglocreative 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')
Cl... | rizkiwisnuaji/django-newbie-cms | manglocreative/urls.py | Python | mit | 2,703 |
package com.github.dsaa.tree.binary;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class BTreePrinter {
public static <T extends Comparable<?>> void printBNode(BNode<T> root) {
int maxLevel = BTreePrinter.maxLevel(root);
printBNodeInternal(Collections.singletonList(roo... | code4love/DSAA | src/main/java/com/github/dsaa/tree/binary/BTreePrinter.java | Java | mit | 2,401 |
<?php
namespace Cresta\AulasBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CrestaAulasBundle extends Bundle
{
public function getParent()
{
return 'FOSUserBundle';
}
} | jorihuamancha/aulas | src/Cresta/AulasBundle/CrestaAulasBundle.php | PHP | mit | 202 |
<?
#############################################################################
# SectionMaster.org Registration System
# ADMIN BACKEND
# Copyright (c) 2005-2007 Clostridion Design & Support, LLC.
# All included files and modules of this system share the above copyright.
# All rights are reserved by Clostridion Desig... | mattharris5/sectionmaster | register/admin/index.php | PHP | mit | 647 |
<!-- BREADCRUMB -->
<div>
<ol class="breadcrumb">
<li><?php echo anchor(base_url('home'), 'Home')?></li>
<li><?php echo anchor(base_url('contacto'), 'Contacto')?></li>
</ol>
</div>
<!-- FIN BREADCRUMB -->
<div class="row">
<div class="col-xs-12">
<div class="panel">
<div class="panel-heading">
... | Bookcorner/bookcorner | application/views/static_pages/contact.php | PHP | mit | 4,510 |
import expect from 'expect';
import { By } from 'selenium-webdriver';
import driver from '../chromeWebDriver';
import { elementValueIs } from '../../src';
describe('e2e', () => {
describe('elementValueIs', () => {
before(async () => {
await driver.get('http://localhost:3000/elementValueIs.html... | marmelab/selenium-smart-wait | e2e/tests/elementValueIs.spec.js | JavaScript | mit | 1,068 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NXDO.RJava.Core
{
class JPDateTime : JParamValue
{
public static string JavaDateClassName = "java.util.Date";
public static string SDateFormat = "yyyy-MM-dd HH:mm:ss";
private JPDateTime(D... | javasuki/RJava | NXDO.Mixed.V2015/NXDO.RJava/CoreParam/JPDateTime.cs | C# | mit | 1,991 |
;(function ($, window, document, undefined) {
"use strict";
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.dimmer = function(parameters) {
var
$allModules = $(th... | Cryptix720/Chronimi | src/definitions/modules/dimmer.js | JavaScript | mit | 21,282 |
class Customer < Character
end
| maldrasen/archive | Rysh.2/app/models/customer.rb | Ruby | mit | 32 |
using System;
using System.ComponentModel;
using System.IO;
using System.Reflection;
using System.Threading;
using System.Windows.Forms;
using BorderlandsAdvancedConfig.INIParser;
using BorderlandsAdvancedConfig.SettingsManagers;
namespace BorderlandsAdvancedConfig
{
public partial class FrmConfig : Form
{
... | TheLonerD/BorderlandsAdvancedConfig | FrmConfig.cs | C# | mit | 14,522 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Cosmosdb::Mgmt::V2020_09_01
module Models
#
# A metric name.
#
class MetricName
include MsRestAzure
# @return ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_cosmosdb/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb | Ruby | mit | 1,486 |
'use strict';
var m = require('mithril');
function controller() {
}
function view() {
return [
m('h1', 'mithril-isomorphic-example'),
m('p', 'yes, it works'),
m('a', {
href: '/second-page',
config: m.route
}, 'second page'),
m('div', ''),
m('a', {
href: '/resume',
c... | john-ko/johnkoorg | client/pages/home.js | JavaScript | mit | 421 |
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the r... | FacticiusVir/SharpVk | src/SharpVk/CommandCacheStruct.gen.cs | C# | mit | 116,920 |
<body>
<div id="preloader">
<div id="status"> </div>
</div>
<!-- Body content -->
<div class="header-connect">
<div class="container">
<div class="row">
<div class="col-md-5 col-sm-8 col-xs-8">
... | teseo24/voluntariadoCI | application/views/partial/nav.php | PHP | mit | 3,527 |
<?php
namespace Jaxxes\TestPmaSPBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjec... | martintito/desaeka | src/Jaxxes/TestPmaSPBundle/DataFixtures/ORM/PMA5DiccionarioA.php | PHP | mit | 453,811 |
<?php
namespace Celtic\Testing\Joomla;
class Joomla25AdminPage extends AdminPage
{
protected $userMenuSelector = 'css selector:#header-box #module-status';
protected $messageContainer = "id:system-message-container";
protected $headLineSelector = "css selector:div.page-title h2";
public function __... | GreenCape/build | template/selenium/Pages/Joomla25/Admin/Page.php | PHP | mit | 732 |
// types
const TRACKS_SET = 'tracks/TRACKS_SET'
// actions
const doSetTracks = (tracks) => {
return {
type: TRACKS_SET,
tracks: tracks
}
}
// reducers
const initialState = {}
const reducer = (state = initialState, action) => {
switch (action.type) {
case TRACKS_SET:
re... | OttoH/rereKit | src/ducks/tracks.js | JavaScript | mit | 709 |
<?php
/**
* @link https://pix.st/
* @copyright Copyright (c) 2015 Pix Street
* @license MIT License https://opensource.org/licenses/MIT
*/
namespace pixst;
use pixst\ChannelInterface;
use pixst\exceptions\ChannelException;
use pixst\exceptions\HttpException;
/**
* cURL channel class
*/
class CurlChannel implem... | PixSt/php-yii2 | CurlChannel.php | PHP | mit | 3,176 |
require('chai').should();
var IndexedArray = require('../index');
describe('IndexedArray', function () {
it('is instanceof Array', function () {
var a = IndexedArray([1,2,3]);
(a instanceof Array).should.be.true;
});
it('is still instanceof Array when used with `new`', function () {
var a = new Ind... | jden/indexed-array | test/tests.js | JavaScript | mit | 8,031 |
// Copyright (c) 2011-2012 The Bitcoin developers
// Copyright (c) 2013-2014 ComedyGold Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sync.h"
#include "util.h"
#include <boost/foreach.hpp>
#ifdef DEB... | comedygold/comedygold | src/sync.cpp | C++ | mit | 3,711 |
<?php
namespace DrupalReleaseDate\Sampling;
class Sample
{
protected $when;
protected $count;
protected $diffTarget;
function __construct($when, $count, $last = null)
{
$this->when = $when;
$this->count = $count;
if ($last) {
$this->setDiff($last);
}
... | gapple/drupalreleasedate | src/DrupalReleaseDate/Sampling/Sample.php | PHP | mit | 877 |
using System;
namespace Topics.Radical.ComponentModel.Messaging
{
/// <summary>
///
/// </summary>
public interface ILegacyMessageCompatibility
{
/// <summary>
/// Sets the sender for backward compatibility.
/// </summary>
/// <param name="sender">The sender.</param... | micdenny/radical | src/net35/Radical/ComponentModel/Messaging/IMessage.cs | C# | mit | 919 |
class Node {
constructor(item) {
this.item = item;
this.next = null;
}
}
module.exports = Node;
| cody1991/diary | _learn/algo/js-learn/libs/Node.js | JavaScript | mit | 109 |
module Timeline
Version = VERSION = "0.1.0"
end
| mrduncan/timeline | lib/timeline/version.rb | Ruby | mit | 50 |