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'; module.exports = function(sequelize, DataTypes) { var GuardianMetaUpdateCheckIn = sequelize.define('GuardianMetaUpdateCheckIn', { }, { classMethods: { associate: function(models) { GuardianMetaUpdateCheckIn.belongsTo(models.Guardian, {as: 'Guardian'}); GuardianMetaUpdateChec...
tanapop/rfcx-api
models/guardian-meta/guardian-meta-updatecheckin.js
JavaScript
apache-2.0
487
/** * Created by mdylag on 17/03/15. */ function callCallback(callback) { console.log("Function callCallback"); if (callback && typeof callback === "function") { callback(); } } function myCallBack() { console.log("Function myCallBack"); } writeCode(myCallBack);
ms-courses/JavaScriptAdvance
functions/callback.js
JavaScript
apache-2.0
292
const root = '../../'; jest.useFakeTimers(); describe('call-function plugin', function(){ beforeEach(function(){ require(root + 'jspsych.js'); require(root + 'plugins/jspsych-call-function.js'); }); test('loads correctly', function(){ expect(typeof window.jsPsych.plugins['call-function']).not.toBe('undefin...
JATOS/JATOS_examples
study_assets_root/clock_drawing/jsPsych/tests/plugins/plugin-call-function.test.js
JavaScript
apache-2.0
612
/** * 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 or agreed to...
googlecreativelab/inside-music
src/interface/ExitButton.js
JavaScript
apache-2.0
1,360
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) 'use strict'; angular.module('${artifactId}App').factory('Applications', function (Restangular) { return Restangular.service('applications'); });
meruvian/yama-archetypes
starter/src/main/resources/archetype-resources/webapp/app/backend/admin/application/application.service.js
JavaScript
apache-2.0
234
/** * Copyright 2021 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...
nexxtv/amphtml
extensions/amp-selector/1.0/base-element.js
JavaScript
apache-2.0
7,802
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2021 Mozilla Foundation * * 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...
mozilla/pdfjs-dist
lib/core/xfa/factory.js
JavaScript
apache-2.0
4,930
//// [functionOverloads2.js] function foo(bar) { return bar; } ; var x = foo(true);
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/functionOverloads2.js
JavaScript
apache-2.0
94
/** * 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...
DistroScale/amphtml
extensions/amp-analytics/0.1/visibility-impl.js
JavaScript
apache-2.0
25,331
import { toLength, toBoolean } from "../utils/native"; import { UNDEFINED } from "../types/primitive-type"; import { executeCallback } from "./array-helpers"; import { assertIsNotNullOrUndefined, assertIsFunction } from "../utils/contracts"; export default function ($target, env, factory) { $target.define("findIndex...
jrsearles/SandBoxr
src/es6/array.find-index.js
JavaScript
apache-2.0
986
function getTableRpj(){ return 'tb_rpj'; } function dbLoad(){ var db = Ti.Database.open(Ti.App.Properties.getString(DATABASE_FILE)); return db; } function createRpj() { db = dbLoad(); db.execute('CREATE TABLE IF NOT EXISTS ' + getTableRpj() + '( id INTEGER PRIMARY KEY, rpj_id INTEGER, rpj_razao TEX...
lukas-conka/mobile-app
app/assets/database/rpj.js
JavaScript
apache-2.0
1,662
var ANIMATION_SPEED = 1000, snap = Snap(), els = {}, container, els_map = {}; Snap.load('face.svg', add); function add(fragment) { snap.append(fragment); container = snap.select('g'); container.drag(); setElements(); animateAll(); } function setElements() { els = { lefteye: snap.select('#moon #left-eye'), ...
christabor/etude
11-07-2013/animatey.js
JavaScript
apache-2.0
1,447
//This module creates a window to show all the pictures in a gallery Ti.include('helper.js'); var Gallery = (function(){ function Gallery(a_navigation_group){ this.gallery_path = Ti.Filesystem.applicationDataDirectory + "/Gallery/"; this.nav_group = a_navigation_group; this.colons_num = 0; this.rows_...
AlessandroSangiuliano/myDiary
Resources/gallery.js
JavaScript
apache-2.0
3,581
L.Draw.Marker = L.Draw.Feature.extend({ statics: { TYPE: 'marker' }, options: { icon: new L.Icon.Default(), repeatMode: false, zIndexOffset: 2000, // This should be > than the highest z-index any markers buttonIconClass: 'leaflet-mouse-marker', type: 'marker'...
IITDU-Spartans/IITDU.SIUSC
FarmerBazaarClient/bower_components/Leaflet.draw-master/src/draw/handler/Draw.Marker.js
JavaScript
apache-2.0
3,241
// 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-service-management
samples/generated/v1/service_manager.create_service.js
JavaScript
apache-2.0
1,829
/** * Copyright 2015-2019 OpenCB * * 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...
opencb/jsorolla
src/webcomponents/commons/filters/sample-genotype-filter.js
JavaScript
apache-2.0
3,559
var templates = function () { 'use strict'; var handlebars = window.handlebars || window.Handlebars, Handlebars = window.handlebars || window.Handlebars, cache = {}; function get(name) { var promise = new Promise(function (resolve, reject) { //if (cache[name]) { ...
deyantodorov/Zeus-WebServicesCould-TeamWork
Source/ChatSystem/Server/ChatSystem.Server/Scripts/app/templates.js
JavaScript
apache-2.0
804
/** * @license Apache-2.0 * * Copyright (c) 2020 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/iter/special/abs2/benchmark/benchmark.js
JavaScript
apache-2.0
1,768
/** * Copyright 2021 The Google Earth Engine Community 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
google/earthengine-community
samples/javascript/apidocs/ee-geometry-multipolygon-length.js
JavaScript
apache-2.0
1,415
var Backbone = require('backbone') , _ = require('underscore') , Garam = require('../../Garam') , Cluster = require('cluster') , Base = require('../../Base') , assert = require('assert') , fs = require('fs') , async = require('async'); var ModelFactory = function(namespace,config) { a...
ssdosso/garam
server/lib/database/model/ModelFactory.js
JavaScript
apache-2.0
2,328
// Author: Charles var ResultMessage = require('./ResultMessage'); var Ladder = require('./Ladder'); var RandomUtil = require('./RandomUtil'); var util = require('util'); var ladderTime = require('../model/LadderTime.json'); var schedule = require('node-schedule'); var ladderManager = null; function LadderManager() ...
Charleslee522/8ctci
server/MasterOfTime/controller/LadderRunner.js
JavaScript
apache-2.0
2,122
var q = {a:5}; q.a++; dumpValue(q.a); assert(q.a == 6); var x = {a:6} x.a ^= 42; assert(x.a == 44);
keil/TbDA
test/micro/test84.js
JavaScript
apache-2.0
109
/** * @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/math/base/special/log10/lib/index.js
JavaScript
apache-2.0
1,158
var newick_tree = function () { var tree = biojs.vis.tree.tree(); var theme = function(ta,div) { var newick = '((A,B),C);'; ta.data(biojs.io.newick.newick(newick)); ta.width = 600; ta.scale = false; //tree.layout (tree.layout.vertical()); ta(div); } return theme; }
rajido/biojs2
biojs-vis-tree/newick-tree.js
JavaScript
apache-2.0
292
var deepExtend = require('deep-extend'); var flat = require('flat'); var fs = require('fs'); var path = require('path'); var propsParser = require('properties-parser'); var defaultConfig = require(path.join(__dirname,'config.json')); var homePath = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME'...
wakashige/stormpath-sdk-node
lib/Config.js
JavaScript
apache-2.0
2,308
var request = require('supertest'); var assert = require('chai').assert; describe('testing user authentication', function() { var server; beforeEach(function(done) { delete require.cache[require.resolve('../src/server')]; server = require('../src/server'); done(); }); afterEach(function(done) { server.clo...
jcaple/giphy_search
test/test-authenticate.js
JavaScript
apache-2.0
762
/* * Copyright 2020 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 ...
GoogleChromeLabs/paymentrequest-show
src/store/reducers.js
JavaScript
apache-2.0
11,202
const pkg = require("/package.json").peabodyos; const util = require("util"); if(pkg.installer) { console.log("[PeabodyOS] Please Wait while the installer starts..."); require("./installer"); } else { console.log("[PeabodyOS] Please Wait while the server is booting..."); //process.termout.write(util.fo...
SpaceboyRoss01/PeabodyOS
src/system/sys/distro/server/index.js
JavaScript
apache-2.0
357
import App from "../app"; export function launchProbe({id}) { const system = App.systems.find(s => s.id === id); if (!system) return {}; return {simulatorId: system.simulatorId}; } export function probeProcessedData({id, simulatorId}) { if (simulatorId) return {simulatorId}; const system = App.systems.find(s...
Thorium-Sim/thorium
server/triggers/probes.js
JavaScript
apache-2.0
410
$(function() { $("#remarkButton").click(function() { var remark = $("#remark").val().trim(); if (remark == "") { return false; } var tokenId = $("#tokenId").val(); var patientId = $("#patientId").val(); var request = { text: remark }; $.ajax("/api/secure/remarks/new", {...
nakaken0629/iped
server/src/main/webapp/web/js/meeting.js
JavaScript
apache-2.0
748
//////////// load required libraries var url = require('url'), http = require('http'), path = require('path'), fs = require('fs'), WAMS = require(path.resolve('../../server')); // When using this example as base, make sure that this points to the correct WAMS server library path. ////////////////////////...
scottbateman/wams.js
examples/HelloWorld/server.js
JavaScript
apache-2.0
2,213
/** * @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/stats/base/dists/hypergeometric/pmf/benchmark/benchmark.js
JavaScript
apache-2.0
1,914
// Copyright 2019 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...
GoogleCloudPlatform/cloud-for-marketing
marketing-analytics/activation/data-tasks-coordinator/src/sentinel.js
JavaScript
apache-2.0
28,561
'use strict'; 'use console'; /* eslint-disable no-console */ /* eslint-disable no-await-in-loop */ const fs = require('fs-extra'); const prompt = require('syncprompt'); const _ = require('lodash'); const reply = require('../../lib/reply')(); const display = require('../../lib/display')(); module.exports = (cliConfig...
jsnoble/teraslice
packages/teraslice-cli/cmds/jobs/lib/index.js
JavaScript
apache-2.0
19,757
/** * Copyright 2018 Red Hat 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...
knowncitizen/tripleo-ui
src/js/constants/DeploymentConstants.js
JavaScript
apache-2.0
3,813
var classorg_1_1onosproject_1_1provider_1_1of_1_1packet_1_1impl_1_1OpenFlowPacketProviderTest = [ [ "emit", "classorg_1_1onosproject_1_1provider_1_1of_1_1packet_1_1impl_1_1OpenFlowPacketProviderTest.html#aa94466b84da02fb4a176033b6158f825", null ], [ "handlePacket", "classorg_1_1onosproject_1_1provider_1_1of_1_1...
onosfw/apis
onos/apis/classorg_1_1onosproject_1_1provider_1_1of_1_1packet_1_1impl_1_1OpenFlowPacketProviderTest.js
JavaScript
apache-2.0
891
import * as actionTypes from '../comm/actionTypes'; import {service} from '../comm/service'; function dayData(code,line){ let values=line.split('~'); let v={ code:code, name:values[1], close:parseFloat(values[3]), last:parseFloat(values[4]), open:parseFloat(values[5]), volume:parseInt(values[6])...
jackz3/yunguba-onsenui
js/actions/stock.js
JavaScript
apache-2.0
1,655
var a = require('A/a'); a.A();
wangyanxing/TypeScript
tests/baselines/reference/projectOutput/relativePaths/node/app.js
JavaScript
apache-2.0
33
(function () { 'use strict'; /** * Provides AddMe dialog to add/remove a user to a contact collection. * * @requires * emailMeDialog.html and ui.bootstrap module */ var controllerId1 = 'emailMeController'; var controllerId2 = 'emailMeModalController'; angular.module('app...
FanrayMedia/Chef.me
Projects/Chef.Web/wwwroot/app/profile/emailMe/emailMeDialog.js
JavaScript
apache-2.0
3,593
/** * @fileoverview * (This file was autogenerated by opprotoc) * * The application is created in two steps: * * Step 1: All objects that do not depend on the services available from the * debuggee. The only exception is the scope service, as it is needed * to query the debuggee about what serv...
operasoftware/dragonfly
src/build-application/build_application.js
JavaScript
apache-2.0
12,434
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
rovats/waltz
waltz-ng/client/data-types/components/usage-count-tree/data-type-usage-count-tree.js
JavaScript
apache-2.0
4,378
/** * Copyright 2013 Facebook, 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 ...
jordwalke/npm-react-core
modules/ReactDOMIDOperations.js
JavaScript
apache-2.0
5,510
// web/js/app/views/disabled-toggle-row.js /* global Ember, App */ 'use strict'; App.DisabledToggleRowView = Ember.View.extend({ templateName: 'disabledtogglerow', tagName: 'tr', classNames: ['no-hover'] });
gophronesis/penny-sae
old/web/js/app/views/disabled-toggle-row.js
JavaScript
apache-2.0
216
// defaultable require() wrapper tests // // Copyright 2011 Jason Smith, Jarrett Cruger and contributors // // 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.a...
nodejitsu/defaultable
t/require.js
JavaScript
apache-2.0
4,847
$(document).ready(function() { $('#fieldrent_maintain').DataTable( { "aLengthMenu" : [ 2, 4, 6, 8, 10 ], //动态指定分页后每页显示的记录数。 "lengthChange" : true, //是否启用改变每页显示多少条数据的控件 "bSort" : false, "iDisplayLength" : 8, //默认每页显示多少条记录 "dom" : 'ftipr<"bottom"l>', "ajax" : { "url" : "landRent...
pange123/PB_Management
前台界面/pbweb/js/myNeed/rentMaintain.js
JavaScript
apache-2.0
3,837
'use strict'; // mocha defines to avoid JSHint breakage /* global describe, it, before, beforeEach, after, afterEach */ var assert = require('../utils/assert.js'); var server = require('../utils/server.js'); var preq = require('preq'); var P = require('bluebird'); var simple_service = require('../../mods/simple_ser...
physikerwelt/restbase
test/features/simple_service.js
JavaScript
apache-2.0
6,685
/*global QUnit */ sap.ui.define([ "sap/m/Button", "sap/m/CheckBox", "sap/m/OverflowToolbar", "sap/m/OverflowToolbarButton", "sap/m/Panel", "sap/ui/dt/DesignTime", "sap/ui/dt/OverlayRegistry", "sap/ui/fl/write/api/ChangesWriteAPI", "sap/ui/rta/command/CommandFactory", "sap/ui/rta/plugin/Combine", "sap/ui/rta...
SAP/openui5
src/sap.ui.rta/test/sap/ui/rta/qunit/plugin/Combine.qunit.js
JavaScript
apache-2.0
14,533
'use strict'; const _ = require('lodash'); /** A location. @param options.address string The top address line of the delivery pickup options. @param options.address_2 string The second address line of the delivery pickup options such as the apartment number. This field is optional. @param options.city string...
mjk/uber-rush
lib/Location.js
JavaScript
apache-2.0
871
/** * @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/stats/base/dists/logistic/cdf/lib/index.js
JavaScript
apache-2.0
1,237
(function () { 'use strict'; angular .module('wordsearchApp') .config(pagerConfig); pagerConfig.$inject = ['uibPagerConfig', 'paginationConstants']; function pagerConfig(uibPagerConfig, paginationConstants) { uibPagerConfig.itemsPerPage = paginationConstants.itemsPerPage; ...
hillwater/wordsearch
src/main/webapp/app/blocks/config/uib-pager.config.js
JavaScript
apache-2.0
412
/** * Copyright 2015 Brendan Murray * * 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 ...
bpmurray/node-red-contrib-dht-sensor
dht22-node/dht22-node.js
JavaScript
apache-2.0
3,759
'use strict'; /** * Removes server error when user updates input */ angular.module('fluxApp') .directive('mongooseError', function () { return { restrict: 'A', require: 'ngModel', link: function(scope, element, attrs, ngModel) { element.on('keydown', function() { return ngMo...
mysmartcity/flux
client/components/mongoose-error/mongoose-error.directive.js
JavaScript
apache-2.0
388
define(['jquery'], function($){ var internals = {}; internals.createTooltip = function(){ internals.tooltip = internals.settings.el.find('.tooltip'); internals.onLoad(); }; internals.updateTooltip = function(e){ if (e.countyDisplay){ internals.tooltip.html(e.statist...
ssylvia/living-wage-map
src/javascript/ui/Tooltip.js
JavaScript
apache-2.0
2,186
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- /// <reference path="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.W...
manimaranm7/azure-mobile-services
sdk/Javascript/test/winJS/tests/winJsOnly/push.js
JavaScript
apache-2.0
17,764
/* * Copyright 2016 Maroš Šeleng * * 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 ...
SymphoniaIO/Symphonia.io-Mobile
www/js/service/SaveAndSendService.js
JavaScript
apache-2.0
6,208
export function foo() { return 'hello world'; }
ampproject/rollup-plugin-closure-compiler
test/hashbang/fixtures/hashbang-banner.js
JavaScript
apache-2.0
49
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
lostpebble/pebblebed
dist/operations/DatastoreFlush.js
JavaScript
apache-2.0
3,302
describe('sandbox library - xml2Json', function () { this.timeout(1000 * 60); var Sandbox = require('../../../'), context; beforeEach(function (done) { Sandbox.createContext({}, function (err, ctx) { context = ctx; done(err); }); }); afterEach(functi...
postmanlabs/postman-sandbox
test/unit/sandbox-libraries/xml2Json.test.js
JavaScript
apache-2.0
1,119
var querystring = require('querystring'); var http = require('http'); var config = require("../conf/conf.js"); var static_cookie = ""; var callNsApi = function(opt, post,cb) { if (!opt.headers) opt.headers = {}; if (static_cookie && opt) { cookie = (static_cookie + "").split(";").shift(); opt.headers.Cooki...
Iragne/NSAPIUnitTest
libs/http.js
JavaScript
apache-2.0
1,754
({ browsers: ['GOOGLECHROME', "IE11"], selector: { literal: '.m-literal span', expression: '.m-expr span', changeValuesBtn: '.change-values' }, testFalsy: { test: [ function(cmp) { var expected = 'false'; var element = cmp ...
forcedotcom/aura
aura-modules/src/test/components/moduleTest/interopAttrTest/interopAttrTestTest.js
JavaScript
apache-2.0
13,703
define(['backbone', 'backbone.paginator'], function(Backbone, PageableCollection) { var LogLine = Backbone.Model.extend({ idAttribute: 'LINE', }) return PageableCollection.extend({ model: LogLine, url: function() { return '/status/log/'+this.bl }, mode: 'infinite', ...
DiamondLightSource/SynchWeb
client/src/js/modules/status/collections/gda.js
JavaScript
apache-2.0
1,142
function manualInput(){ let manualCheckBox = document.getElementById("checkBoxManual").checked; let manualID = document.getElementById("manual"); if(manualCheckBox === true){ manualID.style.display = "block"; }else{ manualID.style.display = "none"; } } function printArray(arrayString){ let length ...
jliang27/jliang27.github.io
projects/pr3/scripts/algorithm.js
JavaScript
apache-2.0
1,688
define("clickableguide/bootstrap-3", ["jquery-1", "istats-1", "clickableguide/pubsub"], function(e, s) { var t = function() { if (/iP(hone|od|ad)/.test(navigator.platform)) { var e = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/); return [parseInt(e[1], 10), parseInt(e[2], 10),...
BBCVisualJournalism/newsspec_11531
russell_sq/ns_clickableguide_all-russell_sq.js
JavaScript
apache-2.0
20,724
/** * Module that controls the Dataverse node settings. Includes Knockout view-model * for syncing data. */ var ko = require('knockout'); var bootbox = require('bootbox'); require('knockout.punches'); var Raven = require('raven-js'); var osfHelpers = require('js/osfHelpers'); ko.punches.enableAll(); function Vie...
himanshuo/osf.io
website/addons/dataverse/static/dataverseNodeConfig.js
JavaScript
apache-2.0
14,334
module.exports = [{"isApi":true,"priority":1000.0048,"key":"Label","style":{width:Ti.UI.SIZE,height:Ti.UI.SIZE,textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER,font:{color:"#5C5E61",fontWeight:"normal",fontSize:"48",},}},{"isApi":true,"priority":1000.0049,"key":"TableViewRow","style":{width:Ti.UI.SIZE,height:"36",color:"#5C5E61",...
phakhruddin/allowance
Resources/iphone/alloy/styles/settings.js
JavaScript
apache-2.0
976
// Karma configuration // Generated on Sat Sep 19 2015 21:44:51 GMT+0700 (SE Asia Standard Time) module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: './', // frameworks to use // available frameworks: https://npmjs...
phucpnt/ng-timemachine
karma.conf.js
JavaScript
apache-2.0
1,881
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { function back() { "prepaid" == Alloy.Globals.userPlan ? DRAWER.navigation("prepaidStatement", 1) : DRAWER.navigation("postpaidStateme...
hardikamal/xox
Resources/iphone/alloy/controllers/iddVoice.js
JavaScript
apache-2.0
16,804
'use strict'; const express = require('express'); const bodyParser = require('body-parser'); const ksuid = require('ksuid'); const cloneDeep = require('clone-deep'); const { OADAError } = require('oada-error'); const { default: config } = require('./config'); const requester = require('./requester'); const router =...
OADA/oada-srvc-docker
oada/services/http-handler/src/users.js
JavaScript
apache-2.0
5,909
angular.module('BitGo.API.EnterpriseAPI', []) /* Notes: - This module is for managing all http requests and local caching/state for all Enterprise objects in the app */ .factory('EnterpriseAPI', ['$q', '$location', '$resource', '$rootScope', 'UtilityService', 'CacheService', 'EnterpriseModel', 'NotifyService', ...
jmaurice/bitgo-chrome
api/scripts/enterpriseAPI.js
JavaScript
apache-2.0
8,868
export const ChampionMastery = new Mongo.Collection('championMastery'); import {updateChampionMasteries} from '../riot/championMastery'; import {Champions} from './champion'; import {Summoners} from './summoner'; import {Regions} from './region.js'; ChampionMastery.helpers({ champion: function(){ return Ch...
Dragonpurse/mastery-lb
imports/api/championMastery.js
JavaScript
apache-2.0
4,333
/* global angular */ 'use strict'; var controllers = angular.module('participantDialogControllers', []); /** * The New Conversation Controller provides a UI for creating a new Conversation. * This consists of a place to edit a title bar, a list of users to select, * and a place to enter a first message. */ contro...
layerhq/layer-js-sampleapps
examples/websdk-samples/angular/app/participant-dialog-controllers.js
JavaScript
apache-2.0
2,024
/** * Created by mario (https://github.com/hyprstack) on 10/07/15. */ var imageUpLoad = Backbone.View.extend({ template: _.template(document.getElementById("file-uploader-template").innerHTML), // global variables passed in through options - required _file: null, // our target file cb: null, ma...
hevnly/js-image-resizer
js/views/image-upload.js
JavaScript
apache-2.0
3,693
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import 'codemirror/mode/python/python'; import {CodeWindow} from '../CodeWindow'; class ColorPickSpan extends React.Component { static propTypes = { onChange: React.PropTypes.func, color: React.PropTypes.string, span: React.PropTyp...
pcardune/pyret-ide
src/components/stories/CodeWindow.js
JavaScript
apache-2.0
2,215
/** * @license Copyright 2018 The Lighthouse 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 required by applica...
umaar/lighthouse
lighthouse-core/audits/network-requests.js
JavaScript
apache-2.0
3,962
module.exports.handler = (event, context) => { if (!context.iopipe || !context.iopipe.mark) { return context.succeed(new Error('No plugins')); } return context.succeed(200); };
iopipe/serverless-plugin-iopipe
testProjects/cosmi/handlers/simple.js
JavaScript
apache-2.0
187
/** * KnowledgeWorkbenchModel * A workbench for wiring relations among topics */ var types = require('tqtopicmap/lib/types'), icons = require('tqtopicmap/lib/icons'), properties = require('tqtopicmap/lib/properties'), constants = require('../../core/constants'), tagmodel = require('../tag/tagmodel'),...
KnowledgeGarden/TQPortal
apps/kwb/kwbmodel.js
JavaScript
apache-2.0
7,937
import { defaultReactions, details, mergeInEmptyDraft, } from "../detail-definitions.js"; import vocab from "../../app/service/vocab.js"; export const persona = { identifier: "persona", label: "Persona", icon: undefined, //No Icon For Persona UseCase (uses identicon) draft: { ...mergeInEmptyDraft({ ...
researchstudio-sat/webofneeds
webofneeds/won-owner-webapp/src/main/webapp/config/usecases/uc-persona.js
JavaScript
apache-2.0
4,969
const {now} = require('./time'); const thriftTypes = require('./gen-nodejs/zipkinCore_types'); const { MutableSpan, Endpoint, ZipkinAnnotation, BinaryAnnotation } = require('./internalRepresentations'); class BatchRecorder { constructor({ logger, timeout = 60 * 1000000 // default timeout = 60 seconds...
redhat-developer-demos/openshift-next-demo
msa/bonjour/node_modules/zipkin/src/batch-recorder.js
JavaScript
apache-2.0
3,024
var fs = require('fs'); var writeStream = fs.createWriteStream('./log.txt', { flags: 'a', encoding: 'utf8', node: 0666 }); writeStream.on('open', function () { var counter = 0; //get list of files fs.readdir('/home/abondar/IdeaProjects/NodeJSBase/', function (err, files) { if (err) {...
Dr762/NodeJSBase
basics/read_dirs.js
JavaScript
apache-2.0
1,276
// 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 // distributed un...
popojargo/couchdb-fauxton
app/core/router.js
JavaScript
apache-2.0
3,129
/** * CodeOrgApp: Applab * * Copyright 2014-2015 Code.org * */ 'use strict'; import Blockly from '../blockly'; import msg from '../locale'; import codegen from '../codegen'; import utils from '../utils'; import _ from 'lodash'; var RANDOM_VALUE = 'random'; var HIDDEN_VALUE = '"hidden"'; var CLICK_VALUE = '"click...
BoldIdeaInc/appmaker
app/applab/blocks.js
JavaScript
apache-2.0
2,112
// @@@LICENSE // // Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P. // // 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...
fxspec06/com.palm.app.email
controls/depends.js
JavaScript
apache-2.0
946
var $ = require('jquery'); var foundation = require('foundation'); var _ = require('lodash'); $(document).foundation(); console.log("Hello Worldz");
abits/static-boilerplate
src/js/app.js
JavaScript
bsd-2-clause
176
/*! * OS.js - JavaScript Cloud/Web Desktop Platform * * Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com> * 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. Redistribu...
afang/OS.js-Apps
src/server/node/http.js
JavaScript
bsd-2-clause
9,042
require(['lib/domReady', 'match'], function (domReady, matchClass) { // Don't let events bubble up if (Event.halt === undefined) { // Don't let events bubble up Event.prototype.halt = function () { this.stopPropagation(); this.preventDefault(); }; }; // Add toggleClass method similar t...
KorAP/Rabbid
dev/js/src/app.js
JavaScript
bsd-2-clause
946
goog.provide('ol.layer.Group'); goog.require('goog.array'); goog.require('goog.asserts'); goog.require('goog.events'); goog.require('goog.events.EventType'); goog.require('goog.math'); goog.require('goog.object'); goog.require('ol.Collection'); goog.require('ol.CollectionEvent'); goog.require('ol.CollectionEventType')...
jeluard/cljs-ol3js
resources/closure-js/libs/ol-v3.0.0-beta.5/ol/layer/layergroup.js
JavaScript
bsd-2-clause
5,759
/** * @module ol/style/RegularShape */ import {asString} from '../color.js'; import {asColorLike} from '../colorlike.js'; import {createCanvasContext2D} from '../dom.js'; import {CANVAS_LINE_DASH} from '../has.js'; import ImageState from '../ImageState.js'; import {defaultStrokeStyle, defaultFillStyle, defaultLineCa...
mzur/ol3
src/ol/style/RegularShape.js
JavaScript
bsd-2-clause
15,429
// Copyright (C) 2015 Mike Pennisi. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype-@@unscopables description: > Initial value of `Symbol.unscopables` property info: | 22.1.3.32 Array.prototype [ @@unscopables ] 1. Let unscopableLi...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/Symbol.unscopables/value.js
JavaScript
bsd-2-clause
2,739
#!/usr/bin/env node function main() { if (process.env.SUPPRESS_SUPPORT || process.env.OPENCOLLECTIVE_HIDE) { return; } try { const Configstore = require('configstore'); const pkg = require(__dirname + '/../package.json'); const now = Date.now(); var week = 1000 * 60 * 60 * 24 * 7; // c...
nihospr01/OpenSpeechPlatform-UCSD
Sources/ewsnodejs-server/node_modules/nodemon/bin/postinstall.js
JavaScript
bsd-2-clause
1,017
import isLength from './isLength'; import toObject from './toObject'; /** * Creates a `baseEach` or `baseEachRight` function. * * @private * @param {Function} eachFunc The function to iterate over a collection. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the...
wushuyi/remoteMultiSketchpad
frontend/assets/libs/lodash-3.6.0-es/internal/createBaseEach.js
JavaScript
bsd-2-clause
861
exports.testFuncPointerFailed = function() { console.log("[JS]: Test function pointer Start!!!"); var IOLIB = (typeof require === 'function') ? require('../../../../'): this.IOLIB; var io = new IOLIB.IO({ log: true, //rpc: true, port: 2000, hostname: 'localhost', quickInit: false }); v...
ilc-opensource/io-js
utils/autogen/testSuite/test_failed/funcPoint_failed.js
JavaScript
bsd-3-clause
582
/* * Copyright 2014, Gregg Tavares. * 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 condi...
greggman/hft-simple
scripts/controller.js
JavaScript
bsd-3-clause
3,761
var mongoose = require('mongoose'); var Schema = mongoose.Schema; function CoayoloDAO(){ if (false === (this instanceof CoayoloDAO)) { console.log('Warning: CoayoloDAO constructor called without "new" operator'); return new CoayoloDAO(); } //fix this.Alumno = new Schema({...
VUH-Tec/cuayolo-db
CoayoloDAO.js
JavaScript
bsd-3-clause
5,441
//>>built define("dojo/cldr/nls/zh-hant/chinese",{"dateFormatItem-GyMMM":"U\u5e74MMM","dateFormat-medium":"U\u5e74MMMd\u65e5","dateFormatItem-yMd":"U\u5e74M\u6708d\u65e5","dateFormatItem-MMMEd":"MMMd\u65e5E","dateFormatItem-MEd":"M/dE","dateFormatItem-yyyyMMM":"U\u5e74MMM","dateFormatItem-GyMMMd":"U\u5e74MMMd\u65e5","d...
xblox/control-freak
Code/client/src/xfile/dojo/cldr/nls/zh-hant/chinese.js
JavaScript
bsd-3-clause
1,403
var classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d = [ [ "Function2D", "classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d.html#a5d1f29ecd5a972b2b774b34c0c73567f", null ], [ "getHeight", "classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d.html#a0967402a3ebb011faa4ea231857687ea", null...
DweebsUnited/CodeMonkey
resources/hemesh/ref/html/classwblut_1_1geom_1_1_w_b___iso_values2_d_1_1_function2_d.js
JavaScript
bsd-3-clause
949
$(document).ready(function() { Drupal.dupe.clearDOB(); }); Drupal.dupe = {}; Drupal.dupe.clearDOB = function() { y = $("#edit-profile-dob-year").val(); var years = ''; var d = new Date(); var max_year = d.getFullYear() - 18; for (i = 1900; i <= max_year; i++) years += '<option value="' + i + '...
NCIP/edct-collector
collector-CMS/sites/all/modules/custom/dupe/dupe.js
JavaScript
bsd-3-clause
1,290
$().ready(function() { $("a[rel^='prettyPhoto']").prettyPhoto(); });
Freecer/freecer.net
themes/bootlance/js/js.js
JavaScript
bsd-3-clause
73
/* * Toady * Copyright 2013 Tom Frost */ // Dependencies var fs = require('fs'), config = require('config'), objUtil = require('../util/Object'), env = process.env.NODE_ENV || 'default'; const CONFIG_PATH = __dirname + "/../../config/" + env + "-mod_{mod}.json"; const CONFIG_PREFIX = 'mod_'; /** * Gets a path...
TomFrost/Toady
app/modmanager/ModConfig.js
JavaScript
bsd-3-clause
6,115
(function(){ var routineServices = angular.module('routineApp.routineServices', []); var domain = 'http://127.0.0.1:8000/'; routineServices.factory("RoutineService", ['$http', function($http){ var routine = {}; routine.getRoutines = function() { return $http.get(domain + 'ro...
Kayra/Thunder
client/js/routines/routineServices.js
JavaScript
bsd-3-clause
1,858
jQuery(document).ready(function(){ module("TiddlyWiki core"); test("RGB tests", function() { expect(4); var actual = new RGB(1,0,1).toString(); var expected = "#ff00ff"; ok(actual==expected,'RGB(1,0,1) is the same as #ff00ff'); actual = new RGB("#f00").toString(); expected = "#ff0000"; ok(actual==ex...
TeravoxelTwoPhotonTomography/nd
doc/node_modules/tiddlywiki/editions/tw2/source/tiddlywiki/test/js/RGB.js
JavaScript
bsd-3-clause
1,187