code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
var request = require('request'); var downloadWeekSchedule = function(season, week) { return new Promise((resolve, reject) => { var url = 'http://www.nfl.com/ajax/scorestrip?season=' + season + '&seasonType=REG&week=' + week; request(url, function(error, response, body) { if (error) { ...
rafciesielski/nfllook-tools-schedule
lib/download_schedule.js
JavaScript
apache-2.0
634
'use strict'; /*jshint loopfunc: true */ var fs = require('fs'); var path = require('path'); var userDataDir = 'UserData'; var images = {}; var median = function(values) { values.sort(function(a,b) { return a - b; }); var half = Math.floor(values.length / 2); if (values.length % 2) { return values[h...
lovell/attention
test/userDataProcessor.js
JavaScript
apache-2.0
1,966
/* jslint node: true */ /* global featureFile, scenarios, steps */ "use strict"; var Yadda = require('yadda'); Yadda.plugins.mocha.StepLevelPlugin.init(); new Yadda.FeatureFileSearch('features').each(function(file) { featureFile(file, function(feature) { var library = require('./bottles-library'); ...
lolmaus/yadda
examples/mocha-sync/test.js
JavaScript
apache-2.0
545
var structmarlincdm_1_1mcdm__buffer__t = [ [ "data", "structmarlincdm_1_1mcdm__buffer__t.html#a4f9e43911b95dc15524785402df3f914", null ], [ "fd", "structmarlincdm_1_1mcdm__buffer__t.html#a1f9e180d71a17dfa5fc12f0dc0a86def", null ], [ "len", "structmarlincdm_1_1mcdm__buffer__t.html#a02b39b90a7c1943cd5a2d869e1...
MTMO/CDM-for-Marlin-IPTV-ES
doc/html_CDM/structmarlincdm_1_1mcdm__buffer__t.js
JavaScript
apache-2.0
338
// 批量导出文件 const requireApi = require.context('.', false, /.js$/) let module = {} let noAllowPaht = ['./index.js'] requireApi.keys().forEach((key, index) => { if ( noAllowPaht.indexOf(key) !== -1 ) return Object.assign(module, requireApi(key)) }) export default module
dcloudio/uni-app
packages/uni-stat/src/utils/index.js
JavaScript
apache-2.0
290
'use strict'; angular.module( 'CentralDogmaAdmin', ['LocalStorageModule', 'ngCacheBuster', 'ngCookies', 'ngResource', 'pascalprecht.translate', 'tmh.dynamicLocale', 'ui.ace', 'ui.bootstrap', 'ui-notification', 'ui.router']) .constant('CentralDogmaConstant', { ...
line/centraldogma
server/src/main/resources/webapp/scripts/app/app.js
JavaScript
apache-2.0
6,271
'use strict'; module.exports.create = function (OAuth3Strategy, oauth3, options) { var querystring = require('querystring'); var routes = { lint: function (req, res, next) { if (!req.query) { throw new Error('req.query must be parsed before authorizationRedirect is called'); } if (!re...
OAuth3/node-express-oauth3
lib/routes.js
JavaScript
apache-2.0
5,260
(function() { "use strict"; if (document.location.search.indexOf("library=") === -1) { var sChar = "&"; if (document.location.href.endsWith("?")) { sChar = ""; } else if (document.location.search.length === 0) { sChar = "?"; } document.location.href = document.location.href + sChar + "library=sap.m"; } var ...
cschuff/openui5
src/sap.ui.dt/test/sap/ui/dt/ControlLibrary.js
JavaScript
apache-2.0
21,595
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ /** * @private * @class SuperMap.LevelRender...
SuperMap/iClient9
src/common/overlay/levelRenderer/Render.js
JavaScript
apache-2.0
18,810
window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=...
KanDisheng/Home
code/public/static/javascript/baidushare.js
JavaScript
apache-2.0
343
/*! * ${copyright} */ /** * @namespace * @name sap.ui.core.theming * @public */ sap.ui.define(['jquery.sap.global', 'sap/ui/thirdparty/URI', '../Element', 'jquery.sap.sjax'], function(jQuery, URI, Element /*, jQuerySap1 */) { "use strict"; var oCfgData = window["sap-ui-config"] || {}; var syncCallBehavior...
olirogers/openui5
src/sap.ui.core/src/sap/ui/core/theming/Parameters.js
JavaScript
apache-2.0
16,862
// Init variables var actualCoverUrl = null; // String - URL of cover var getMetadata = null; // Function - setInterval() fn, which calls getName(radio) for updating name of song var songMetadata = null; // Array - Contains name of artist and name of song var station ...
tomasko126/BlackBerry-10-Radio-Stream-App
assets/scripts/stream.js
JavaScript
apache-2.0
12,154
$(function(){ "use strict"; //News $(function(){ var container; var main = $("main"); $(".item.item-hide").click(function(){ container = $(this).next(); container.show().animate({opacity: 1}, 500); if(container.offset().top + container.height() > ...
artemsky/EvartFM
resources/assets/js/events.js
JavaScript
apache-2.0
802
var classit_1_1pkg_1_1AppUiTopovComponent = [ [ "activate", "classit_1_1pkg_1_1AppUiTopovComponent.html#aa41de234f0ddf9564cad98b98b40175c", null ], [ "deactivate", "classit_1_1pkg_1_1AppUiTopovComponent.html#ab9bac5048aa1b1fbb9728b80b682aafa", null ], [ "extension", "classit_1_1pkg_1_1AppUiTopovComponent.ht...
onosfw/apis
onos/apis/classit_1_1pkg_1_1AppUiTopovComponent.js
JavaScript
apache-2.0
484
$m.await("jQuery", "diagnostics") .declare(function($, diag) { var Collection = $m.Class.define({ ctor: function() { this.clear(); }, clear: function() { var items = []; this.set("items", items); $(this).triggerHandler({ type: ...
catch0x16/rsstream
src/javascript/mvc.js
JavaScript
apache-2.0
10,713
var express = require('express'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res) { res.render('index'); }); /* GET info page. */ router.get('/info', function(req, res) { res.render('info'); }); module.exports = router;
vitusventure/hashacat.js-docker
routes/index.js
JavaScript
apache-2.0
266
/** @jsx React.DOM */ define([ 'react', 'build/Components/Panels/Page/Form/checkbox.react', 'build/Objects/Page/Form/checkbox', 'jasmine_matchers' ], function (React, Checkbox, Item) { describe('Checkbox form input', function () { beforeEach(function () { this.addM...
Label305/Auja
tests/spec/Components/Panels/Page/Form/checkbox.react.spec.js
JavaScript
apache-2.0
1,755
/*jshint globalstrict:false, strict:false, unused : false */ /*global assertEqual, assertFalse, assertTrue */ //////////////////////////////////////////////////////////////////////////////// /// @brief tests for dump/reload /// /// @file /// /// DISCLAIMER /// /// Copyright 2010-2012 triagens GmbH, Cologne, Germany //...
thurt/arangodb
js/server/tests/recovery/indexes-hash.js
JavaScript
apache-2.0
4,169
var gulp = require('gulp'), minifycss = require('gulp-minify-css'), uglify = require('gulp-uglify'), imagemin = require('gulp-imagemin'), rename = require('gulp-rename'), concat = require('gulp-concat'), notify = require('gulp-notify'); gulp.task('styles', function() { return gulp.src([ ...
sachaudh/Fablr
gulpfile.js
JavaScript
apache-2.0
1,998
import {ToastAndroid, Alert, Platform} from 'react-native'; export function show(msg, duration) { if (Platform.OS === 'ios') Alert.alert(msg, '', [{text: '确定'}]); else ToastAndroid.show(msg, duration||ToastAndroid.SHORT); } export default { show }
ZevenFang/react-native-starterkit
src/utils/message.js
JavaScript
apache-2.0
267
import { combineReducers } from 'redux'; import actions from '../actions'; import uniqueArray from './uniqueArray'; import property from './property'; export default combineReducers({ leftMenu: property(actions.SET_LEFT_MENU), pageTitle: property(actions.SET_PAGE_TITLE), requiredCss: uniqueArray(actions.RE...
jeffhandley/redux-playground
src/shell/layout/reducers/index.js
JavaScript
apache-2.0
647
/** * Test the request function */ import request from '../request' describe('request', () => { // Before each test, stub the fetch function beforeEach(() => { window.fetch = jest.fn() }) describe('stubbing successful response', () => { // Before each test, pretend we got a successful response ...
BriData/DBus
dbus-keeper/keeper-web/app/utils/tests/request.test.js
JavaScript
apache-2.0
1,415
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
Coenego/Hilary
node_modules/oae-principals/config/group.js
JavaScript
apache-2.0
1,861
import parser from 'cheerio-without-node-native' export default function (html) { const $ = parser.load(html, { decodeEntities: true }) const list = [] $('ul.list li').each(function (i, elem) { const $this = $(this) const img = $this.find('img').attr('src') const text = $this.text() cons...
Smallpath/Psnine
psnine/parser/game/newGameQa.js
JavaScript
apache-2.0
860
var searchData= [ ['intro_2ecpp',['Intro.cpp',['../a00128.html',1,'']]], ['intro_2eh',['Intro.h',['../a00131.html',1,'']]] ];
Bokoblin/DUTS2-POO-ProjetRunner
docs/search/files_6.js
JavaScript
apache-2.0
130
if ($("#sajto-hirek").length > 0) { var sajto_data = {}; var sajto_data_rows = 0; var sajto_page_size = 9; function sajto_page(page_active) { $("#sajto-hirek").empty(); for (var i = (page_active - 1) * sajto_page_size + 2; i < (page_active) * sajto_page_size + 2 && i <= sajto_data_rows; i++) $("#...
gombaszog/gombaszog.sk
_assets/javascripts/sajto.js
JavaScript
apache-2.0
5,077
const path = require('path') let rootPath = path.normalize(path.join(__dirname, '/../../')) module.exports = { development: { rootPath: rootPath, db: 'mongodb://localhost:27017/TestDBConn', port: 8081 }, production: { rootPath: rootPath, db: process.env.MONGO_DB_CON...
dmusev/gMenu
app/config/config.js
JavaScript
apache-2.0
368
/** * Copyright 2017 Yuichiro Tsuchiya * Copyright 2017 Yuguan Xing * * 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 req...
asha-nepal/AshaFusionCross
src/connects/PatientListFilter.react.js
JavaScript
apache-2.0
1,651
/* @flow strict-local */ import React, { PureComponent } from 'react'; import { View } from 'react-native'; import Label from './Label'; import Touchable from './Touchable'; import { IconRight } from './Icons'; import type { IconType } from './Icons'; import type { ThemeColors } from '../styles'; import styles, { Them...
vishwesh3/zulip-mobile
src/common/OptionButton.js
JavaScript
apache-2.0
1,088
import React from "react"; import { Button, Row, Col } from "react-bootstrap"; import { connect } from "react-redux"; import FontAwesome from "react-fontawesome"; import PropTypes from "prop-types"; import { Link } from "react-router-dom"; import { truncateString } from "../util/stringHelpers"; let TeamHeader = ({ tea...
keithb418/scrum-team-app
front-end/src/components/TeamHeader.js
JavaScript
apache-2.0
1,159
/** * Copyright 2013 Green Energy Corp. * * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. Green Energy * Corp licenses this file to you under th...
gec/d3-traits
src/core/murts.js
JavaScript
apache-2.0
38,948
'use strict'; module.exports = RestCollection; var util = require('util'); var RestObject = require('./rest-object'); util.inherits(RestCollection, RestObject); function RestCollection(path) { RestObject.call(this, path); } RestCollection.prototype.item = function(id) { return this.property(id); };
apoco/distributron
libs/client/api/rest-collection.js
JavaScript
apache-2.0
309
var group__CO__LEDs = [ [ "CO_LEDs.h", "CO__LEDs_8h.html", null ], [ "CO_LEDs_t", "structCO__LEDs__t.html", [ [ "LEDtmr50ms", "structCO__LEDs__t.html#ae27f4bbc313e08e25b9b1e1d515ea9e4", null ], [ "LEDtmr200ms", "structCO__LEDs__t.html#a2690fe669ce01322e14de1b9f559a147", null ], [ "LEDtmrflash_...
CANopenNode/CANopenSocket
docs/group__CO__LEDs.js
JavaScript
apache-2.0
2,194
import React, {Fragment} from "react"; import {Row, Col} from "helpers/reactstrap"; const StealthBars = ({systems}) => { function systemName(sys) { if (sys.type === "Shield" && sys.name !== "Shields") { return `${sys.name} Shields`; } return sys.displayName || sys.name; } const stealthSystems ...
Thorium-Sim/thorium
src/components/views/StealthField/stealthBars.js
JavaScript
apache-2.0
1,088
var controller = angular.module('controller', []); function UserException(message) { this.message = message; this.name = 'UserException'; } function validateEmail(email) { var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\...
matthewnewman43/espionapp
www/js/controller.js
JavaScript
apache-2.0
9,713
var Utils = {}; (function() { Utils.convertTemp = function(temp) { if(Ti.App.Properties.getString('units','c')==='f') { return Math.round(temp*1.8+32) +'\u00b0F'; // convert to Fahrenheit & append degree symbol-F } else { return temp +'\u00b0C'; } }; Utils.weatherIcon = functio...
danielhanold/DannySink
Resources/utils/utils.js
JavaScript
apache-2.0
1,757
const arithmeticSearch = require('../arithmeticSearch'); const collectAndCombineSearch = require('../collectAndCombineSearch'); const rearrangeCoefficient = require('../basicsSearch/rearrangeCoefficient'); const ChangeTypes = require('../../ChangeTypes'); const Negative = require('../../Negative'); const Node = requir...
google/mathsteps
lib/simplifyExpression/distributeSearch/index.js
JavaScript
apache-2.0
11,269
// NOTE: Not used in this version - where task is chosen outside of extjs5 app page and passed in as html parameter. Ext.define('CR.app.view.AnnotationTaskList', { id: 'tasklistpanel', itemId: 'annotationtasklist', alias: 'widget.tasklist', requires: ['Ext.data.*','Ext.grid.*','Ext.form.*','Ext.grid.proper...
department-of-veterans-affairs/ChartReview
web-app/app/view/AnnotationTaskList.js
JavaScript
apache-2.0
6,440
/** * Copyright 2017 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/components/ui/cards/index.js
JavaScript
apache-2.0
1,656
sap.ui.define([ 'sap/ui/core/UIComponent', 'sap/ui/model/json/JSONModel', 'sap/ui/demo/cart/model/LocalStorageModel', 'jquery.sap.global', 'sap/ui/demo/cart/model/models' ], function (UIComponent, JSONModel, LocalStorageModel, $, models) { "use strict"; return UIComponent.extend("sap.ui.demo.cart.Component", { ...
cschuff/openui5
src/sap.m/test/sap/m/demokit/cart/webapp/Component.js
JavaScript
apache-2.0
1,479
require("dotenv").config() const winston = require("winston") const env = process.env.ENV || process.env.ENV_DEFAULT || "dev" winston.level = process.env.LOG_LEVEL || (env === "dev" ? "debug" : "verbose") winston.remove(winston.transports.Console) winston.add(winston.transports.Console, { timestamp: true }) const...
yareeh/minimallm
config/config.js
JavaScript
apache-2.0
574
var directives = angular.module('LightmineApp.directives', []); directives.directive('spinner', function () { return { scope: { scopeVar: "=spinner" }, restrict: 'A', replace: false, template: '<img src="images/spinner.gif" />', link: function ($scope, el...
dontdrinkandroot/lightmine.js
js/directives.js
JavaScript
apache-2.0
2,011
'use strict'; /* Controllers */ angular.module('myApp.controllers', []). controller('JobsCtrl', function($scope, $http, $interval) { $scope.jobs = []; $scope.groups = {}; function loadJobs() { $http.get('api/jobs').success(function(jobs) { $scope.jobs = jobs; ...
4sh/qzui
ui/app/js/controllers.js
JavaScript
apache-2.0
1,541
/*! * SubEtha * http://github.com/bemson/subetha/ * * Copyright 2014, Bemi Faison * Released under the Apache License */ /* global define, require */ !function (inAMD, inCJS, scope, undefined) { function initSubEtha() { // is this needed for npm to augment the "subetha-client" module?? // is anything ...
bemson/subetha
src/subetha.js
JavaScript
apache-2.0
899
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.22/esri/copyright.txt for details. //>>built define("esri/dijit/nls/AttributeInspector-all_es-es",{"dijit/_editor/nls/commands":{bold:"Negrita",copy:"Copiar",cut:"Cortar","delete":"Suprimir",indent:"Sangr\u00e...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/dijit/nls/AttributeInspector-all_es-es.js
JavaScript
apache-2.0
7,692
/** * Vericred API * Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and another for our Sandbo...
vericred/vericred-javascript
test/model/CarrierGroupRequest.spec.js
JavaScript
apache-2.0
11,770
'use strict'; function factory (type, config, load, typed) { var collection = load(require('../../type/matrix/collection')); /** * Calculate the exponent of a value. * For matrices, the function is evaluated element wise. * * Syntax: * * math.exp(x) * * Examples: * * math.exp(2...
mikberg/mathjs
lib/function/arithmetic/exp.js
JavaScript
apache-2.0
1,419
/** * @fileoverview added by tsickle * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * f...
cloudfoundry-community/asp.net5-buildpack
fixtures/node_apps/angular_dotnet/ClientApp/node_modules/@angular/router/esm2015/index.js
JavaScript
apache-2.0
2,445
'use strict'; var utils = require(__base + 'sharedlib/utils'); var Locale = require(__base + 'sharedlib/formatter'); var outputFormatter = new Locale(__base); var lodash = require('lodash'); var Promise = require('bluebird'); var microtime = require('microtime'); var Invitation = null; var User = null; var Email = nul...
satishweb/senecajs-microservices-starter
services/invitations/actions/validateInvitation.js
JavaScript
apache-2.0
7,869
// 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 // <https://apache.org/licenses/LICENSE-2.0>. // // Unless required by applicable law or agreed to in writing...
GoogleChromeLabs/jsvu
engines/quickjs/extract.js
JavaScript
apache-2.0
1,780
/* Copyright 2016 - 2020 by Jan Dockx 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 writin...
Toryt/contracts
test/ImplementationContractCommon.js
JavaScript
apache-2.0
3,386
module.exports = { entry: './src/index.js', output: { path: __dirname, filename: 'app.js' }, module: { loaders: [{ test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel', query: { presets: ['es2015', 'react'] } }] } };
recurza/task-timer
webpack.config.js
JavaScript
apache-2.0
254
/** * 需要外部传入的app, 则`module.exports`为function */ define(function (require, exports, module) { 'use strict'; module.exports = function(app){ //Step6: use `app.register` to register controller/service/directive/filter app.register.controller('mainCtrl', ['$scope', '$routeParams', '$location', '$http', ...
wenpi/weixiao
web/public/wap/modules/main/mainCtrl.js
JavaScript
apache-2.0
2,844
/* * Copyright 2019 The Android Open Source Project * * 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 applicab...
google/android-emulator-webrtc
src/components/emulator/views/simple_png_view.js
JavaScript
apache-2.0
4,635
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.pt'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Adicionar Comentário"; Blockly.Msg.ARD_ANALOGREAD = "read analog pin#"; // untranslated Blockly.Msg.ARD_ANALOGREAD_TIP = "Return value between 0 and 1024";...
emwta/iBlockly
blockly/msg/js/pt.js
JavaScript
apache-2.0
45,066
function ptSidePanel(){} ptSidePanel.prototype = { CSS_PAGELETAREA_DOCKED : "ptalPgltArea_docked", CSS_PAGELETAREA_UNDOCKED : "ptalPgltArea_float", CSS_PAGELETAREA_VISIBLE : "ptalPgltArea_visible", CSS_PAGELETAREA_HIDDEN : "ptalPgltArea_hidden", CSS_PAGELETAREA_MOVING : "ptalPgltArea_moving", CS...
leolincoln/CalendarApp
calendar/enrollment_files/PT_RC_JS_1.js
JavaScript
apache-2.0
124,472
var pg = require('pg'); var Bookshelf = require('bookshelf'); var config = require("../config"); Bookshelf.primary = Bookshelf.initialize({ client : 'pg', connection : config.pg, debug : config.debug }); global.Bookshelf = Bookshelf; module.exports = Bookshelf;
badave/doublevision
initializers/bookshelf.js
JavaScript
apache-2.0
283
app.controller("SignupController", ["$scope", "SignupService", "$location", function($scope, SignupService, $location) { $scope.alerts = []; $scope.activationData = {}; /** * Method that uses the sign up service to activate an account * * @param signUpData will contain activation token and password * @param...
mzibert/BrewCrew
public_html/angular/controllers/signup-controller.js
JavaScript
apache-2.0
853
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import assert from 'assert'; import nock from 'nock'; import {Client4} from '@client/rest'; import * as Actions from '@mm-redux/actions/roles'; import TestHelper from '@test/test_helper'; import configureS...
mattermost/mattermost-mobile
app/mm-redux/actions/roles.test.js
JavaScript
apache-2.0
2,281
XMap.Proxy = { proxyUrl: 'http://localhost:8000/image?server=' } XMap.Url = { apiOrto: 'http://localhost:8000/Image/GetOrtoFoto?', apiElevation: 'http://localhost:8000/Image/GetOrtoFoto?', tileUrlBing: { pre: XMap.Proxy.proxyUrl + "http://t0.tiles.virtualearth.net/tiles/a", su: ".jpeg?g=854&mkt=en-US&...
Frederoche/WebGL-Map
Client/Scripts/XMap.js
JavaScript
apache-2.0
9,815
import modalTemplate from './storageloker.modal.html' import modalInstanceCtrl from './storageloker.modal.controller' class StoragelokerController { constructor($uibModal, $scope, $filter, $timeout, toastr, StoragelokerService, StoragelokertypeService) { "ngInject"; this._uibModal = $uibModal; this._toa...
mosh086/guardartodo
client/app/components/storageloker/storageloker.controller.js
JavaScript
apache-2.0
2,810
// For non-view logic var $ = require('jquery'); var fileBlock = function(_offset, length, _file, readChunk) { var r = new FileReader(); var blob = _file.slice(_offset, length + _offset); r.onload = readChunk; r.readAsArrayBuffer(blob); } // Based on alediaferia's SO response // http://stackoverflow.com/ques...
edisonthk/speech-to-text-and-insight-profile
src/utils.js
JavaScript
apache-2.0
2,529
var parse = require('../').parse; var pegjs = require('pegjs'); var assert = require('assert'); describe('parse', function() { it('should be a function', function() { assert.equal(typeof parse, 'function'); }); it('should return AST of a simple valid query', function() { var ast = parse('{"foo": "bar"}'...
mongodb-js/mongodb-language-model
test/parse.test.js
JavaScript
apache-2.0
767
// Copyright 2017, Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
googleapis/nodejs-language
system-test/language_service_smoke_test.js
JavaScript
apache-2.0
1,323
var expect = require('chai').expect; var PanaxJS = require('../..'); var panax_config = require('../../config/panax'); var panax_instance = panax_config.instances[panax_config.default_instance]; var util = require('../../lib/util'); describe('junction table(s) persistance', function() { var panaxdb = new Pan...
panaxit/panaxjs
test/integration/persist_junction.js
JavaScript
apache-2.0
4,819
var args = arguments[0] || {}; var isIpad = OS_IOS && Alloy.isTablet; var rss = require('rss'); // Refresh table data from remote RSS feed function refreshRss(url) { rss.loadRssFeed(url, { success: function(data) { var item = data[0]; $.title.text = item.title; $.description.text = item.description; } }...
murphysw/EtapRulzOTG
app/controllers/home.js
JavaScript
apache-2.0
417
(function ($) { "use strict"; function isFirefox() { return !!navigator.userAgent.match(/firefox/i) } var LOAD_ERR_MSG = "It looks like our signup form was blocked by an adblocker in your browser! Please email us directly or pause your adblocker to use the form.", LOAD_ERR_MSG_FFOX = "It looks like ...
jyotisingh/www.go.cd
source/assets/javascripts/marketo_popover.js
JavaScript
apache-2.0
1,808
// Module dependencies var APP = require('core'); var UI = require('app/ui/login/login'); /** * Login controller module * @constructor */ function LoginController() { "use strict"; var self = this; // Obligatory 'this' reference /** * The UI object for this controller * @type {Object} ...
VeerJain89/PostCardApp
Resources/app/controllers/LoginController.js
JavaScript
apache-2.0
635
'use strict'; describe('Directive: switchview', function () { // load the directive's module beforeEach(module('switchviewApp')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should make hidden element visible', inject(function ($compile) { ...
jassoncasey/switchview
test/spec/directives/switchview.js
JavaScript
apache-2.0
499
#pragma strict var slot1 : SaveSlot; var slot2 : SaveSlot; var slot3 : SaveSlot; var upArrow : MainMenuTextureObject; var downArrow : MainMenuTextureObject; var minSlot : int = 0; var maxSlot : int = 9; private var activeSelection : boolean; private var curSlot : int = minSlot; private var curCenterDistance : int; p...
sujithgt/CrystalSwarm
Assets/Scripts/SaveMenuController.js
JavaScript
apache-2.0
7,888
/*! * ${copyright} */ sap.ui.define([ "sap/m/library", "sap/ui/Device" ], function (library, Device) { "use strict"; // shortcut for sap.m.ListGrowingDirection var ListGrowingDirection = library.ListGrowingDirection; // shortcut for sap.m.ListKeyboardMode var ListKeyboardMode = library.ListKeyboardMode; /...
cschuff/openui5
src/sap.tnt/src/sap/tnt/BoxContainerListRenderer.js
JavaScript
apache-2.0
9,537
/** * @user Joseph **/ $(function(){ $(document).on('click','.learning .master',function(){var review_id=$(this).parents('.learning').attr('id').split('-')[1];var $d=$(this);$d.html('<span class="loading">&nbsp;</span>');resolveLearning(review_id,show_msg($d));function show_msg(d){$('#learning-'+review_id).find('.m...
coolcode/shanbay-crx
src/js/vocabulary.js
JavaScript
apache-2.0
3,019
// CedCube.js // Rubik's cube visualization and manipulation // Cedric Beust <cedric@beust.com> // 2/3/2012 // // Use in HTML as follows: // <span id="c0" class="CedCube" // cc-params="formula=R'F (RUR') F'R,width=200,height=200,startString=yrgrggrgg oowoooooo gyybbbbbb rbbrryrry ggryyyogy bwwwwwwwww"> // </span> // //...
cbeust/cedCube
js/CedCube.js
JavaScript
apache-2.0
28,118
'use strict'; var FS = require('fs'), EventEmitter = require('events').EventEmitter; var Cylon = require('cylon'); var GPIO_INPUT = 0, GPIO_OUTPUT = 1, GPIO_SERIAL = 3, GPIO_INPUT_PU = 8, GPIO_LOW = 0, GPIO_HIGH = 1, GPIO_PIN_COUNT = 50; var GPIO_MODE_PATH = "/sys/devices/virtual/misc/gpio/mode/"; var GPIO_STAT...
alexwang2013/cylon-pcduino
lib/pin.js
JavaScript
apache-2.0
2,569
/* * Read input and copy the value to the output. */ var k = require('../k8055').k8055; k.connect(0); var counter = 0; var tmp, d = 0; setInterval(function() { if(counter++ == 1000) { clearInterval(); k.disconnect(); console.log("Disconnect"); } else if(counter < 1000) { d = k.getDigital(); if(d...
jvmvik/k8055
nodek8055/examples/io.js
JavaScript
apache-2.0
416
'use strict'; /** * @ngdoc service * @name twinApp.CardFactory * @description * # CardFactory * Factory in the twinApp. */ angular.module('twinApp') .factory('CardFactory', function () { // Service logic // ... function Card(anId, aShape, aColor) { this.id = anId; this.shape = aShape...
cfalguiere/Hands-On-Angular-Tooling
solutions/yeomanlab-lab9/app/scripts/services/cardfactory.js
JavaScript
apache-2.0
751
// nicolas goller // u0805682 // cs4600 computer graphics // ray tracer var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var r,g,b; var red,green,blue; var eye; var lookat; var light; var up = vec3(0,1,0); var width = canvas.width; var height = canvas.height; var objects = []; //se...
ngoller/my-website
views/raytracing/raytracing.js
JavaScript
apache-2.0
15,039
var _ = require("alloy/underscore"); var Declare = require("tui/base/Declare"); var BaseClass = require("tui/base/BaseClass"); var AnimateBase = Declare({ "extends": BaseClass, node: null, onComplete: null, duration: 350, constructor: function(options) { var animateBase = this; an...
mm250/TiFramework
Resources/morcode/animation/AnimateBase.js
JavaScript
apache-2.0
510
var classerpcgen_1_1lexical__error = [ [ "lexical_error", "classerpcgen_1_1lexical__error.html#a26191f6b14610c72a25cff80cb04f70e", null ] ];
scottdarch/Noer
FRDMK66NoEr/SDK_2.1_FRDM-K66F-GCC-Full/middleware/multicore_2.1.0/erpc/doc/eRPC_infrastructure/erpcgen/classerpcgen_1_1lexical__error.js
JavaScript
apache-2.0
144
/* * biojs-vis-blast * https://github.com/xwatkins/biojs-vis-blast * * Copyright (c) 2014 Xavier Watkins * Licensed under the Apache 2 license. */ // chai is an assertion library var chai = require('chai'); var nock = require('nock'); // @see http://chaijs.com/api/assert/ var assert = chai.assert; // register...
xwatkins/biojs-vis-blast
test/unit/biojsvisblast_test.js
JavaScript
apache-2.0
838
var Workspace = React.createClass({ getInitialState: function() { return { mouseDown: false, dragging: false, resizing: false, wireType: false, isPendingUpdate: false, cursorX: 0, cursorY: 0, isSnapping: false }; }, getDefaultProps: function() { return { component: { ...
shehzadi/hoverui
js/workspace.js
JavaScript
apache-2.0
33,566
var vtep_idl_8h = [ [ "vteprec_arp_sources_local", "structvteprec__arp__sources__local.html", "structvteprec__arp__sources__local" ], [ "vteprec_arp_sources_remote", "structvteprec__arp__sources__remote.html", "structvteprec__arp__sources__remote" ], [ "vteprec_global", "structvteprec__global.html", "struct...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/vtep-idl_8h.js
JavaScript
apache-2.0
57,734
goog.module('grrUi.forms.dictFormDirective'); goog.module.declareLegacyNamespace(); /** * Controller for DictFormDirective. * * @constructor * @param {!angular.Scope} $scope * @param {!grrUi.core.reflectionService.ReflectionService} grrReflectionService * @ngInject */ const DictFormController = function( ...
dunkhong/grr
grr/server/grr_response_server/gui/static/angular-components/forms/dict-form-directive.js
JavaScript
apache-2.0
6,014
/** * @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/assert/has-async-await-support/benchmark/benchmark.js
JavaScript
apache-2.0
1,335
/** * Copyright 2018 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
yandex-pcode/amphtml
extensions/amp-subscriptions/0.1/subscription-platform.js
JavaScript
apache-2.0
2,767
// 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-vpc-access
samples/generated/v1/vpc_access_service.delete_connector.js
JavaScript
apache-2.0
1,808
t = db.mr5; t.drop(); t.save( { "partner" : 1, "visits" : 9 } ) t.save( { "partner" : 2, "visits" : 9 } ) t.save( { "partner" : 1, "visits" : 11 } ) t.save( { "partner" : 1, "visits" : 30 } ) t.save( { "partner" : 2, "visits" : 41 } ) t.save( { "partner" : 2, "visits" : 41 } ) m = function(){ emit( this.partner...
WhiteBearSolutions/WBSAirback
packages/wbsairback-mongodb/wbsairback-mongodb-1.4.4/jstests/mr5.js
JavaScript
apache-2.0
1,319
module.exports = { up: function(migration, DataTypes, done) { migration.createTable('factoids', { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, created_at: { type: DataTypes.DATE ...
qmx/aerobot
migrations/20140405011255-add_factoids.js
JavaScript
apache-2.0
963
/* Copyright 2016 ElasticBox All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
ElasticBox/elastickube
src/ui/app/admin/ek-namespace-actions/ek-namespace-actions.controller.js
JavaScript
apache-2.0
1,140
<script src="/plugins/ace-builds/src/ace.js" type="text/javascript" charset="utf-8"></script> <script src="/plugins/ace-builds/src/ext-language_tools.js"></script> <script type="text/javascript"> apieditor=null; $(document).ready(function () { //$("#btnGroupBottomApiCreator").hide($(".apicrea...
HladikBox/Console
templates/apps/board_apicreator.js
JavaScript
apache-2.0
10,100
/** * Copyright 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...
hchristiaan/watson-work-services-language-translator
node_modules/watson-developer-cloud/alchemy-language/v1.js
JavaScript
apache-2.0
6,773
'use strict'; /** * collmod.js * * Base workload for collMod command. * Generates some random data and inserts it into a collection with a * TTL index. Runs a collMod command to change the value of the * expireAfterSeconds setting to a random integer. * * All threads update the same TTL index on the same colle...
christkv/mongo-shell
test/jstests/concurrency/fsm_workloads/collmod.js
JavaScript
apache-2.0
2,007
/** * @license AngularJS v1.2.8 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) {'use strict'; /** * @description * * This object provides a utility for producing rich Error messages within * Angular. It can be called as follows: * * var exampleMinEr...
IronCountySchoolDistrict/enhanced-cpm
src/enhanced-cpm/ext/angularjs/1.2.8/angular.js
JavaScript
apache-2.0
726,684
'use strict'; /** @module abacus-metrics */ const { bind } = require('underscore'); const { Collection, NopCollection } = require('./lib/collection'); const { createRouter } = require('./lib/middleware'); const metricsEnabled = process.env.CUSTOM_METRICS === 'true'; const defaultCollection = metricsEnabled ? new Col...
cloudfoundry-incubator/cf-abacus
lib/utils/metrics/src/index.js
JavaScript
apache-2.0
631
var util = require('util'); function countCharacters(o) { var count = 0; var i, len, key; if (typeof o == 'string' || o instanceof String) { count += o.length; } else if (arrays.isArray(o)) { for (i = 0, len = o.length; i < len; ++i) { count += countCharacters(o[i]); } } else { for (ke...
52North/dojo-translator
lib/util.js
JavaScript
apache-2.0
1,889
import MygText from 'myg-text'; ['turbolinks:load', 'modalist:render', 'myg-tabs:render'].forEach((event) => { document.removeEventListener(event, init); document.addEventListener(event, init); }); function init() { const mygTexts = MygText.initAll(document.querySelectorAll('.myg-text'), {}); }
Phylator/phylator
app/webpack/javascripts/myg/text.js
JavaScript
apache-2.0
303
/** * Created by roquie on 11.05.14. */ $(function() { $('.copylink').on('click', function() { $(this).select(); }); });
Roquie/autoschool-new
www/public/adm/js/reference.js
JavaScript
apache-2.0
142
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
dremio/dremio-oss
dac/ui/src/components/Tree/ResourceTree.js
JavaScript
apache-2.0
5,349
export { default } from 'shared/components/secret-row/component';
pengjiang80/ui
lib/shared/app/components/secret-row/component.js
JavaScript
apache-2.0
66
describe("IWC Peer", function () { var peerA, linkA, otherContext; var otherContextOnLoad = function () { this.peerB = new ozpIwc.network.Peer(); this.linkB = new ozpIwc.network.KeyBroadcastLocalStorageLink({ peer: this.peerB }); }; var testPacket = function (link, ...
ozone-development/ozp-iwc
test/tests/bus-integration/specs/network/peerSpec.js
JavaScript
apache-2.0
1,878