repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
peichhorn/tinyaudioplayer
src/main/java/de/fips/plugin/tinyaudioplayer/wizards/soundcloud/SearchPage.java
2908
/* * Copyright © 2011-2012 Philipp Eichhorn. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify...
mit
glynnforrest/neptune
tests/Neptune/Tests/Swiftmailer/SwiftmailerFactoryTest.php
5536
<?php namespace Neptune\Tests\Swiftmailer; use Neptune\Swiftmailer\SwiftmailerFactory; use Temping\Temping; /** * SwiftmailerFactoryTest * * @author Glynn Forrest <me@glynnforrest.com> **/ class SwiftmailerFactoryTest extends \PHPUnit_Framework_TestCase { public function setup() { $this->factory ...
mit
automenta/ensemble-clustering
ensemble-clustering/src/test/java/com/oculusinfo/math/linearalgebra/VectorTests.java
2192
/** * Copyright (c) 2013 Oculus Info Inc. * http://www.oculusinfo.com/ * * Released under the MIT License. * * 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 restrictio...
mit
Ac2zoom/giftgenie.io
src/com/amazonservices/mws/products/model/LowestOfferListingList.java
4473
/******************************************************************************* * Copyright 2009-2015 Amazon Services. All Rights Reserved. * 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 Licens...
mit
wanjochan/cmp
app_root/webroot/_libs/cmp_bpm/LgcBPME.php
6819
<?php class LgcBPME { //FOR ORM LEVEL //public static function getDefaultDSN(){ // $dsn="db_app"; // return $dsn; //} const BPM_MODE_FUNC ='FUNC';//[SYNC]: Sync, Func const BPM_MODE_DEFAULT ='DEFAULT';//[SYNC]: Sync, Local, Simple //const BPM_MODE_LOCALIO ='LOCALIO';//[ASYNC] Sync + LocalFileIO //...
mit
renstrom/oUF
elements/readycheck.lua
3801
--[[ Element: Ready Check Icon Handles updating and visibility of `self.ReadyCheck` based upon the units ready check status. Widget ReadyCheck - A Texture representing ready check status. Notes This element updates by changing the texture. Options .finishedTime - The number of seconds the icon should sti...
mit
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/requests/TimeOffReasonCollectionResponse.java
766
// Template Source: BaseEntityCollectionResponse.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------...
mit
christopheschwyzer/StopheWebLab
chimp/js/chimp.js
265
$(document).ready(function () { var frames = 8; var chimp = $(".chimp"); var i = 0; function animate() { if(i < frames-1) { i++; } else { i = 0; } chimp.css({"backgroundPosition": -i*chimp.width()}); } window.setInterval(animate, 100); });
mit
chaordic/node-restify
lib/response.js
10504
// Copyright 2012 Mark Cavage, Inc. All rights reserved. var assert = require('assert'); var crypto = require('crypto'); var http = require('http'); var Stream = require('stream').Stream; var util = require('util'); var mime = require('mime'); var errors = require('./errors'); var Request = require('./request'); ...
mit
scholtzm/wiki-parser
src/sk/scholtz/wikiparser/tests/XmlParserTest.java
2141
package sk.scholtz.wikiparser.tests; import static org.junit.Assert.*; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import sk.scholtz.wikiparser.*; /** * Tests for our XmlParser * * @author Michael Sc...
mit
valentin7/pianoHero
src/main/resources/static/js/highscores.js
435
$(document).ready(function() { console.log("PIANO HERO"); }); function getHighScores() { $.get("/getsongs", function(responseJSON) { var songs = JSON.parse(responseJSON); for (i = 0; i < songs.length; i++) { var song = { songID: songs[i]._id, songTitle: songs[i]._title, songI...
mit
bghgary/glTF-Asset-Generator
Source/ModelGroups/Node_NegativeScale.cs
8547
using AssetGenerator.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.Numerics; namespace AssetGenerator.ModelGroups { internal class Node_NegativeScale : ModelGroup { public override ModelGroupId Id => ModelGroupId.Node_NegativeScale; public Node_Negat...
mit
tomcha/sinatras
lib/sinatras/command/options.rb
2255
# encoding: utf-8 require 'optparse' module Sinatras class Command module Options def self.parse!(argv) options = {} sub_command_parsers = create_sub_command_parsers(options) command_parser = create_command_parser begin command_parser.order!(argv) op...
mit
SweetDevil/blog
app/tplfunc/assertion.go
249
package tplfunc import ( "strconv" ) func Intval(v interface{}) int { if r, ok := v.(string); ok { res, err := strconv.Atoi(r) if err != nil { return 0 } else { return res } } if r, ok := v.(int); ok { return r } return 0 }
mit
smich73/QnA-Maker-Uber-Search
qnamaker/QnAUtils.js
3093
const request = require('request'); const config = { qnaMakerEndpoint: process.env.QNAMAKER_ENDPOINT, qnaMakerKey: process.env.QNAMAKER_KEY }; var headers = { 'Ocp-Apim-Subscription-Key': config.qnaMakerKey, 'Content-Type': 'application/json' }; function createQnA(qnaForUpload) { return new Promi...
mit
102010cncger/antd-admin
src/components/index.js
457
import DataTable from './DataTable' import DropOption from './DropOption' import Iconfont from './Iconfont' import Search from './Search' import Editor from './Editor' import FilterItem from './FilterItem' import Loader from './Loader' import * as Layout from './Layout/index.js' import Page from './Page' import layer ...
mit
Aelith/SoundItAPI
server/src/app/repository/postgres/BaseRepository.ts
4376
/** * Created by soundit on 17/01/2017. */ import "reflect-metadata"; import Read = require("./interfaces/Read"); import Write = require("./interfaces/Write"); import PostgresModel = require("./../../model/postgres/interfaces/PostgresModel"); import DataAccessPostgres = require("./../../dataAccess/postgres/D...
mit
NiurenZhu/ibas-framework-0.1.1
bobas.businessobjectscommon/src/main/java/org/colorcoding/ibas/bobas/common/ISort.java
452
package org.colorcoding.ibas.bobas.common; /** * 查询排序 * * @author Niuren.Zhu * */ public interface ISort { /** * 获取-排序的字段(属性)名 */ String getAlias(); /** * 设置-排序的字段(属性)名 * * @param value */ void setAlias(String value); /** * 获取-排序方式 */ SortType getSortType(); /** * 设置-排序方式 * * @p...
mit
PassKitInc/pk-pass-display
src/pk-apple-pass/apple-pass-field-group/apple-pass-field-group.js
788
(function (angular) { angular.module('pk-pass-display').component('pkApplePassFieldGroup', { controller: [PKApplePassFieldGroupController], templateUrl:"apple-pass-field-group.html", bindings: { fields: '<', lang: '<', type: '@' } }); func...
mit
Michal-Fularz/ProgrammingCourse
ProgrammingCourse/VectorPassingTests/function_2.cpp
3083
#include "function_2.h" #include <iostream> #include <vector> #include "Timer.h" static double testFunction_passByValue(std::vector<double> data, int iteration) { double sum = 0.0; double divison = (double)(1 + iteration); for (auto value : data) { sum += value / divison; } return sum; } static double testF...
mit
nfqakademija/illuminati
app/AppKernel.php
2257
<?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...
mit
stefanliydov/SoftUniLab
Methods/ClassPractice/FirstProblem/Properties/AssemblyInfo.cs
1400
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("Fi...
mit
meltzow/supernovae
core/src/main/java/supernovae/world/terrain/heightmap/HeightMap.java
3171
package supernovae.world.terrain.heightmap; import java.util.List; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import util.geometry.geom2d.Point2D; import util.geometry.geom3d.Point3D; import util.geometry.structure.grid.Grid; public class Hei...
mit
Evenflow/MathDraw
MathDraw/NCalc.cs
1630
using NCalc; using System; using System.Threading; using System.Windows.Forms; namespace MathDraw { public sealed class NCalc { private static readonly object s_lock = new object(); private static NCalc instance = null; private NCalc() { } public static NCalc ...
mit
fastline32/TechModule
Dictionaries, Lambda and LINQ - Exercises/10.Сръбско Unleashed/Program.cs
3626
using System; using System.Collections.Generic; using System.Linq; namespace Сръбско_Unleashed { class Program { static void Main() { Dictionary<string, Dictionary<string, long>> cityProfit = new Dictionary<string, Dictionary<string, long>>(); string[] singerInfo = Rea...
mit
TradeMe/tractor
plugins/mock-requests/src/tractor/server/init.spec.js
1450
// Test setup: import { expect, Promise, sinon } from '@tractor/unit-test'; // Dependencies: import { TractorError } from '@tractor/error-handler'; import * as tractorFileStructure from '@tractor/file-structure'; import * as tractorLogger from '@tractor/logger'; // Under test: import { init } from './init'; describe...
mit
remomueller/slice
app/models/formatters/integer_formatter.rb
625
# frozen_string_literal: true module Formatters # Used to help format arrays of database responses for integer variables. class IntegerFormatter < NumericFormatter def raw_response(response, shared_responses = domain_options) domain_option = shared_responses.find { |option| option.value == response } ...
mit
AngleSharp/AngleSharp
src/AngleSharp.Core.Tests/Html/HtmlTokenization.cs
15622
namespace AngleSharp.Core.Tests.Html { using AngleSharp.Html; using AngleSharp.Html.Parser; using AngleSharp.Html.Parser.Tokens; using AngleSharp.Text; using NUnit.Framework; using System; using System.IO; using System.Linq; using System.Text; using System.Threading; using Sy...
mit
grammy3/rewards
src/util.cpp
37873
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 "util.h" #include "sync.h" #include "strlcpy.h" #include "version.h" #inc...
mit
nicolasricci/SonataMediaBundle
Tests/Form/DataTransformer/ProviderDataTransformerTest.php
5212
<?php /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\MediaBundle\Tests\Form\DataTransformer; use So...
mit
asoltys/gc-openid
vendor/plugins/rails_upgrade/lib/routes_upgrader.rb
9160
# -*- encoding : utf-8 -*- # TODO: Fix formatting on member/collection methods module Rails module Upgrading module FakeRouter module ActionController module Routing class Routes def self.setup @redrawer = Rails::Upgrading::RouteRedrawer.new end ...
mit
niello/deusexmachina
Tools/DialogEditor/DialogLogic/DialogInfo.cs
8077
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using System.Xml.Linq; namespace DialogLogic { public class DialogInfo:ICharacterContainer { public event EventHandler DialogInfoC...
mit
cristianomg10/beach
src/Optimizers/Genetic/Operators/CrossOvers/TwoPointCrossOver.php
1889
<?php /** * Created by PhpStorm. * User: cristiano * Date: 11/11/16 * Time: 2:36 PM */ namespace App\Optimizers\Genetic\Operators\CrossOvers; use App\Optimizers\Genetic\Operators\Elements\BinaryChromosome; use App\Utils\Exceptions\IllegalArgumentException; class TwoPointCrossOver implements ICrossOver { pri...
mit
dimkk/l2broker
site/server/api/items/index.js
268
'use strict'; var express = require('express'); var controller = require('./items.controller'); var router = express.Router(); router.get('/', controller.index); router.get('/:id', controller.show); //router.post('/:id', controller.sort); module.exports = router;
mit
tsiry95/openshift-strongloop-cartridge
strongloop/node_modules/strong-debugger/src/debugger.cc
3596
#include <nan.h> // Must be included as the first file #include <limits> #include <memory> #include "controller.h" #include "compat.h" namespace strongloop { namespace debugger { using v8::Function; using v8::FunctionTemplate; using v8::Handle; using v8::Local; using v8::Number; using v8::Object; using v8::String; us...
mit
warmsea/warmsea.net
warmsea/urls.py
924
import os from flask import send_from_directory from warmsea import app, admin, api, blog, models, srm, views # Weibo verifications app.add_url_rule('/wb_5ba2b446644528f2.txt', 'weibo_verification', lambda: send_from_directory( os.path.join(app.config['ROOT_DIR'], ...
mit
alexthe21/e-boxoffice
src/At21/EBoxOfficeBundle/DependencyInjection/Configuration.php
879
<?php namespace At21\EBoxOfficeBundle\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://sym...
mit
uppsaladatavetare/foobar-kiosk
@types/global/index.d.ts
646
declare const __DEV__: boolean; declare const Thunder: { connect: (host: string, apikey: string, channels: string[], options?: object) => void; listen: ( handler: (data: { channel: string, payload: string }) => void ) => void; }; declare const config: { API: { host: string; key:...
mit
trytocatch/MapSearcher
src/com/github/trytocatch/mapsearcher/SearchInfo.java
2231
package com.github.trytocatch.mapsearcher; import java.util.ArrayList; import java.util.BitSet; import java.util.Collections; import java.util.List; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.Phaser; class SearchInfo<N, R> implements Cloneable { ArrayList<N> steps; R...
mit
Tallisado/webtools_old
webtools/dom_audit/dom_audit_webdriver.rb
2985
require File.join(File.dirname(__FILE__), "../../webrobot/lib/helper") url = ENV['WR_URL'] username = ENV['WR_USERNAME'] userpass = ENV['WR_USERPASS'] puts "Arguments passed to webdriver testcode" puts "url: " + url puts "username: " + username puts "userpass: " + userpass login_url = String.new if...
mit
hyrise/hyrise
src/lib/optimizer/strategy/index_scan_rule.hpp
1434
#pragma once #include <memory> #include <string> #include <vector> #include "abstract_rule.hpp" #include "storage/index/index_statistics.hpp" #include "types.hpp" namespace opossum { class AbstractLQPNode; class PredicateNode; /** * This optimizer rule finds PredicateNodes whose inputs are StoredTableNodes. These...
mit
hanami/assets
spec/support/tmp.rb
162
# frozen_string_literal: true require "pathname" # TMP = Pathname.new(__dir__).join("..", "tmp") TMP = Pathname.new(__dir__).join("..", "..", "tmp") TMP.mkpath
mit
ro8inb/baivi
src/AppBundle/Services/Shop/ShopActions.php
582
<?php namespace AppBundle\Services\Shop; class ShopActions { private $collection; public function getCollectionName($products){ foreach ($products as $product){ if($product->getCollection()->getId() === 1){ $this->collection = 'Wax'; } if($produc...
mit
kmcphillips/rails
activesupport/lib/active_support/ruby_features.rb
260
# frozen_string_literal: true module ActiveSupport module RubyFeatures # :nodoc: CLASS_DESCENDANTS = Class.method_defined?(:descendants) # RUBY_VERSION >= "3.1" CLASS_SUBCLASSES = Class.method_defined?(:subclasses) # RUBY_VERSION >= "3.1" end end
mit
levfurtado/scoops
library/Proxy/__CG__NewscoopEntityComment.php
15668
<?php namespace Proxy\__CG__\Newscoop\Entity; /** * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR */ class Comment extends \Newscoop\Entity\Comment implements \Doctrine\ORM\Proxy\Proxy { /** * @var \Closure the callback responsible for loading properties in the proxy object. This cal...
mit
alaingilbert/ttdashboard
server/ttdashboard/website/views.py
66767
from django.views.decorators.cache import cache_page from django.shortcuts import get_object_or_404, render_to_response from website.models import * from website.forms import * from django.db import connection, transaction from django.core.context_processors import csrf from django.http import HttpResponseRedirect, Htt...
mit
enchev-93/Telerik-Academy
02.C Sharp part 2/06.StringAndTextProcessing/DatesFromTextInCanada/Properties/AssemblyInfo.cs
1418
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("Da...
mit
zinserjan/mocha-webpack
test/unit/cli/parseConfig.test.js
1635
/* eslint-env node, mocha */ /* eslint-disable func-names, prefer-arrow-callback */ import path from 'path'; import fs from 'fs-extra'; import { assert } from 'chai'; import parseConfig from '../../../src/cli/parseConfig'; const optsTestCasesPath = path.join(__dirname, 'fixture', 'config', 'optsTestCases'); const opt...
mit
levfurtado/scoops
cache/1c8f3cfcc366ccb235a2e5d8cdd607f2c51a6da5.file.footer.tpl.php
5354
<?php /* Smarty version Smarty-3.1.21, created on 2016-02-24 10:37:04 compiled from "/var/www/newscoop/themes/publication_1/theme_1/_tpl/footer.tpl" */ ?> <?php /*%%SmartyHeaderCode:19707396156cdce203f5118-09030744%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodePr...
mit
AgostonSzepessy/battle-of-oxshan
BlueThing.cpp
2551
#include "BlueThing.hpp" BlueThing::BlueThing(int x, int y) { this->x = x; this->y = y; dx = 0; dy = 0; speed = 3; height = 52; width = 52; currentAnimation = STANDING; health = maxHealth; damage = 5; delay = 400; reloading = false; startReload = false; reloadAccumulator = 1000; if (!texture->loa...
mit
arapaka/algorithms-datastructures
algorithms/src/main/java/datastrutures/strings/PrintListOfItemsContainingAllChars.java
1487
package datastrutures.strings; import java.util.ArrayList; import java.util.Arrays; /** * Created by archithrapaka on 3/5/17. */ public class PrintListOfItemsContainingAllChars { static void printList(String pattern, ArrayList<String> dict) { // for each sorted string in the list check if the pattern a...
mit
Babarix/RSI-Crawler
RSI Crawler/Program.cs
484
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace RSI_Crawler { static class Program { /// <summary> /// Der Haupteinstiegspunkt für die Anwendung. /// </summary> [STAThread] static void Main() { ...
mit
ellipse-js/ellipse
lib/context.js
3451
'use strict' // expose module.exports = Context // includes const Cookies = require('cookies'), httpError = require('http-errors'), httpAssert = require('http-assert'), alias = require('./utils/alias') // constructor function Context(req, res) { this._req = req this._res = res ...
mit
dukegod/node-basic
demos/libs/node-version.js
310
/** * Created by hui on 16/12/18. */ // module.exports = function(){ // var obj = this; // console.log(this); // console.log(obj.process.versions); // }() module.exports = (() => { // let obj = e; // console.log(obj); // console.log(obj.process.versions); console.log(process.versions); })()
mit
Programming-Systems-Lab/knarr
Phosphor/src/edu/columbia/cs/psl/phosphor/org/objectweb/asm/util/Textifier.java
48837
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribution...
mit
groz/node-lmdb
example8-multiple-cursors-single-transaction.js
3438
var lmdb = require('./build/Release/node-lmdb'); var env = new lmdb.Env(); env.open({ // Path to the environment path: "./testdata", // Maximum number of databases maxDbs: 10 }); function createTestDb(dbName) { // Ensure that the database is empty var dbi = env.openDbi({ name: dbName, create: true ...
mit
rodrigocipriani/br-react-utils
lib/layout/Loading.js
2196
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
mit
hobrien/AgaricalesGenomics
CountGaps.py
258
import sys from os import path from glob import glob from Bio import SeqIO infile=sys.argv[1] for seq_record in SeqIO.parse(infile, "fasta"): print seq_record.id, 100-(float(seq_record.seq.count('X')+seq_record.seq.count('-'))/len(seq_record.seq) * 100)
mit
codeBelt/Grunt-Browserify-Example
src/assets/vendor/structurejs/ts/model/Route.ts
6052
'use strict'; /* UMD Stuff @export Route */ /** * The **Route** class is a model that keeps track of a specific route for the {{#crossLink "Router"}}{{/crossLink}} class. * * @class Route * @module StructureJS * @submodule model * @param routePattern {string} The string pattern you want to have match, which c...
mit
dansimpson/satchel
core/tests/deep/deep/deep/test.js
5
!ddd
mit
elegault/BCMMigrationAssistant
CheckDuplicates_Result.cs
907
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated....
mit
smart-home-technology/it-btswitch-python
intertechno/__init__.py
22
from .timers import *
mit
VeselinTodorov2000/Exercises_Csharp
Distance/Program.cs
935
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Distance { class Program { static void Main(string[] args) { int speedBeginning = Int32.Parse(Console.ReadLine()); int minutesFirstTime = Int32....
mit
code16/sharp
src/Utils/Transformers/SharpAttributeTransformer.php
343
<?php namespace Code16\Sharp\Utils\Transformers; interface SharpAttributeTransformer { /** * Transform a model attribute to array (json-able). * * @param $value * @param $instance * @param string $attribute * @return mixed */ public function apply($value, $instance = null,...
mit
phaxio/phaxio-java
client/src/test/java/com/phaxio/integrationtests/scenarios/PhaxCodeRepositoryScenario.java
851
package com.phaxio.integrationtests.scenarios; import com.phaxio.Phaxio; import com.phaxio.helpers.Config; import com.phaxio.resources.PhaxCode; import org.junit.Test; import java.io.IOException; public class PhaxCodeRepositoryScenario extends RateLimitedScenario { @Test public void createPhaxCodeAndRetrieve...
mit
kmiyashiro/grunt-mocha
Gruntfile.js
5293
/** * Example Gruntfile for Mocha setup */ 'use strict'; module.exports = function(grunt) { var port = 8981; grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/**/*.js', ], options: { jshintrc: '.jshintrc' } }, watch: { // If you want to watc...
mit
catalinmiron/hackathon-granditude
src/models/post.js
418
"use strict"; var mongoose = require("mongoose"); var Schema = mongoose.Schema; var User = require('./user'); var PostSchema = mongoose.Schema({ description: { type: "string", required: true}, created_by: Object, created_at: { type: "date", default: Date.now }, location: {type: "array"}, realLocation: {type...
mit
Scheffer/gulp-asvn
commands/exec.js
954
'use strict'; var exec = require('child_process').exec, gutil = require('gulp-util'); module.exports = function (options, cb) { if(!cb && typeof options === 'function') { cb = options; options = {}; } if(!cb || typeof cb !== 'function') cb = function () {}; if(!options) options =...
mit
MuhammadNurHuda/SMK-YPS-Samarinda
application/views/admin/slide/edit_data.php
893
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php echo form_open_multipart('admin/edit_slide');?> <hr> <input type="hidden" name="id" value="<?php echo $record['id_gambar']; ?>"></input> <table class="table table-bordered"> <tr> <td>File</td> <td> <img style="padding-bottom: 10px;width: 250px;heigh...
mit
occam-proof-assistant/Parsers
es6/customGrammarLexicalPattern/bnf.js
271
'use strict'; const bnf = ` document ::= lexicalPattern ( verticalSpace | error )* | ( verticalSpace | error )+ ; lexicalPattern ::= [unassigned]+ ; verticalSpace ::= <END_OF_LINE>+ ; error ::= . ; `; module.exports = bnf;
mit
dannynelson/javascript-koans
koans/AboutArrays.js
2930
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe("object"); //A mistake? - http:javascript.crockford.com/remedial.html expect(emptyArray.length).to...
mit
liuxx001/BodeAbp
src/queue/BodeAbp.Queue/Broker/RequestHandlers/Admin/QueryTopicQueueInfoRequestHandler.cs
2251
using Abp.Dependency; using Abp.Net.Remoting; using Abp.Net.Remoting.Args; using Abp.Serialization; using BodeAbp.Queue.Protocols; using BodeAbp.Queue.Utils; using EQueue.Broker.Exceptions; using System.Collections.Generic; using System.Linq; namespace BodeAbp.Queue.Broker.RequestHandlers.Admin { public class Que...
mit
yefy/skp
super-knowledge-platform/skpServer/trunk/src/utility/skpMalloc.cpp
1070
#include "skpMalloc.h" void *SkpMalloc::malloc(const char *file, uint16 line, const char *function, int size) { SKP_UNUSED(file); SKP_UNUSED(line); SKP_UNUSED(function); void *p = ::malloc(size); SKP_ASSERT(p); return p; } void *SkpMalloc::calloc(const char *file, uint16 line, const char *f...
mit
boyhavoc/craigs_gem_pub
lib/craigs_gem/bulk_poster.rb
16174
module CraigsGem class BulkPoster URLS = YAML.load_file "config/urls.yml" attr_reader :account, :postings, :errors, :submission_rss def initialize(account, postings) @errors = [] @account = account @postings = postings end # Validations ######################## def valid...
mit
pzdeb/SimpleCommander
src/simple_commander/game/init_game.py
852
#!/usr/bin/env python3 from simple_commander.game.game_controller import GameController ''' In this game we have two role - invader and hero. Both can bullet. Invaders are located at the top of game field and always move from the right side to the left and revert. Also they slowly move to the bottom. Main hero is lo...
mit
afdw/fastcloud
src/main/java/com/anton/fastcloud/client/FileSystemMain.java
6348
package com.anton.fastcloud.client; import com.anton.fastcloud.natives.Natives; import com.anton.fastcloud.bindings.FuseLibNative; import com.anton.fastcloud.bindings.SystemNative; import java.nio.ByteBuffer; import java.util.Arrays; import java.util.Random; @SuppressWarnings("OctalInteger") public class FileSystemM...
mit
jadesouth/xy001
application/views/home/password/find.php
2600
<style> .checkout-indicator { display: inline-block; float: left; margin: 30px 0 0 30px; } </style> <div class="main-content"> <div class="container"> <div class="text-center repwd" style="margin: 100px 0"> <input type="password" class="input-lg" placeholder="新密码...
mit
waynemunro/orleans
src/Orleans.Runtime/Hosting/ISiloHostBuilder.cs
3066
using System; using System.Collections.Generic; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace Orleans.Hosting { /// <summary> /// Functionality for building <see cref="ISiloHost"/> instances. /// </summary> public interface ISiloHostBuilder { ...
mit
julienaubert/clothstream
frontend/app/scripts/lib/repository.js
13202
require.register("scripts/repository", function(exports, require, module) { // Simplify interacting with a restful resource: cache locally fetched objects, filters etc. // // How cache is handled: // - fetch: assumes local cache is not dirty // - force-fetch: assumes local cache is dirty // - ap...
mit
jweissman/roguecraft
lib/roguecraft/entity.rb
659
module Roguecraft class Entity include Minotaur::Geometry include Navigation # hmm, might as well start using 3d positions...? attr_accessor :uuid attr_accessor :position attr_accessor :current_depth def initialize(opts={}) @uuid = SecureRandom.uuid @current_depth = 0 ...
mit
sogyf/trial_examples
jasperreoprt-sample/src/test/java/jasperreport/utils/Test.java
865
package jasperreport.utils; import net.sf.jasperreports.engine.JRQuery; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.util.JRStringUtil; /** * <p> * . * </p> * * @author poplar.yfyang * @version 1.0 2013-01-05 4:52 PM...
mit
mlechler/Bewerbungscoaching
app/Http/Requests/Backend/UpdateEmployeeRequest.php
3714
<?php namespace App\Http\Requests\Backend; use App\Employee; use Illuminate\Foundation\Http\FormRequest; class UpdateEmployeeRequest extends FormRequest { protected $fileindex; /** * Determine if the user is authorized to make this request. * * @return bool */ public function authoriz...
mit
disperse/ripping-yarns
module_system-1.166/module_particle_systems.py
50082
from header_particle_systems import * #psf_always_emit = 0x0000000002 #psf_global_emit_dir = 0x0000000010 #psf_emit_at_water_level = 0x0000000020 #psf_billboard_2d = 0x0000000100 # up_vec = dir, front rotated towards camera #psf_billboard_3d = 0x0000000200 # front_vec point to camera. #psf_tur...
mit
sonnym/gourdian
test/unit/ext/sync.js
281
var ext = require("./../../../lib/ext"); exports.wait_for = function(test) { var condition = false; Gourdian.ext.Sync.wait_for(function() { return condition }, function() { test.ok(condition); test.done(); }); setTimeout(function() { condition = true; }, 20); }
mit
gracianani/PntMinisite
js/main.js
23819
requirejs.config({ //By default load any module IDs from js/lib 'baseUrl': 'js/vendor' }); var app = { Models: {}, Views: {}, User: {}, weiboApp: { authorize_uri: 'https://api.weibo.com/oauth2/authorize', app_id: '3695496477', app_secret: '942214d88b57723ad419854c67d3c49...
mit
karim/adila
database/src/main/java/adila/db/hwu9201l_201hw.java
199
// This file is automatically generated. package adila.db; /* * Huawei * * DEVICE: hwu9201L * MODEL: 201HW */ final class hwu9201l_201hw { public static final String DATA = "Huawei||"; }
mit
iamwithnail/react-redux
src/components/video_list_item.js
865
/** * Created by chris on 04/03/2017. */ import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { // that {video} means that the first props has a property called video // equivalent to const video = props.video; const imageUrl = video.snippet.thumbnails.default.url; return ( ...
mit
stas-vilchik/bdd-ml
data/818.js
231
{ test.equal(success, false, "request should not succeed"); test.equal(failure, true, "request should fail"); test.equal(error.code, "ECONNABORTED"); test.equal(error.message, "timeout of 250ms exceeded"); test.done(); }
mit
yassine-essadik/gestion-pub
src/GP/PoseurBundle/GPPoseurBundle.php
124
<?php namespace GP\PoseurBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class GPPoseurBundle extends Bundle { }
mit
MichaelHu/mcphp
apps/scaffold/conf/RequestConfig.conf.php
643
<?php /* * 逻辑选择参数配置 * default: 默认值,当前上下文获取不到的时候,使用默认值 * source: 参数来源,例子如下: * requestParams|tn 表示来自请求参数, request->requestParams['tn'] * cookie|baiduid 表示来自Cookie, request->cookie['baiduid'] * requestData|fname 表示来自请求数据, request->requestData['fname'] * pattern: 正则表达式,用于参数有效性检查 *...
mit
winnitron/winnitron_reborn
db/migrate/20160926033137_add_player_counts.rb
163
class AddPlayerCounts < ActiveRecord::Migration def change add_column :games, :min_players, :integer add_column :games, :max_players, :integer end end
mit
afogel/iArrived
application.rb
1099
require 'sinatra' require 'rack-flash' require 'dotenv' require 'twilio-ruby' require 'json' # Configuration Dotenv.load APP_ROOT = Pathname.new(File.expand_path('../', __FILE__)) configure do set :root, APP_ROOT.to_path set :views, File.join(Sinatra::Application.root, "app", "views") end enable :sessions use Rack::...
mit
meatwallace/strap
src/common/lib/genActionType.js
88
export default function genActionType(scope, action) { return `${scope}/${action}`; }
mit
Nexmo/nexmo-java-sdk
src/main/java/com/vonage/client/verify/VerifyControlCommand.java
1082
/* * Copyright 2020 Vonage * * 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 applicable law or ag...
mit
SurgicalSteel/Competitive-Programming
Codeforces-Solutions/A and B and Team Training.cpp
599
#include <bits/stdc++.h> using namespace std; int main() { int xp,nb; cin>>xp>>nb; if(xp>nb&&xp>0&&nb>0) { if(nb*2<=xp){cout<<nb<<"\n";} else {cout<<(((xp+nb)-((xp+nb)%3)))/3<<"\n";} } else if(nb==0||xp==0){cout<<"0\n";} else if(xp<nb) { if((xp*3)<=(xp+nb...
mit
xpharry/Leetcode
leetcode/cpp/038.cpp
904
/** * Code description * * Author: xpharry * Date: 11/11/2018 * * Data structure: * String, Array * * Idea: * - DP * - 可以用recursion,也可以直接iteration。下次实现下后者。 * - 参考(Reference): * http://bangbingsyb.blogspot.com/2014/11/leetcode-count-and-say.html * * Complexity: * Time: O(?) * */ cla...
mit
Pro/three.js
examples/js/controls/TrackballControls.js
13853
/** * @author Eberhard Graether / http://egraether.com/ * @author Mark Lundin / http://mark-lundin.com * @author Simone Manini / http://daron1337.github.io * @author Luca Antiga / http://lantiga.github.io */ THREE.TrackballControls = function ( object, domElement ) { var _this = this; var STATE = { NONE: -1,...
mit
DBWangGroupUNSW/revs
scripts/ttl2tsv.py
1691
#!/usr/bin/python import os import sys def convert(ttl_file): print('Processing %s...' % ttl_file) if ttl_file.endswith('.ttl'): tsv_file = ttl_file.replace('.ttl', '.tsv') elif ttl_file.endswith('.nt'): tsv_file = ttl_file.replace('.nt', '.tsv') else: raise RuntimeError("File...
mit
Stefan-Lazarevic/JSL
src/game/com/jsl/game/main/Game.java
423
package game.com.jsl.game.main; import engine.ScreenManager; public class Game extends ScreenManager{ private static final long serialVersionUID = 1L; //private GameStateManager gsm; public Game(){ setScreenEnvironment("Game", 800, 600, 32, false); gameStart(60, true); gsm.add(new...
mit
deannariddlespur/Frame-Work
public/js/views/index.js
1064
var ListView = Backbone.View.extend({ el: $('#item-list'), // el attaches to existing element // `events`: Where DOM events are bound to View methods. Backbone doesn't have a separate controller to handle such bindings; it all happens in a View. events: { 'click button#add': 'addItem' }, initi...
mit