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
"use strict"; const people = require("./people"); const util = require("./util"); /* This is the main model code for building the buddy list. We also rely on presence.js to compute the actual presence for users. We glue in other "people" data and do filtering/sorting of the data that we'll send into the ...
showell/zulip
static/js/buddy_data.js
JavaScript
apache-2.0
10,121
// test inv var assert = require('assert'), approx = require('../../../tools/approx'), error = require('../../../lib/error/index'), math = require('../../../index')(), inv = math.inv; describe('inv', function() { it('should return the inverse of a number', function() { assert.deepEqual(inv(4), 1...
kelonye/mathjs
test/function/matrix/inv.test.js
JavaScript
apache-2.0
2,834
Date.prototype.getWeek = function() { var onejan = new Date(this.getFullYear(),0,1); return Math.floor((((this - onejan) / 86400000) + onejan.getDay()+1)/7); } Date.prototype.getStartOfWeek = function() { var day = this.getDay() - 1; var startOfWeek; if (day != -1) { startOfWeek = new Date(this...
paperlotus/Time-Trotter
target/scala-2.10/classes/public/customScripts/timesheet.js
JavaScript
apache-2.0
2,581
/* * CodePress regular expressions for Perl syntax highlighting */ Language.syntax = [ // Ruby { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>', // strings double quote },{ input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>', // strings single quote },{ input : /([\$\@\%]+)([\w\.]*)/g,...
niikoo/NProj
Web/2008/Fenile/_data/codepress/languages/ruby.js
JavaScript
apache-2.0
1,156
/** * Copyright 2013-2018 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
robertmilowski/generator-jhipster
generators/spring-controller/index.js
JavaScript
apache-2.0
6,433
/* global L, leafLet, emp */ leafLet.internalPrivateClass.AirspaceTrackEditor = function() { var publicInterface = { initialize: function (args) { //var oOptions = { //}; //L.Util.setOptions(this, oOptions); leafLet.editor.Airspace.prot...
missioncommand/emp3-web
src/mapengine/leaflet/js/editor/airspace/leaflet-eng.editor.airspace.track.js
JavaScript
apache-2.0
12,438
/* * Copyright 2013 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 ...
blackberry/webworks-gui
test/unit/plugin.spec.js
JavaScript
apache-2.0
1,864
module.exports={A:{A:{"2":"H E G D A B qB"},B:{"1":"EB M","2":"9 C N I J K L"},C:{"2":"0 1 2 3 4 5 6 7 8 9 nB SB 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 QB gB fB"},D:{"1":"NB OB PB QB eB EB M ZB WB wB XB","2":"0 1 2 3 4 5...
BigBoss424/portfolio
v8/development/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js
JavaScript
apache-2.0
999
/** * Copyright 2014-2015 IBM Corp. 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 applica...
personality-insights/sunburst-chart
src/personality-sunburst-chart.js
JavaScript
apache-2.0
4,179
/* * 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, software * distribu...
kuainiao/MultimediaDesktop
Client/src/main/webapp/resources/desktop/loader.js
JavaScript
apache-2.0
1,649
(function (pageMenuController) { 'use strict'; var Promise = require('bluebird'), navigationMenuConfigs = require("../../configs/page-menu.config"); pageMenuController.init = function (app) { pageMenuController.getNavigationMenus = function () { return Promise.resolve(navigatio...
avsek477/blogSite
lib/controllers/view-controller/page-navigation-menus.controller.js
JavaScript
apache-2.0
396
var $ = require('jquery'); var m = require('mithril'); function Panel(title, header, inner, args, selected) { panel = m.component(Panel, title, header, inner, args); panel.title = title; panel.selected = selected || false; return panel; } Panel.controller = function(title, header, inner, args) { ...
jinluyuan/osf.io
website/static/js/filepage/util.js
JavaScript
apache-2.0
1,134
/** * Copyright © 2013 Environmental Systems Research Institute, Inc. (Esri) * * 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<br> * * http://www.apache.org/licenses/LICENSE-2.0 * ...
aconyteds/Esri-Ozone-Map-Widget
test/spec/cmwapi/map/feature/Plot.spec.js
JavaScript
apache-2.0
9,001
/* * 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. */ '...
begoldsm/azure-sdk-for-node
lib/services/serviceFabric/lib/models/serviceGroupDescription.js
JavaScript
apache-2.0
5,239
/** * Copyright 2019 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...
lannka/amphtml
build-system/server/lazy-build.js
JavaScript
apache-2.0
4,481
(function(tirequire,__dirname,__filename){module.id=__filename;module.loaded=false;module.filename=__filename;var require=tirequire("node_modules/ti-commonjs/lib/ti-commonjs")(__dirname,module);module.require=require;module.exports = function(grunt) { grunt.registerTask("component", function() { var config ...
k0sukey/TiTodoMVC
Resources/iphone/node_modules/moment/tasks/component.js
JavaScript
apache-2.0
657
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxBulletChart extends React.Component { componentDidMount() { let options = this.ma...
liamray/nexl-js
frontend/jqwidgets/jqwidgets-react/react_jqxbulletchart.js
JavaScript
apache-2.0
7,386
import { errors } from 'arsenal'; import bucketShield from './apiUtils/bucket/bucketShield'; import { convertToXml } from './apiUtils/bucket/bucketWebsite'; import collectCorsHeaders from '../utilities/collectCorsHeaders'; import { isBucketAuthorized } from './apiUtils/authorization/aclChecks'; import metadata from '....
lucisilv/Silviu_S3-Antidote
lib/api/bucketGetWebsite.js
JavaScript
apache-2.0
2,285
/* * asf -- Ada Server Faces * Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez * Written by Stephane Carrez (Stephane.Carrez@gmail.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 o...
google-code/ada-asf
web/js/asf.js
JavaScript
apache-2.0
15,242
/* * 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/storagesyncManagement/lib/models/triggerRolloverRequest.js
JavaScript
apache-2.0
1,138
// Copyright 2008 The Closure Library 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 requ...
maxogden/googlyscript
closure-library/closure/goog/proto2/pbliteserializer.js
JavaScript
apache-2.0
4,095
var v0 = { packetCnt: 5, ctx: [{ name: 'buffer', value: 12344 }, { name: 'meter', value: 124 }, { name: 'table', value: 0 }], key: [{ name: 'Internal', attrs: [{ name: 'in_port', value: 4, }, { name: 'in_phy_port', value: 6, },...
flowgrammable/flowsim
spike/arrival.js
JavaScript
apache-2.0
391
/* * Copyright 2015 Basho Technologies, Inc. * * 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...
GabrielNicolasAvellaneda/riak-nodejs-client
test/unit/crdt/fetchset.js
JavaScript
apache-2.0
5,621
// Add a leaflet map to the div var map = L.map('map'); // Get the features into a leaflet recognised geojson var features = {% autoescape off %} {{ cells }} {% endautoescape %}; geojson = L.geoJson(features, {style : style, onEachFeature: function (feature, layer) { layer.bindPopup(feature.propertie...
robrant/simple-flask-socketio-example
static/trackapp.js
JavaScript
bsd-2-clause
744
"use strict"; exports.init = function (config, context, callback) { console.log("Common initialization - this one is OK to be displayed"); callback(); }; exports.shutdown = function (callback) { console.log("Common shutdown - this one is OK to be displayed"); callback(); };
qminer/qtopology
demo/std_nodes/disabled/init_and_shutdown.js
JavaScript
bsd-2-clause
293
/** * @module ol/style/RegularShape */ import ImageState from '../ImageState.js'; import ImageStyle from './Image.js'; import {asArray} from '../color.js'; import {asColorLike} from '../colorlike.js'; import {createCanvasContext2D} from '../dom.js'; import { defaultFillStyle, defaultLineCap, defaultLineJoin, ...
geekdenz/ol3
src/ol/style/RegularShape.js
JavaScript
bsd-2-clause
13,767
function AccountPage() { var self = {}; self.SaveButton = new AccountSaveButton(function () { var isValid = self.ValidateForm(); self.SaveButton.IsSaving(true); if (isValid == true) { var settings = { AudioNotificationsEnabled: self.AudioNotificationsEnabled(...
andreialex007/OnlineMessenger
application/master/OnlineMessenger.MvcServer/obj/Release/Package/PackageTmp/Content/javascript/Models/Account/AccountPage.js
JavaScript
bsd-2-clause
4,299
var assert = require('chai').assert, Reflux = require('../lib'), sinon = require('sinon'); describe('using joins',function(){ describe('with static methods',function(){ describe('keeping trailing arguments',function(){ var action1 = Reflux.createAction(), action2 = Reflu...
ericf89/reflux-core
test/usingJoins.spec.js
JavaScript
bsd-3-clause
10,005
export default function(_) { return typeof _ === 'string'; }
vega/vega
packages/vega-util/src/isString.js
JavaScript
bsd-3-clause
63
const test = require('tape') const ProviderEngine = require('../index.js') const FixtureProvider = require('../subproviders/fixture.js') const CacheProvider = require('../subproviders/cache.js') const TestBlockProvider = require('./util/block.js') const createPayload = require('../util/create-payload.js') const injectM...
DigixGlobal/truffle-lightwallet-provider
node_modules/web3-provider-engine/test/cache.js
JavaScript
bsd-3-clause
8,514
/* * Copyright (c) 2013, salesforce.com, 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 conditi...
ForceDotComLabs/paper-sobject-editor
dependencies/mobilesdk-shared/test/SFForcetkTestSuite.js
JavaScript
bsd-3-clause
24,225
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2013 pimcore GmbH (http://www.pimcore...
PatidarWeb/pimcore
pimcore/static/js/pimcore/object/tags/nonownerobjects.js
JavaScript
bsd-3-clause
14,021
/* * Copyright (C) 2008 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
espadrine/opera
chromium/src/third_party/WebKit/Source/devtools/front_end/Script.js
JavaScript
bsd-3-clause
8,934
Drawable.Transition = function(transition_obj, target_paper, readonly, drawings, highlight, outline, path_type, color) { var that = this; var paper = target_paper; var transition_colors = ['#998', '#99f', '#9d9', '#faa']; var transition_text_colors = ['#554', '#559', '#585', '#966']; var transition_highlight_colo...
FlexBE/flexbe_app
src/drawable/drawable_transition.js
JavaScript
bsd-3-clause
6,576
/* Copyright (c) 2011-2012, Mozilla Foundation Copyright (c) 2011-2012, Alan Kligman Copyright (c) 2011-2012, Robert Richter 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...
gladiusjs/gladius
gladius-core.js
JavaScript
bsd-3-clause
419,352
var app = angular.module('MyApp'); app.controller('LoginCtrl', ['$scope', 'Auth', function($scope, Auth) { $scope.login = function() { Auth.login({ email: $scope.email, password: $scope.password }); }; }]);
jsonxr/examples-node
fullstack/client/controllers/login.js
JavaScript
bsd-3-clause
231
define([ 'jquery', 'underscore', 'backbone', 'text!mockup-patterns-structure-url/templates/paging.xml', 'translate' ], function($, _, Backbone, PagingTemplate, _t) { 'use strict'; var PagingView = Backbone.View.extend({ events: { 'click a.servernext': 'nextResultPage', 'click a.serverpre...
termitnjak/mockup
mockup/patterns/structure/js/views/paging.js
JavaScript
bsd-3-clause
3,015
'use strict'; togglbutton.render('#navbar:not(.toggl)', { observe: true }, function (elem) { const description = $('.navbar-tree-name', elem); const project = ''; const descFunc = function () { return description.textContent.trim(); }; const link = togglbutton.createTimerLink({ className: 'gingko-t...
glensc/toggl-button
src/scripts/content/gingkoapp.js
JavaScript
bsd-3-clause
490
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
PlywoodConnected/cornhole-next-polymer
app/scripts/app.js
JavaScript
bsd-3-clause
1,939
version https://git-lfs.github.com/spec/v1 oid sha256:ed0844605e8d8e80ecae78a7693f5d7641e3e11db82586337e037922822f5d0d size 20416
yogeshsaroya/new-cdnjs
ajax/libs/ionic/0.9.20-alpha/js/angular/angular-sanitize.js
JavaScript
mit
130
version https://git-lfs.github.com/spec/v1 oid sha256:fe8ee2c2ad37c614076a4f1aec39eca27748de08d481c731bd449e0a64860f65 size 17566
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.1.2/slider/slider-base.js
JavaScript
mit
130
var util = require('../util'); var Node = require('./Node'); /** * @class Edge * * A edge connects two nodes * @param {Object} properties Object with properties. Must contain * At least properties from and to. * Available properties: from (number)...
sekys/ivda
web/libs/vis/lib/network/Edge.js
JavaScript
mit
36,449
// update license year and version var fs = require('fs') module.exports = function() { var version = require('./package.json').version var license = fs.readFileSync('LICENSE', 'utf-8') .replace(/\(c\) ([0-9]+)/, '(c) ' + (new Date).getFullYear()) .replace(/SYNAPTIC \(v(.*)\)/, 'SYNAPTIC (v' + version + ')') ...
DDOS-Attacks/dino-bot-3000
node_modules/synaptic/license.js
JavaScript
mit
376
// show that no match events happen while paused. var tap = require("tap") , child_process = require("child_process") // just some gnarly pattern with lots of matches , pattern = "test/a/!(symlink)/**" , bashResults = require("./bash-results.json") , patterns = Object.keys(bashResults) , glob = require("../") , Glob = ...
wenjoy/homePage
node_modules/node-captcha/node_modules/canvas/node_modules/mocha/node_modules/should/node_modules/gulp-uglify/node_modules/tape/node_modules/glob/test/pause-resume.js
JavaScript
mit
1,024
'use strict'; define([ 'jquery', 'three', 'pubsub', 'underscore', 'motifExplorer', 'explorer' ], function( jQuery, THREE, PubSub, _, MotifExplorer, Explorer ) { var raycaster = new THREE.Raycaster(); var mouse = new THREE.Vector2(); function CrystalMouseEvents( client, _camera, do...
gvcm/CWAPP
scripts/crystalMouseEvents.js
JavaScript
mit
7,499
'use strict'; var resolve = require('path').resolve , isNotFoundError = require('../../module/is-module-not-found-error') , pg = resolve(__dirname, '../__playground/module/require-first-in-tree'); module.exports = function (t, a) { var path = pg + '/first/dir' , m = require(path + '/module'); a(t('...
medikoo/node-ext
test/module/require-first-in-tree.js
JavaScript
mit
750
var gulp = require('gulp'); var paths = require('../paths'); var browserSync = require('browser-sync'); function reportChange(event){ console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); } gulp.task('watch', function() { gulp.watch(paths.source, ['build-system', browserSync.reload]...
behzad88/aurelia-appInsights
Aurelia-AppInsights/build/tasks/watch.js
JavaScript
mit
521
/*! * THREE.Extras.Shaders contains extra Fx shaders like godrays * * @author Thibaut 'BKcore' Despoulain <http://bkcore.com> * */ THREE = THREE || {}; THREE.Extras = THREE.Extras || {}; THREE.Extras.Shaders = { // Volumetric Light Approximation (Godrays) Godrays: { uniforms: { tDiffuse: {type: "t", val...
modulexcite/tquery
plugins/glow/examples/tmp/js/extras/Shaders.js
JavaScript
mit
2,485
export default function getCurrentUserId(state) { return state.getIn(['user', 'account', 'id']); }
outoftime/learnpad
src/selectors/getCurrentUserId.js
JavaScript
mit
101
const DrawCard = require('../../drawcard.js'); class Yoren extends DrawCard { setupCardAbilities() { this.reaction({ when: { onCardEntersPlay: event => event.card === this && event.playingType === 'marshal' }, target: { cardCondition: card...
cryogen/throneteki
server/game/cards/01-Core/Yoren.js
JavaScript
mit
868
define({ "add": "Klikkige uue järjehoidja lisamiseks", "title": "Pealkiri", "placeholderBookmarkName": "Järjehoidja nimi", "ok": "OK", "cancel": "Tühista", "warning": "Viige muutmine lõpule!", "edit": "Muuda järjehoidjat", "errorNameExist": "Järjehoidja on olemas!", "errorNameNull": "Vigane järjehoidj...
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/Bookmark/setting/nls/et/strings.js
JavaScript
mit
458
import webdriver from 'selenium-webdriver'; import { expect } from 'chai'; import electronPath from 'electron-prebuilt'; import homeStyles from '../app/components/Home.module.css'; import counterStyles from '../app/components/Counter.module.css'; describe('main window', function spec() { before((done) => { this....
foysalit/runkeeper-desktop
test/e2e.js
JavaScript
mit
3,520
/// <reference path="../../observable.ts" /> (function () { var o; o = o.findIndex(function (x) { return true; }); o = o.findIndex(function (x) { return true; }, {}); }); //# sourceMappingURL=findindex.js.map
cyberpuffin/remanddel
node_modules/lite-server/node_modules/browser-sync/node_modules/rx/ts/core/linq/observable/findindex.js
JavaScript
mit
220
/*! jQuery UI - v1.10.4 - 2014-04-20 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.ka={closeText:"დახურვა",prevText:"&#x3c; წინა",nextText:"შემდეგი &#x3e;",currentText:"დღეს",monthNames:["იანვარი","თებერვალი","მარტი","აპრილი","...
snipertomcat/MusiczarconiaBundle
web/bundles/stcbase/js/jquery/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ka.min.js
JavaScript
mit
1,334
steal('can/util', 'can/observe', function (can) { var define = can.define = {}; var getPropDefineBehavior = function(behavior, attr, define) { var prop, defaultProp; if(define) { prop = define[attr]; defaultProp = define['*']; if(prop && prop[behavior] !== undefined) { return prop[behavior]; }...
patrick-steele-idem/canjs
map/define/define.js
JavaScript
mit
9,933
'use strict'; // src/services/user/hooks/gravatar.js // // Use this hook to manipulate incoming or outgoing data. // For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html // We need this to create the MD5 hash const crypto = require('crypto'); // The Gravatar image service const gravatarUrl...
tlohstroh/dots-and-boxes
src/services/user/hooks/gravatar.js
JavaScript
mit
936
var path = require('path'), events = require('events'), assert = require('assert'), fs = require('fs'), vows = require('../lib/vows'); var api = vows.prepare({ get: function (id, callback) { process.nextTick(function () { callback(null, id) }); }, version: function () { retu...
rwaldron/vows
test/vows-test.js
JavaScript
mit
11,827
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ButtonGroup from '../ButtonGroup'; const buttons = ['Button 1', 'Button 2', 'Button 3']; const buttonsElement = [{ element: 'Text' }, { element: 'View' }]; describe('ButtonGroup Component', () => { it('should re...
kosiakMD/react-native-elements
src/buttons/__tests__/ButtonGroup.js
JavaScript
mit
1,831
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
vovance/3d-demo
lib/utils/name-generator.js
JavaScript
mit
1,167
'use strict'; var reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/; module.exports = function parseDate(key, value) { return (typeof value === 'string' && reISO.exec(value)) ? new Date(value) : value; };
ezekielthao/mozu-node-sdk
utils/parse-json-dates.js
JavaScript
mit
248
var testCase = require('../deps/nodeunit').testCase, debug = require('util').debug, inspect = require('util').inspect, nodeunit = require('../deps/nodeunit'), gleak = require('../tools/gleak'), Db = require('../lib/mongodb').Db, Cursor = require('../lib/mongodb').Cursor, Step = require("../deps/step/lib/s...
liminglu/node_iblog
node_modules/mongoose/node_modules/mongodb/test/cursor_test.js
JavaScript
mit
33,025
/** * @file Visual solution, for consistent option specification. */ var zrUtil = require('zrender/lib/core/util'); var VisualMapping = require('./VisualMapping'); var each = zrUtil.each; function hasKeys(obj) { if (obj) { for (var name in obj){ if (obj.hasOwnPro...
ytbryan/chart
node_modules/echarts/lib/visual/visualSolution.js
JavaScript
mit
5,294
'use strict'; angular.module('users').controller('AuthenticationController', ['$scope', '$state', '$http', '$location', '$window', 'Authentication', 'PasswordValidator', '$modal', function ($scope, $state, $http, $location, $window, Authentication, PasswordValidator, $modal) { $scope.authentication = Authenticat...
IsomerEDU/MappingSLC
modules/users/client/controllers/authentication.client.controller.js
JavaScript
mit
3,029
var ngdoc = require('../src/ngdoc.js'); var DOM = require('../src/dom.js').DOM; describe('ngdoc', function() { var Doc = ngdoc.Doc; var dom; beforeEach(function() { dom = new DOM(); this.addMatchers({ toContain: function(text) { this.actual = this.actual.toString(); return this.act...
Ore4444/angular.js
docs/spec/ngdocSpec.js
JavaScript
mit
21,003
"use strict"; /** * Copyright 2017 Google Inc. * * 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 ...
aggiedefenders/aggiedefenders.github.io
node_modules/@firebase/database/dist/cjs/src/core/view/ChildChangeAccumulator.js
JavaScript
mit
3,422
/** @module ember @submodule ember-testing */ import { checkWaiters } from '../test/waiters'; import { RSVP } from 'ember-runtime'; import { run } from 'ember-metal'; import { pendingRequests } from '../test/pending_requests'; /** Causes the run loop to process any pending events. This is used to ensure that any a...
rfsv/ember.js
packages/ember-testing/lib/helpers/wait.js
JavaScript
mit
1,768
var mappings = { getIndices: function() { return ['foo', 'bar', 'qux']; }, getTypes: function(index) { return { foo: ['foobar'], bar: ['baz', 'qux'], qux: ['bar'] }[index]; } }; test("Autocomplete first part of path", function() { var suggest = new URLAutocomplete(mappings); ...
lmenezes/elasticsearch-kopf
tests/models/url_autocomplete.js
JavaScript
mit
1,726
/** * @module drivshare-gui/updater */ 'use strict'; const about = require('../package'); const {EventEmitter} = require('events'); const request = require('request'); const assert = require('assert'); const semver = require('semver'); class Updater extends EventEmitter { constructor() { super(); } /**...
Storj/driveshare-gui
app/lib/updater.js
JavaScript
mit
1,478
var check = require('./lib/util/check') var extend = require('./lib/util/extend') var dynamic = require('./lib/dynamic') var raf = require('./lib/util/raf') var clock = require('./lib/util/clock') var createStringStore = require('./lib/strings') var initWebGL = require('./lib/webgl') var wrapExtensions = require('./lib...
mikolalysenko/regl
regl.js
JavaScript
mit
14,415
var env = require('./environment.js'); // Smoke tests to be run on CI servers - covers more browsers than // ciConf.js, but does not run all tests. exports.config = { sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, SELENIUM_PROMISE_MANAGER: false, framework: 'jasmine', specs:...
mgiambalvo/protractor
spec/ciSmokeConf.js
JavaScript
mit
2,248
$(function () { $(".help-block").effect( "pulsate", {times:7}, 10000 ); $('#flashdatas .alert').delay(5000).slideUp('fast'); if ($("#search_page_ajax").length > 0) { $("#search_page_ajax").autocomplete({ minLength: 2, scrollHeight: 220, source: function(req, ad...
Symfomany/cinhetic
web/js/a2646bf_main_1.js
JavaScript
mit
7,492
(function () { var pagebreak = (function () { 'use strict'; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var global$1 = tinymce.util.Tools.resolve('tinymce.Env'); var getSeparatorHtml = function (editor) { return editor.getParam('pagebreak_separator', '<!-- pagebreak -->'); }; va...
DigitalMomentum/BlogMomentum
UmbracoWebsite/umbraco/lib/tinymce/plugins/pagebreak/plugin.js
JavaScript
mit
3,427
export { default } from './src'
Dess-Li/vue-el-datatables
index.js
JavaScript
mit
32
/*! * socket.io-node * Copyright(c) 2011 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Test dependencies. */ var sio = require('../index') , http = require('http') , should = require('./common') , ports = 15100; /** * Test. */ module.exports = { 'test setting and getting a configuration f...
Ronll/chatnow
client/app/bower_components/socket.io/test/manager.test.js
JavaScript
mit
13,949
'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _boom = require('boom'); var _boom2 = _interopRequireDefault(_boom); var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash); var _elasticsearch = require('elasticsearch'); ...
phupn1510/ELK
kibana/kibana/src/core_plugins/kibana/server/lib/handle_es_error.js
JavaScript
mit
1,309
/** * @module BaseModel.js * @author Joe Groseclose <@benderTheCrime> * @date 8/23/2015 */ // System Modules import {cyan} from 'chalk'; import $LogProvider from 'angie-log'; // Angie Modules import AngieDatabaseRouter from '../databases/AngieDatabaseRouter'; import { ...
benderTheCrime/angie-orm
src/models/BaseModel.js
JavaScript
mit
4,087
var server = require('./server') , events = require('events') , stream = require('stream') , assert = require('assert') , fs = require('fs') , request = require('../index') , path = require('path') , util = require('util') ; var port = 6768 , called = false , proxiedHost = 'google.com' ; var s =...
ethannguyen93/POS
node_modules/forever/node_modules/winston/node_modules/request/tests/test-proxy.js
JavaScript
mit
918
module.exports = { parser: 'babel-eslint', extends: ['formidable/configurations/es6'], globals: { Promise: true }, env: { node: true }, ecmaFeatures: { modules: true }, rules: { 'no-unused-vars': [ 'error', { vars: 'all', args: 'after-used', ignoreRe...
anyjunk/redux-offline
.eslintrc.js
JavaScript
mit
1,039
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v21.1.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.leng...
extend1994/cdnjs
ajax/libs/ag-grid/21.1.0/lib/alignedGridsService.js
JavaScript
mit
11,635
var $ = require("../dom") var parser = require("../parser") module.exports = { bind: function(ele, attr, component) { this.update(ele, attr, component) }, update: function(ele, attr, component) { var tokensAndPaths = parser.parseTokensAndPaths(attr.value) var isShow = parser.exec({ exp: attr....
livoras/wet.js
src/directives/show.js
JavaScript
mit
524
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
mikec/angular.js
src/ngLocale/angular-locale_en-mt.js
JavaScript
mit
2,354
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); require('./turn-order-8e019db0.js'); require('immer'); require('./plugin-random-7425844d.js'); require('lodash.isplainobject'); var reducer = require('./reducer-943f1bac.js'); require('rfc6902'); var initialize = require('./initialize-45c7e6...
cdnjs/cdnjs
ajax/libs/boardgame-io/0.49.9/cjs/internal.js
JavaScript
mit
859
/* * 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. */ var control_usuario_list = function(path) { //contexto privado var prefijo_div = "#usuario_list "; function cargaBotone...
jpgodesart/GestionTareas
src/main/webapp/js/control/usuario.js
JavaScript
gpl-2.0
14,050
// Jquery (function($){ /* // ALL WEBSITE */ $("button.open-menu").on( "click", function() { $("nav.main-nav").toggleClass("active"); }); //Overlay function activeOverlay() { $("#overlay").toggleClass("active"); } $( "#overlay" ).on( "click", "#button-close", function() { activeOverlay(); }); /...
colab-at/colab-website
js/main.js
JavaScript
gpl-2.0
3,966
// Gather used gulp plugins var gulp = require('gulp'); rename = require('gulp-rename'); watch = require('gulp-watch'); sass = require('gulp-sass'); autoprefixer = require('gulp-autoprefixer'); jsmin = require('gulp-jsmin'); imagemin = require('gulp-imagemin'); styleguide = require('sc5-styl...
frontcraft/bootsmacss
gulpfile.js
JavaScript
gpl-2.0
7,022
/** * Utility functions for handling gradients */ PIE.GradientUtil = { getGradientMetrics: function( el, width, height, gradientInfo ) { var angle = gradientInfo.angle, startPos = gradientInfo.gradientStart, startX, startY, endX, endY, startCornerX, startCo...
schnitzel25/pizza
sites/all/themes/pzz/libraries/pie/sources/GradientUtil.js
JavaScript
gpl-2.0
5,495
Locale.define("sv-SE","Number",{currency:{prefix:"SEK "}}).inherit("EU","Number");
slackero/phpwcms
template/lib/mootools/more-1.4/Locale/Locale.sv-SE.Number.js
JavaScript
gpl-2.0
82
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); var gruntTasksPath = './grunt_tasks'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), autoprefixer: require(gruntTasksPath+'/autoprefixer'), clean: require(gruntTasksPath+'/clean'), cssmin: require(gruntTasksPath+'/cssmin')...
zaundef/geolocation
Gruntfile.js
JavaScript
gpl-2.0
805
/* * Copyright (c) 2008-2014 CoNWeT Lab., Universidad Politécnica de Madrid * * This file is part of Wirecloud Platform. * * Wirecloud Platform is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Soft...
sixuanwang/SAMSaaS
wirecloud-develop/src/wirecloud/platform/static/js/wirecloud/ui/MultiValuedSize.js
JavaScript
gpl-2.0
1,252
ace.define("ace/snippets/batchfile",["require","exports","module"],function(e,i,t){i.snippetText="",i.scope="batchfile"});
lealife/leanote-bin
public/member/js/ace/snippets/ck/batchfile-min.js
JavaScript
gpl-2.0
122
/* Authors: * Adam Young <ayoung@redhat.com> * * Copyright (C) 2010 Red Hat * see file 'COPYING' for use and warranty information * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, ei...
encukou/freeipa
install/ui/src/freeipa/policy.js
JavaScript
gpl-3.0
6,306
import Ember from 'ember'; export default Ember.Mixin.create({ session: Ember.inject.service(), defaultCapabilities: { admin: [ 'User Administrator', 'System Administrator', 'Quality' ], add_allergy: [ 'Data Entry', 'Doctor', 'Hospital Administrator', 'Medical R...
tsaron/dariya
app/mixins/user-session.js
JavaScript
gpl-3.0
14,503
'use strict'; (function () { let logoutTimer = 0; let logoutMessage; function startLogoutTimer() { if (app.config.adminReloginDuration <= 0) { return; } if (logoutTimer) { clearTimeout(logoutTimer); } // pre-translate language string gh#9046 if (!logoutMessage) { require(['translator'], functio...
MicroWorldwide/NodeBB
public/src/admin/admin.js
JavaScript
gpl-3.0
5,815
var Modeler = require("../Modeler.js"); var className = 'ElementDescribeNetworkInterfaces'; var ElementDescribeNetworkInterfaces = function(json, parentObj) { parentObj = parentObj || this; // Class property definitions here: Modeler.extend(className, { DescribeNetworkInterfaces: { type: "TypeDescribe...
holidayextras/wsdl2.js
example/EC2/Element/DescribeNetworkInterfaces.js
JavaScript
gpl-3.0
702
/* Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dijit._Templated"]){ //_hasResource checks added by build. Do not use _hasResource directly in your ...
emogames-gbr/syndicates
src/public/php/dojo/dijit/_Templated.js
JavaScript
gpl-3.0
11,057
/* eslint-env node, es6 */ const { registerSuite } = intern.getPlugin("interface.object"); const { requireRoot } = require("./util"); const buildUtil = requireRoot("scripts/build-util"); const assert = require("assert"); // const { assert } = intern.getPlugin("chai"); registerSuite("build-util", { tests: { /** ...
BorderTech/wcomponents
wcomponents-theme/src/test/unit/build-util.test.js
JavaScript
gpl-3.0
615
module.exports = { book: { assets: './assets', css: [ 'plugin.css' ] }, blocks: { em: { process: function(block) { var type = block.kwargs.type || 'yellow'; var color = block.kwargs.color; var style = ''...
WaysonKong/blog
node_modules/gitbook-plugin-emphasize/index.js
JavaScript
gpl-3.0
734
/* * (c) Copyright The SIMILE Project 2006. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of...
krivera-pentaho/cdf
core-js/src/main/javascript/lib/simile/timeline/scripts/l10n/it/timeline.js
JavaScript
mpl-2.0
2,646
// META: global=window,worker,jsshell // META: script=../resources/test-utils.js // META: script=../resources/recording-streams.js 'use strict'; function interceptThen() { const intercepted = []; const callCount = 0; Object.prototype.then = function(resolver) { if (!this.done) { intercepted.push(this.v...
Acidburn0zzz/servo
tests/wpt/web-platform-tests/streams/piping/then-interception.any.js
JavaScript
mpl-2.0
1,622
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Owner: david@famo.us * @license MPL 2.0 * @copyright Famous Industries, Inc. 2014 */ define(function(require...
blitzagency/rich
demos/src/static/js/vendor/famous/physics/constraints/Walls.js
JavaScript
mpl-2.0
7,862