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
import { expect } from 'chai' import reducers, { initialState } from 'mobilizations/widgets/__plugins__/pressure/reducers' import { createAction } from 'mobilizations/widgets/__plugins__/pressure/action-creators/create-action' import * as t from 'mobilizations/widgets/__plugins__/pressure/action-types' describe('clie...
nossas/bonde-client
packages/bonde-admin/src/mobilizations/widgets/__plugins__/pressure/reducers.spec.js
JavaScript
agpl-3.0
1,807
(function(global){ var DragAndDropI18N = { init: function() { (function(globals) { var django = globals.django || (globals.django = {}); django.pluralidx = function(n) { var v=0; if (typeof(v) == 'boolean') { return v ? 1 : 0; ...
edx-solutions/xblock-drag-and-drop-v2
drag_and_drop_v2/public/js/translations/ja/text.js
JavaScript
agpl-3.0
22,139
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":105,"id":247228,"methods":[{"el":48,"sc":2,"sl":46},{"el":52,"sc":2,"sl":50},{"el":57,"sc":2,"sl":54},{"el":62,"sc":2,"sl":59},{"el":67,"sc":2,"sl":64},{"el":72,"sc":2,"sl":69},{"el...
cm-is-dog/rapidminer-studio-core
report/html/com/rapidminer/gui/properties/celleditors/key/DelegationKeyCellEditor.js
JavaScript
agpl-3.0
1,142
define(function(require) { 'use strict'; var PIXI = require('pixi'); var PixiToImage = require('common/v3/pixi/pixi-to-image'); var RectangularComponentView = require('views/components/rectangular'); var Constants = require('constants'); var Assets = require('assets'); /** ...
Connexions/simulations
circuit-construction-kit/src/js/views/components/capacitor.js
JavaScript
agpl-3.0
1,027
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
agarsev/borjes-react
dist/BorjesProtoLattice.js
JavaScript
agpl-3.0
6,381
engine.eval("load('nashorn:mozilla_compat.js');"); /* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modi...
Micah-S/hidden-ms
src/scripts/npc/1052010.js
JavaScript
agpl-3.0
2,539
#!/usr/bin/env node 'use strict'; const emulatorUtils = require('../rpcEmulatorUtils'); const VDM = require('../../../VDM/prototypes/vdm'); const _ = require('lodash'); const RPC_EMULATOR_MODEL = [ { id: 'ORWPCE_GET_SET_OF_CODES', name: 'ORWPCE GET SET OF CODES', function: 'GETSET^ORWPCE2...
vistadataproject/nonClinicalRPCs
prototypes/others/o63_orwpceGetSetOfCodes.js
JavaScript
agpl-3.0
2,826
class CommandArgs extends Array { constructor(client, args) { if (Array.isArray(args)) super(...args); else if (typeof args === 'string') { const { words, raw } = CommandArgs.splitInput(client, args); super(...words); this.rawArgs = raw; } else super(args); } shift() { thi...
Ratismal/blargbot
Core/Structures/CommandArgs.js
JavaScript
agpl-3.0
2,793
'use strict'; describe('Factory Tests ', function() { var LanguageService, $q, $translate, tmhDynamicLocale, $location, deferred, $scope; describe('LanguageService', function() { beforeEach(inject(function($injector) { LanguageService = $injector.get('LanguageService'); $q = $injector.get('...
dzhw/metadatamanagement
src/test/javascript/spec/common/language/services/language.service.spec.js
JavaScript
agpl-3.0
1,155
/* * @author Alexander Shumilov * @copyright 2013-2019 MapCentia ApS * @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3 */ import React from 'react'; import PropTypes from 'prop-types'; import Datetime from 'react-datetime'; import dayjs from 'dayjs'; const FORMAT = `YYYY-MM...
mapcentia/vidi
browser/modules/layerTree/controls/DatetimeControl.js
JavaScript
agpl-3.0
1,455
/*global define*/ define([ 'jquery', 'underscore', 'backbone', 'eventModel', 'backbone.paginator' ], function ($, _, Backbone, EventModel) { 'use strict'; var MVDMEventCollection = Backbone.PageableCollection.extend({ model: EventModel, mode: 'client', // Initial pag...
vistadataproject/nodeVISTAClients
nodeVISTAManager/js/mvdmEvents/eventCollection.js
JavaScript
agpl-3.0
755
/* This file is part of the Juju GUI, which lets users view and manage Juju environments within a graphical interface (https://launchpad.net/juju-gui). Copyright (C) 2012-2013 Canonical Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License...
jrwren/juju-gui
test/test_browser_models.js
JavaScript
agpl-3.0
3,703
// Copyright (c) 2013 Andrew "Jamoozy" Correa S, // // This file is part of Qdsh // // Qdsh is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) an...
jamoozy/qdsh
shell.js
JavaScript
agpl-3.0
2,321
load("nashorn:mozilla_compat.js"); var imports = new JavaImporter(Packages.client, Packages.client.display, Packages.client.logic, Packages.server, Packages.server.display, ...
milanvanzanten/SafariBowl
resources/teams/Apes/BlondCapuchin.js
JavaScript
agpl-3.0
5,726
/* globals DiscussionUtil */ (function() { 'use strict'; var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) { child[key] = parent[key]; } } ...
Learningtribes/edx-platform
common/static/common/js/discussion/views/thread_response_edit_view.js
JavaScript
agpl-3.0
2,743
define(function(require) { 'use strict'; var $ = require('jquery'); var _ = require('underscore'); var Backbone = require('backbone'); var WavelengthColors = require('common/colors/wavelength'); var SnapshotView = require('hydrogen-atom/views/snapshot'); var Constants = re...
Connexions/simulations
hydrogen-atom/src/js/views/spectrometer.js
JavaScript
agpl-3.0
13,587
if (MCE!=undefined) { if ( MCE.applicationName==undefined || MCE.applicationName!="Converter" ) { alert("Converter: global variable MCE is already used!"); } } else { var MCE = { applicationName: "Converter", applicationVersion: "1.2.6", installMode: 'local', finishedLoading: false } }
Gutza/Converter
firefox-base/chrome/content/converter_init.js
JavaScript
agpl-3.0
306
/** * Created by sergiomarcial on 1/21/17. */ 'use strict'; module.exports = function() { var service = { notFoundMiddleware: notFoundMiddleware, send404: send404 }; return service; function notFoundMiddleware(req, res, next) { send404(req, res, 'API endpoint not found'); } function send404...
Kh40sz3r0/portal
src/server/utils/404.js
JavaScript
agpl-3.0
527
function createAtom(val, options) { var watchers = {}; var validator = options && options.validator || function () { return true; }; function transition(next) { if (!validator(next)) { var err = new Error(next + " failed validation"); err.name = "AssertionError"; ...
be-cloud-be/horizon-addons
horizon/school_documentation/source/_static/atom.js
JavaScript
agpl-3.0
1,103
import { zfill } from './string'; export const getTimer = (number) => zfill(Math.floor(number / 60), 2) + ':' + zfill(number % 60, 2); /** * Async delay that resolves after x ms. * * @example await sleep(TimeDuration.OneSecond); * @param {number} ms Number of milliseconds to sleep. * @returns */ export const sl...
FreezingMoon/AncientBeast
src/utility/time.js
JavaScript
agpl-3.0
385
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":46,"id":199330,"methods":[{"el":37,"sc":2,"sl":34},{"el":45,"sc":2,"sl":43}],"name":"RVMBase","sl":26}]} // JSON: {test_ID : {"methods": [ID1, ID2, ID3...], "name" : "testXXX() voi...
cm-is-dog/rapidminer-studio-core
report/html/com/rapidminer/operator/learner/functions/kernel/rvm/RVMBase.js
JavaScript
agpl-3.0
638
/** * Copyright (C) 2014 3D Repo Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This pro...
framestart/3drepo.io
public/plugins/revisionselector/SelectorData.js
JavaScript
agpl-3.0
1,076
//var containerUrl = "http://data.ozwillo.com/"; // rather in dcConf filled at init by /dc/playground/configuration //////////////////////////////////////////////////: // DATA MANIPULATION // generate ids for URIs : // * hashing confidential info for uri id, even securely, is bad practice (since the uri ...
ozwillo/ozwillo-datacore
ozwillo-datacore-web/src/main/webapp/dc-ui/import/lib/datacore-import.js
JavaScript
agpl-3.0
166,056
import _ from 'underscore' import Backbone from 'backbone' import Fun from '../utils/fun.config' import GetTemplate from '../utils/get.template' import ExtraView from './components/extra' export default Backbone.View.extend({ events: { 'click .navigate': 'navigate' }, template: _.template(Get...
bchassoul/quan
src/js/views/landing.js
JavaScript
agpl-3.0
758
/* * This file is part of huborcid. * * huborcid is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * huborcid is distrib...
Cineca/OrcidHub
src/main/webapp/bower_components/angular-i18n/angular-locale_nl-sr.js
JavaScript
agpl-3.0
3,190
Ext.define('Desktop.controller.ClassRegister', { extend: 'Deft.mvc.ViewController', inject: ['sharedStorage'], requires: [], config: { sharedStorage: null, descrizione: null, istituto: null, anno_Scolastico:null, classe: null, docente: null, materia: null }, control: { view: { show: 'onShow...
Scuola247/Desktop
src/main/webapp/app/controller/ClassRegister.js
JavaScript
agpl-3.0
3,006
/* This file is part of MyConference. MyConference is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
clemens-huebner/amos-ss16-proj8
MyConference/tests/unit-tests/logout.controller.tests.js
JavaScript
agpl-3.0
2,863
'use strict'; export default function(app) { function NotificationServiceProvider() { let loginState = 'login'; let maintenanceState = 'maintenance'; this.setLoginState = function(state) { loginState = state; }; this.setMaintenanceState = function(state) { maintenanceState = state; ...
CERT-BDF/Cortex
www/src/app/core/services/common/NotificationService.js
JavaScript
agpl-3.0
1,541
import { withTracker } from 'meteor/react-meteor-data' import HarptosDate from 'dream-date/calendar/harptos' import HarptosCommonDate from 'dream-date/calendar/harptos-common' import OdreianDate from 'dream-date/calendar/odreian' import TideDate from 'dream-date/calendar/tide' import GregorianDate from 'dream-date/cale...
quarterto/almanac
client/data/calendar.js
JavaScript
agpl-3.0
1,480
/** * Copyright (C) 2011 KO GmbH <jos.van.den.oever@kogmbh.com> * @licstart * The JavaScript code in this page is free software: you can redistribute it * and/or modify it under the terms of the GNU Affero General Public License * (GNU AGPL) as published by the Free Software Foundation, either version 3 of * the ...
KiddoKiddo/WebSecA1Q1
apps/files_odfviewer/src/webodf/webodf/lib/gui/XMLEdit.js
JavaScript
agpl-3.0
11,785
OC.L10N.register( "gallery", { "Gallery" : "Galleri", "There was a problem reading files from this album" : "Det oppstod ett problem under lasting av filer fra dette albumet", "Aborting preview. Could not find the file" : "Avbryter visning. Fant ikke filen", "Could not move \"{file}\", target ex...
desaintmartin/gallery
l10n/nb.js
JavaScript
agpl-3.0
8,000
/** * @module IO * @submodule XML * @requires core */ 'use strict'; var p5 = require('../core/core'); /** * XML is a representation of an XML object, able to parse XML code. Use * loadXML() to load external XML files and create XML objects. * * @class p5.XML * @constructor * @return {p5.XML} p5.XML obje...
kadamwhite/p5.js
src/io/p5.XML.js
JavaScript
lgpl-2.1
20,822
'use strict'; var React = require('react'); var DOM = React.DOM, h1 = DOM.h1, header = DOM.header, div = DOM.div, span = DOM.span, p = DOM.p, a = DOM.a; module.exports = React.createClass({ displayName: 'appHeader', render: function render() { var style = { disp...
hesste/cubicweb-react
app/header.js
JavaScript
lgpl-2.1
954
// Copyright 2015 Endless Mobile, Inc. /* exported Grid */ const Gtk = imports.gi.Gtk; const Arrangement = imports.framework.interfaces.arrangement; const Module = imports.framework.interfaces.module; /** * Class: Grid */ var Grid = new Module.Class({ Name: 'Arrangement.Grid', Extends: Gtk.FlowBox, Im...
endlessm/eos-knowledge-lib
js/framework/modules/arrangement/grid.js
JavaScript
lgpl-2.1
804
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
joansmith/sonarqube
server/sonar-web/src/main/js/components/charts/histogram.js
JavaScript
lgpl-3.0
5,015
// 创建动态iframe // 当用户单击任意一个链接时,JavaScript向iframe写入新的代码。在这个示例中,显示的是页面的名称 // 以及当前session中用户访问页面的次数。 // 为了显示加载页面的次数,我们需要一种记录该信息的方法。在这里我们将会使用pageCount。 var pageCount = new Array(0, 0, 0, 0); window.onload = initLinks; function initLinks() { for (var i = 0; i < document.links.length; i++) { document.link...
Litfeature/litfeature.github.io
demo/Origin JavaScript/JavaScript基础教程(第8版)/Chapter 05/js/05-05.js
JavaScript
lgpl-3.0
1,115
// Karma configuration // Generated on Wed Sep 21 2016 00:37:04 GMT+0900 (KST) module.exports = function (config) { var configuration = { // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://...
sera0731/ax5ui-kernel
src/ax5core/karma.conf.js
JavaScript
lgpl-3.0
1,928
isc.Menu.create({ ID: "menu", autoDraw: false, showShadow: true, shadowDepth: 10, data: [ {title: "New", keyTitle: "Ctrl+N", icon: "icons/16/document_plain_new.png"}, {title: "Open", keyTitle: "Ctrl+O", icon: "icons/16/folder_out.png"}, {isSeparator: true}, {title: "S...
kylemwhite/isc
isomorphic_11.1p/system/reference/inlineExamples/actions/toolStrips.js
JavaScript
lgpl-3.0
3,344
Ext.namespace('Ext.ux.radioman.i18n'); /** * */ Ext.ux.radioman.i18n.fr = { Common: { Yes: 'Oui', No: 'Non', Error: 'Erreur' }, Navigation: { Title: 'Navigation', Items: { Dashboard: 'Tableau de bord', MediaLibrary: 'Collection' }, HelpPanel: { Title: 'Aide', Items: { Dashboard: '<h...
lbotsch/radioman
admin/js/i18n/fr_FR.js
JavaScript
lgpl-3.0
4,856
'use strict'; var messages = { chinese : { "Device not initialized or passphrase request cancelled" : "设备未初始化或已取消输入密码", "Invalid signature" : "无效的签名", "Not enough funds" : "资金不足", "PIN Cancelled" : "PIN码输入已取消", "Invalid PIN" : "PIN码错误", "PIN removal cancelled" : "PIN码删除已取消", "Ping cancelled" :...
BWallet/bwallet.js
lib/translator.js
JavaScript
lgpl-3.0
3,362
/** * Este arquivo é parte do Biblivre5. * * Biblivre5 é um software livre; você pode redistribuí-lo e/ou * modificá-lo dentro dos termos da Licença Pública Geral GNU como * publicada pela Fundação do Software Livre (FSF); na versão 3 da * Licença, ou (caso queira) qualquer versão posterior. * * Es...
Biblivre/Biblivre-5
WebContent/static/scripts/biblivre.z3950.search.js
JavaScript
lgpl-3.0
3,608
function VerEnMapa(prov, dire, loc, id) { alert(prov + dire + loc); var punto = dire +", " + loc +", " + prov +", Argentina"; console.log(punto); var funcionAjax=$.ajax({ url:"nexo.php", type:"post", data:{ queHacer:"VerEnMapa" } }); funcionAjax.done(function(retorno)...
gabrielfresco/PrimerParcial
js/funcionesMapa.js
JavaScript
lgpl-3.0
428
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
SOCR/HTML5_WebSite
HTML5/BrainPainter/X/lib/closure-library/closure/goog/editor/field.js
JavaScript
lgpl-3.0
82,702
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
Xertoz/Loading-Bar
includes/utils.js
JavaScript
lgpl-3.0
6,440
import Studio from 'jsreport-studio' import CreateSamplesModal from './CreateSamplesModal' Studio.readyListeners.push(() => { const samplesCreated = Studio.getSettingValueByKey('sample-created', false) === true if ( Studio.extensions['sample-template'].options.createSamples != null || samplesCreated === t...
jsreport/jsreport-sample-template
studio/main_dev.js
JavaScript
lgpl-3.0
524
//This file just deals with drawing things. //It is probably cludgy as, don't look in here for good coding advice! :)s var stage; var gfxResources = {}; function init() { stage = new createjs.Stage('canvas'); createjs.DisplayObject.suppressCrossDomainErrors = true; loadingComplete(); } function createCenteredBit...
HowToRts/HowToRts.github.io
examples/9-flow-field-improvements-again/renderer.js
JavaScript
unlicense
4,732
'use strict'; describe('controllers', function(){ var scope; beforeEach(module('cceeScde.home')); beforeEach(inject(function($rootScope) { scope = $rootScope.$new(); })); it('should define more than 5 awesome things', inject(function($controller) { expect(scope.awesomeThings).toBeUndefined(); ...
jferracini/ccee-ui-framework
src/main/web/app/modules/home/controllers/home.controller.spec.js
JavaScript
unlicense
517
import path from 'path'; import non_throwing_require from '../../../../core/utils/non_throwing_require'; export const declaration = { interface: '0.0.1', }; export const dependencies = []; export function perform(callback, results) { const package_decl_path = path.resolve(process.cwd(), './npm-shrinkwrap.json'); ...
Offirmo/bangja
lib/modules/npm-shrinkwrap/observations/content/index.js
JavaScript
unlicense
562
function Point(x, y) { this.x = x; this.y = y; } function P(x, y) { return new Point(x, y); } // shorthand Point.ORIGIN = P(0, 0); Point.DIRECTIONS = [P(0, 1), P(1, 0), P(-1, 0), P(0, -1)]; Point.prototype.plus = function(point) { return P(this.x + point.x, this.y + point.y); }; Point.prototype.minus = ...
skeeto/snake-fill-js
src/Point.js
JavaScript
unlicense
905
var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } funct...
amelon/bbrails-express
assets/javascripts/lib/backbone.chooser.js
JavaScript
unlicense
9,311
/* This simple program calculates the x and y co-ordinates of the ultrasonic transmitter relative to the centre of K9 and send them to node-RED on the Raspberry Pi via USB cable. It uses a standalone feed forward neural net generated by the Synaptic.JS library. It captures the data from the five ultrasonic sensors e...
hopkira/k9-chess-angular
espruino/moving_avg_net.js
JavaScript
unlicense
8,089
'use strict' const Code = require('code') const Hapi = require('hapi') const Lab = require('lab') const Pascal = require('../') // shortcuts const lab = exports.lab = Lab.script() const describe = lab.describe const it = lab.it const expect = Code.expect describe('Pascal', () => { it('converts a string to pascal ...
geek/pascal-plugin
test/index.js
JavaScript
unlicense
622
'use strict'; var React = require('react'); var ValidationMessage = React.createClass({ render: function () { var type = this.props.type; var msgn = this.props.message; var className = 'alert alert-'.concat(type); return <div className={className}>{msgn}</div>; } }); module.exports = ValidationM...
luiz-simples/kauris
client/src/form/fields/validations/ValidationMessage.js
JavaScript
unlicense
328
const LinkedList = require('./linked-list'); /** * A hashtable is a data structure that allows Insert, Delete and Search operations in O(1) time. * This hashtable implimentation uses chaining and a trivial hash function for brevity. * Insert - O(1) * Delete - O(1) * Search - O(1) */ class HashTable { constru...
jwanga/algorithms-javascript
hash-table.js
JavaScript
unlicense
6,000
var $ = require('jquery'); var m = require('mithril'); var mime = require('js/mime'); var bootbox = require('bootbox'); var $osf = require('js/osfHelpers'); var waterbutler = require('js/waterbutler'); // Local requires var utils = require('./util.js'); var FileEditor = require('./editor.js'); var makeClient = require...
ticklemepierce/osf.io
website/static/js/filepage/index.js
JavaScript
apache-2.0
24,513
import classNames from "classnames"; import React from "react"; import Icon from "./Icon"; const Alert = ({ children, flushBottom, showIcon, type }) => { const classes = classNames("alert", { [`alert-${type}`]: type != null, "flush-bottom": flushBottom === true }); let icon = null; if (showIcon) { ...
jcloud-shengtai/dcos-ui_CN
src/js/components/Alert.js
JavaScript
apache-2.0
915
'use strict'; var d3Selection = require('d3-selection'), PubSub = require('pubsub-js'), step = require('./../src/charts/step'), miniTooltip = require('./../src/charts/mini-tooltip'), dataBuilder = require('./../test/fixtures/stepChartDataBuilder'); function createStepChart() { var stepChart = ...
jenjwong/britecharts
demos/demo-step.js
JavaScript
apache-2.0
2,089
class Hook { constructor() { this.init(); } init() { this.components = {}; this.methods = {}; this.props = {}; } registerComponent(corenID, component) { this.components[corenID] = component; } setProps(id, props) { this.props[id] = props; } bindMethod(id, cycle) { if (!...
Canner/coren
shared/ssrHook.js
JavaScript
apache-2.0
445
//// [conditionalOperatorConditionIsObjectType.ts] //Cond ? Expr1 : Expr2, Cond is of object type, Expr1 and Expr2 have the same type var condObject: Object; var exprAny1: any; var exprBoolean1: boolean; var exprNumber1: number; var exprString1: string; var exprIsObject1: Object; var exprAny2: any; var exprBoolean2...
mauricionr/TypeScript
tests/baselines/reference/conditionalOperatorConditionIsObjectType.js
JavaScript
apache-2.0
5,393
/** * Visual Blocks Editor * * Copyright 2011 Google Inc. * http://blockly.googlecode.com/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
tobyk100/blockly-trunk
core/contextmenu.js
JavaScript
apache-2.0
8,192
var searchData= [ ['const_5fpointer',['const_pointer',['../classblowbox_1_1memory_1_1_stl_allocator.html#a71dd4886e111867ecc1b01166375eb2d',1,'blowbox::memory::StlAllocator']]] ];
RikoOphorst/blowbox
doc/html/search/typedefs_0.js
JavaScript
apache-2.0
182
'use strict'; const path = require('path'); const _ = require('lodash'); const debug = require('debug')('node-registry:plugins'); const Plugin = require('./plugin'); const utils = require('../utils'); /** * Scan the node modules Directory folder in order to find all * the Node Registry plugins. */ function loadPlu...
vladaspasic/node-registry
lib/plugins/index.js
JavaScript
apache-2.0
1,011
function getTimeRemaining(endtime) { var t = Date.parse(endtime) - Date.parse(new Date()); var seconds = Math.floor((t / 1000) % 60); var minutes = Math.floor((t / 1000 / 60) % 60); var hours = Math.floor((t / (1000 * 60 * 60)) % 24); var days = Math.floor(t / (1000 * 60 * 60 * 24)); // Make sure displa...
MeteorCampNYC/MeteorCampNYC
js/countdowntimer.js
JavaScript
apache-2.0
1,462
'use strict'; /** * @ngdoc function * @name wheretoliveApp.controller:CrimapCtrl * @description * # CrimapCtrl * Controller of the wheretoliveApp */ angular.module('wheretoliveApp') .controller('CrimapCtrl', ['$scope', 'Search','$http', function ($scope, Search, $http){ $scope.map = { ...
fabiofumarola/wheretolive
app/scripts/controllers/crimap.js
JavaScript
apache-2.0
4,936
var classorg_1_1onosproject_1_1store_1_1link_1_1impl_1_1LinkInjectedEvent = [ [ "LinkInjectedEvent", "classorg_1_1onosproject_1_1store_1_1link_1_1impl_1_1LinkInjectedEvent.html#a3fa22fadf9a21083deffccde288e71c2", null ], [ "LinkInjectedEvent", "classorg_1_1onosproject_1_1store_1_1link_1_1impl_1_1LinkInjectedEve...
onosfw/apis
onos/apis/classorg_1_1onosproject_1_1store_1_1link_1_1impl_1_1LinkInjectedEvent.js
JavaScript
apache-2.0
796
// *********************************************** // WINE LIFE // DISCOVER WINDOW - DiscoverWindow.js // // MEN+1 // Programmer: Matthew Johnson // *********************************************** function DiscoverWindow(title) { var global = require('ui/common/globals'); var dropdown = require('ui/common/elements...
GladiusMattius/WineApp
Resources/ui/handheld/DiscoverWindow.js
JavaScript
apache-2.0
12,662
// Original game from: // http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/ // Slight modifications by Gregorio Robles <grex@gsyc.urjc.es> // to meet the criteria of a canvas class for DAT @ Univ. Rey Juan Carlos /** * sound effects */ var audiotypes={ "mp3": "audio/mpeg", "mp4": ...
vcarrera/X-Nav-5.7.6-JuegoCanvas
js/game.js
JavaScript
apache-2.0
14,564
/*! * Copyright (c) 2015-2016, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by ...
alanzhou-okta/okta-signin-widget
src/util/webauthn.js
JavaScript
apache-2.0
2,068
/** * @author mrdoob / http://mrdoob.com/ */ import { Vector3 } from '../math/Vector3.js'; import { Quaternion } from '../math/Quaternion.js'; import { Audio } from './Audio.js'; import { Object3D } from '../core/Object3D.js'; const _position = new Vector3(); const _quaternion = new Quaternion(); const _scale = new...
webmaster444/webmaster444.github.io
other/mypointcloud/three/src/audio/PositionalAudio.js
JavaScript
apache-2.0
2,783
/* * roles.js * * Note: The information in this module is based on the following documents: * 1. ARIA in HTML (https://specs.webplatform.org/html-aria/webspecs/master/) * 2. WAI-ARIA 1.1 (http://www.w3.org/TR/wai-aria-1.1/) * 3. WAI-ARIA 1.0 (http://www.w3.org/TR/wai-aria/) */ import { isDescendantOf, hasPar...
oaa-tools/bookmarklets-library
utils/roles.js
JavaScript
apache-2.0
7,557
(function(){var binaryIndexBy = require('./binaryIndexBy'), identity = require('../utility/identity'); /** Used as references for the maximum length and index of an array. */ var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; /** * Performs a binary search of `array` ...
durwasa-chakraborty/navigus
.demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/zip-stream/node_modules/lodash/internal/binaryIndex.js
JavaScript
apache-2.0
1,334
/** * @license Apache-2.0 * * Copyright (c) 2019 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/iter/mprod/examples/index.js
JavaScript
apache-2.0
1,156
const API = require('utils/API').default import { SubmissionError } from 'redux-form' import { showNotification } from 'store/notifications' // ------------------------------------ // Constants // ------------------------------------ export const LOAD_IDEAS_REQUEST = 'LOAD_IDEAS_REQUEST' export const LOAD_ALL_IDEAS_SU...
nicklee1990/CompanyIdeas
src/routes/Ideas/modules/ideas.js
JavaScript
apache-2.0
5,779
/* Copyright 2012 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
macroplant/pdf.js
src/core/evaluator.js
JavaScript
apache-2.0
148,162
define(function (require) { 'use strict'; var modules = require('modules'); modules.get('a4c-applications', ['ngResource']).factory('applicationVersionServices', ['$resource', function($resource) { var searchVersionResource = $resource('rest/latest/applications/:delegateId/versions/search', {}, { ...
PierreLemordant/alien4cloud
alien4cloud-ui/src/main/webapp/scripts/applications/services/application_version_services.js
JavaScript
apache-2.0
1,506
import React from 'react'; export default function SvgDelete(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" {...props} > <path data-name="\u6955\u5186\u5F62 5 \u306E\u30B3\u30D4\u30FC 5" d="M16 24a8 8 ...
iCHEF/gypcrete
packages/core/src/icons/components/Delete.js
JavaScript
apache-2.0
518
var angApplication = angular.module('angularApp', []); angApplication.config(function () { }); angApplication.run(function ($rootScope) { $rootScope.name = 'Hii'; }); angApplication.controller('MainCtrl', ['$scope', function ($scope) { $scope.doSomeThing = function () { console.log('Button clicked')...
mainul098/AngularJsUpAndRunning
class-05-Directive Introduction/js/app.js
JavaScript
apache-2.0
3,254
define("dojo/io/script", [ "../_base/connect", /*===== "../_base/declare", =====*/ "../_base/kernel", "../_base/lang", "../sniff", "../_base/window","../_base/xhr", "../dom", "../dom-construct", "../request/script", "../aspect" ], function(connect, /*===== declare, =====*/ kernel, lang, has, win, xhr, dom, domConstr...
Caspar12/zh.sw
zh.web.site.admin/src/main/resources/static/js/dojo/dojo/io/script.js.consoleStripped.js
JavaScript
apache-2.0
8,841
define( ({ showArcgisBasemaps: "Medtag Portal-baggrundskort", settings: "Indstillinger", add: "Klik for at tilføje et nyt baggrundskort", edit: "Egenskaber", title: "Titel", titlePH: "Baggrundskortets titel", thumbnail: "Miniature", thumbnailHint: "Klik på billedet for at opdatere", ...
lcdxsys/Measure-Calculator
webApp/widgets/BasemapGallery/setting/nls/da/strings.js
JavaScript
apache-2.0
1,137
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CD...
ftomassetti/JavaIncrementalParser
src/test/resources/javaee7-samples/websocket/encoder/src/main/webapp/websocket.js
JavaScript
apache-2.0
2,909
function login_submit() { jQuery.post("/login/commit", { account: jQuery("#inputAccount").val(), password: jQuery("#inputPassword").val(), isRemember: jQuery("#inputRemember").prop("checked"), }, function (data, status) { if (data.status != 2...
waterystone/spring-web-test
src/main/webapp/js/user/login.js
JavaScript
apache-2.0
597
/** * Copyright 2016 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 applic...
cedricbellet/lighthouse
lighthouse-core/test/audits/estimated-input-latency-test.js
JavaScript
apache-2.0
1,526
/** * @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/cos/test/test.js
JavaScript
apache-2.0
5,656
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to bu...
ProteanBear/ProteanBear_Java
source/PbJWebManager/web/include/lib/ckeditor/build-config.js
JavaScript
apache-2.0
2,059
/* * Copyright 2015 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 i...
EclairJS/eclairjs
client/test/RDD.js
JavaScript
apache-2.0
5,513
var searchData= [ ['sample',['Sample',['../a04155.html#aee7b23bef7e0cdd87974d3c9d36e9d73',1,'SAMPLELIST']]], ['sample_5fiteration_5f',['sample_iteration_',['../a04551.html#aef5b9a97853a4d8a409b451b445bbd0a',1,'tesseract::LSTMRecognizer']]], ['samplecount',['SampleCount',['../a04123.html#a67f65514626f5d21844400c52...
stweil/tesseract-ocr.github.io
4.0.0/search/variables_12.js
JavaScript
apache-2.0
14,944
'use strict'; var request = require('request'); var utilities = require('./utilities'); var settings = require('../settings'); function APIClient2(baseUrl, token) { this.__token = token || settings.access_token; this.request = request.defaults({ baseUrl: baseUrl || settings.apiUrl, proxy: settings.proxyUrl || p...
kennethlimcp/particle-cli
oldlib/ApiClient2.js
JavaScript
apache-2.0
2,783
// Copyright 2010 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
adambyram/bite-project-mod
tools/rpf/extension/src/libs/editormanager.js
JavaScript
apache-2.0
12,461
/** * @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/ndarray/base/singleton-dimensions/test/test.js
JavaScript
apache-2.0
1,387
var assert = require('assert') , _ = require('underscore') , util = require('util') , fse = require('fs-extra'); global.config = global.config || {}, global.config.sql_engine = 'sqlite'; var APP_PATH = "../app/"; var AccessControl = require(APP_PATH + 'AccessControl').AccessControl , Database = require(APP_PAT...
dkottow/ngen-mapu
test/test-accesscontrol.js
JavaScript
apache-2.0
4,102
/* * 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 ...
GoogleForCreators/web-stories-wp
packages/story-editor/src/components/header/buttons/buttonWithChecklistWarning.js
JavaScript
apache-2.0
4,109
var searchData= [ ['failure',['FAILURE',['../aws__iot__error_8h.html#a329da5c3a42979b72561e28e749f6921aa5571864412c8275a2e18a931fddcaa6',1,'aws_iot_error.h']]], ['fpactioncallback_5ft',['fpActionCallback_t',['../aws__iot__shadow__interface_8h.html#ab20a49b955606347ac9d18aef0e421c2',1,'aws_iot_shadow_interface.h']]]...
chainlinq/boatkeeper
linux_mqtt_mbedtls-2.1.1/docs/html/search/all_6.js
JavaScript
apache-2.0
440
/* * ! ${copyright} */ sap.ui.define([ "./ModificationHandler", "sap/ui/mdc/p13n/FlexUtil", "sap/ui/fl/apply/api/FlexRuntimeInfoAPI", "sap/ui/mdc/enum/PersistenceMode" ], function(ModificationHandler, FlexUtil, FlexRuntimeInfoAPI, mode) { "use strict"; var oFlexModificationHandler; /** * ...
SAP/openui5
src/sap.ui.mdc/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js
JavaScript
apache-2.0
2,796
(function() { 'use strict'; angular .module('thingApp') .config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider.state('logs', { parent: 'admin', url: '/logs', data: { ...
DavidLDawes/thing0
src/main/webapp/app/admin/logs/logs.state.js
JavaScript
apache-2.0
963
/* * is/Binary.js * * David Janes * IOTDB.org * 2019-10-22 * * Copyright (2013-2020) David P. Janes * * 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.apa...
dpjanes/iotdb-mongodb
is/Binary.js
JavaScript
apache-2.0
861
/*global define*/ define([ '../Core/defined', '../Core/defineProperties' ], function( defined, defineProperties) { 'use strict'; /** * @private */ function DoublyLinkedList() { this.head = undefined; this.tail = undefined; this._length =...
omh1280/cesium
Source/Core/DoublyLinkedList.js
JavaScript
apache-2.0
2,540
function TermList() { this.xhttp = new XMLHttpRequest(); this.xhttp.open('GET','/list',false); this.xhttp.send(); this.list = this.xhttp.responseText; this.list = this.list.split(', '); this.isMember = function(string) { for ( var i = 0; i < this.list.length; i++) { if (thi...
AsimmHirani/ISpyPi
flask/js/TermList.js
JavaScript
apache-2.0
748
"use strict"; var utils = require("../../utils"); /** * * @param {RequestContext} rc */ module.exports=function (rc) { utils.setLoggingLevel("all"); return { status: 302, headers: { "Content-Type": "text/html; charset=utf-8", "Location": "/" } }; }; module....
OpenNTF/Web-UI-Prototyping-Toolkit
lib/cmd/ps/log_all.js
JavaScript
apache-2.0
437
var tableData = function () { var that = {}; var _editTableData = function (item) { $.ajax({ url: "/api/editTableData", type: "post", data: item, success: function (res) { console.log(res); }, error: fu...
rkthakur/mediamixmodeling
POCs/csvUploadWithEditTable/public/js/TableData.js
JavaScript
apache-2.0
3,787
/** * @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/blas/ext/base/dsnansum/lib/dsnansum.js
JavaScript
apache-2.0
1,388