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
/* * GET users listing. */ exports.index = function(req, res){ res.render('user/index', { title: '/ My Apps'}); };
shutterfly/Mimo
routes/user.js
JavaScript
mit
119
(function (angular) { "use strict"; angular.module("mfl.reports.controllers", [ "mfl.reports.controllers.base", "mfl.reports.controllers.facilities", "mfl.reports.controllers.facility_reporting", "mfl.reports.controllers.chu_reporting", "mfl.reports.updowngrades.controll...
torgartor21/mfl_admin_web
src/app/reports/controllers/module.js
JavaScript
mit
386
git://github.com/viljamis/ResponsiveSlides.js.git
silenceper/birdsnest
packages/responsiveSlides.js
JavaScript
mit
50
/** * Imports */ import test from 'tape' import PixelGradient from '.' /** * <Pixel Gradient/> tests */ test('<PixelGradient/> should work', t => { })
9dots/pixelBots
lib/components/PixelGradient/PixelGradient.test.js
JavaScript
mit
159
var WorkerInstance = require("../lib/workers/WorkerInstance.js").WorkerInstance, EventEmitter = require("events").EventEmitter; exports.WorkerPrototypeTests = { setUp: function(done) { done(); }, "Worker has a EventEmitter in prototype chain": function(test) { test.expect(1); var worker = new W...
afronski/playground-nodejs
samples/cluster-playground/test/WorkerTest.js
JavaScript
mit
2,274
/* * bootstrap-table - v1.11.1 - 2017-08-03 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2017 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.fn.bootstrapTable.locales["th-TH"]={formatLoadingMessage:function(){return"กำลังโหลดข้อมูล, กรุณารอสักครู่..."},formatRecordsPerPage:function(a...
ljxiong313/angular-bootstrap-table
docs/dist/locale/bootstrap-table-th-TH.min.js
JavaScript
mit
986
(function() { var slice = [].slice, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return chil...
waeltken/slider
slider.js
JavaScript
mit
28,229
var util = require( 'util' ); var url = require( 'url' ); var browser = require('../airplay').createBrowser(); var media = { url : 'http://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4', file: '/Users/carlos/Desktop/a.mp4', subtitles: [{ language: 'en-US', url...
niczy/connect
node_modules/webtorrent/node_modules/airplay-js/test/main.js
JavaScript
mit
3,811
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1....
oliviertassinari/material-ui
packages/mui-icons-material/lib/esm/Block.js
JavaScript
mit
412
/** C의 문장을 분석합니다. */ function initProgramCompilerStatement(compiler, CompilerException) { var _Statement = {}; /** 문장을 정의합니다. */ function StatementInfo(stmt) { this.statement = stmt; } StatementInfo.prototype.toString = function() { return Handy.format('%s', this.statement); }; /** 수식문을 정...
gusdud25/JSCC
ProgramCompilerStatement.js
JavaScript
mit
22,089
"use strict"; var jsx = require('jsx-runtime'); var hasOwn = Object.prototype.hasOwnProperty; var emptyTags = require('empty-tags').reduce(function(map, tag) { map[tag] = true; return map; }, Object.create(null)); var SVG_NS = 'http://www.w3.org/2000/svg'; var HTML_NS = 'http://www.w3.org/1999/xhtml'; var rende...
OpenJSX/jsx-to-dom
index.js
JavaScript
mit
2,761
(function(){ 'use strict'; /** * @ngdoc directive * @name mdtCell * @restrict E * @requires mdtTable * @requires mdtRow * * @description * Representing a cell which should be placed inside `mdt-row` element directive. * * @param {boolean=} htmlContent if set to...
iamisti/md-data-table
app/modules/main/directives/body/mdtCellDirective.js
JavaScript
mit
2,814
var util = require("util"); var request = require("request"); var BaseTrigger = require("./baseTrigger.js").BaseTrigger; var TinyCache = require( "tinycache" ); var cache1 = new TinyCache(); var cache2 = new TinyCache(); /* Trigger that automatically looks up users on reddit when they join. options: cacheJoinedTime - I...
Efreak/node-steam-chat-bot
lib/triggers/redditOnJoinTrigger.js
JavaScript
mit
5,195
import {} from 'moogose';
fanzkday/VisualCode
demo/model/db.js
JavaScript
mit
25
/** * api 接口请求 */ C.api = function(url,get,post,callback,errorback){ //gost_loading.show(); if(post!=null){ var geturl = ''; for(var p in get){ geturl += p+'='+get[p]+'&'; } url += '?' + geturl.substring(0,geturl.length-1);//去掉末尾的 & 字符 C.ajax.post(url,post,f...
jojoin/Codekart
framework/resource/js/api.ck.js
JavaScript
mit
1,107
'use strict'; /* eslint-disable global-require */ require('../bin/pixi'); describe('PIXI', function () { it('should exist as a global object', function () { expect(PIXI).to.be.an('object'); }); require('./core'); require('./interaction'); });
twhitbeck/pixi.js
test/index.js
JavaScript
mit
273
'use babel'; import CallStackEntry from './call-stack-entry'; import {DELIMITER, ASSIGN_SYMBOL} from '../messaging/message-utils'; export default function callStackFromString(string) { const callStack = []; if (string) { const splitted = string.split(DELIMITER); for (const elem of splitted) ...
fhukiel/levels-debugger-ruby
lib/common/call-stack-factory.js
JavaScript
mit
517
var gulp = require('gulp'), jshintStylish = require('jshint-stylish'), gutil = require('gulp-util'),// Currently unused, but gulp strongly suggested I install... jshint = require('gulp-jshint'), jsHintOptions = { "trailing": true, "nonbsp": true, "noarg": true, "latedef": true, "sub": true, "smarttabs"...
iFaZe/SilverZ
gulpfile.js
JavaScript
mit
1,180
'use strict'; import Model from './lib/Model'; export default Model;
river-lee/react-group
app/components/model/index.js
JavaScript
mit
71
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
Microsoft/ChakraCore
test/typedarray/TypedArrayBuiltins.js
JavaScript
mit
20,806
const { Container, Help, commands } = require('../../index.js'); const Commit = require('./commit'); const Fetch = require('./fetch'); const Pull = require('./pull'); const Remote = require('./remote'); const Submodule = require('./submodule'); class Git extends Container {} Git.define({ title: 'git'...
dongryphon/switchit
examples/git/index.js
JavaScript
mit
621
/** * @license * Video.js 5.19.2 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Vers...
jburagev/GameFinal
vendor/videojs/video.js
JavaScript
mit
863,777
'use strict' var test = require('tape') var util = require('util') var redeyed = require('..') function inspect(obj) { return util.inspect(obj, false, 5, true) } test('adding custom asserts ... ', function(t) { t.constructor.prototype.assertSurrounds = function(code, opts, expected) { var result = redeyed(co...
thlorenz/redeyed
test/redeyed-before-after-config.js
JavaScript
mit
1,397
var assert = require("assert"); var Lib = require("./../ramda"); describe("contains", function() { var contains = Lib.contains; it("returns true if an element is in a list", function() { assert.equal(contains(7, [1,2,3,9,8,7,100,200,300]), true); }); it("returns false if an element is not in ...
begriffs/ramda
test/test.containsuniq.js
JavaScript
mit
1,275
var browserSync = require('browser-sync'), changed = require('gulp-changed'), config = {}, gulp = require('gulp'); config.server = require('./../../config/server'); config.path = require('./../../config/path'); gulp.task('pages', function () { var result = gulp.src(config.path.views.src) .pipe...
bartoszkrawczyk2/RunningCrocodile
gulp/tasks/builds/pages.js
JavaScript
mit
513
/** * node-compress-commons * * Copyright (c) 2014 Chris Talkington, contributors. * Licensed under the MIT license. * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT */ var Stream = require('stream').Stream; var PassThrough = require('readable-stream').PassThrough; var util = module....
archiverjs/node-compress-commons
lib/util/index.js
JavaScript
mit
765
$(document).ready(function() { jQuery(".lowvision").on("click", function(e){ $( '#lowvision-keyboard, .lv-help').toggle(); }); ////////// //https://jsfiddle.net/rickj33/3fby0nzr/ /// /// jQuery("#course-inputlv").on("keyup", function(theEvent){ //alert(theEvent.which); //var...
austin-2017/austin-2017.github.io
js/courses-lowvision15June17Start.js
JavaScript
mit
55,109
var get = Ember.get; var Person, array; var run = Ember.run; module("unit/record_array - DS.RecordArray", { setup: function() { array = [{ id: '1', name: "Scumbag Dale" }, { id: '2', name: "Scumbag Katz" }, { id: '3', name: "Scumbag Bryn" }]; Person = DS.Model.extend({ name: DS.attr('string') });...
seanpdoyle/data
packages/ember-data/tests/unit/record-array-test.js
JavaScript
mit
7,839
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.11_A3_T2; * @section: 12.11; * @assertion: Syntax constructions of switch statement; * @description: Checking if execution of "switch {}" fails; * @negative;...
Diullei/Storm
Storm.Test/SputnikV1/12_Statement/12.11_The_switch_Statement/S12.11_A3_T2.js
JavaScript
mit
530
function BlockSet(blockType) { this.blocks = new Array(); this.blockType = blockType; this.currIndex = 0; this.useHotKeys = true; // HACK: get focus onto something on the page so we can use keyboard shortcuts var dummy = createElement("a"); insertBefore(dummy, document.body.firstChild); dummy.focus(); ...
ppasupat/fig
servlet/js/BlockSet.js
JavaScript
mit
3,637
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@materia...
cdnjs/cdnjs
ajax/libs/material-ui/5.0.0-alpha.35/modern/SpeedDialIcon/SpeedDialIcon.js
JavaScript
mit
4,354
/* friendlyDateRanges.js tests */ var test = require('tape'), friendly = require('../friendlyDateRanges'); test('tests', function (t) { t.deepEqual(friendly(['2022-09-05', '2023-09-04']), ['September 5th, 2022','September 4th, 2023']); t.deepEqual(friendly(['2017-01-01', '2017-01-01']), ['January 1st, 2017'],...
he11yeah/FreeCodeCamp-bonfires
test/friendlyDateRanges.js
JavaScript
mit
851
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.12_A4_T2; * @section: 11.12; * @assertion: If ToBoolean(x) is true, return y; * @description: Type(y) and Type(z) are number primitives; */ //CHECK#1 if ((1 ?...
Diullei/Storm
Storm.Test/SputnikV1/11_Expressions/11.12_Conditional_Operator/S11.12_A4_T2.js
JavaScript
mit
633
const webpack = require('webpack'); const loaders = require("./helpers/webpack.loaders.config"); const preloaders = require("./helpers/webpack.preloaders.config"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: ['./src...
dogmaticus/AngularTestApp
webpack/webpack.common.config.js
JavaScript
mit
929
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkWineVersion = undefined; var _bluebirdLst; function _load_bluebirdLst() { return _bluebirdLst = require("bluebird-lst"); } /** @private */ let checkWineVersion = exports.checkWineVersion = (() => { var _ref2 = (0, ...
ChargCoin/charg-wallet-winmaclinux
node_modules/builder-util/out/wine.js
JavaScript
mit
5,270
/* * Preloader state * =============== * * Takes care of loading the main game assets, including graphics and sound * effects, while displaying a busy splash screen. */ import assets from '../assets'; export default class Preloader extends Phaser.State { preload() { this.showSplashScreen(); this.load...
mrheault/thegame
src/states/Preloader.js
JavaScript
mit
842
var deepEquals = require("assert").deepEqual, CSSwhat = require("../"); var tests = [ ["div", [ [ { type: 'tag', name: 'div' } ] ], "simple tag"], ["*", [ [ { type: 'universal' } ] ], "universal"], //traversal ["div div", [ [ { type: 'tag', name: 'div' }, { type: 'descendant' }, { type: 'tag', name:...
wheeyls/meetingVis
node_modules/facile/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/node_modules/CSSwhat/tests/test.js
JavaScript
mit
1,955
/*! DataTables Bootstrap 3 integration ©2011-2015 SpryMedia Ltd - datatables.net/license */ (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=re...
elmanortiz/tiendaonline
Resources/datatable/js/datatables.material.min.js
JavaScript
mit
2,101
'use strict'; const app = require('APP') , debug = require('debug')(`${app.name}:oauth`) , {STRING, JSON} = require('sequelize'); module.exports = db => { const OAuth = db.define('oauths', { uid: STRING, provider: STRING, // OAuth v2 fields accessToken: STRING, refreshToken: STRING, ...
kavispires/line-distribution-react
db/models/oauth.js
JavaScript
mit
2,933
version https://git-lfs.github.com/spec/v1 oid sha256:0b9064d20bf15213644250009c06870ba3f05cf808535299aa3262698753a950 size 1301
yogeshsaroya/new-cdnjs
ajax/libs/mathjax/2.3/localization/pt-br/HTML-CSS.js
JavaScript
mit
129
'use strict'; const assert = require('./../../assert'); const common = require('./../../common'); let battle; describe('Grassy Terrain', function () { afterEach(function () { battle.destroy(); }); it('should change the current terrain to Grassy Terrain for five turns', function () { battle = common.createBat...
panpawn/Gold-Server
test/sim/moves/grassyterrain.js
JavaScript
mit
4,620
/* global console, LAMBDA */ (function() { "use strict"; var L = LAMBDA; var question = {}; var RP14part1 = { init: function() { var vs = "uvxyz"; var maxDepth = 6; var minDepth = 4; // David: all of these helper functions are duplicated in // RP14part2.js. Because.....
OpenDSA/OpenDSA-stable
Exercises/PL/RP14part1.js
JavaScript
mit
3,102
{ "AD" : "கிபி", "Africa/Abidjan_Z_abbreviated" : "ஐவரி கோஸ்ட் நேரம்", "Africa/Abidjan_Z_short" : "GMT", "Africa/Accra_Z_abbreviated" : "கானா நேரம்", "Africa/Accra_Z_short" : "GMT", "Africa/Addis_Ababa_Z_abbreviated" : "எதியோப்பியா நà...
inikoo/fact
libs/yui/yui3-gallery/src/gallery-i18n-formats/lang/gallery-i18n-formats_ta.js
JavaScript
mit
47,654
'use strict'; angular.module('core').directive('featuredProjects', function () { return { restrict: 'EA', templateUrl: 'modules/core/client/directives/views/featured-projects.html', controller: function ($scope, $http) { (function getFeaturedProjs() { $http.get('/api/v1/featured', { cache:...
mapping-slc/mapping-slc
modules/core/client/directives/featuredProjects.js
JavaScript
mit
582
'use strict'; var createPluginError, failOnWarningReporter, failReporter, loadReporter, reporter, reporterStream, through2; through2 = require('through2'); createPluginError = require('./utils').createPluginError; reporterStream = function(reporterType) { return through2.obj(function(file, enc, cb) { var c, re...
duoduo369/leaning-frontend
node_modules/gulp-coffeelint/lib/reporter.js
JavaScript
mit
1,981
// Copyright: 2015 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt" // Source: /src/chart/methods/_handleTransition.js this._handleTransition = function (input, duration, chart, series) { var returnShape = null; ...
PMSI-AlignAlytics/dimple
src/objects/chart/methods/_handleTransition.js
JavaScript
mit
671
const path = require('path'); const ip = require('ip'); module.exports = app => { const exports = {}; exports.view = { cache: false }; exports.static = { maxAge: 0 // maxAge 缓存,默认 1 年 }; exports.development = { watchDirs: [], // 指定监视的目录(包括子目录),当目录下的文件变化的时候自动重载应用,路径从项目根目录开始写 ignoreDirs: ['...
hubcarl/egg-vue-webpack-boilerplate
packages/egg-vue-webpack-html-boilerplate/config/config.local.js
JavaScript
mit
1,038
describe('[github/milestone/factory]', function () { var $httpBackend, GithubMilestone, GithubIssue, json; beforeEach(module('ed.github')); beforeEach( inject ( function ( _$httpBackend_, _GithubMilestone_, _GithubIssue_ ) { $httpBackend = _$httpBackend_; GithubMilestone = _GithubMilestone_; GithubIssue =...
sebald/ed
src/components/github/github-milestone.factory.spec.js
JavaScript
mit
11,721
/* global React */ /* global ReactQuill */ 'use strict'; var Editor = React.createClass({ getInitialState: function() { return { theme: 'snow', enabled: true, readOnly: false, value: '<h1>It works!</h1>', events: [] }; }, formatRange: function(range) { return range ? [range.start, range.en...
lramsey/react-quill
demo/index.js
JavaScript
mit
2,546
import React from 'react' import Icon from 'react-icon-base' const FaMixcloud = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.8 23.5q0-1-0.6-1.8t-1.5-1.2q-0.1 0.8-0.4 1.6-0.1 0.4-0.5 0.6t-0.8 0.3q-0.2 0-0.4-0.1-0.5-0.1-0.8-0.6t-0.1-1.1q0.4-1.2 0.4-2.5 0-2.1-1-3.9t-2.9-2.9-4-1.1q-2.4 0-4...
bengimbel/Solstice-React-Contacts-Project
node_modules/react-icons/fa/mixcloud.js
JavaScript
mit
976
module.exports = function() { return { files: [ "src/**/*.js", "spec/testUtil.js", { pattern: "spec/**/*.jsx", instrument: false, load: false, ignore: false } ], tests: ["spec/**/*.js", "!spec/tests.js", "!spec/testUtil.js"], env: { type:...
valtech-au/jsx-control-statements
wallaby.js
JavaScript
mit
581
'use strict'; angular.module('scenarioEditor.manageView', ['ngRoute', 'scenarioServices']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/manageView', { templateUrl: '/scenario/manageView/', controller: 'manageCtrl' }); }]) .controller...
SweetheartSquad/WebStuff
static/js/scenarioEditor/manageView/manageView.js
JavaScript
mit
3,173
import classNames from 'classnames'; import keycode from 'keycode'; import React, { cloneElement } from 'react'; import ReactDOM from 'react-dom'; import all from 'react-prop-types/lib/all'; import warning from 'warning'; import { bsClass, bsStyles, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; ...
HPate-Riptide/react-bootstrap
src/Nav.js
JavaScript
mit
9,317
/** * fs.watch wrapper that among other things checks SHA1 * of the file to prevent multiple callback calls. * * Related: http://stackoverflow.com/q/12978924/1637178 * * Usage is the same as fs.watch * * var onFileChange = require("on-file-change"); * * // same as fs.watch * onFileChange("m...
jan-swiecki/node-on-file-change
lib/onFileChange.js
JavaScript
mit
3,259
// Backbone.BabySitter // ------------------- // v0.0.5 // // Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://github.com/babysitterjs/backbone.babysitter // Backbone.ChildViewContainer // --------------------------- // // Provide a container to store, retrieve and /...
allanfish/facetime-demo
oatos_project/oatos_web/oatos_web/src/main/webapp/assets/js/sea/modules/backbone-babysitter/backbone.babysitter.js
JavaScript
mit
5,219
typeof console !== 'undefined' && console.log && console.log('unit-test.js loaded');
ember-engines/ember-asset-loader
tests/dummy/public/unit-test.js
JavaScript
mit
85
/// <reference path="../typings/index.d.ts" /> export * from './zone_utils'; export * from './mongo_cursor_observer'; export * from './mongo_cursor_differ'; export * from './meteor_reactive'; export * from './providers';
MohmadAyman/the_tutor
node_modules/angular2-meteor/dist/index.js
JavaScript
mit
221
'use strict'; describe('Service: resEidolon', function () { // load the service's module beforeEach(module('tbsApp')); // instantiate service var resEidolon; beforeEach(inject(function (_resEidolon_) { resEidolon = _resEidolon_; })); it('should do something', function () { expect(!!resEidolon)...
m-atthieu/tbs.desile.fr
test/spec/services/res-eidolon.js
JavaScript
mit
344
import { messages, ruleName, } from ".." import rules from "../../../rules" import { testRule } from "../../../testUtils" const rule = rules[ruleName] testRule(rule, { ruleName, config: ["always"], accept: [ { code: "a {}", description: "first node ignored", }, { code: "@media { a {} }", ...
gaidarenko/stylelint
src/rules/rule-non-nested-empty-line-before/__tests__/index.js
JavaScript
mit
5,432
'use strict'; var convert = require('./convert'), func = convert('toArray', require('../toArray'), require('./_falseOptions')); func.placeholder = require('./placeholder'); module.exports = func; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIv...
vickeetran/hackd.in
compiled/client/lib/lodash/fp/toArray.js
JavaScript
mit
920
import React from "react" import classnames from "classnames" import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from "../constants/TodoFilters" import { observer } from "mobx-react-lite" const FILTER_TITLES = { [SHOW_ALL]: "All", [SHOW_ACTIVE]: "Active", [SHOW_COMPLETED]: "Completed" } function Footer({ st...
mobxjs/mobx-state-tree
packages/mst-example-todomvc/src/components/Footer.js
JavaScript
mit
1,804
var _recentDataOpts = { limit: 5, sort: { createTimeMillis: -1 } }; Template.dataHome.helpers({ recentDatasets: function () { return Collections.Datasets.find({}, _recentDataOpts); } }); Template.dataHome.events({ });
okhobb/hellometeor
client/js/dataHome.js
JavaScript
mit
238
import { combineReducers } from 'redux'; import data from 'reducers/data'; import errors from 'reducers/errors'; import loading from 'reducers/loading'; jest.mock('redux'); jest.mock('reducers/data'); jest.mock('reducers/errors'); jest.mock('reducers/loading'); describe('reducer index', () => { it('combines all my...
bjacobel/react-redux-boilerplate
src/reducers/__tests__/index-test.js
JavaScript
mit
543
Elm.Native.TestUtil = {}; Elm.Native.TestUtil.make = function (localRuntime) { localRuntime.Native = localRuntime.Native || {}; localRuntime.Native.TestUtil = localRuntime.Native.TestUtil || {}; if (!localRuntime.Native.TestUtil.values) { var Task = Elm.Native.Task.make(localRuntime); var S...
rgrempel/elm-web-api
test/src/elm/Native/TestUtil.js
JavaScript
mit
1,541
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = memoize; var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); var _slice = require('./internal/slice'); var _slice2 = _interopRequireDefault(_slice); var _se...
Moccine/global-service-plus.com
web/libariries/bootstrap/node_modules/phantomjs/node_modules/async/memoize.js
JavaScript
mit
3,332
export const Server = { loadJSON: function(url, json_data, done=()=>{}, error=()=>{}) { let response = {}; switch(url) { case '/your/path/to/action': fetch('/your/path/to/data.json') .then(response => { return response.json(); }) .then(data => { ...
jannrocas/first-todoList
webpack/utils/server.test.js
JavaScript
mit
757
var assert = require('assert'); var Kareem = require('../'); /* Much like [hooks](https://npmjs.org/package/hooks), kareem lets you define * pre and post hooks: pre hooks are called before a given function executes. * Unlike hooks, kareem stores hooks and other internal state in a separate * object, rather th...
ndcg91/kike
node_modules/mongoose/node_modules/kareem/test/examples.test.js
JavaScript
mit
8,265
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<713bfba9717046b5de96c3132c59fb0c>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
atxwebs/relay
packages/relay-runtime/store/__tests__/__generated__/RelayReaderTestCreatesFragmentPointersWithVariableArgumentsUserQuery.graphql.js
JavaScript
mit
3,730
import Ember from 'ember'; export default Ember.Component.extend({ session: Ember.inject.service('session'), actions: { invalidateSession: function() { this.get('session').invalidate(); } } });
NullVoxPopuli/aeonvera-ui
app/components/nav/welcome/right-items.js
JavaScript
mit
216
var Entity = require('./entity'); var Globals = require('./globals'); /* Bullet entity. */ module.exports = function () { "use strict"; this.velocity = 0.0; this.damage = 1; this.till_death = Globals.BULLET_LIVE_TIME; this.type = Globals.BULLET_ENTITY; this.radius = Globals.BULLET_RADIUS; ...
codyseibert/random
sidescroller/src/server/bullet.js
JavaScript
mit
386
/** * ClusterStatus module. * @module components/ClusterStatus */ import ClusterStatus from './cluster-status.component.jsx'; /** * The ClusterStatus component * @return {object} The ClusterStatus component. */ module.exports = ClusterStatus;
Elastic-Hub/elastic-hub
src/components/cluster-status/index.js
JavaScript
mit
250
require('dotenv').config(); const path = require('path'); const cp = require('child_process'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const S3Plugin = require('webpack-s3-plugin'); const RollbarSourcemapPlugin = require('../../dist/RollbarSourceMapPlugin'); const...
brandondoran/rollbar-sourcemap-webpack-plugin
examples/react/webpack.config.js
JavaScript
mit
2,959
/** * Copyright 2016 Facebook, Inc. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. * * As with any software that integrat...
huxinmin/PracticeMakesPerfect
reactNative/f8app-master/js/tabs/schedule/F8FriendGoing.js
JavaScript
mit
2,248
/** * @license * Pixi.JS - v1.0.0 * Copyright (c) 2012, Mat Groves * http://goodboydigital.com/ * * Compiled: 2013-04-08 * * Pixi.JS is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license.php */ /** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** @module PIXI */ v...
fengyiyi/pixi.js
examples/example 7 - Transparent Background/pixi.js
JavaScript
mit
94,854
webpackJsonp([8],{61:function(e,o,t){var n,s;t(62),n=t(63),s=t(64),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports.default),s&&(("function"==typeof e.exports?e.exports.options:e.exports).template=s)},62:function(e,o){},63:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default={...
mytac/School-register-management-system
dist/8.d411c719b4143795a798.chunk.js
JavaScript
mit
809
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z"...
Kagami/material-ui
packages/material-ui-icons/src/SignalWifi2BarLockTwoTone.js
JavaScript
mit
662
/* mustache.js — Logic-less templates in JavaScript See http://mustache.github.com/ for more info. */ var Mustache = function () { var _toString = Object.prototype.toString; Array.isArray = Array.isArray || function (obj) { return _toString.call(obj) == "[object Array]"; } var _trim = String.prototy...
infews/bulldog
lib/mustache.js
JavaScript
mit
12,374
/** * Copyright <%= year %> Telerik AD * * 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 agr...
acoudeyras/WakendoCore
lib/telerik.kendoui.core/src/js/cultures/kendo.culture.ru-UA.js
JavaScript
mit
3,475
var gulp = require('gulp'); var config = require('../config'); var gutil = require('gulp-util'); var jsdoc = require("gulp-jsdoc"); var plumber = require('gulp-plumber'); gulp.task('docs', function() { return gulp.src( config.js.src + '/**/*.js' ) .pipe( plumber() ) .pipe( jsdoc( config.docs ) ); });
traviswimer/PlugPro
gulp/tasks/docs.js
JavaScript
mit
308
/* */ var isObject = require('../lang/isObject'); function isStrictComparable(value) { return value === value && !isObject(value); } module.exports = isStrictComparable;
nayashooter/ES6_React-Bootstrap
public/jspm_packages/npm/lodash-compat@3.10.2/internal/isStrictComparable.js
JavaScript
mit
173
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z" /> , 'LocalParkingTwoTone');
callemall/material-ui
packages/material-ui-icons/src/LocalParkingTwoTone.js
JavaScript
mit
244
import React, {PropTypes} from 'react'; var {RouteHandler} = require('react-router'); var App = React.createClass({ propTypes: { flux: PropTypes.object.isRequired }, render() { return <RouteHandler flux={this.props.flux}/>; } }); module.exports = App;
ShpuntiK/isomorphic-app-sample
shared/components/app.js
JavaScript
mit
273
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'adv_link', 'he', { acccessKey: 'מקש גישה', advanced: 'אפשרויות מתקדמות', advisoryContentType: 'Content Type מוצע', advisoryTitle: 'כותרת מוצעת', ...
theus77/ElasticMS
src/AppBundle/Resources/public/adv_link/lang/he.js
JavaScript
mit
2,448
/*! * Bootstrap-select v1.13.12 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2019 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ !function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeo...
luiscordero29/drs_codeigniter
assets/plugins/bootstrap-select/dist/js/i18n/defaults-id_ID.min.js
JavaScript
mit
807
var lastTime = null; function updateAnimation() { // Your code here. } function frame(time) { if (lastTime !== null) { updateAnimation(Math.min(100, time - lastTime) / 1000); } lastTime = time; requestAnimationFrame(frame); } requestAnimationFrame(frame);
nesterone/sf-eng-init-bazzika
02-browser/08-drawing-on-canvas/03-a-bouncing-ball/js/bouncingBall.js
JavaScript
mit
273
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-sass'); grunt.loadNpmTasks('grunt-includes'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.initConfig({ sass: { options: { sourceMap: true, outputStyle: 'compressed' }, portal: { f...
glasscityhacks/glasscityhacks.github.io
gruntfile.js
JavaScript
mit
1,194
/* */ var $def = require("./$.def"), toIndex = require("./$").toIndex, fromCharCode = String.fromCharCode; $def($def.S, 'String', {fromCodePoint: function fromCodePoint(x) { var res = [], len = arguments.length, i = 0, code; while (len > i) { code = +arguments[i++]; ...
poshaughnessy/es6-react-jspm-starter-template
jspm_packages/npm/core-js@0.8.3/modules/es6.string.from-code-point.js
JavaScript
mit
586
import React from 'react'; class ComponentName extends React.Component { render() { return <div data-qa="custom-attribute"> <h1>Hello world</h1> </div>; } } export default ComponentName;
davesnx/babel-plugin-transform-react-qa-classes
test/fixtures/react/custom-attribute/expected.js
JavaScript
mit
207
// read dbus adress from window selection const x11 = require('x11'); const fs = require('fs'); const os = require('os'); function getDbusAddress(callback) { // read machine uuid fs.readFile('/var/lib/dbus/machine-id', 'ascii', function(err, uuid) { if (err) return callback(err); var hostname = os.hostnam...
sidorares/node-dbus
lib/address-x11.js
JavaScript
mit
1,190
describe('Hand of the King', function () { integration({ isMelee: true }, function () { describe('initiating additional power challenge', function () { beforeEach(function () { const deck = this.buildDeck('stark', [ 'A Noble Cause', 'Bastar...
cryogen/throneteki
test/server/cards/01-Core/HandOfTheKing.spec.js
JavaScript
mit
5,055
/* MD5 Message-Digest Algorithm - JavaScript ' MODIFICATION HISTORY: ' 1.0 16-Feb-2001 - Phil Fresle (sales@frez.co.uk) - Initial Version (VB/ASP code) ' 1.0 21-Feb-2001 - Enrico Mosanghini (erik504@yahoo.com) - JavaScript porting */ function MD5(sMessage) { function RotateLeft(lValue, iShiftBits) { ret...
birdol/zblogphp
zb_system/script/md5.js
JavaScript
mit
7,109
/** * Checkbox renderer * * @private * @renderer CheckboxRenderer * @param {Object} instance Handsontable instance * @param {Element} TD Table cell where to render * @param {Number} row * @param {Number} col * @param {String|Number} prop Row object property name * @param value Value to render (remember to esc...
deenairn/handsontable
src/renderers/checkboxRenderer.js
JavaScript
mit
5,050
/** * @license * Copyright 2014 David Wolverton * Available under MIT license <https://raw.githubusercontent.com/dwolverton/my/master/LICENSE.txt> */ define([ "dojo/store/Memory", "mytime/persistence/LocalStorage", "mytime/model/TimeEntry" ], function( Memory, LocalStorage, TimeEntry ) { ...
truevektordev/mytime
test/mytime/persistence/LocalStorage.spec.js
JavaScript
mit
2,848
/** * @class Keyboard * @classdesc Mixin which manages the keydown handling for a component * * TODO: Document collective behavior. * TODO: Provide baseline behavior outside of a collective. */ export default (base) => class Keyboard extends base { // Default keydown handler. This will typically be handled by...
basic-web-components/carousel-with-tabs
node_modules/basic-component-mixins/src/Keyboard.js
JavaScript
mit
2,841
const amino = require('../main.js'); const gfx = new amino.AminoGfx(); gfx.start(function (err) { if (err) { console.log('Start failed: ' + err.message); return; } //size (100x100) this.w(100); this.h(100); //see opacity.js //root const root = this.createGroup(); ...
joshmarinacci/aminogfx-gl
demos/size.js
JavaScript
mit
896
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { Provider } from 'react-redux'; import store from './store' ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
panacloud/learn-react
step10a_redux_epic_http_express.js/src/index.js
JavaScript
mit
274
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.au = {})); }(this, function (exports) { 'use strict'; function AggregateError(mess...
cdnjs/cdnjs
ajax/libs/aurelia-script/1.5.2/aurelia_router.umd.js
JavaScript
mit
614,603
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Matter Physics Drag Start Event. * * This event is dispatched by a Matter Physics World instance when a Pointer Constraint * star...
mahill/phaser
src/physics/matter-js/events/DRAG_START_EVENT.js
JavaScript
mit
848
'use strict'; var Mongoose = require('mongoose'); /** * Each connection object represents a user connected through a unique socket. * Each connection object composed of {userId + socketId}. Both of them together are unique. * */ var RoomSchema = new Mongoose.Schema({ title: { type: String, required: true }, ...
somenathghosh/Chat_Client
database/schemas/room.js
JavaScript
mit
470
(class (Surface width height) (set! this.canv (document.createElement "canvas")) (set! this.graph (this.canv.getContext "2d")) (when (and width height) (this.setSize width height)) (method (setSize width height) (set! this.width width) (set! this.height height) (set! this.canv...
capnmidnight/brian
web/graphics.js
JavaScript
mit
3,658