code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
/* Copyright 2017 Vector Creations 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, sof...
aperezdc/matrix-react-sdk
src/stores/SessionStore.js
JavaScript
apache-2.0
2,446
import React, {Component} from 'react'; import {fetchHmqHolders} from 'store/entities/hmqHolders/actions' import HmqHoldersContainer from 'components/pages/HmqHolders/container' class HmqHolders extends Component { static prepareData({dispatch, getState}) { const state = getState() if(!__CLIENT__ || state....
humaniq/humaniq-pwa-website
src/routes/Hmq/HmqHolders.js
JavaScript
apache-2.0
496
//// [defaultIndexProps1.ts] class Foo { public v = "Yo"; } var f = new Foo(); var q = f["v"]; var o = {v:"Yo2"}; var q2 = o["v"]; //// [defaultIndexProps1.js] var Foo = (function () { function Foo() { this.v = "Yo"; } return Foo; })(); var f = new Foo(); var q = f["v"]; var...
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/defaultIndexProps1.js
JavaScript
apache-2.0
360
angular.module('toolbelt.strength', ['ngSanitize']) .directive('sysStrength', function () { var requiredComplexity, requiredCharsets; var labels = ['success', 'warning', 'danger']; var results = [ { rank: 1, complexity: 'Too short', label: 'danger' }, { rank: 2, compl...
sysen-limited/angular-toolbelt
src/directives/strength.js
JavaScript
apache-2.0
3,531
angular.module('expense_track.app'). controller('mainController', function($scope, api, authState){ $scope.list = function(){ api.expenses.list(function(data){ $scope.expenses = data; }); }; $scope.setDateTime= function() { $scope.expense.date = new Date(); $scop...
zheli/simple-expense
apps/frontend/src/js/mainController.js
JavaScript
apache-2.0
3,476
//global window, GS, ml, xtag, evt, ace, doT, CryptoJS, encodeHTML, Worker //global addSnippet, addElement, addFlexProps, addCheck, addText, addSelect //global addControlProps, addFlexContainerProps, addProp //global addAttributeSwitcherProp, addGSControlProps, addCornerRoundProps //global addIconProps //jslint br...
workflowproducts/envelope
src/app/developer_g/greyspots-1.1.1/js/010-window.js
JavaScript
apache-2.0
28,707
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/strided/base/binary-signature-callbacks/lib/index.js
JavaScript
apache-2.0
1,514
define(function(){var t=require.mix;return{destroy:function(){for(var t in this)delete this[t];this._alive=0},addEventListener:function(t,e){this.listeners||(this.listeners={}),(this.listeners[t]=this.listeners[t]||[]).push(e)},removeEventListener:function(t,e){if(this.listeners)if(e)for(var i=0,n=this.listeners[t],r=n...
kimy82/appStore
titanium/Ti/_/Evented.js
JavaScript
apache-2.0
877
'use strict'; const cluster = require('cluster'); const EventEmitter = require('events').EventEmitter; const defaults = require('lodash.defaults'); const cpuCount = require('os').cpus().length; const DEFAULT_OPTIONS = { workers: cpuCount, lifetime: Infinity, grace: 5000 }; const NOOP = () => {}; module.export...
megastef/logsene-aws-lambda-cloudwatch
node_modules/@sematext/logagent/node_modules/throng/lib/throng.js
JavaScript
apache-2.0
1,673
/* * Kuzzle, a backend software, self-hostable and ready to use * to power modern apps * * Copyright 2015-2018 Kuzzle * mailto: support AT kuzzle.io * website: http://kuzzle.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
kuzzleio/kuzzle
cucumber.js
JavaScript
apache-2.0
1,123
var express = require('express'); var router = express.Router(); var requests = require('../models/requests'); /* create a new ride request */ router.post('/', function(req, res, next) { res.send({"test": "true"}); }); router.get('/', function(req, res, next) { requests.find( function(err, request){ res.send(requ...
JasonKraft/drivespoke
routes/requests.js
JavaScript
apache-2.0
608
setTimeout(function(){ (function(){ id = Ti.App.Properties.getString("tisink", ""); var param, xhr; file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,"examples/system_buttons.js"); text = (file.read()).text xhr = Titanium.Network.createHTTPClient(); xhr.open("POST", "ht...
steerapi/KichenSinkLive
Resources/examples/system_buttons.js
JavaScript
apache-2.0
7,964
/** * Copyright 2013, 2014 IBM Corp. * * 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...
mblackstock/node-red-contrib
red/nodes/index.js
JavaScript
apache-2.0
3,677
// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/nodejs-dialogflow-cx
samples/generated/v3beta1/environments.run_continuous_test.js
JavaScript
apache-2.0
1,880
var React = require('react'); var rB = require('react-bootstrap'); var cE = React.createElement; var Pins = require('./Pins'); var Bundles = require('./Bundles'); var Events = require('./Events'); var Listeners = require('./Listeners'); var AppStatus = require('./AppStatus'); var DisplayError = require('./DisplayError'...
cafjs/caf_helloiot
public/js/components/MyApp.js
JavaScript
apache-2.0
3,833
const { randomBytes } = require("crypto"); const { CTX } = require("./ctx"); describe("BIG", () => { const ctx = new CTX("ED25519"); describe("zero", () => { it("sets value to 0 and returns this", () => { const a = new ctx.BIG(42); expect(a.zero()).toBe(a); expect(a.w.every(word => word ===...
miracl/amcl
version3/js/big.spec.js
JavaScript
apache-2.0
6,461
exports.create = function() { function notConnectedAlert() { var alertDialog = Titanium.UI.createAlertDialog({ title : 'Keine Verbindung zum Internet', message : 'Leider benötigt podcampus eine Verbindung zu diesem Internet', buttonNames : ['Weiter'] }); alertDialog.show(); } if (!Ti.Network.online) ...
AppWerft/PodCampus
Resources/offlinealert.js
JavaScript
apache-2.0
351
function entrada() { var entrar = confirm("¿Realmente quiere entrar mi página?"); if (entrar) { alert("¿Preparado?"); empieza(); } else { alert("Otra vez será"); parent.location = "http://www.eii.us.es"; } } function empieza() { var nombre = prompt("...
Danmarjim/mwm-2014-2015
Mod2/JavaScript/Ejercicio2/public_html/scripts/ejercicio2.js
JavaScript
apache-2.0
744
sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/core/library", "sap/m/Dialog", "sap/m/Button", "sap/m/library", "sap/m/Text" ], function (Controller, coreLibrary, Dialog, Button, mobileLibrary, Text) { "use strict"; // shortcut for sap.m.ButtonType var ButtonType = mobileLibrary.ButtonType; // shortcu...
SAP/openui5
src/sap.m/test/sap/m/demokit/sample/DialogMessage/C.controller.js
JavaScript
apache-2.0
3,357
define([ 'DataSources/GridMaterialProperty', 'Core/Cartesian2', 'Core/Color', 'Core/JulianDate', 'Core/TimeInterval', 'DataSources/ConstantProperty', 'DataSources/SampledProperty', 'DataSources/TimeIntervalCollectionProperty' ], function( GridM...
jasonbeverage/cesium
Specs/DataSources/GridMaterialPropertySpec.js
JavaScript
apache-2.0
12,127
$(function(){ $.ajax({ url: "http://browser-keyboard.github.io/languages/list.json", success: function(data){ data.sort(function(a,b) { if (a.shortName < b.shortName) return 1; if (a.shortName > b.shortName) return -1; return 0; }); for(var i=data.length-1; i>=0; i--){ $('#...
browser-keyboard/browser-keyboard.github.io
getLayouts.js
JavaScript
apache-2.0
395
(function () { 'use strict'; /*global document */ /*global Reveal */ /*global define*/ define(function (require) { var canvas = document.getElementById('firstDrawingCanvas'); var environment = require('environment'); var ctx = canvas.getContext('2d'); function makeF...
Joengenduvel/iska.NatureOfCode
js/first-drawing.js
JavaScript
apache-2.0
2,074
/*var drupal; exports.setDrupal = function(d) { drupal = d; };*/ function enableControl(c) { c.opacity = 1; c.color = "red"; c.enabled = true; } function disableControl(c) { c.opacity = .5; c.color = "orange"; c.enabled = false; } function setStatus(status) { switch (status) { case 'logged in': enableCo...
max1020/drupal_client_alloy_app
app/controllers/registration.js
JavaScript
apache-2.0
1,730
/** * @license Angular v4.4.5 * (c) 2010-2017 Google, Inc. https://angular.io/ * License: MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core')) : typeof define === 'function' && define.amd ? define...
tongpa/pypollmanage
pypollmanage/public/javascript/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js
JavaScript
apache-2.0
143,193
jQuery(document).ready(function(e){function i(){var i=e(".header").height(),n=e(window).height(),s=n-i,a=e(window).width();e(".blurred-bg").css("clip","rect("+s+"px, "+a+"px, "+n+"px, 0px)")}e(".menu-trigger").on("click",function(i){i.preventDefault(),e("#main-content").addClass("move-out"),e("#main-nav").addClass("is-...
benjohnston/Neuen.co
js/min/main-ck.js
JavaScript
apache-2.0
609
import DrawWidget from '../../src/widget/draw/draw-widget'; import { runAllCommonWidgetTests } from '../helpers/test-widget'; const FORM1 = `<form class="or"> <label class="question or-appearance-draw"> <input name="/data/d" type="file" data-type-xml="binary" accept="image/*" /> </label...
nap2000/enketo-core
test/spec/widget.draw.spec.js
JavaScript
apache-2.0
1,322
"use strict"; requirejs.config({ 'baseUrl': 'js/lib', 'paths': { 'app': '../app', 'text': './text', 'jquery': 'http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min', 'jqueryui': 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min' }, 'config': { ...
atsid/boston-licensing-explorer
js/app.js
JavaScript
apache-2.0
2,918
define(function(require) { 'use strict'; var states = require('states'); states.state('applications.detail.topology', { url: '/topology', template: '<ui-view></ui-view>', resolve: { context: function() { return { topologyId: undefined }; }, preselectedVersion: function() { return undefin...
PierreLemordant/alien4cloud
alien4cloud-ui/src/main/webapp/scripts/applications/controllers/application_topology.js
JavaScript
apache-2.0
619
function KirinXMLHTTPRequest () { // No properties declared } module.exports = KirinXMLHTTPRequest; var _ = require("underscore"); var kirinModule = KirinXMLHTTPRequest.prototype, instance; /* * Lifecycle methods. * These should match corresponding native objects, via kirinHelpers */ kirinModule.onLoad = ...
KirinJS/Kirin
javascript/lib/extensions/network/KirinXMLHTTPRequest.js
JavaScript
apache-2.0
8,428
var a00114 = [ [ "base", "a00114.html#a5e04f0c481182bfae2a34cff07d99655", null ], [ "FunctionSignature", "a00114.html#a307c92dbe272f484c0a2983308d6f1d1", null ], [ "_TessFunctionResultCallback_2_1", "a00114.html#a7d719279652de3b9be2a9311177e6f52", null ], [ "Run", "a00114.html#a0d1c28349b80f2e4c7a93d2ea...
stweil/tesseract-ocr.github.io
3.x/a00114.js
JavaScript
apache-2.0
339
YUI({filter:"raw"}).use("datatable-scroll", function (Y) { var sampleData = [ { ANSI: "00000", STATE: "UNITED STATES", TOTAL_POP: 307006550, LAND_AREA: 3537438.44, POP_PER_SQ_MILE: 79.6 }, { ANSI: "01000", STATE: "ALABAMA", TOTAL_POP: 4708708, LAND_AREA: 50744, POP_PER_SQ_MILE: 87.6 }, { ANSI: "02000", STATE...
mhus/mhus-inka
de.mhus.aqua/de.mhus.aqua.workspace/modules/de.mhus.aqua.mod.uiapp/templates/wtable.js
JavaScript
apache-2.0
1,730
var exports = module.exports; function message() { var parts = []; for (var i = 0; i < arguments.length; ++i) { var value = arguments[i]; if (typeof(value) === 'number') { parts.push('i', value, 's'); } else if (typeof(value) === 'string') { parts.push(value.le...
mikwae/node-telldus-core
lib/commands.js
JavaScript
apache-2.0
4,380
'use strict'; var srlog = SIREPO.srlog; var srdbg = SIREPO.srdbg; SIREPO.app.config(function() { SIREPO.PLOTTING_SUMMED_LINEOUTS = true; SIREPO.appFieldEditors += [ '<div data-ng-switch-when="FileNameArray" data-ng-class="fieldClass">', '<div data-magnet-files="" data-model="model" data-fiel...
mkeilman/sirepo
sirepo/package_data/static/js/zgoubi.js
JavaScript
apache-2.0
49,510
import fetchMock from 'fetch-mock' import { LIST_SETTINGS, EDIT_SETTINGS, EDIT_LOGO, REMOVE_LOGO, ADD_API_KEY, REMOVE_API_KEY, fetchSettings, fetchPublicSettings, updateSettings, postApiKey, deleteApiKey, uploadLogo, deleteLogo, readImageFile } from 'actions/settings' describe('Actions/Sett...
ks888/LambStatus
packages/frontend/tests/actions/settings.spec.js
JavaScript
apache-2.0
8,467
var classorg_1_1onosproject_1_1net_1_1host_1_1impl_1_1HostMonitorTest = [ [ "setUp", "classorg_1_1onosproject_1_1net_1_1host_1_1impl_1_1HostMonitorTest.html#af91e64e70973a90efc9748aeef66bbc9", null ], [ "shutdown", "classorg_1_1onosproject_1_1net_1_1host_1_1impl_1_1HostMonitorTest.html#ac837c9c21e60a8962feed93f...
onosfw/apis
onos/apis/classorg_1_1onosproject_1_1net_1_1host_1_1impl_1_1HostMonitorTest.js
JavaScript
apache-2.0
1,286
//>>built define("dojox/drawing/manager/Undo",["dojo","../util/oo"],function(b,c){return c.declare(function(a){this.keys=a.keys;this.undostack=[];this.redostack=[];b.connect(this.keys,"onKeyDown",this,"onKeyDown")},{onKeyDown:function(a){if(a.cmmd||a.ctrl)90!=a.keyCode||a.shift?(90==a.keyCode&&a.shift||89==a.keyCode)&&...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/drawing/manager/Undo.js
JavaScript
apache-2.0
683
// JScript for automatically calculating: // // * A sequence of configurations. Example: // // ...... +-+... +-++-+ ...... ...+-+ +-++-+ // . .. . -> | | . -> | || | -> . .. . -> . .| | -> | || | // ...... +-+... +-++-+ ...... ...+-+ +-++-+ // // * The associated list of uni...
feklee/realitybuilder.com
scene/calculate.js
JavaScript
apache-2.0
41,420
Ti.include('lib.js'); //var win = Ti.UI.createWindow({ // backgroundColor: QTAGS.Utils.randomHexColor(); //}); var win = Ti.UI.currentWindow; win.backgroundColor = QTAGS.Utils.randomHexColor(); var label = Ti.UI.createLabel({ text: 'MENU.JS', color: '#fff' }); win.add(label); win.open();
chrisbratlien/testClearTop
Resources/menu.js
JavaScript
apache-2.0
295
/* Copyright 2016 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 or agreed to in writ...
GoogleChrome/devtools-samples
whatsnew/m59/async.js
JavaScript
apache-2.0
960
define([ '../Core/BoundingSphere', '../Core/combine', '../Core/defined', '../Core/EasingFunction' ], function( BoundingSphere, combine, defined, EasingFunction) { 'use strict'; /** * @alias KmlTourFlyTo * @constructor ...
hirayama968/xx
Source/DataSources/KmlTourFlyTo.js
JavaScript
apache-2.0
3,689
module.exports = { Handle: (member) => { let Guild = new Server.Server(member.guild.id); Guild.modlog.then((ModLog) => { Guild.channels.then((channels) => { let Message = `${member.user.username} Joined the server.`; if(channels !== null){ if(channels.joinLog !== null && channels.joinLog !== undefi...
Sven65/Sledgehammer
Sledgehammer/Handlers/guildMemberAdd.js
JavaScript
apache-2.0
1,479
/** How to delete items **/ var lib=require('libionosenterprise') lib.setauth('username','password') // <---- Your username and password var dc_id='f355b51d-1c9c-4150-bc55-a616fe3bf437' // <----- Your data center id var srv_id='52c64bc2-5e71-4b28-a8b6-e71d86586fb3' // <---- Your server id var snapshot_id...
profitbricks/profitbricks-sdk-nodejs
examples/deletingitems.js
JavaScript
apache-2.0
619
var gulp = require('gulp'); var gulpPlugins = require('gulp-load-plugins')(); var runSequence = require('run-sequence'); var merge = require('merge'); var gulpTraceur = require('./tools/transpiler/gulp-traceur'); var clean = require('./tools/build/clean'); var transpile = require('./tools/build/transpile'); var html =...
jakemac53/angular
gulpfile.js
JavaScript
apache-2.0
18,245
/* * Copyright (C) 2013 Andrey Chaschev. * * 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 agree...
chaschev/bear
src/main/resources/app/js/bear.js
JavaScript
apache-2.0
38,167
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/math/strided/special/rsqrt/benchmark/benchmark.native.js
JavaScript
apache-2.0
2,875
'use strict'; /** * Requirements * @ignore */ const Documentation = require('./Documentation.js').Documentation; /** * @memberOf model.documentation */ class DocumentationCode extends Documentation { /** * @inheritDoc */ static get className() { return 'model.documentation/Documenta...
entoj/entoj-system
source/model/documentation/DocumentationCode.js
JavaScript
apache-2.0
994
function createNode(){ var root = { "id" : "0", "text" : "PORTFOLIO", "value" : "86", "showcheck" : true, complete : true, "isexpand" : true, "checkstate" : 0, "hasChildren" : true }; var portfolio=[]; //---------------------project info-------------------- var project_info ...
pingitgroup/stockpingitgroup
public/js/analysis/tree/table.js
JavaScript
apache-2.0
21,267
/** * EasyUI for jQuery 1.5.5.5 * * Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(c){ var w=0; $(c).childre...
actframework/actframework
testapps/GHIssues/src/main/resources/asset/plugins/jquery.tabs.js
JavaScript
apache-2.0
18,408
'use strict'; require('dotenv').load(); const mediator = require('../worker/mediator'); mediator.publishEvent('user-create', {to: 'fdashlot@gmail.com'}, (error) => { error && console.log(error); });
fupslot/linkmator
example/push-event.js
JavaScript
apache-2.0
203
function Video(questionIndex){ var self = Ti.UI.createWindow({ backgroundColor:'white', barColor:'#940315' }); /* var webVideo = Ti.UI.createWebView({ url:'http://www.youtube.com/watch?v=3ovGokorQhA', height: Ti.UI.SIZE, width:Ti.UI.SIZE });*/ var caseVideo; if(questionIndex ===0){ caseVide...
KillerCases/killercases_android
Resources/ui/common/Video.js
JavaScript
apache-2.0
810
define( [ 'feature!BaseApplicationInstaller' ,'installers/DebuggerInstaller' ,'installers/SomethingInstaller' ] ,function( BaseType ,DebuggerInstaller ,SomethingInstaller ){ function Constructor() { BaseType.call(this); } ...
camposdelima/Tyrrell
scripts/installers/ApplicationInstaller.js
JavaScript
apache-2.0
876
/* Copyright 2016 Daniel Kottow 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 w...
dkottow/ngen-mapu
app/SchemaChange.js
JavaScript
apache-2.0
13,260
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-linebreak-style/test/fixtures/invalid.js
JavaScript
apache-2.0
4,920
/** * @license * Copyright 2014 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview JavaScript for correctly linking the title link. * @author fraser@google.com (Neil Fraser) */ 'use strict'; (function() { // Change the 'Blockly Games' link when served as raw HTML files. // Append the l...
google/blockly-games
appengine/common/back.js
JavaScript
apache-2.0
490
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _react = requi...
EaglesoftZJ/iGem_Web
build/components/modals/CreateGroup.react.js
JavaScript
apache-2.0
6,392
/* * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in c...
Jasig/SSP-Platform
uportal-war/src/main/webapp/media/skins/universality/common/javascript/uportal/up-fragment-permissions-manager.js
JavaScript
apache-2.0
11,600
/** * * The Bipio API Server * * Copyright (c) 2017 InterDigital, 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/LICEN...
aik-bipio/bipio-backend
src/models/bip_share.js
JavaScript
apache-2.0
5,908
require('./modules/config'); require('./modules/controllers'); require('./modules/services'); let initialized = false; function constructQuery(path, query, attribute){ var value = path.split("/").slice(-1).pop(); query.equalTo(attribute, value); return query } const app = angular.module('Kinvey', [ 'ionic', ...
JNazare/rol-kinvey-expts
src/app.js
JavaScript
apache-2.0
3,463
/* * jsPlumb * * Title:jsPlumb 1.7.2 * * Provides a way to visually connect elements on an HTML page, using SVG or VML. * * This file contains the jsPlumb connector editors. It is experimental. * * Copyright (c) 2010 - 2014 Simon Porritt (simon@jsplumbtoolkit.com) * * http://jsplumbtoolkit.com * http...
flexiblepower/powermatcher
net.powermatcher.visualisation/res/js/src/connector-editors.js
JavaScript
apache-2.0
18,721
/*! * ${copyright} */ sap.ui.define([ 'sap/ui/base/EventProvider', './Target', './async/Targets', './sync/Targets', "sap/base/util/UriParameters", "sap/base/Log", "sap/base/util/deepExtend" ], function(EventProvider, Target, asyncTargets, syncTargets, UriParameters, Log, deepExtend) { "use strict"; /** ...
SAP/openui5
src/sap.ui.core/src/sap/ui/core/routing/Targets.js
JavaScript
apache-2.0
37,897
/* Copyright 2016 Covistra 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 or agreed to in writ...
Covistra/cmbf2-base
src/lib/log.js
JavaScript
apache-2.0
1,828
/* Supersized - Fullscreen Slideshow jQuery Plugin Version : 3.2.7 Site : www.buildinternet.com/project/supersized Author : Sam Dunn Company : One Mighty Roar (www.onemightyroar.com) License : MIT License / GPL License */ (function(){ var $ = window.Zepto || window.jQuery || window.$; /* Place Supersiz...
zikuai/cloudTeam_PC
static/js/supersized.3.2.7.js
JavaScript
apache-2.0
36,344
'use strict'; var express = require('express'); var router = express.Router(); var Keys = require('../services/KeysService'); var Urls = require('../services/UrlsService'); var PocketOAuth = require('../services/PocketOAuthService'); var logger = require('../logger').logger; router.get('/api/requestToken', function (...
johnywith1n/pocket-dashboard
routes/PocketOAuthRouter.js
JavaScript
apache-2.0
1,166
var EventTarget = require('./api/event_target'), Event = require('./api/event'); var API = { CONNECTING: 0, OPEN: 1, CLOSING: 2, CLOSED: 3, _open: function () { if (this._parser && !this._parser.isOpen()) { return; } this.readyState = API.OPEN; var buffer = this._sendBuffer || [], ...
DeinDesign/css
node_modules/grunt-contrib-watch/node_modules/tiny-lr/node_modules/faye-websocket/lib/faye/websocket/api.js
JavaScript
apache-2.0
2,449
function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } function log(msg) { setTimeout(function() { throw new Error(msg); }, 0)...
arborworkflows/ArborWebApps
phyloTraitMap2/phylomap.js
JavaScript
apache-2.0
24,713
(function(){ 'use strict'; angular.module('App').controller( 'LeftMenuController', ['$scope', '$log', '$http', '$window', '$location', '$rootScope', 'leftMenuService', 'indexationService', function ($scope, $log, $http, $window, $location, ...
joakim-ribier/reactive-elasticsearch-play
app/assets/javascripts/module/menu/leftMenuController.js
JavaScript
apache-2.0
4,198
import fetch from 'node-fetch'; export class HttpError extends Error { constructor(message, response, request) { super();ß this.message = message; this.response = response; this.request = request; this.name = 'Http Error'; } } const encode = params => { return Object.keys(params).map(key => ...
xiabin1235910/Blog-Back-Node
src/middleware/blog-engine.js
JavaScript
apache-2.0
1,413
/* Copyright (c) 2004-2016, The JS Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/dnd/Avatar","../_base/declare ../_base/window ../dom ../dom-attr ../dom-class ../dom-construct ../hccss...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojo/dnd/Avatar.js
JavaScript
apache-2.0
1,935
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
stdlib-js/www
public/docs/api/latest/@stdlib/string/starts-with/benchmark_bundle.js
JavaScript
apache-2.0
751,056
var bm = {}; ig.module( 'plugins.boxmeister.boxmeister' ) .requires( 'plugins.boxmeister.polygon', 'weltmeister.weltmeister', 'weltmeister.edit-map' ) .defines(function(){ "use strict"; wm.config.binds["K"] = "divideplus"; wm.config.binds["J"] = "divideminus"; wm.config.binds["ESC"] = "escape"; wm.Weltmeis...
tobiasstrebitzer/impact-illuminated
lib/plugins/boxmeister/boxmeister.js
JavaScript
apache-2.0
13,142
self.addEventListener('canmakepayment', (evt) => { evt.respondWith(true); }); self.addEventListener('paymentrequest', (evt) => { evt.respondWith({ methodName: 'https://emerald-eon.appspot.com/alicepay', details: { token: '1234567890', }, }); });
rsolomakhin/rsolomakhin.github.io
pr/apps/alice/app.js
JavaScript
apache-2.0
293
var PageChain = function(){ this.currentPointer = -1; this.chain = []; }; PageChain.prototype.add = function (page) { if(this.chain.length >= 1){ // the first page is where simulation starts for (var i = 0; i < this.chain.length; i++) { if(_.isEqual(this.chain[i], page)){ this.currentPointer = i; retur...
sci-sim/sci-sim
scisim/static/js/Utils/PageTracker.js
JavaScript
apache-2.0
1,089
/* * Required node packages */ var express = require('express'), request = require('request'), cheerio = require('cheerio'), iconv = require('iconv-lite'), async = require('async'), string_decoder = require('string_decoder'); var Newspaper = require('./newspaper').Newspaper, Budget = require...
BudgetWiser/budgeTag
budgeTag/apps/clib/parser.js
JavaScript
apache-2.0
3,276
'use strict'; var dgram = require('dgram') , fs = require('fs') , ssdpAddress = '239.255.255.250' , ssdpPort = 1900 , sourceIface = '0.0.0.0' // or ip (i.e. '192.168.1.101', '10.0.1.2') , sourcePort = 0 // chosen at random , searchTarget = 'urn:schema...
Daplie/walnut
snippets/test-upnp-igd-search.js
JavaScript
apache-2.0
1,232
$axure.loadCurrentPage({ "url":"b端企业.html", "generationDate":new Date(1437447299355.19), "isCanvasEnabled":false, "variables":["OnLoadVariable", "temp"], "page":{ "packageId":"73f6dbb29a464d439cb032187a753543", "type":"Axure:Page", "name":"B端企业", "notes":{ }, "style":{ "baseStyle":"...
yicold/axure-case
jzb/嘉禾良木-兼职邦-后台V1.0/files/b端企业/data.js
JavaScript
apache-2.0
276,205
(function() { console.log('socket.io starting...'); var _socket = io(), total = 0, geo = 0; console.log('socket.io connecting...'); _socket.on('connect', function () { console.log('socket.io connect success...'); _socket.emit('getDataBroadcasting', '', function (data) { ...
gmqz/scrapping
public/js/io.js
JavaScript
apache-2.0
464
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R...
chaithu563/myserviceneed
app/app.module.js
JavaScript
apache-2.0
2,883
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { submit } from 'redux-form'; import ControlledModal from '../../../common/modals/controlledModal'; import { updateCfei } from '../../../../reducers/newCfei'; import CompleteCfeiForm from './compl...
unicef/un-partner-portal
frontend/src/components/eois/modals/completeCfei/completeCfeiModal.js
JavaScript
apache-2.0
2,037
import barChart from 'britecharts/dist/umd/bar.min'; import {select} from 'd3-selection'; import {validateConfiguration, validateContainer, validateData} from '../helpers/validation'; import {applyConfiguration} from '../helpers/configuration'; import { bar as barLoadingState } from 'britecharts/dist/umd/loading.min';...
jchen-eb/britecharts-react
src/charts/bar/barChart.js
JavaScript
apache-2.0
1,195
module.exports = function(md, args) { var defaultRender = md.renderer.rules.link_open || function(tokens, idx, options, env, self) { return self.renderToken(tokens, idx, options); }; md.renderer.rules.link_open = function(tokens, idx, options, env, self) { var baseUrl = (args && args.baseUr...
mediocre/mehdown
lib/plugins/linkRelTarget.js
JavaScript
apache-2.0
1,563
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Collapse } from 'antd' const Panel = Collapse.Panel import { makeManifestByID } from '../../../../../selectors' import { Loading } from '../../../../../components' /* ENDORSEMENTS PANEL: Renders a ...
RcKeller/STF-Refresh
app/views/STF/Voting/Panels/Endorsements/Endorsements.js
JavaScript
apache-2.0
1,760
import Ember from 'ember'; import C from 'ui/utils/constants'; export default Ember.Route.extend({ model: function() { var me = this.get(`session.${C.SESSION.ACCOUNT_ID}`); return Ember.RSVP.hash({ account: this.get('userStore').find('apikey', null, {filter: {accountId: me}, url: 'apikeys', forceReload...
nrvale0/ui
app/authenticated/project/apikeys/route.js
JavaScript
apache-2.0
887
module.exports = { commands: { Library: { cmd: { short: "-l", long: "--library" }, prompt: { type: "input", message: "Please enter the library you would like to install" }, action:'end' } } }
Imagination-International-Inc/studiiioWeb
.gulp/Config/Tasks/Bower.js
JavaScript
apache-2.0
266
var util = require('util'); var EventEmitter = require('events').EventEmitter; var MessageCodec = require('./MessageCodec'); exports = module.exports = MessageConnection; function MessageConnection(socket, options) { EventEmitter.call(this); this._socket = socket; this._messageCodec = new MessageCodec(options...
jcoreio/jcore-api
lib/unixSockets/MessageConnection.js
JavaScript
apache-2.0
1,664
module.exports = [{"isId":true,"priority":100000.003,"key":"rootWindow","style":{navTintColor:"white",backgroundColor:"#ffffff",barColor:"#2C82C9",tabBarHidden:true,titleAttributes:{color:"white",font:{fontFamily:"SourceSansPro-Bold",fontSize:19,},},}},{"isId":true,"priority":100000.0031,"key":"rightNavButton","style":...
elodimuore/eventhub
Resources/iphone/alloy/styles/eventComments.js
JavaScript
apache-2.0
501
var altTime:float; private var start; var on:boolean; private var halo; function Start(){ start = Time.realtimeSinceStartup ; halo = GetComponent("Halo"); } function Update () { if (Time.realtimeSinceStartup - start > altTime){ start = Time.realtimeSinceStartup ; on = !on; } halo.enabled=on; }
Roseluck/SpaceBulking
SpaceHulkOut/Assets/_Target & HUD Effect V1/_DemoStuff/_Spaceships/Loupiotte.js
JavaScript
apache-2.0
307
export default { loading: 'Loading...', loading_text_init_screens: 'Initializing screens', loading_text_conn_to_server: 'Connecting to server...', loading_text_still_reaching: 'Still reaching out to server...', dots: '...', err_enter_valid_workspace: 'Enter a valid workspace name', err_workspace_name_empt...
elarasu/roverz-chat
src/i18n/locales/en.js
JavaScript
apache-2.0
2,764
app.config(($stateProvider, $urlRouterProvider) => { "ngInject"; $stateProvider .state('home.pub-report-dialog', { url: '/pub-report-dialog', views: { 'main@home': { component: 'pubReportDialog' } }, onEnter:function(){ console.log('enter'); }, onExit:function(){ console.log(...
YestoryFornever/es6-webpack-angular1
client/app/components/home/subs/bond-dstr-main/subs/pub-report-dialog/pub-report-dialog.js
JavaScript
apache-2.0
400
'use strict'; /** * @ngdoc function * @name clientApp.controller:SignupCtrl * @description * # SignupCtrl * Controller of the clientApp */ angular.module('clientApp') .controller('SignupCtrl', function ($scope, $http, restApi, tracktv) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS'...
luisnomad/showTracker
client/app/scripts/controllers/signup.js
JavaScript
apache-2.0
806
// main.js var React = require('react'); var ReactDOM = require('react-dom'); var LinkedStateMixin = require('react-addons-linked-state-mixin'); var moment = require('moment'); var Location = React.createClass({ onDrag: function(e){ e.key = this.props.i e.min = this.props.o - (this.props.o * this.props.v) e.ma...
nwpointer/proj3-ajax
static/main.js
JavaScript
artistic-2.0
4,417
module.exports = function(cb) { var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent" var eventer = window[eventMethod] var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message" eventer(messageEvent, function (e) { if (e.data && e.data === 'process-tick') return ...
vladikoff/blockplot
js/eventer.js
JavaScript
bsd-2-clause
442
/** * Module dependencies. */ var express = require('express') , routes = require('./routes') , user = require('./routes/user') , http = require('http') , path = require('path') , expressBundles = require('./../..') , stylus = require('stylus'); var app = express(); app.configure(function(){ app.set...
hjr265/express-bundles
examples/basic/app.js
JavaScript
bsd-2-clause
1,421
/** @module logger */ const raven = require('raven'); const winston = require('winston'); const Config = require('../config/Config.js'); const logger = new winston.Logger(); if (/dev\w*/i.test(Config.environment)) { logger.add(winston.transports.Console, { timestamp: true, stringify: true, colorize: tr...
goodbotai/borq
lib/Logger.js
JavaScript
bsd-2-clause
2,759
'use strict'; var lib = { deps:{ should:require('should') }, odin:{ Exception:require('odin').Exception, http:{ ExceptionHttp:require('../lib/ExceptionHttp') } } }; describe('ExceptionHttp', function() { describe('#constructor()', function() { it('should be correctly default initialized', function()...
bhamon/node-odin-http
test/ExceptionHttp.js
JavaScript
bsd-2-clause
1,434
import Route from '@ember/routing/route'; import RSVP from 'rsvp'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Route.extend(AuthenticatedRouteMixin, { model({ entry_id }) { let { group_id } = this.paramsFor('dashboard.groups.group'); return RSVP.ha...
barberscore/barberscore-web
app/routes/dashboard/groups/group/entries/entry.js
JavaScript
bsd-2-clause
451
describe("Math", function() { it('trunc', function() { expect(Math.trunc(0.0)).toBe(0.0); expect(Math.trunc(-0.0)).toBe(-0.0); expect(Math.trunc(Infinity)).toBe( Infinity); expect(Math.trunc(-Infinity)).toBe( -Infinity); expect(Math.trunc(0.1)).toBe( 0); expect(Math.trunc(-0.1)).toBe( 0); ...
Constellation/iv
iv/lv5/test/suite/spec/math-trunc.js
JavaScript
bsd-2-clause
718
'use strict'; describe('Controller: PointchartsCtrl', function () { // load the controller's module beforeEach(module('ausEnvApp')); var PointchartsCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); Point...
ANU-WALD/aus-env
test/spec/controllers/pointcharts.js
JavaScript
bsd-2-clause
446
var compilerSupport=require('../../src/compilerSupport');var Vow = require("vow"); var main = function () { var __builder = new compilerSupport.TaskBuilder(), __state = 0, __continue = __builder.CONT, __ex; var $1, $2, $3; var i, j; return __builder.run(function () { switch (__state) { ...
omgtehlion/asjs
tests/03-iteration/06-continue.exp.js
JavaScript
bsd-2-clause
1,797
module.exports = function(grunt) { grunt.initConfig({ less: { development: { options: { paths: ['public/less/'] }, files: { 'public/css/style.css': 'public/less/style.less' } } ...
lncwwn/DaZheYiHao
Gruntfile.js
JavaScript
bsd-2-clause
684
var AmpersandView = require("ampersand-view"); var Template = require("./templates/index.hbs"); var StatsView = require("./stats_view"); var FeatureView = require("./feature_view"); var StatsModel = require("../models/stats"); var PackageModel = require("../models/package") var FeatureCollection = require("../models/fe...
NikhilKalige/atom-website
frontend/index/index_container.js
JavaScript
bsd-2-clause
1,128