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
var Sails = require('sails'); before(function (done) { this.timeout(5 * 1000); Sails.lift({ //config }, function (err, sails) { if (err) return done(err); // load fixtures, etc done (err, sails); }); }); after(function (done) { Sails.lower(done); });
vclfiddle/vclfiddle
web/test/bootstrap.test.js
JavaScript
apache-2.0
293
/** * Copyright 2012 Google Inc. 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
google/module-server
module-compiler/bin.js
JavaScript
apache-2.0
2,438
/*global angular*/ angular.module('ctrl-sign-in', []).controller('signIn', ['$scope', '$rootScope', 'appApi', 'appGui', '$log','appSession','appRouter','i18n', function(s, r, appApi, appGui, $log,appSession,appRouter,i18n) { window.s = s; s.item = { email: '', password: '' }; s.signIn = ...
javimosch/bastack
src/client/meetful/js/controllers/sign-in.js
JavaScript
apache-2.0
944
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function WSURIFromLocation() { var loc = window.location; if (loc.protocol === "https:") { new_uri = "wss:"; ...
klightspeed/EDDiscovery
WebSite/EDD/jslib/websockets.js
JavaScript
apache-2.0
431
define(function(require){ return 'group_quotas_tab'; })
ggalancs/one
src/sunstone/public/app/tabs/groups-tab/panels/quotas/panelId.js
JavaScript
apache-2.0
57
function Controller() { function handleBtnTouchStart() { $.btn.backgroundGradient = { type: "linear", startPoint: { x: "0%", y: "0%" }, endPoint: { x: "0%", y: "100%" }, co...
ponnam/ESAT123
Resources/alloy/controllers/done_btn.js
JavaScript
apache-2.0
4,413
(function() { Sidebar.prototype.addCumulusPalette = function() { var sc = 2; var dt = 'cumulus'; var sb = this; var s = 'aspect=fixed;perimeter=ellipsePerimeter;html=1;align=center;fontSize=12;verticalAlign=top;fontColor=#364149;shadow=0;dashed=0;image;image=img/lib/cumulus/'; this.setCurrentSearchEntryLibr...
jgraph/draw.io
src/main/webapp/js/diagramly/sidebar/Sidebar-Cumulus.js
JavaScript
apache-2.0
11,116
// whoami-e2e-test.js // // Test checking who you are // // Copyright 2012, E14N https://e14n.com/ // // 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...
e14n/pump.io
test/whoami-e2e-test.js
JavaScript
apache-2.0
3,043
/** * Get list of wcm web projects * @return the wcm web projects */ function main() { var service = webprojects; var userFilter = args["userName"]; var result; if(userFilter != null) { result = service.listWebProjects(userFilter); } else { result = service.listWebProjects(); } model.webp...
Alfresco/alfresco-ms-office-plugin
webscripts/org/alfresco/repository/wcm/webprojects.get.js
JavaScript
apache-2.0
349
/* vim: set ts=2 et sw=2 tw=80: */ /* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ // Tests that the style inspector works properly let doc; let stylePanel; function createDocument() { doc.body.innerHTML = '<style type="text/css"> ' + 'span { font-var...
wilebeast/FireFox-OS
B2G/gecko/browser/devtools/styleinspector/test/browser_styleinspector.js
JavaScript
apache-2.0
2,761
const Connection = require('./model'); const storageMixin = require('storage-mixin'); const { v4: uuidv4 } = require('uuid'); /** * The name of a remote electon application that * uses `connection-model` as a dependency. */ let appName; let basepath; try { const electron = require('electron'); appName = elect...
mongodb-js/connection-model
lib/extended-model.js
JavaScript
apache-2.0
3,392
/** * Copyright 2015 The AMP HTML Authors. 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Adtoma/amphtml
extensions/amp-ad-network-cloudflare-impl/0.1/vendors.js
JavaScript
apache-2.0
959
module.exports={A:{A:{"1":"D A B","2":"H E G pB"},B:{"1":"9 C N I J K L EB M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 mB RB F q H E G D A B C N I J K L g R o S T U V W X Y Z a b c d e f CB h i j k l m n Q p O r s t u v w x y z FB HB DB AB IB JB KB LB MB NB OB PB fB eB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F q H E G D A B C N I J K L g R ...
BigBoss424/portfolio
v6/node_modules/caniuse-lite/data/features/domcontentloaded.js
JavaScript
apache-2.0
962
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
xingwu1/azure-sdk-for-node
lib/services/serviceFabricMeshManagement/lib/models/volumeResourceDescription.js
JavaScript
apache-2.0
4,370
module.exports = function(grunt) { var jive = require('./jive-sdk-service/api'); var mockery = require('mockery'); grunt.initConfig({ runJiveTests: { options: { testcases: 'test/unit', context: function() { return { ...
jivesoftware/jive-sdk
Gruntfile.js
JavaScript
apache-2.0
1,631
var fs = require('fs'); var config = {} config.siteDatabaseOptions = { host: 'localhost', port: 3306, user: 'root', password: '', database: 'pchat', charset: 'utf8mb4' }; config.sessionSecret = 'changeMe'; /* config.httpsOptions = { key: fs.readFileSync('/Users/ddaeschler/Desktop/pchat.s...
SlideWave/peaChat
pchat/config.js
JavaScript
apache-2.0
1,238
import {ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach, AsyncTestCompleter, inject, proxy, SpyObject, IS_DARTIUM} from 'angular2/test_lib'; import {Json, RegExp, NumberWrapper, StringWrapper} from 'angular2/src/facade/lang'; import {JsonPipe} from 'angular2/src/change_detection/pipes/json_pipe'; e...
justinfagnani/angular
modules/angular2/test/change_detection/pipes/json_pipe_spec.js
JavaScript
apache-2.0
2,792
var counties={"1077":"婺城区","1078":"金东区","1079":"武义县","1080":"浦江县","1081":"磐安县","1082":"兰溪市","1083":"义乌市","1084":"东阳市","1085":"永康市"}
zhuxlfansen/zhuxlpro
yzwx/WebRoot/static/js/region/county/1075.js
JavaScript
apache-2.0
185
/** * Copyright 2018 The AMP HTML Authors. 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
rsimha-amp/amphtml
extensions/amp-beopinion/0.1/amp-beopinion.js
JavaScript
apache-2.0
3,337
var args = arguments[0] || {}; var data = []; for (var i = 0; i < Alloy.Globals.rightMenuItems.length; i++) { var row = Ti.UI.createTableViewRow({ backgroundColor : Alloy.Globals.ThemeStyles.right_menu.backgroundColor, backgroundSelectedColor : Alloy.Globals.ThemeStyles.right_menu.selectedBackgroundColor, selec...
sjfranzen/yurapp
app/controllers/ios/RightMenu.js
JavaScript
apache-2.0
1,931
(function($) { "use strict"; $.fn.bootstrapTreeTable = function(options, param) { // 如果是调用方法 if (typeof options == 'string') { return $.fn.bootstrapTreeTable.methods[options](this, param); } // 如果是初始化组件 options = $.extend({}, $.fn.bootstrapTreeTable.defaults...
chyzh1689/pay
pay-product/src/main/resources/static/js/plugins/jqTreeGrid/jquery.treegrid.extension.js
JavaScript
apache-2.0
11,887
/* Copyright 2015 BlackBerry Ltd. 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 agreed to in writing, softwar...
blackberry/Cordova-Kitchen-Sink
src/views/integration/voice-notes/VoiceNotesCtrl.js
JavaScript
apache-2.0
1,151
import { Injectable } from '@angular/core'; import { Http } from '@angular/http' @Injectable() export default class UserService { constructor(http) { this.http = http this._users = [] this.http.get("/contributors").toPromise() .then(response => this._users.push(...response.json())) ...
Ramshell/Scraaaam
src/frontend/app/services/user.service.js
JavaScript
apache-2.0
985
'use strict'; // Utilities for time const moment = require('abacus-moment'); const _ = require('underscore'); const map = _.map; const rest = _.rest; // Setup debug log const debug = require('abacus-debug')('abacus-timewindow'); // Mapping from time window shortcuts to moment.js shortcuts const shortcut = { Y: 'y'...
rajkiranrbala/cf-abacus
lib/utils/timewindow/src/index.js
JavaScript
apache-2.0
3,857
'use strict'; goog.provide('grrUi.acl.clientApprovalViewDirective.ClientApprovalViewController'); goog.provide('grrUi.acl.clientApprovalViewDirective.ClientApprovalViewDirective'); goog.scope(function() { /** * Controller for ClientApprovalViewDirective. * * @param {!angular.Scope} $scope * @param {!grrUi.routin...
pidydx/grr
grr/gui/static/angular-components/acl/client-approval-view-directive.js
JavaScript
apache-2.0
1,791
exports.definition = { config: { columns: { name: "TEXT", type: "TEXT", price: "INTEGER", ppid: "INTEGER PRIMARY KEY AUTOINCREMENT" }, adapter: { type: "sql", collection_name: "product", idAttribute: "ppid" ...
ppramesi/rb-mobile
Resources/mobileweb/alloy/models/Product.js
JavaScript
apache-2.0
1,316
// @ts-check /// <reference path="../types/ambient.d.ts" /> const fs = require("fs"); const path = require("path"); const log = require("fancy-log"); const mkdirp = require("mkdirp"); const del = require("del"); const File = require("vinyl"); const ts = require("../../lib/typescript"); const chalk = require(...
Microsoft/TypeScript
scripts/build/utils.js
JavaScript
apache-2.0
14,555
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2015-07-04 using // generator-karma 1.0.0 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
liuhong1happy/DockerConsoleApp
test/karma.conf.js
JavaScript
apache-2.0
2,431
Underwear.defineMethod(Array, 'range', function() { return _.range.apply([], arguments); });
daytonn/underwear
lib/array/range.js
JavaScript
apache-2.0
95
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
gorkem/cordova-lib
cordova-lib/spec-plugman/fetch.spec.js
JavaScript
apache-2.0
14,418
/** * Theme: Velonic Admin Template * Author: Coderthemes * Morris Chart */ !function($) { "use strict"; var MorrisCharts = function() {}; //creates line chart MorrisCharts.prototype.createLineChart = function(element, data, xkey, ykeys, labels, lineColors) { Morris.Line({ ...
sdgdsffdsfff/zeus
slb/src/main/web/static/lib/velonic-admin/assets/morris/morris.init.js
JavaScript
apache-2.0
2,656
'use strict' const assert = require('chai').assert const uuid = require('uuid') const semver = require('semver') const couchbase = require('../lib/couchbase') const jcbmock = require('./jcbmock') try { const SegfaultHandler = require('segfault-handler') SegfaultHandler.registerHandler() } catch (e) { // segfaul...
brett19/couchnode
test/harness.js
JavaScript
apache-2.0
10,094
'use strict'; /** * @ngdoc module * @name ngRoute * @description * * # ngRoute * * The `ngRoute` module provides routing and deeplinking services and directives for angular apps. * * ## Example * See {@link ngRoute.$route#example $route} for an example of configuring and using `ngRoute`. * * ...
VHAINNOVATIONS/Mental-Health-eScreening
escreening/src/main/webapp/resources/editors/vendors/angular/route.js
JavaScript
apache-2.0
25,708
import { isArray, isMatrix } from '../../../utils/is.js' import { factory } from '../../../utils/factory.js' import { createSolveValidation } from './utils/solveValidation.js' import { csIpvec } from '../sparse/csIpvec.js' const name = 'lusolve' const dependencies = [ 'typed', 'matrix', 'lup', 'slu', 'usolve...
FSMaxB/mathjs
src/function/algebra/solver/lusolve.js
JavaScript
apache-2.0
3,559
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
AuxMon/azure-sdk-for-node
lib/services/dataLake.Store/lib/account/models/encryptionConfig.js
JavaScript
apache-2.0
2,100
var global = {}; global.datePickerBetween = function(startDateId, endDateId, diffDaysId) { var sdate, edate, diffDays; if (startDateId && endDateId) { $(startDateId).datepicker({ onSelect: function(selected) { $(endDateId).datepicker("option", "minDate", selected); } }); if (diffDaysI...
yanchhuong/ngday
src/main/webapp/js_admin/common/layout.popup.js
JavaScript
apache-2.0
3,333
// Copyright 2015 Google Inc. 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
taimir/dashboard
src/test/frontend/petsetdetail/actionbar_controller_test.js
JavaScript
apache-2.0
1,125
/** * cookies metrics */ "use strict"; module.exports = function (phantomas) { // monitor cookies in HTTP headers //var Collection = require('../../lib/collection'), //cookiesDomains = new Collection(); phantomas.setMetric("cookiesSent"); // @desc length of cookies sent in HTTP requests @unreliable phanto...
gmetais/phantomas
modules/cookies/cookies.js
JavaScript
bsd-2-clause
2,393
/** * @module ol/geom/flat/interiorpoint */ import {numberSafeCompareFunction} from '../../array.js'; import {linearRingsContainsXY} from '../flat/contains.js'; /** * Calculates a point that is likely to lie in the interior of the linear rings. * Inspired by JTS's com.vividsolutions.jts.geom.Geometry#getInteriorP...
fredj/ol3
src/ol/geom/flat/interiorpoint.js
JavaScript
bsd-2-clause
3,327
// //Copyright (c) 2015, Skedans Systems, Inc. //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list ...
hthetiot/easyrtc
demos/js/demo_audio_video.js
JavaScript
bsd-2-clause
6,114
/* */ "use strict"; var Observable_1 = require('../../Observable'); var audit_1 = require('../../operator/audit'); Observable_1.Observable.prototype.audit = audit_1.audit;
poste9/crud
deps/npm/rxjs@5.0.3/add/operator/audit.js
JavaScript
bsd-2-clause
173
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
yoavweiss/RespImg-WebCore
inspector/front-end/MemoryStatistics.js
JavaScript
bsd-2-clause
16,802
// example that shows how to tell sipgate.io to also push answer and end of the call var http = require('http'); var queryString = require('querystring'); // requires xmlbuilder: npm install xmlbuilder var builder = require('xmlbuilder'); function formatUserOrGroup(users) { return Array.isArray(users) ?...
Drooids/sipgate.io
examples/nodejs/plain/log_calls.js
JavaScript
bsd-2-clause
2,273
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
SASUKE40/LizhiMaster
libs/core/egret/display/DisplayObject.js
JavaScript
bsd-2-clause
51,317
;(function() { 'use strict'; angular.module('zf2orders') .controller('MainController', function ($scope) { }); })();
leapfrogtechnology/zf2-orders
frontend/src/app/main/main.controller.js
JavaScript
bsd-3-clause
132
#!/usr/bin/env node require("../../proof")(4, function (tz, equal) { var tz = tz(require("timezone/en_NZ")); // en_NZ meridiem upper case equal(tz("2000-09-03 08:05:04", "%P", "en_NZ"), "am", "ante meridiem lower case"); equal(tz("2000-09-03 23:05:04", "%P", "en_NZ"), "pm", "post meridiem lower case"); // en...
sahat/bokeh
bokehjs/src/vendor/timezone/t/locale/en_NZ/meridiem.t.js
JavaScript
bsd-3-clause
518
var CoreView = require('backbone/core-view'); var formatter = require('../../../../formatter'); var template = require('./search-item-clickable-template.tpl'); /** * Category search list view */ module.exports = CoreView.extend({ tagName: 'li', className: 'CDB-Widget-listItem', events: { 'click .js-button...
splashblot/dronedb
lib/assets/javascripts/deep-insights/widgets/category/list/item/search-item-view.js
JavaScript
bsd-3-clause
1,481
/** * zrender: loading特效类 * * @author Kener (@Kener-林峰, linzhifeng@baidu.com) * errorrik (errorrik@gmail.com) */ define( function(require) { var util = require('../tool/util'); var TextShape = require('../shape/Text'); var RectangleShape = require('../shape/Rectangle'); ...
10fish/zrender
src/loadingEffect/Base.js
JavaScript
bsd-3-clause
5,017
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails oncall+r...
almasakchabayev/relay
src/query/__tests__/RelayQueryField-test.js
JavaScript
bsd-3-clause
18,310
(function () { if (!jasmine) { throw new Exception("jasmine library does not exist in global namespace!"); } function elapsed(startTime, endTime) { return (endTime - startTime) / 1000; } function ISODateString(d) { function pad(n) { return n < 10 ? '0' + n : n; } return d.getFull...
carllarsson/hermes
assets/www/spec/lib/jasmine-reporters/jasmine.junit_reporter.js
JavaScript
bsd-3-clause
6,735
function runTest() { FBTest.sysout("cookies.test.issue18; START"); FBTestFirebug.openNewTab(basePath + "issue18/issue18.php", function(win) { // Open Firebug UI and enable Net panel. FBTestFireCookie.enableCookiePanel(function(win) { FBTest.sysout("cookies.test.issue18;...
janodvarko/firecookie
chrome/content/firecookie/tests/issue18.js
JavaScript
bsd-3-clause
2,005
/* * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
ParinVachhani/chrome-devtools-app
app/devtools/front_end/network/NetworkPanel.js
JavaScript
mit
17,930
module.exports = function (subject) { subject.mockMethod(2); };
jishi/node-sonos-discovery
test/data/requireables/test2.js
JavaScript
mit
66
"use strict" const Http_Error = require("../http-error") const utils = require("../utils") module.exports = function DELETEHandler(model, request, callback) { // Start with the id. const qs = Object.assign({id: request.params.id}, request.url.query) // Compile constraints if there are any. if (model.constrai...
newworldcode/rainbow
lib/handlers/delete.js
JavaScript
mit
1,081
module.exports = require('edenjs').extend(function() { /* Require -------------------------------*/ /* Constants -------------------------------*/ /* Public Properties -------------------------------*/ /* Protected Properties -------------------------------*/ /* Private Properties ----------------------------...
evelution/user
server/action/index.js
JavaScript
mit
1,451
module.exports = require('regenerate')(0x3037, 0x30FB).addRange(0x1100, 0x11FF).addRange(0x3001, 0x3003).addRange(0x3008, 0x3011).addRange(0x3013, 0x301F).addRange(0x302E, 0x3030).addRange(0x3131, 0x318E).addRange(0x3200, 0x321E).addRange(0x3260, 0x327E).addRange(0xA960, 0xA97C).addRange(0xAC00, 0xD7A3).addRange(0xD7B0...
Engineering-Robert/personal-website
plugins/gatsby-plugin-feed-custom/node_modules/regenerate-unicode-properties/Script_Extensions/Hangul.js
JavaScript
mit
531
require('coffee-script'); module.exports = require('./lib/Paypal');
jaybryant/paypal-recurring
index.js
JavaScript
mit
67
'use strict'; var curry = require('./curry') var matches module.exports = curry(function(selector, node){ matches = matches || require('./matches') while (node = node.parentElement){ if (matches.call(node, selector)){ return node } } })
gitoneman/react-soc
node_modules/react-datagrid/node_modules/react-menus/node_modules/select-parent/index.js
JavaScript
mit
279
(function(exports) { "use strict"; var specials = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\' ]; var escapeRegex = new RegExp('(\\' + specials.join('|\\') + ')', 'g'); // A Segment represents a segment in the original route description. // Each Segment type provides an `each...
alexspeller/router.js
tests/vendor/route-recognizer.js
JavaScript
mit
14,003
/** * @author mikael emtinger / http://gomo.se/ * @author alteredq / http://alteredqualia.com/ * * parameters = { * fov: <float>, * aspect: <float>, * near: <float>, * far: <float>, * movementSpeed: <float>, * lookSpeed: <float>, * rollSpeed: <float>, * autoForward: <bool>, * mouseLook: <bool>, ...
pushmatrix/three.js
src/extras/cameras/RollCamera.js
JavaScript
mit
6,734
// Note: This is the list of formats // The rules that formats use are stored in data/rulesets.js exports.Formats = [ // XY Singles /////////////////////////////////////////////////////////////////// { name: "Random Battle", section: "ORAS Singles", team: 'random', ruleset: ['PotD', 'Pokemon', 'Sleep Cla...
johtooo/PS
config/formats.js
JavaScript
mit
30,962
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. * @private */ import AmpCollection from 'ampersand-collection'; import Token from './token'; const TokenCollection = AmpCollection.extend({ mainIndex: `scope`, model: Token, namespace: `Credentials` }); export default TokenCollection;...
Josh-Dykstra/spark-js-sdk
packages/plugin-credentials/src/token-collection.js
JavaScript
mit
321
/** * @fileoverview Look for useless escapes in strings and regexes * @author Onur Temizkan */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ /** * Returns the union ...
AndrewStrelnik/SkillBranch
node_modules/eslint/lib/rules/no-useless-escape.js
JavaScript
mit
8,567
var AbstractFilter = require('./AbstractFilter'), math = require('../../../math'); // @see https://github.com/substack/brfs/issues/25 var fs = require('fs'); /** * The SpriteMaskFilter class * * @class * @extends AbstractFilter * @memberof PIXI * @param sprite {Sprite} the target sprite */ function Sprite...
naranjamecanica/pixi.js
src/core/renderers/webgl/filters/SpriteMaskFilter.js
JavaScript
mit
2,500
/** * @module index.js * @author Joe Groseclose <@benderTheCrime> * @date 8/16/2015 */ // We need to require this before anything else import './Config'; // System Modules import { argv } from 'yargs'; import { exec } from 'child_process'; import { gray, bold } from 'chalk';...
angie-mvc/angie
src/index.js
JavaScript
mit
3,668
export { default } from 'ember-form-for/components/form-controls/base-input';
ivanvanderbyl/ember-form-for
tests/dummy/app/components/form-controls/base-input.js
JavaScript
mit
78
if (typeof window.kintPlain === 'undefined') { window.kintPlain = (function () { 'use strict'; var kintPlain = { initLoad: function () { kintPlain.style = window.kintShared.dedupe( 'style.kint-plain-style', kintPlain.style ...
michabbb-backup/kint
resources/js/plain.js
JavaScript
mit
668
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- var fs = require('fs'), path = require('path'), util = require('util'), cache =...
shrishrirang/azure-mobile-apps-node
src/templates/index.js
JavaScript
mit
579
module.exports = { INTUIT_CONSUMER_KEY : 'qyprdns8EP57q1ffSi1EqWyK4q47qm', INTUIT_CONSUMER_SECRET : 'izBgcIONbmMOsePPh18AA8glJ04Or0HMkMDK2a4a', session: { secret: "kari" }, LINKED_IN_KEY : '758z52iq2wxeir', LINKED_IN_SECRET : 'yUEWGMgyPSt94HLU' };
paperMacheTortoise/bizGram
config.js
JavaScript
mit
257
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Overview //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* The Radar script creates an animated wavefront from a sel...
shdwjk/roll20-api-scripts
Radar/0.3/Radar.js
JavaScript
mit
56,681
var Checker = require('../../../lib/checker'); var expect = require('chai').expect; var reportAndFix = require('../../lib/assertHelpers').reportAndFix; describe('rules/require-spaces-in-anonymous-function-expression', function() { var checker; beforeEach(function() { checker = new Checker(); ch...
kaicataldo/node-jscs
test/specs/rules/require-spaces-in-anonymous-function-expression.js
JavaScript
mit
7,982
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
can3p/brackets-app
src/win/cefclient/res/brackets_extensions.js
JavaScript
mit
14,025
(function () { 'use strict'; angular.module('app') .controller('mainCtrl', function ($scope, $location, Auth, profileSvc) { var that = this; that.isAdmin = Auth.isAdmin; $scope.getCurrentUser = Auth.getCurrentUser; $scope.pathos = $scope.getCurrentUser().pathways[0].stages[1].complete; $scope.user = fu...
blundercode/logosApp
client/app/user/main/mainCtrl.js
JavaScript
mit
1,280
'use strict'; var processors = require('../processors'), _ = require('underscore'), replify = require('replify'), undefsafe = require('undefsafe'), binModel = require('../models').createModels().bin; var utils = {}, sessions = {}, sessionsFromUser = {}, pending = {}, pendingToKillStream...
addyosmani/jsbin
lib/spike/index.js
JavaScript
mit
12,071
/*! * jQuery JavaScript Library v1.11.0 -effects,-effects/Tween,-effects/animatedSelector,-effects/support * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * ...
eric-seekas/jquery-builder
dist/1.11.0/jquery-effects.js
JavaScript
mit
261,416
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define(factory) : (factory()); }(this, (function () { 'use strict'; console.log( 'this is it' ); })));
corneliusweig/rollup
test/form/samples/no-imports-or-exports/_expected/umd.js
JavaScript
mit
258
import {combineReducers} from 'redux'; import information from './user-reducer'; import addressReducer from './address-reducers'; const userReducer = combineReducers({ information, address: addressReducer }); // export a root reducer export default combineReducers({ user: userReducer });
pierr/behaviour-test
src/example/reducers/index.js
JavaScript
mit
302
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = undefined; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3 ...
maty21/statistisc
node_modules/antd/lib/locale-provider/index.js
JavaScript
mit
2,315
/* * Copyright 2012 Research In Motion Limited. * * 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 ...
sixertoy/done
platforms/blackberry10/cordova/lib/target-utils.js
JavaScript
mit
9,609
/** The MIT License (MIT) Copyright (c) 2016 Anders Thyberg (github.com/athyberg) 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 u...
athyberg/bootstrap-perspective
src/bootstrap-perspective.js
JavaScript
mit
14,268
import { Observable } from '../../Observable'; import { _switch } from '../../operator/switch'; Observable.prototype.switch = _switch; Observable.prototype._switch = _switch;
thelgevold/closure-compiler-angular-bundling-old
vendor/rxjs/add/operator/switch.js
JavaScript
mit
175
var foo = () => 'foo'; // /* console.log(foo());
corneliusweig/rollup
test/form/samples/comment-start-inside-comment/_expected/es.js
JavaScript
mit
50
import { NOMAD_FETCHED_DEPLOYMENT_ALLOCATIONS, NOMAD_FETCHED_JOB_ALLOCATIONS, NOMAD_FETCHED_JOB_DEPLOYMENTS, NOMAD_FETCHED_JOB_VERSIONS, NOMAD_FETCHED_JOB, NOMAD_FETCHED_JOBS_FILTERED, NOMAD_FETCHED_JOBS, NOMAD_JOB_HIDE_DIALOG, NOMAD_JOB_SHOW_DIALOG, NOMAD_UNWATCH_JOB_ALLOCATIONS, NOMAD_UNWATCH_JO...
iverberk/nomad-ui
frontend/src/reducers/job.js
JavaScript
mit
2,810
/* * Copyright 2014-2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ require(['require-config'], function() { require([ 'login-page/js/login', 'text!find/templates/app/page/login/l...
ExperisIT-rav/Bifhi-release
find-core/src/main/public/static/js/login.js
JavaScript
mit
1,592
'use strict' const common = require('../common') const config = require('./config.json') const fs = require('fs-extra') const path = require('path') const packager = require('..') const series = require('run-series') const util = require('./util') const waterfall = require('run-waterfall') function createIgnoreTest (...
jgarza9788/sprite-animation-generator
node_modules/electron-packager/test/ignore.js
JavaScript
mit
4,981
export { default } from 'ember-form-for/components/form-hint';
ivanvanderbyl/ember-form-for
app/components/form-hint.js
JavaScript
mit
62
/** * @fileoverview 地板 * @authors Tony.Liang <pillar0514@gmail.com> * @description 一个房间有一个地板 */ define('mods/view/floor',function(require,exports,module){ var $ = require('lib'); var $tpl = require('lib/kit/util/template'); var $arcToDeg = require('lib/kit/math/arcToDeg'); var $degToArc = require('lib/kit/mat...
tabspace/vrhd
public/js/mods/view/floor.js
JavaScript
mit
2,575
/** * * This plugin allows the user to view all records that were aggregated for a specified cell. * The user has to double click that cell to open the viewer. */ Ext.define('Ext.pivot.plugin.DrillDown', { alternateClassName: [ 'Mz.pivot.plugin.DrillDown' ], alias: [ 'plugin.pivotdrilld...
bradyhouse/house
fiddles/extjs6/fiddle-0026-PivotDashBoard/src/packages/pivot/plugin/DrillDown.js
JavaScript
mit
4,900
require('babel-register') var config = require('../../config') // http://nightwatchjs.org/guide#settings-file module.exports = { "src_folders": ["test/e2e/specs"], "output_folder": "test/e2e/reports", "custom_assertions_path": ["test/e2e/custom-assertions"], "selenium": { "start_process": true, "serve...
kcikkick/Nodeboot_vue2.0
test/e2e/nightwatch.conf.js
JavaScript
mit
1,119
import cookieParser from 'cookie-parser' import bodyParser from 'body-parser' import cors from 'cors' export default (ctx) => ([ bodyParser.json(), bodyParser.urlencoded({ extended: true }), cookieParser(), cors(), ])
fasatron/skillbranch-nodejs
src/practice-4/middlewares/reqParser.js
JavaScript
mit
227
const { readFileSync, writeFileSync, existsSync } = require('fs') const elementTree = require('elementtree') const { relative } = require('path') const { red, green } = require('chalk') const { resolveDir } = require('../utils/app-paths') const { log, warn } = require('../utils/logger') const spawnSync = require('../u...
rstoenescu/quasar-framework
icongenie/lib/mount/mount-cordova.js
JavaScript
mit
5,687
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
lmazuel/azure-sdk-for-node
lib/services/containerRegistryManagement/lib/models/operationDefinition.js
JavaScript
mit
1,850
var extend = require("xtend"), path = require('path'), join = path.join; var blanketNode = function (userOptions,cli){ var fs = require("fs"), path = require("path"), configPath = process.cwd() + '/package.json', existsSync = fs.existsSync || path.existsSync, file = exists...
kidaa/blanket
src/index.js
JavaScript
mit
9,449
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireDefault(require("react")),_createSvgIcon=_interopRequireDefault(require("./createSvgIcon")),_default=(0,_createSvgIcon.d...
cdnjs/cdnjs
ajax/libs/material-ui/4.9.4/internal/svg-icons/KeyboardArrowRight.min.js
JavaScript
mit
467
import Ember from 'ember'; import randomWait from '../../utils/random-wait'; import { BUILDINGS } from '../../utils/sample-data'; export default Ember.Route.extend({ model(params) { const buildingIds = Ember.get(this.modelFor('company'), 'buildings'); // jscs: disable if (buildingIds.indexOf(parseInt(par...
rwjblue/ember-perf
tests/dummy/app/routes/company/building.js
JavaScript
mit
588
var Person = function (firstName, lastName, age) { this.firstName = firstName; this.lastName = lastName; this.age = age; }; Person.prototype.sayHello = function () { return "Hello, " + this.firstName + "!"; } Person.prototype.toString = function () { return this.firstName + " " + this.lastName + "...
Badacadabra/hello-js-world
testing/unit/qunit/src/Person.js
JavaScript
mit
379
require('../src/web.immediate'); module.exports = require('../src/$').core.setImmediate;
diztinct-tim/BeautyBridge
node_modules/jspm/node_modules/core-js/web/immediate.js
JavaScript
mit
88
/* * @name 混合光 * @frame 710,400 (optional) * @description 展示一个有三种不同光的盒子。 */ function setup() { createCanvas(710, 400, WEBGL); noStroke(); } function draw() { background(0); // 环境光 ambientLight(0, 255/4, 0); // 设置光的位置,可将坐标想成如下: // -宽度/2,-高度/2 -------- 宽度/2,-高度/2 // | | /...
processing/p5.js-website
src/data/examples/zh-Hans/12_Lights/05_Mixture.js
JavaScript
mit
1,006
/*global define exports window console document*/ define(['foo', 'text!template.html', 'text!to-strip.html!strip', 'i18n!stuff/nls/messages', 'domReady!', 'dunno!booger'], function (foo, html, stripped, msgs, doc) { console.log(msgs.greeting); console.log('---- Html template loaded ----'); console.log(html); ...
sirspock/scripted_token
tests/server/test-resources/use-plugins/p1/bork.js
JavaScript
epl-1.0
396
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render }); function preload() { game.load.audio('music', 'assets/audio/CatAstroPhi_shmup_normal.wav'); } var music; function create() { music = game.add.audio('music'); // play: f...
boniatillo-com/PhaserEditor
source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/wip/misc/audio loop.js
JavaScript
epl-1.0
647