code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------------------------... | paulmarsy/Console | Libraries/Visual Studio Code/App/resources/app/out/vs/workbench/parts/search/browser/openAnythingHandler.nls.ja.js | JavaScript | mit | 1,010 |
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
// `PureComponent` is only available in React >= 15.3.0.
const PureComponent = React.PureComponent || React.Component
// http://react-day-picker.js.org/examples/?yearNavigation
// Component will receive date, locale and l... | halt-hammerzeit/react-responsive-ui | source/YearMonthSelect.js | JavaScript | mit | 5,558 |
'use strict';
goog.provide('vbrank.games');
goog.require('vbrank.players');
var vbRankGames = angular.module('vbrank.games',
[vbrank.players.name]);
vbrank.games=vbRankGames;
vbRankGames.controller('NewGameCtrl',
['$scope', 'GameService', 'PlayerService', function($scope, GameService, PlayerService) ... | SteveMoyer/volleyballrank | src/main/webapp/app/games/games.js | JavaScript | mit | 1,721 |
module.exports = (req, res, next) => {
const _tournament = req.requestParams.tournament
const params = req.params
const match = {
_tournament: _tournament,
_id: params.id
}
return global.models.remove(
global.db.asians.BreakBallots,
match,
res
)
}
| westoncolemanl/tabbr-api | controllers/asians/breakBallots/remove.js | JavaScript | mit | 281 |
var assert = require('assert');
describe('', function (){
it('', function (){
});
}); | opensoars/dir-cleaner | tests/mocha/dir-cleaner.js | JavaScript | mit | 95 |
test("module without setup/teardown (default)", function() {
expect(1);
ok(true);
});
test("expect in test", 3, function() {
ok(true);
ok(true);
ok(true);
});
test("expect in test", 1, function() {
ok(true);
});
test("expect query and multiple issue", function() {
expect(2);
ok(true);
var ... | bulain/grunt-webdriver-qunit | test/test/test.js | JavaScript | mit | 13,131 |
$(document).ajaxSend(function(event, request, settings) {
if (typeof(AUTH_TOKEN) == "undefined") return;
// settings.data is a serialized string like "foo=bar&baz=boink" (or null)
settings.data = settings.data || "";
settings.data += (settings.data ? "&" : "") + "authenticity_token=" + encodeURIComponent(AUTH_T... | jsl/ListableApp-Web | public/javascripts/application.js | JavaScript | mit | 331 |
module.exports = {
compile: {
options: {
baseUrl: './src',
mainConfigFile: './src/main.js',
dir: 'build',
optimize: 'uglify2',
generateSourceMaps: true,
preserveLicenseComments: false,
findNestedDependencies: true,
... | scheunemann/KASPAR | kasparGUI/Web/gui/grunt/requirejs.js | JavaScript | mit | 1,349 |
'use strict';
jQuery(document).ready(function ($) {
function log(txt) {
console.log(txt);
}
log("DOM is loaded!");
});
| unidea/node-html5-sass | js/scripts.js | JavaScript | mit | 142 |
'use strict';
let expect = require('chai').expect;
let Discovery = require('../lib/Discovery');
describe('Discovery', () => {
beforeEach(() => {
this.discovery = new Discovery;
});
describe('constructor', () => {
it('should set options', () => {
expect(this.discovery).to.have.property('options... | sqmk/huejay | test/Discovery.spec.js | JavaScript | mit | 342 |
version https://git-lfs.github.com/spec/v1
oid sha256:fc7e184beeda61bf6427938a84560f52348976bb55e807b224eb53930e97ef6a
size 13360
| yogeshsaroya/new-cdnjs | ajax/libs/crypto-js/3.1.2/rollups/aes.js | JavaScript | mit | 130 |
version https://git-lfs.github.com/spec/v1
oid sha256:4aea3df6fd4640790412a29840b522fc0ea3c2bc6dc07802a205c79c1c13dccf
size 4132
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.3.0/editor/editor-para-min.js | JavaScript | mit | 129 |
module.exports = require("npm:videojs-vtt.js@0.12.1/lib/index.js"); | francesconistri/p2ptv-pi | pistream/static/jspm_packages/npm/videojs-vtt.js@0.12.1.js | JavaScript | mit | 67 |
'use strict';
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');
var yosay = require('yosay');
var chalk = require('chalk');
var TreeGenerator = yeoman.generators.Base.extend({
initializing: function () {
this.pkg = require('../package.json');
},
prompting: fun... | wh1100717/generator-tree | app/index.js | JavaScript | mit | 2,487 |
(function(){
'use strict';
/**
* Populate DB with sample data on server start
* to disable, edit config/environment/index.js, and set `seedDB: false`
*/
var User = require('../user/user.model');
var <%= classifiedSingluarName %> = require('./<%= camelizedPluralName %>.model');
<%= classifiedSingluarName %... | suryasingh/slush-y | backups/__generators/generators-crud/templates/express-module/server/api/_.seed.js | JavaScript | mit | 1,635 |
var hello = require( "./hello" );
// console.log(hello);
hello.getHello( "Microsoft MVP V-Conf", function( err, response ) {
if ( err )
throw err;
console.log( "Version:", hello.version );
console.log( response );
} );
// hello.getHello( null, function( err, response ) {
// if ( err )
// throw err;
// conso... | reverentgeek/nodejs-demos | demo3/index.js | JavaScript | mit | 348 |
var Promise = require('bluebird');
var Ephemeral = require('./drivers/ephemeral');
var Item = require('./item');
function Pool(drivers) {
if (!drivers) {
drivers = [new Ephemeral()];
} else if (Object.prototype.toString.call(drivers) !== '[object Array]') {
drivers = [drivers];
}
this.drivers = driver... | onionskin/onionskin | src/onionskin/pool.js | JavaScript | mit | 1,409 |
import { getRequestErrorMessage } from 'ghost/utils/ajax';
import ValidatorExtensions from 'ghost/utils/validator-extensions';
import PostValidator from 'ghost/validators/post';
import SetupValidator from 'ghost/validators/setup';
import SignupValidator from 'ghost/validators/signup';
import SigninValidator from 'ghos... | eduardojmatos/eduardomatos.me | core/client/mixins/validation-engine.js | JavaScript | mit | 6,081 |
var util = require('util');
var ArgumentError = function(message){
this.message = message;
};
util.inherits(ArgumentError, Error);
module.exports = ArgumentError;
| Annyv2/node-auth0 | src/exceptions/ArgumentError.js | JavaScript | mit | 170 |
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#bulb-rules
'plugin:vue/essential',
'plugin:vue/recommended',
'plugin:vue/strongly-recommended',
// https://github.com/standard/stan... | Justineo/vue-awesome | .eslintrc.js | JavaScript | mit | 3,055 |
var Lab = require('lab');
var Code = require('code');
var lab = exports.lab = Lab.script();
var describe = lab.describe;
var it = lab.it;
var before = lab.before;
var beforeEach = lab.beforeEach;
var after = lab.after;
var expect = Code.expect;
var config = require('./config.json');
var Registry = require('../lib/reg... | z0mt3c/scoped-registry | test/archives.js | JavaScript | mit | 3,149 |
/**
* Created by ryan on 27/03/16.
*/
module.exports = {
Blackhole: require('polyball/shared/powerups/Blackhole'),
KingMidas: require('polyball/shared/powerups/KingMidas'),
BulletTime: require('polyball/shared/powerups/BulletTime')
}; | polyball/polyball | polyball/shared/powerups/Index.js | JavaScript | mit | 248 |
/**
* @fileoverview Prefer destructuring from arrays and objects
* @author Alex LaFroscia
*/
'use strict';
module.exports = {
meta: {
schema: [
{
type: 'object',
properties: {
array: {
type: 'boolean'
},
object: {
type: 'boolean'
... | jrowlingson/eslint-plugin-ember-suave | lib/rules/prefer-destructuring.js | JavaScript | mit | 2,362 |
import Callout from './callout';
export default Callout;
| joshferrell/hapi-maily | widgets/src/callout/index.js | JavaScript | mit | 58 |
import services from '../../services'
export default function listPlayers(req, res, next) {
// todo pagination
// todo add total rowcount in response.
services.playerService.list([]).then((result) => {
res.json({ players : result })
}).catch((error) => {
res.status(401).send({
message: 'Failed to retrie... | dennisdevetter/atp-rest | src/api/middleware/players/list-players.js | JavaScript | mit | 359 |
var expect = require("chai").expect;
var nopter = require("../lib");
describe("Error messages", function()
{
after(function(){ nopter.util.forceColors(false) });
before(function(){ nopter.util.forceColors(true) });
describe("as objects", function()
{
it("should work", function(done)
{
var result1 ... | stevenvachon/nopter | test/error.js | JavaScript | mit | 4,156 |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function getFunctionName(func) {
var s = String(func).match(/function\s+([^\(]+)\(/);
return s && s[1] || null;
}
var result = typeof Element !== 'undefined' && (function () {
// in Chrome < 47 the focus method lived on Element, ins... | DNACodeStudios/ally.js | dist/supports/svg-focus-method.js | JavaScript | mit | 994 |
const Thumos = require('../thumos.js')
const alert = require('alerts')
const getUserMedia = require('getusermedia')
const attachmediastream = require('attachmediastream')
const $ = require('jquery')
getUserMedia(function (err, stream) {
if (err) {
console.log('couldnt get user media!', err)
alert('Thumos cou... | sarahkemi/thumos | demo/demo.js | JavaScript | mit | 909 |
/* Custom Template
* Allow to test the ability to overload and rewrite
* presentations templates of the model
*/
var equal = chai.assert.equal;
describe('CustomTemplate', function() {
it('Create a CustomTemplate', function(done) {
visit('/custom_template/new');
fillIn('.eureka-field-input[na... | namlook/eureka.tests | tests/customTemplateTest.js | JavaScript | mit | 2,773 |
Package.describe({
name: "my-custom-package"
});
Package.onUse( function(api) {
api.versionsFrom("METEOR@1.0");
api.use([
'fourseven:scss',
'nova:core',
'nova:base-components',
'nova:posts',
'nova:users',
'xavcz:nova-social-share',
]);
api.addFiles([
'lib/modules.js'
], ['cl... | nathanmelenbrink/theRecord | packages/my-custom-package/package.js | JavaScript | mit | 614 |
hb.ready(function () {
// enable the mocks or disable them.
hb.http.mock(true);
hb.services.registerMock('session/login/:id', function (next, options) {
options.url = 'mocks/session/login.json';
next();
});
hb.services.registerMock(/contacts\/new/im, function (next, options) {
... | obogo/hummingbird | demo/rest/rest-mocks.js | JavaScript | mit | 404 |
function setup(){
// create a canvas that is
// (width:400px, height:400px)
createCanvas(400,400);
}
function draw() {
// set the background to 'white'
background(255);
// no rotate
// translate to (x:250, y:75)
// smiley centered at (x:75, y:75)
translate( 250, 75 );
// ** dra... | Montana-Media-Arts/120_CreativeCoding_Fall2017 | lecture_code/04/12_rotateSmiley_01/sketch.js | JavaScript | mit | 3,252 |
'use strict';
var grunt = require('grunt');
var crypto = require('crypto');
var regexs = require('./regexs');
module.exports = function(opts) {
return {
isRelativePath: function(path) {
return (regexs.relativePath).test(path);
},
checkIfRemote: function(path) {
i... | bhaskarmelkani/grunt-cache-bust-lazy-loading | tasks/lib/utils.js | JavaScript | mit | 2,422 |
var flickr = require('..')(function auth() { /* noop */ });
var assert = require('assert');
describe('flickr.stats.getCollectionReferrers', function () {
it('requires "date"', function () {
assert.throws(function () {
flickr.stats.getCollectionReferrers({
domain: '_'
});
}, function (err) {
return ... | flickr/flickr-sdk | test/flickr.stats.getCollectionReferrers.js | JavaScript | mit | 1,161 |
import { NamedYieldable, Listener } from './types'
export function listen( eventName, handler ) {
return new Listener({
listenTo : eventName,
handler
})
}
export function fromReduxAction( ReduxActionType ) {
return function (action) {
return action.type === ReduxActionType
}
}
export const DEFA... | sskyy/redux-task | src/util.js | JavaScript | mit | 1,092 |
export default function randomInt (a, b) {
return Math.floor(Math.random() * (b - a + 1)) + a
}
| nullobject/fkit | src/uncurried/randomInt.js | JavaScript | mit | 98 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_refresh = exports.ic_refresh = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4... | xuan6/admin_dashboard_local_dev | node_modules/react-icons-kit/md/ic_refresh.js | JavaScript | mit | 405 |
angular.module('starter.services', [])
/**
* A simple example service that returns some data.
*/
.factory('Games', function($http, $window) {
// Might use a resource here that returns a JSON array
var games = []
/*
$http({ method: 'GET',
url: 'http://localhost:3000/games?token='+$window.localSto... | anilmaurya/trackyourgame | www/js/services.js | JavaScript | mit | 849 |
Joose.Managed.Property.MethodModifier.Before = new Joose.Proto.Class('Joose.Managed.Property.MethodModifier.Before', {
isa : Joose.Managed.Property.MethodModifier,
prepareWrapper : function (params) {
var modifier = params.modifier
var originalCall = params.original... | aikar/nope | node_modules/joose/lib/Joose/Managed/Property/MethodModifier/Before.js | JavaScript | mit | 487 |
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var braces = require('../');
var root = path.join(__dirname, 'fixtures');
[
'tenthousand',
'boolean',
'carriage_return',
'comments',
'complex',
'error_not_found',
'escaped',
'hash_instead_of_array',
'recursion_with_... | defunctzombie/braces | test/fixtures.js | JavaScript | mit | 1,165 |
var browserify = require('browserify');
var path = require('path');
var fs = require('fs');
var yargs = require('yargs');
var format = require('util').format;
const isDevelopment = process.env.RAILS_ENV != 'production';
function getBrowserifyBundler(bundlePath) {
var bundler = browserify({
entries: bundlePath,
... | spikebrehm/sprockets-node-example | script/assets/util.js | JavaScript | mit | 1,263 |
module.exports = (...commands) => {
let stdout = 0;
if (parseInt(commands[commands.length - 1], 10)) {
stdout = commands.pop();
}
const settingsObject = commands[commands.length - 1];
const isUserSettings = settingsObject === Object(settingsObject)
&& typeof settingsObject !== 'function'
&& !settingsObje... | abbotto/shellcmd | shellcmd.js | JavaScript | mit | 1,016 |
import clone from 'lodash/clone';
import filter from 'lodash/filter';
import findIndex from 'lodash/findIndex';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/merge';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/startWith';
import 'rxjs/add/operat... | CoderK/github-filter-extension | src/filter/model.js | JavaScript | mit | 1,546 |
var Config = require( '../../config' );
var Loader = require( '../../types/loader' );
Config.add( new Loader( {
path: 'module.loaders.pug',
loader: {
test: /\.pug$/,
loaders: [ 'pug' ],
type: 'page',
},
} ) );
| vonagam/webpack-config | sources/parts/loaders/pug.js | JavaScript | mit | 238 |
b.output.file.indexOf(f) > -1;
| stas-vilchik/bdd-ml | data/7844.js | JavaScript | mit | 31 |
import React, { Component } from 'react';
import $ from 'jquery';
var Typeahead = require('react-typeahead').Typeahead;
import {apiKey} from '../apiKey';
export default class SearchBar extends Component {
state = {
query: '',
type: '',
options: []
}
handleSubmit = event => {
if (event) {
event.preventDe... | henrikra/reactive-movies | src/components/SearchBar.js | JavaScript | mit | 2,507 |
import { all, takeEvery, takeLatest } from 'redux-saga/effects';
import { FIREBASE_AUTH_STATE_CHANGE } from 'atomic/firebaseAuthStateChange';
import { LOGIN_REQUEST } from 'atomic/login';
import { LOGOUT_REQUEST } from 'atomic/logout';
import { SIGNUP_REQUEST } from 'atomic/signup';
import { TRACK_REQUEST } from 'atom... | jebeck/nefelion | redux/actions/sagas/rootSaga.js | JavaScript | mit | 1,206 |
(function() {
var params = {};
var r = /([^&=]+)=?([^&]*)/g;
function d(s) {
return decodeURIComponent(s.replace(/\+/g, ' '));
}
var match, search = window.location.search;
while (match = r.exec(search.substring(1)))
params[d(match[1])] = d(match[2]);
window.params = params;
})();
function set... | DualRTC-io/ScreenShare | src/desktopCapture/desktopCapture.js | JavaScript | mit | 2,805 |
/**
* Created by Rogier on 26/08/2016.
*/
const dsc = Symbol.for('cell-type.dsc');
// let desc = Object.getOwnPropertyDescriptor(properties, prop);
// let attrs = prop.match(/[\w\$\@]+/g); prop = attrs.pop();
// let aliases = `${desc.value || desc.get || desc.set}`.match(/@aliases:(.*?);/);
// let names ... | unnoon/cell-type | test/prototypes/syntax.js | JavaScript | mit | 3,850 |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Module to be tested:
mean = require( './../lib/deepset.js' );
// VARIABLES //
var expect = chai.expect,
assert = chai.... | distributions-io/rayleigh-mean | test/test.deepset.js | JavaScript | mit | 1,689 |
digitalVotingApp.controller('loginCtrl', ['$scope', '$rootScope', '$stateParams', '$state', '$ionicPopup', '$firebaseObject', // The following is the constructor function for this page's controller. See https://docs.angularjs.org/guide/controller
// You can include any angular dependencies as parameters for this fu... | AndromedaTeam/AndromedaApp | www/controllers/loginCtrl.js | JavaScript | mit | 5,071 |
// This is a shim for wordnet lookup.
// http://wordnet.princeton.edu/wordnet/man/wninput.5WN.html
var natural = require("natural");
var wordnet = new natural.WordNet();
var async = require("async");
var _ = require("underscore");
exports.define = function(word, cb) {
wordnet.lookup(word, function(results) ... | coded9/superscript | lib/wordnet.js | JavaScript | mit | 2,409 |
/* eslint-disable */
function initMap () {
// Basic options for a simple Google Map
// For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
var mapOptions = {
// How zoomed in you want the map to start at (always required)
zoom: 12,
... | agolomazov/bouncy | markup/components/map/map.js | JavaScript | mit | 4,478 |
$(document).ready(function(){
////////////////////////////////////////////////////////////////////
// NEWS
// on charge les js nécessaires aux news
// ckeditor
window.CKEDITOR_BASEPATH = PEDIT_PATH_NEWS + "../ckeditor/";
$.getScript(PEDIT_PATH_NEWS + "../ckeditor/ckeditor.js");
// function CKEDITOR
... | polgiron/pedit | news/pedit_news.js | JavaScript | mit | 4,723 |
'use strict';
let Winston = require('winston');
module.exports = new Winston.Logger({
level: (process.env.TEST == 'true') ? 'error' : 'verbose',
transports: [
new Winston.transports.Console({
timestamp: true
})
// new Winston.transports.File({
// filename: 'app.... | mattrayner/alexa-parliament | lib/parliament/helpers/logger.js | JavaScript | mit | 381 |
// BaseModel.js 0.3.0
// (c) 2017 Costas Vlahakis, Pixacore
// Licensed under the MIT license.
var async = require('async'),
_ = require('lodash'),
validateVal = require('./validation');
module.exports = BaseModel;
function BaseModel(attributes, options){
options || (options = {});
if(!options.dbInterface){
t... | cvlahakis/basemodel | BaseModel.js | JavaScript | mit | 5,509 |
var lite = require('lite-engine'),
Position = lite.component('Position'),
Velocity = lite.component('Velocity');
var Moviment = lite.system.define('Moviment', {
priority: lite.PRIORITY.HIGH,
process: function(eid) {
var px = Position.get(eid, 'x'),
py = Position.get(eid, 'y'),
vx = Velocity.get(ei... | luizbills/Lite-Engine-examples | balls/systems/moviment.js | JavaScript | mit | 473 |
/**
* <%= name.pascal %> Directive
*/
export default function <%= name.pascal %>Directive () {
'ngInject'
return {
restrict: 'A',
link (scope, tElement, tAttrs) {
}
}
}
| aarr0n/yo-ng-js | app/templates/directive.js | JavaScript | mit | 190 |
var Reflux = require('reflux');
var _items = [
{ title: 'Devices', image: 'devices', linkTo: 'devices' },
{ title: 'Settings', image: 'settings', linkTo: 'settings' }
];
var navigationStore = Reflux.createStore({
getInitialState: function getInitialState () {
// We don't want callers to modify this array, t... | yetu/controlcenter | public/app/stores/navigation/navigation-store.js | JavaScript | mit | 417 |
/*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.co... | rwaldron/paper.js | src/core/PaperScript.js | JavaScript | mit | 7,911 |
import Fluxxor from 'fluxxor';
import Store from './store';
import defaultActions from './actions';
import localStorageActions from './backends/local-storage-actions'
import VariationEnhance from './enhance';
import LabsPage from './view';
const STORE_NAME = 'variations';
export default class Axo {
static Variatio... | macropodhq/axolotl | src/index.js | JavaScript | mit | 2,047 |
/**
* cookie类
* 全局对象 window.tp.cookie
*/
!(function () {
var domainPrefix = window.location.hostname;
var cookie = {
set : function(name, value, domain, path, hour) {
if (hour) {
var today = new Date();
var expire = new Date();
expire.setTim... | ThinkParkFE/F2E | js/cookie.js | JavaScript | mit | 1,372 |
define(['Utils/DOM/getType', 'Utils/dom'], function(getType, dom){
// Test Suite
describe('DOM tests', function() {
beforeEach(function(){
this.addMatchers({
toBeString: function(expected) {
return getType(this.actual) === 'String' ? true : false;
}
});
});
afterEach(function(){
... | dineshkummarc/Embryo | Assets/Scripts/Tests/test-dom.js | JavaScript | mit | 4,621 |
'use strict';
(function () {
angular.module('dialog')
.directive('dialogWindow', DialogWindow);
function DialogWindow($rootScope) {
var directive = {
restrict: 'A',
link: link
};
return directive;
function link(scope, element, attr) {
... | jeckhummer/angular-gantt | app/dialog/dialog-window.directive.js | JavaScript | mit | 538 |
export function isFunction(obj) {
return type(obj) === 'function';
};
export function isString(obj) {
return type(obj) === 'string';
};
export function type(obj) {
let typeMatches = Object.prototype.toString.call(obj).match(/\[object\s([a-z]+)\]/i);
return typeMatches != null ? typeMatches[1].toLowerCase() : ... | nwronski/batch-transcode-video | lib/util.js | JavaScript | mit | 2,086 |
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import { PipelinePage } from '../../main/js/components/PipelinePage.jsx';
const params = {
organization: 'jenkins',
pipeline: 'asdf',
}
const context = {
pipelineService: {
fetchPipeline() {
return Prom... | ModuloM/blueocean-plugin | blueocean-dashboard/src/test/js/pipeline-not-found-spec.js | JavaScript | mit | 1,440 |
/*!
* A Grunt checker for the 'banana' format JSON i18n message files.
*/
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.registerMultiTask( 'banana', function () {
var ok,
path = require( 'path' ),
fs = require( 'fs' ),
options = this.options( {
sourceFile: 'en.json',
documenta... | paladox/grunt-banana-checker | tasks/banana.js | JavaScript | mit | 9,240 |
/**
* File: e:\Session\Amazing-Javascript\js\generator.js
* Project: e:\Session\Amazing-Javascript
* Created Date: Thu Jun 29 2017
* Author: topgrd
* Email: topgrd@outlook.com
* -----
* Last Modified: Thu Jul 13 2017
* Modified By: topgrd
* -----
* Copyright (c) 2017
*/
const App = {
slide... | TopGrd/My-Slides | js/generator.js | JavaScript | mit | 962 |
(function () {
'use strict';
var v1 = require('./v1');
module.exports = function (skl, parser) {
v1(skl, parser);
skl.boneIndicesCounter = parser.int32();
skl.boneIndices = parser.int32(skl.boneIndicesCounter);
};
}());
| Pupix/lol-skl-parser | lib/parsers/v2.js | JavaScript | mit | 265 |
var controllers = angular.module('controllers');
controllers.controller('ServiceCtrl', ['$scope', '$routeParams', '$location', 'ServicesList', 'Search', '_', function ($scope, $routeParams, $location, ServicesList, Search, _) {
// when a user clicks on "Show Details" from a map popup, we don't want all the icons o... | PeaceGeeksSociety/services-advisor | src/angular/controllers/service.controller.js | JavaScript | mit | 2,678 |
import React from 'react';
import chaiEnzyme from 'chai-enzyme';
import chai, { expect, assert } from 'chai';
import { mount, render, shallow } from 'enzyme';
import sinon, {spy, stub} from 'sinon';
import Canvas from 'canvas';
chai.use(chaiEnzyme());
import PhotoLayers from './PhotoLayers';
import cooperglasses fro... | kirsty-forrester/react-photo-collage | src/components/PhotoLayers/PhotoLayers.test.js | JavaScript | mit | 3,800 |
import Vue from 'vue'
import Router from 'vue-router'
import Index from '../components/Index'
import Swiper from '../components/Swiper'
import Diabox from '../components/Dialog'
// import Overlay from '@/demo/Overlay'
import Action from '../components/Actions'
import IosSelect from '../components/IosSelect'
import Date... | 1598692232/vui | demo/router/index.js | JavaScript | mit | 2,099 |
var express = require('express');
var router = express.Router();
var _ = require('lodash');
var azure = require('azure-storage');
var blobService = azure.createBlobService();
var playerManager = require('../../lib/playerManager.js')(blobService);
router.get('/', function(req, res) {
try {
playerManager.getPlayer... | SpencerLynn/discores | app/routes/players.js | JavaScript | mit | 1,254 |
/**
* If the frame was trimmed when added to the Texture Atlas this records the trim and source data.
*
* @method SetTrim
* @param {number} width - The actual width of the frame before being trimmed (sourceSize.w)
* @param {number} height - The actual height of the frame before being trimmed (sourceSize.h)
* @param {nu... | photonstorm/lazer | src/texture/SetTrim.js | JavaScript | mit | 982 |
/**
* Created by huangxinghui on 2015/4/20.
*/
var gulp = require('gulp');
var vendor = require('../config').vendor;
// copy bootstrap to vendor.src directory
gulp.task('copy', function () {
gulp.src([vendor.src + '/bootstrap/dist/**/*'])
.pipe(gulp.dest(vendor.dest + '/bootstrap'));
}); | huang-x-h/backbone-spa-browserify | gulp/tasks/copy.js | JavaScript | mit | 303 |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'localhost', ... | fengnovo/vue | vueMusic-master/config/index.js | JavaScript | mit | 2,301 |
version https://git-lfs.github.com/spec/v1
oid sha256:87d58f13fbb48061db31b885ce4655930b3be998e8d3de2c5c30384127ad06c3
size 1480
| yogeshsaroya/new-cdnjs | ajax/libs/openlayers/2.13.1/lib/OpenLayers/Protocol/WFS/v1_0_0.js | JavaScript | mit | 129 |
var https = require('https');
exports.id = 'youtube';
exports.desc = 'Automated YouTube link recognition';
exports.init = function () {
//Just some code from games
if (global.Games) {
for (var i in Games) {
if (Games[i].game && typeof Games[i].game.destroy === "function") {
try {
Games[i].game.destroy... | Ecuacion/Espaol-Bot | features/youtube/index.js | JavaScript | mit | 3,190 |
var BLANK_URL = 'http://marechal.oxfoz.net/js/blank.html';
var BLANK_IMG = 'http://marechal.oxfoz.net/js/spacer.gif';
var SKIN_URL = 'http://marechal.oxfoz.net/skin/frontend/default/marechal/';
var G_NORMAL_MAP = '';
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
docu... | psamada2012/psa | html/js/google-analytic.js | JavaScript | mit | 532 |
'use strict';
(function(){
var app = angular.module('ftpWatcher');
app.filter('slice', function() {
return function(arr, start, end) {
return arr.slice(start, end);
};
});
app.filter('bytes', function() {
return function(bytes, precision) {
if (isNaN(parseFloat(bytes)) || !isFinite(bytes))... | pavel-mxsf/ftpwatch | public/javascripts/filters.js | JavaScript | mit | 640 |
class Post_Reactions {
static init(){
if(typeof yootil == "undefined"){
return;
}
if(typeof profile_notifications != "undefined" && yootil.location.profile_notifications()){
profile_notifications.api.register_parser(this.notification_parser);
}
let location_check = (
yootil.location.recent_posts(... | PopThosePringles/ProBoards-Post-Reactions | src/post_reactions.js | JavaScript | mit | 9,043 |
// Create a TODO list with the following UI controls
// Form input for new Item
// Button for adding the new Item
// Button for deleting some item
// Show and Hide Button
window.onload = function () {
'use strict'
function attachEventListener(id, eventType, eventHandler) {
document.getElementById... | 2She2/JavaScriptUIAndDOM | 08.JavaScript-Event-Model/TodoList/scripts/todo-list.js | JavaScript | mit | 3,108 |
'use strict';
/**
* @ngdoc routes
* @name billTrackerApp Routes
* @description
* # billTrackerApp Routes
*
* Routing configuration for the application.
*/
angular
.module('billTrackerApp')
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
... | troy-open-data/bill_tracker | app/scripts/routes.js | JavaScript | mit | 1,406 |
const AWS = require('aws-sdk');
const BUCKET = 'ecs-task-notifications';
exports.handler = (event, context, callback) => {
const s3 = new AWS.S3();
// console.log(JSON.stringify(event, null, 2));
const taskArn = event.detail.taskArn;
if (event.detail.lastStatus === 'RUNNING' && event.detail.containers.every((... | eagletmt/hako | examples/put-ecs-container-status-to-s3/index.js | JavaScript | mit | 1,122 |
var reverseVowels = function(s) {
if (!s) return null;
let alpha = 'aeiou';
let o_arr = s.split('');
let temp = [];
let res_arr = o_arr.map((v) => {
if (alpha.indexOf(v) !== -1) {
temp.push(v);
return -1;
}
});
temp = temp.reverse();
let fin_res_arr = res_arr.map((v, i) => {
... | ValentinZhao/TodoList | codescratch.js | JavaScript | mit | 358 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.install = install;
const name = exports.name = 'foo';
const lua = exports.lua = `--!/usr/bin/env lua
-- name pdel
-- nkeys 1
local function deleteKeys (keys)
for i, name in ipairs(keys) do
redis.call("DEL", name)
end
end
i... | perrin4869/gulp-redis-lua2js | test/foo.js | JavaScript | mit | 1,340 |
var request = require('supertest'),
app = require('../app'),
expect = require('expect.js');
console.log("Starting Tests");
//sometimes error don't show in the log...
//http://stackoverflow.com/questions/8794008/no-stack-trace-for-jasmine-node-errors
process.on('uncaughtException',function(e) {
console.log("... | jshemas/validationService | spec/index.spec.js | JavaScript | mit | 14,181 |
exports.run = async (client, msg) => {
if (!msg.guild.voiceConnection) {
throw `I am not connected in a voice channel, please add some songs to the queue first with ${msg.guild.settings.prefix}add`;
}
msg.guild.voiceConnection.dispatcher.end();
return msg.send("⏭ Skipped");
};
exports.conf = {
enabled: ... | dirigeants/komada-pieces | commands/Music/skip.js | JavaScript | mit | 548 |
import React, { Component, PropTypes } from 'react';
import { DatePicker, Dialog, FlatButton, Snackbar, TextField } from 'material-ui';
import { editTest } from '../../actions/module/test';
class Test extends Component {
constructor(props) {
super(props);
const { test } = this.props;
this.state = {
... | NUS-Workload-Predictor/front-end | components/module/Test.js | JavaScript | mit | 4,127 |
import React, { Component } from 'react';
import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native';
import Swiper from 'react-native-swiper';
import { DynamicZone, DynamicItem } from '../../entity/DynamicZone'
import PropTypes from 'prop-types';
export default class SlideView extends Component... | jaminzzhang/MZMovie | app/screens/components/SlideView.js | JavaScript | mit | 1,414 |
(function() {
try {
throw 'a';
} catch (b) {
}
c(); // This must not be removed.
}());
| PiotrDabkowski/pyjsparser | tests/pass/bd697f0fda948394.js | JavaScript | mit | 112 |
'use strict';
/**
* @ngdoc controller
* @name groupbuys.controller:GroupbuysTabMembersController
*
* @requires $scope
* @requires $stateParams
* @requires $translate
* @requires $location
* @requires Restangular
* @requires Authentication
* @requires Groupbuys
*
* @description
* Members tab controller
*/... | PFG-NUMIS/numis | public/modules/groupbuys/controllers/groupbuys.tab.members.controller.js | JavaScript | mit | 3,045 |
app.factory('places', ['$http', function($http) {
return $http.jsonp('https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=10000&gscoord=38.8977%7C-77.0366&gslimit=30&format=json&callback=JSON_CALLBACK')
.success(function(data) {
return data;
})
.error(function(err) {
return err;
});
}]); | Kadarhall/White_House_Wikifacts | app/js/services/places.js | JavaScript | mit | 319 |
var VectorFactory = require("./VectorFactory");
var MatrixFactory = require("./MatrixFactory");
var {SourceWriter, CodeBuilder} = require("code-builder");
export function create(dimensions, destination) {
var length = dimensions * dimensions;
var createArray = new Array(length);
for (var i = 0; i < length; i++) cre... | citybound/nd-linalg | es6/Matrix.js | JavaScript | mit | 4,986 |
/**
* Created by andim on 2017/8/9.
*/
//表格
var dataSetConfigPop = new Vue({
el:'#dataSetConfigPop',
data:{
dataSetConfigTable:[],//table数据
input:'',//搜索框输入
Height:'',//表格高度
selUrl:serverPath+'/dataSetConfig/query',//查询接口
},
methods:{
searchResTable(){//查询
... | 15292137182/era | src/main/webapp/core/WebUI/data-set-configuration/data-set-configuration-pop.js | JavaScript | mit | 1,059 |
const gulp = require('gulp');
const browserSync = require('browser-sync').create();
const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass');
// use the latest css syntax
const postcss = require('gulp-postcss');
const cssnext = require('postcss-preset-env');
// minify css styles
const clean... | pwcong/FrontEnd-Dev | gulp-webpack/gulpfile.js | JavaScript | mit | 2,121 |
define(['controls/view'], function (SPViewElement) {
return class SPAppViewStackView extends SPViewElement {
createdCallback() {
super.createdCallback();
this.classList.add('sp-view');
}
attributeChangedCallback(attrName, oldVal, newVal) {
if (attrName === '... | Buddhalow/bungalow | client/js/plugins/bungalow/views/appviewstack.js | JavaScript | mit | 4,427 |
/**
* @file Interface for entire animation-handling. This prototype is used in
* stages to access animation-based logic and to create animation-entities.
*
* @author Human Interactive
*/
"use strict";
var Animation = require( "../animation/Animation" );
var SpriteAnimation = require( "../animation/SpriteAnimatio... | Mugen87/yume | src/javascript/engine/animation/AnimationManager.js | JavaScript | mit | 4,450 |
module.exports.qunit = require('./qunit');
module.exports.mocha = require('./mocha');
module.exports.tape = require('./tape');
| zenners/angular-contacts | node_modules/firebase/node_modules/faye-websocket/node_modules/websocket-driver/node_modules/websocket-extensions/node_modules/jstest/node_modules/wake/node_modules/clean-css/node_modules/browserify/node_modules/util/node_modules/zuul/frameworks/index.js | JavaScript | mit | 127 |
export default from '@react-native-community/async-storage/jest/async-storage-mock';
| mcnamee/react-native-starter-app | src/tests/__mocks__/@react-native-community/async-storage.js | JavaScript | mit | 85 |