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
/** Ignored files/directories handling. * * Cozy-desktop can ignore some files and folders with a `.cozyignore` file. This * file is read only at the startup of Cozy-desktop. So, if this file is * modified, cozy-desktop has to be relaunched for the changes to be effective. * * There 4 places where ignoring files ...
cozy-labs/cozy-desktop
core/ignore.js
JavaScript
agpl-3.0
7,020
import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import CoreCastEfficiency from 'Parser/Core/Modules/CastEfficiency'; /* eslint-disable no-unused-vars */ class CastEfficiency extends CoreCastEfficiency { static CPM_ABILITIES = [ ...CoreCastEfficiency.CPM_ABILITIES, // Rotational Spells...
mwwscott0/WoWAnalyzer
src/Parser/BalanceDruid/Modules/Features/CastEfficiency.js
JavaScript
agpl-3.0
2,548
define(function(require) { 'use strict'; var PIXI = require('pixi'); var PixiView = require('common/v3/pixi/view'); var Vector2 = require('common/math/vector2'); var range = require('common/math/range'); var Assets = require('assets'); var Constants = require('constants'); ...
Connexions/simulations
states-of-matter/src/js/views/pump.js
JavaScript
agpl-3.0
3,680
/** * @copyright Jon Loldrup loldrup@gmail.com * @copyright Hjalte Loldrup hjalteloldrup@gmail.com This file is part of Rafter. Rafter is free software: you can redistribute it and/or modify it under the terms of the GNU Affero Public License as published by the Free Software Foundation, either version 3 of the...
Damgaard/rafter
js/test.js
JavaScript
agpl-3.0
1,778
/** * Created by igorek2312 on 14.11.16. */ 'use strict' angular.module('libreLingvoApp') .controller('NavBarCtrl', function ($scope, $window, $rootScope, $state, ...
Igorek2312/LibreLingvo
spa/app/scripts/controllers/navbar.js
JavaScript
agpl-3.0
2,065
$( document ).ready(function() { $("#suggestionlink").click(function(){ $("#suggestionlist").show(); }); });
d120/pyofahrt
ofahrtbase/static/ofahrtbase/script.js
JavaScript
agpl-3.0
119
var config = require('./config.js'); var stepmotor = require('./stepmotordriver.js'); console.log(config.getSerialPort()); console.log(config.baudrate); stepmotor.initialize({ serialport: config.getSerialPort(), baudrate: config.baudrate}); setTimeout( function () { stepmotor.setDirection(stepmotor.directionCloc...
nneves/nodejs_smartobject
stepmotordemo.js
JavaScript
agpl-3.0
665
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":95,"id":223444,"methods":[{"el":42,"sc":2,"sl":40},{"el":47,"sc":2,"sl":44},{"el":61,"sc":2,"sl":49},{"el":70,"sc":2,"sl":63},{"el":75,"sc":2,"sl":72},{"el":80,"sc":2,"sl":77},{"el"...
cm-is-dog/rapidminer-studio-core
report/html/com/rapidminer/operator/SimpleProcessSetupError.js
JavaScript
agpl-3.0
1,000
/* * This program is part of the OpenLMIS logistics management information system platform software. * Copyright © 2017 VillageReach * * 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, e...
OpenLMIS/openlmis-stockmanagement-ui
src/admin-reason-add/admin-reason-add-service.js
JavaScript
agpl-3.0
4,609
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"...
tagspaces/tagspaces
cordova/platforms/android/cordova/lib/prepare.js
JavaScript
agpl-3.0
32,870
'use strict'; const rp = require('request-promise'); const parser = require('./parser'); const user = require('../user'); let getAccessToken = async function (code) { let resp = await rp.post('https://login.microsoftonline.com/common/oauth2/v2.0/token', { form: { code: code, client...
Elyoos/Elyoos
dumondaMe/api/models/import/outlook/outlook.js
JavaScript
agpl-3.0
1,182
/** * Created by filip on 11/5/14. */ 'use strict'; angular.module('registryApp.repo') .controller('PickRepoModalCtrl', ['$scope', '$modalInstance', 'data', 'HotkeyRegistry', 'Repo', function ($scope, $modalInstance, data, HotkeyRegistry, Repo) { $scope.view = {}; $scope.view.repos = data.repos;...
rabix/registry
client/app/modules/repo/controllers/PickRepoModalCtrl.js
JavaScript
agpl-3.0
2,179
import * as EditorActions from './editor/actions'; export { EditorActions } import * as contentActions from './content/actions'; import * as resolutionActions from './resolution/actions'; import * as selectionActions from './selection/actions'; import * as sizeActions from './size/actions'; const defaultActions = { ...
ChuckDaniels87/pydio-core
core/src/plugins/gui.ajax/res/js/ui/HOCs/utils.js
JavaScript
agpl-3.0
2,043
// @flow import nullthrows from 'nullthrows'; import { Request, Response } from 'oauth2-server'; import type { IDeviceAttributeRepository, IOrganizationRepository, IUserRepository, IWebhookRepository, ProtectedEntityName, } from '../types'; import HttpError from '../lib/HttpError'; import settings from '../s...
Brewskey/spark-server
src/managers/PermissionManager.js
JavaScript
agpl-3.0
4,546
// Inspired by Layoutests/animations/animation-test-helpers.js // Modified to work with SVG and together with LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js function isCloseEnough(actual, desired, tolerance) { var diff = Math.abs(actual - desired); return diff <= tolerance; } function shouldBeCloseE...
youfoh/webkit-efl
LayoutTests/svg/animations/resources/SVGAnimationTestCase.js
JavaScript
lgpl-2.1
5,021
ludo.crop.Handle = new Class({ Extends:ludo.svg.Node, type:'crop.Handle', tag:'rect', useController:true, properties:{ x:0, y:0, width:50, height:50, stroke:'white', 'fill':'#FFF', 'fill-opacity':0 }, x:0, y:0, cropArea:{ x:0, y:0, width:0, height:0 }, image:{ ...
DHTMLGoodies/ludojs
demo/image-crop/handle.js
JavaScript
lgpl-2.1
4,095
PedigreeImport = function () { }; PedigreeImport.prototype = { }; /*PedigreeImport.SUPORTED_FORMATS = { PED: 1, // standard .PED format. Can only import family structure, gender and the affected status PHENOTIPS_GRAPH: 2, // Phenotips pedigree format, whithout positioning infor...
panogram/panogram
js/import.js
JavaScript
lgpl-2.1
56,896
const getCookie = (name) => { var cookieValue = null; if (document.cookie && document.cookie !== '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name...
timoguic/sp_hub
drf_sp_hub/assets/js/core.js
JavaScript
lgpl-3.0
966
'use static'; import { Seq, Strings } from 'js-prelude'; import { createElement as dom } from 'js-surface'; export default class ComponentHelper { static buildCssClass(...tokens) { let ret = ''; for (let token of tokens) { if (typeof token === 'string' && token.length > 0) { ...
js-works/js-scenery
boxroom/archive/js-scenery-2018-08-21/boxroom/old-stuff/facekit/src/main/js/helpers/ComponentHelper.js
JavaScript
lgpl-3.0
1,822
/* * JavaScript Document * @author Ryan Gentner * @date 2013-June-03 * * Report Generator Module */ Ext.namespace('XDMoD'); XDMoD.Module.ReportGenerator = Ext.extend(XDMoD.PortalModule, { module_id: 'report_generator', // Public reference to the store associated with the XDMoD.AvailableCharts in...
jeid64/xdmod
html/gui/js/modules/ReportGenerator.js
JavaScript
lgpl-3.0
1,391
/*! * Copyright (c) Metaways Infosystems GmbH, 2014 * LGPLv3, http://opensource.org/licenses/LGPL-3.0 */ Ext.ns('MShop.panel.coupon.code'); MShop.panel.coupon.code.ListUi = Ext.extend(MShop.panel.AbstractListUi, { recordName : 'Coupon_Code', idProperty : 'coupon.code.id', siteidProperty : 'coupon.cod...
aimeos/ai-admin-extadm
admin/extjs/src/panel/coupon/code/ListUi.js
JavaScript
lgpl-3.0
4,496
var indexSectionsWithContent = { 0: "aeims", 1: "a", 2: "aeims" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "functions" }; var indexSectionLabels = { 0: "Tutto", 1: "Classi", 2: "Funzioni" };
ziriuz84/ApiGest
docs/html/search/searchdata.js
JavaScript
lgpl-3.0
225
'use strict'; angular.module('tmfMap') .constant('index', { fallbackLanguage: ['en_US'], languages: { 'en_US': { APP_TITLE: 'The Migrants\' Files - EN', INFOWINDOW_CONTENT: '{{ deaths }} refugees and migrants died at this location between 2000 and June 18, 2015.' }, 'fr_FR':...
jplusplus/tmf-map
src/app/index.constant.js
JavaScript
lgpl-3.0
1,578
var path = require('path') var webpack = require('webpack') module.exports = { entry: './src/main.js', output: { filename: './dist/news.min.js', libraryTarget: 'umd', umdNamedDefine: true, library: 'NewsWidget' }, module: { rules: [ { test: /\.vue$/, loader: 'vue-loade...
motanelu/bcn-js-news-widget
webpack.config.js
JavaScript
lgpl-3.0
1,401
var class_sigmoid_neuron = [ [ "SigmoidNeuron", "class_sigmoid_neuron.html#ac3850e53911b7078b33a37ee4e8556d4", null ], [ "calculateOutput", "class_sigmoid_neuron.html#a1e96a11df4515a3b2c21e8fc9e0c36eb", null ], [ "dotProduct", "class_sigmoid_neuron.html#ae4ad5e0d6d3476f381d8d71d81c40aee", null ], [ "set...
Wmaxlees/jarvis-os
Documentation/html/class_sigmoid_neuron.js
JavaScript
lgpl-3.0
646
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2011 1&1 Internet AG, Germany, http://www.1und1.de License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org/d...
sebastienhupin/qxrad
qooxdoo/framework/source/class/qx/bom/client/OperatingSystem.js
JavaScript
lgpl-3.0
6,629
/*! * Invoicible/CentrumFaktur API 0.0.1 - JavaScript Invoicible Library * * Copyright (c) 2010 Mirek Mencel (http://mirumee.com) * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 */ InvoicibleBasic = (function() { var INVOICES_URI = "/api/1.0/invoices/", ESTIMATES_URI = "/api/1.0...
mirumee/js-invoicible
invoicible.js
JavaScript
lgpl-3.0
8,250
/** * @fileoverview Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/) * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible) * This should work very similarly to jQuery's events, however it's based off the book version which isn't as * robus...
moay/video-js
src/js/events.js
JavaScript
lgpl-3.0
9,741
/** * Create / Post / Invitation */ function main() { var invitation = null; // Get the web site site var shortName = url.extension.split("/")[0]; var site = siteService.getSite(shortName); if (site == null) { // Site cannot be found status.setCode(status.STATU...
loftuxab/alfresco-community-loftux
projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js
JavaScript
lgpl-3.0
5,052
const gulp = require('gulp'); const minify = require('minify'); const fs = require('fs'); const pkg = require('./package.json'); const credits = "/* webfinger.js v" + pkg.version + " | (c) 2012 Nick Jennings | License: AGPL | https://github.com/silverbucket/webfinger.js */\n"; gulp.task('default', async function () {...
silverbucket/webfinger.js
gulpfile.js
JavaScript
lgpl-3.0
575
var classmemoryoracle_1_1test__models_1_1ExecutableTestData = [ [ "set_up_class", "classmemoryoracle_1_1test__models_1_1ExecutableTestData.html#a526f912c2e8eeddb64beb6241f138c09", null ], [ "_depends", "classmemoryoracle_1_1test__models_1_1ExecutableTestData.html#a2558978df6fcc2cf6d1a9dadec3ed075", null ], ...
daniel-noland/MemoryOracle
doc/html/classmemoryoracle_1_1test__models_1_1ExecutableTestData.js
JavaScript
lgpl-3.0
438
'use strict'; /*jslint node: true*/ var logger = require('../lib/logger'); var Game = require('./../models/Game.js'); var AddGameEvent = require('./../public/js/events/addGame.js'); var pieces = require('./../public/js/game/structs/pieces.js'); var _ = require('lodash'); var side = require('./../public/js/game/structs...
afiodorov/stratego
socketHandlers/game.js
JavaScript
lgpl-3.0
1,645
(function(angular, document){ var module = angular.module('ultra-table', []); module.directive('ultraTable', function($compile, $timeout, $q, $parse){ var DRAG_TYPE = { COLUMN_DRAG: 'ultra-table.columnDrag', COLUMN_RESIZE: 'ultra-table.columnResize' }; ...
marook/ultra-table
ultra-table.js
JavaScript
lgpl-3.0
26,701
var arr = [3, 6]; arr[234] = "hi"; // console.log( arr.length ); // 235 console.log( arr[34] ); // undefined arr.length = 3; console.log( arr[34] ); console.log( arr[234] ); console.log( arr.length ); arr.length = 500; console.log( arr[234] ); console.log( arr.length );
danieloostra/mean-charlie-workspace
eugene/JavaScript/test.js
JavaScript
unlicense
270
itemManager = (function () { var getItemById = function (id) { var item = Object.create(Item); item.id = id; item._id = id; return item; }; return { getItemById: getItemById, }; })();
Treora/cothink
cothink/client/itemmanager.js
JavaScript
unlicense
243
/** @module logger * Exists only because I can't figure out how to set log levels * or anything in Node. */ "use strict"; const TEST = process.env["IRCJS_TEST"] ? true : false; const constants = require("./constants"); const fmt = require("util").format; const fs = require("fs"); const path ...
gf3/IRC-js
lib/logger.js
JavaScript
unlicense
3,710
var express = require('express'), router = express.Router(), /// For collection utilities _ = require('lodash'), /// So we can read files from the filesystem fs = require('fs'), /// To get relative and ultimate paths path = require('path'), /// For serving a favicon favicon = require...
KenEucker/quasi
quasi/routes.js
JavaScript
unlicense
8,703
var dataString ='<chart manageResize="1" decmials="0" numberSuffix="%" placeValuesInside="1" is3D="0" showBorder="0" bgColor="FFFFFF" baseFontColor="007700">\n\ <colorRange>\n\ <color minValue="0" maxValue="50" name="Normal" code="99CC00" />\n\ <color minValue="50" maxValue="7...
cc14514/hq6
face-web/src/main/webapp/static/fusionWidgets/Code/Styles/blur.js
JavaScript
unlicense
689
const BaseWidget = require('./BaseWidget.js'); class WindowWidget extends BaseWidget { constructor() { super(); this.activate(); this.focusedWidget_ = null; this.focusChangeEnabled_ = true; this.lastFocusedWidget_ = null; this.setStretch(true, true); } // The windows overrides the handleKey() function...
Haini/dotfiles
.joplin-bin/lib/node_modules/joplin/node_modules/tkwidgets/WindowWidget.js
JavaScript
unlicense
3,601
describe('CAROUSEL - SINGLE IMAGE', function() { beforeEach(function() { jasmine.getFixtures().fixturesPath = fixturePath; loadFixtures(singleFixture); this.carousel = new Carousel({ initial: 5 }); }); describe('general', function() { it('should be defin...
zoltantothcom/vanilla-js-carousel
test/spec/single_image.spec.js
JavaScript
unlicense
1,728
/* jslint browser: true */ /* global spyOn, jasmine, expect, sinon */ define([ 'underscore', 'Config', 'models/NWISCollection' ], function(_, Config, NWISCollection) { describe('models/NWISCollection', function() { var fakeServer; var testCollection; var PM_CODES = '# Date Retrieved: 2016-05-31 14:19:19 EDT...
USGS-CIDA/enddat_web
src/test/js/models/NWISCollectionSpec.js
JavaScript
unlicense
8,203
var directly = require('..').directly; var sinon = require('sinon'); var expect = require('expect.js'); var greek = [ 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta', 'eta', 'theta' ]; describe('directly', function() { var error = new Error('the failure'); var next, spy; beforeEach(functi...
skeggse/nicely
test/directly.js
JavaScript
unlicense
1,775
//EDIT THESE LINES //Title of the blog var TITLE = "Netcetera News"; //RSS url var RSS = "http://www.netcetera.co.uk/blog/index.php?feed=rss2"; //Stores entries var entries = []; var selectedEntry = ""; //listen for detail links $(".contentLink").live("click", function() { selectedEntry = $(this).data("entryid"); }...
netcetera/Android
js/main.js
JavaScript
unlicense
2,071
/// <reference path="../VB_stuff/utils.js" /> /// <reference path="../VB_stuff/VBFormatting.js" /> module("ScanNumber tests"); test("testSplitDate111913", function () { var vbf = new VBDateTimeFormattingModule.VBFormattingHelpers(); var res = vbf.SplitDate(new Date(13, 1, 1)); ok(1, res.date); ok(1, ...
rostacik/VB2TSDatesHelper
TSDatesHelperWebApplication/VB_stuff_Tests/SplitDateTests.js
JavaScript
unlicense
1,036
'use strict'; var ap = require('ap'); var d = require('../decorators'); var fs = require('fs'); var merge = require('merge'); var q = require('q'); var cons = require('consolidate'); var writeFile; Object.keys(cons).forEach(function (engine) { var renderFile; exports[engine] = d.push(d.srcDest(function (src, de...
themeleon/themeleon
mixins/consolidate.js
JavaScript
unlicense
745
"use strict"; var utils = require("../utils"); var url = require("url"); var path = require("path"); var fsops = require("fsops"); var logger = utils.createLogger({sourceFilePath : __filename}); /** * * @param {RequestContext} trc */ var handleCantResolveNonExistingFileRequest = function (trc) { var rc = trc; ...
OpenNTF/Web-UI-Prototyping-Toolkit
lib/handler/handleCantResolveNonExistingFileRequest.js
JavaScript
apache-2.0
2,973
// Copyright 2015 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...
danielromlein/dashboard
src/test/frontend/secret/list/cardlist_component_test.js
JavaScript
apache-2.0
1,873
/* * Copyright 2010 Jive Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
jivesoftware/jiverscripts
test/unit/conc/promise_test.js
JavaScript
apache-2.0
11,384
var events = require('events'); var util = require('util'); var url = require('url'); var parser = require('json-schema-ref-parser'); var Service = require('./service'); var ConnMan = require('./connect'); var validator = require('./validator'); var logger = require('./logger'); ...
out4b/cdif
lib/cdif-device.js
JavaScript
apache-2.0
9,035
/* 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.*/ import { SuperMap } from '../SuperMap'; import ...
SuperMap/iClient9
src/common/iServer/BurstPipelineAnalystService.js
JavaScript
apache-2.0
3,353
'use strict'; var implicitSetter = require('../parsers').implicitSetter; // the valid border-styles: var styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset']; var isValid = module.exports.isValid = function parse(v) { return styles.indexOf(v) !== -1; }; module...
rothnic/MPGbootstrap
node_modules/dc/node_modules/d3/node_modules/jsdom/node_modules/cssstyle/lib/properties/borderStyle.js
JavaScript
apache-2.0
529
/** * @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/regexp/regexp/test/test.regexp.js
JavaScript
apache-2.0
1,667
'use strict'; /* * ///////// MODULE DEPENDENCIES ///////// * */ var express = require('express'); var fs = require('fs'); var http = require('http'); var https = require('spdy'); var session = require('express-session'); var errorHandler = require('errorhandler'); var compress = require('compression'); var path = re...
rberneder/huepro
saisonal/app.js
JavaScript
apache-2.0
3,598
// TODO: data should come from CSV ? const meetupData = { attendees: ['Dustin Sparks', 'Evan Porter', 'Matt Duffy', 'Mike Berger', 'Nolan Phillips'], addItem(attendee) { this.attendees.push(attendee); }, removeItem(index) { this.attendees.splice(index, 1); }, log() { for (const [i, value] of thi...
codetojoy/gists
d3/scooter_simple_jun_2020/app.js
JavaScript
apache-2.0
1,839
//// [tests/cases/conformance/externalModules/reexportClassDefinition.ts] //// //// [foo1.ts] class x{} export = x; //// [foo2.ts] import foo1 = require('./foo1'); export = { x: foo1 } //// [foo3.ts] import foo2 = require('./foo2') class x extends foo2.x {} //// [foo1.js] "use strict"; var x = /*...
domchen/typescript-plus
tests/baselines/reference/reexportClassDefinition.js
JavaScript
apache-2.0
1,405
import {createApp} from 'mantra-core'; import initContext from './configs/context'; // modules import coreModule from './modules/core'; import nodesModule from './modules/nodes'; import postsModule from './modules/posts'; import usersModule from './modules/users'; import filesModule from './modules/files'; // init co...
BitSherpa/EverestCamp
client/main.js
JavaScript
apache-2.0
799
var SMS_SENT = -1, SMS_NOT_SENT = 0; /** * Open an SMS dialog with the given message. * If the SMS is sent, run the onSuccess callback. * * @message {text} the text you want to send * @callback {function} the funciton you want to run on success **/ openSmsDialog("blah", successFunction ); functio...
jonkravetz/ptest
app/controllers/share.js
JavaScript
apache-2.0
1,168
/* Long Dates Functions Pack a Date to format yyyymmdd Copyright (C) 2002 by Cinematica Producciones Ltda. */ var YEAR_FACTOR = 10000; var MONTH_FACTOR = 100; function CP_PackLDate(iYear, iMonth, iDay) { return((iYear * YEAR_FACTOR) + (iMonth * MONTH_FACTOR) + (iDay * 1)); // * 1 ??? } function CP_GetLYear(dtDa...
cortizqgithub/csoftz-rp
ccma-quality-control/website/scripts/CP_Dates.js
JavaScript
apache-2.0
1,327
/* * ../../../..//extensions/a11y/mathmaps/en/functions/hyperbolic.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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 * * ...
GerHobbelt/MathJax
extensions/a11y/mathmaps/en/functions/hyperbolic.js
JavaScript
apache-2.0
4,164
var Backbone = require('backbone'); module.exports = Backbone.View.extend({ // template: require('../templates/contacts.jst'), events: { }, initialize: function() { } });
eratecycle/eratecycle.github.io
_includes/portal/js/views/contacts.js
JavaScript
apache-2.0
186
var structModbusHeader__ = [ [ "length", "structModbusHeader__.html#af007f144b7244a6f8e0bd3c00166a84a", null ], [ "protocolId", "structModbusHeader__.html#a81b01bf362d42600ff129f6eea389d38", null ], [ "transactionId", "structModbusHeader__.html#ae9e17cf0325c6c0cd808082c6e74de02", null ], [ "unitId", "st...
onosfw/apis
suricata/apis/structModbusHeader__.js
JavaScript
apache-2.0
389
define(['knockout','text!./conceptset-list-modal.html'], function (ko, template) { function ConceptSetListModal(params) { const self = this; self.model = params.model; self.title = params.title || 'Concept List'; self.conceptSetList = params.conceptSetList; self.isShown = params.isShown; } const component...
anthonysena/Atlas
js/components/conceptset/conceptset-list-modal.js
JavaScript
apache-2.0
471
/** * External dependencies */ const gulp = require('gulp'); const del = require('del'); gulp.task('copy', () => { del.sync(['./release/**/*']); return gulp.src( [ 'plugin.php', 'dist/*.js', 'dist/assets/**/*', 'bin/**/*', 'includes/**/*', 'third-party/**/*', '!third-party/**/**/{tests,Test...
subscriptions-project/swg-wordpress-plugin
gulp-tasks/copy.js
JavaScript
apache-2.0
590
'use strict'; angular.module('snaplync').controller('InstructorController', ['$cookies','$state','$rootScope','$scope','$location', '$http','fileUpload', function($cookies, $state, $rootScope, $scope, $location, $http,fileUpload) { $scope.skills = []...
subins/filestore
src/main/webapp/js/instructor/controller.js
JavaScript
apache-2.0
6,695
/*jslint white:true plusplus:true nomen:true vars:true sloppy:true undef:false bitwise:true*/ /*global module */ /* * This is a "central" implementation that looks for a heart rate monitor * peripheral. The UUIDs used for this service are defined by the Bluetooth SIG * so this sample app is expected to work with ...
neerup/firstProject
modules/iphone/com.logicallabs.bluetoothle/1.2.8/example/examples/heart-rate-monitor.js
JavaScript
apache-2.0
13,632
const copy = { detail: { isTrashed: 'This phrase book has been deleted', description: 'Phrase Book description', name: 'Phrase Book name', title: 'Phrase Book', }, create: { btnBack: '< Back', description: 'Phrase Book description', name: 'Phrase Book name *', requiredNotice: 'All ...
First-Peoples-Cultural-Council/fv-web-ui
frontend/app/components/Phrasebook/copy.js
JavaScript
apache-2.0
2,291
const CreateDropdown = require('@binary-com/binary-style').selectDropdown; const Symbols = require('../symbols'); const BinarySocket = require('../../../base/socket'); const getHighstock = require('../../../../_common/common_functions').requireHighstock; const localize = require('../../../../_common/locali...
raunakkathuria/binary-static
src/javascript/app/pages/trade/charts/digit_info.js
JavaScript
apache-2.0
10,019
/** --| ADAPTIVE RUNTIME PLATFORM |---------------------------------------------------------------------------------------- (C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
AdaptiveMe/adaptive-arp-javascript
adaptive-arp-js/src_units/DisplayBridge.js
JavaScript
apache-2.0
5,739
import CosmiConfig from './cosmi'; const url = require('url'); export default class EnvironmentConfig extends CosmiConfig { /** * Environment variable configuration * * This class will look for IOPIPE_* environment variables and will atempt * to load them if present. */ get clientId() { return...
iopipe/iopipe
src/config/environment.js
JavaScript
apache-2.0
1,581
/** * Simple file manager with cross-browser support. That uses the FileReader * to create previews. Can be replaced with a more advanced version that * obtains files from storage. * * The replacement should support the same public methods and return the same * types. */ 'use strict'; var store = require( './s...
sdibona/enketo-express-oc
public/js/src/module/file-manager.js
JavaScript
apache-2.0
5,655
// increase timeout for network requests jest.setTimeout(10000); // in milliseconds
ampproject/amp-toolbox
jest.setup.js
JavaScript
apache-2.0
84
GraphNode.Super = "delta.com.dataStructure.tree.Node"; function GraphNode(params){ Super(this, params); } GraphNode.properties = { id : null, value : null, graph : null }
deltajs/version-a
deltaJS/com/dataStructure/graph/GraphNode.js
JavaScript
apache-2.0
199
'use strict'; /* * Simple API tests */ /* * Could also check out the nock package to record / replay http interactions */ const preq = require( 'preq' ); const assert = require( '../../utils/assert.js' ); const server = require( '../../utils/server.js' ); const BBPromise = require( 'bluebird' ); const zlib = BBP...
wikimedia/mathoid
test/features/math/get.js
JavaScript
apache-2.0
4,597
(function() { var ItemController; ItemController = (function() { function ItemController(titleStr) { this.win = Ti.UI.createWindow({ title: titleStr, backgroundColor: '#FFFFFF' }); this.rows = [ { title: 'Row1', hasChild: true }, { ...
sukesan1984/text-rogue
Resources/controller/Item.js
JavaScript
apache-2.0
942
var autoClick, autotest, config, dealer, leDeck, loadedGame, players; autotest = 0; loadedGame = new LaBataille(); leDeck = loadedGame.cards; $('#state').html('sparti'); players = [ new DeckPlayer({ id: 0, name: "bob", type: "true-player" }), new DeckPlayer({ id: 1, name: "abrasiveGuy", ...
tykayn/card-deck
dist/js/play.js
JavaScript
apache-2.0
688
 var CurResultOffs = 0; var CurResultVersion = ""; var ScrollToEnd = true; var xhr = null; var Doing = 0; var loop_interval = 2000; var RunningStyle = -1; // -1 不在运行中 0 一次性运行 1 循环运行 $(document).ready(function () { ClearMessage(); window.setTimeout(SetMessageSize, 10); window.setTimeout(function() { Refr...
renyh1013/dp2
dp2OPAC/chatroom.js
JavaScript
apache-2.0
18,159
var _f_l_y360_constants_8h = [ [ "FLY360ChannelConnectionStatus", "_f_l_y360_constants_8h.html#ae478864559545329c3fcef8d4636ce4b", [ [ "FLY360ChannelConnectionStatusUnknown", "_f_l_y360_constants_8h.html#ae478864559545329c3fcef8d4636ce4baf65aeb8104873c9caed3a76073363fcb", null ], [ "FLY360ChannelConnect...
360fly/360flySDK-iOS
Doxygen/_f_l_y360_constants_8h.js
JavaScript
apache-2.0
6,165
/* * Inspired and mostly coming from MartijnBoland's MopidyService.js * https://github.com/martijnboland/moped/blob/master/src/app/services/mopidyservice.js */ 'use strict'; angular.module('mopify.services.mopidy', [ 'mopify.services.settings', 'mopify.services.queuemanager', 'llNotifier' ]).factory('mopidyser...
dbrgn/mopidy-mopify
mopidy_mopify/static/debug/src/app/services/mopidy.service.js
JavaScript
apache-2.0
15,129
(function () { "use strict"; WinJS.app = WinJS.Application; var app = WinJS.app; var nav = WinJS.Navigation; var sched = WinJS.Utilities.Scheduler; var ui = WinJS.UI; document.addEventListener("deviceready", onReady, false); document.addEventListener("resume", onResume, false); do...
potapuff/DL.SumDU
eLSumDU_cordova_project/scripts/index.js
JavaScript
apache-2.0
2,190
'use strict'; // ////////////////////////////////////////////////////////////////////////////// // / DISCLAIMER // / // / Copyright 2014 triAGENS GmbH, Cologne, Germany // / Copyright 2015 ArangoDB GmbH, Cologne, Germany // / // / Licensed under the Apache License, Version 2.0 (the "License") // / you may not use this ...
joerg84/arangodb
js/server/modules/@arangodb/foxx/queues/manager.js
JavaScript
apache-2.0
6,178
/** * Created by w.ding on 22/08/15. */ var React = require('react'); class BaseForm extends React.Component { constructor(props) { super(props); this.state = { loaded: false, resource: this.props.resource, errors: {} }; this.handleInputC...
Clinical3PO/Platform
dev/c3po-angularjs-visualization/efg/app/components/form/BaseForm.js
JavaScript
apache-2.0
2,195
/** * 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 in...
googlearchive/cloud-functions-emulator
test/unit/model/operation.test.js
JavaScript
apache-2.0
3,897
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/zebraChapmanova/01...
marxsk/zobro
components/animals/zebraChapmanova.child.js
JavaScript
apache-2.0
2,865
// Copyright 2012 Software Freedom Conservancy. 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 req...
vinay-qa/vinayit-android-server-apk
javascript/remote/ui/sessionview.js
JavaScript
apache-2.0
7,335
$( "#target" ).submit(function( event ) { alert( "Handler for .submit() called." ); event.preventDefault(); }); $(document).ready(function() { // $.ajax({ // type: "POST", // data: "{'itemList':'dnsa'}", // url: "http://localhost:3000/cart" // // }).then(function(data) { // ...
buttonbuilder/supermarket-register
public/submit.js
JavaScript
apache-2.0
370
$('#item_name').on('change', function(){ if ($(this).val() == 'Template1' ) { $('.TemplatePhoto').removeClass('hide'); $('.TemplateArticle').addClass('hide'); } if ($(this).val() == 'Template2' ) { $('.TemplateArticle').removeClass('hide'); $('.TemplatePhoto').addClass('hide...
SlalomDigital/iBeaconCMS
app/assets/javascripts/item.js
JavaScript
apache-2.0
474
var Q = require("q"); var request = require('request'); var conf = require("../conf"); var BaseServices = require("./BaseServices"); /* * 获得某个班学生集合 */ exports.queryByClassId = function(data) { var url = conf.site_root + '/api/school/' + data.schoolId + '/class/' + data.classId + '/student'; return BaseSe...
wenpi/weixiao
web/services/StudentServices.js
JavaScript
apache-2.0
586
var arr = {}; arr[7] = "Our father"; arr[9] = "Who art in heaven"; arr[11] = "Please watch over me"; arr[12] = "24/7"; arr[14] = "Please give me"; arr[16] = "Something to believe in"; arr[18] = "I'm either driven or crippled by these demons"; arr[22] = "Sometimes it feels like the power I wield is a blessing and a cur...
ogycode/DieAntwoord
assets/text/original/Mag/mag.js
JavaScript
apache-2.0
1,266
/* * 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/pages/ExplorePage/components/Transform/components/forms/sections/ExtractListCard.js
JavaScript
apache-2.0
3,411
import { module } from 'angular'; import { CORE_PIPELINE_CONFIG_STAGES_PIPELINE_PIPELINESTAGE } from './pipelineStage'; ('use strict'); export const CORE_PIPELINE_CONFIG_STAGES_PIPELINE_PIPELINESTAGE_MODULE = 'spinnaker.core.pipeline.stage.pipeline'; export const name = CORE_PIPELINE_CONFIG_STAGES_PIPELINE_PIPELINES...
spinnaker/deck
packages/core/src/pipeline/config/stages/pipeline/pipelineStage.module.js
JavaScript
apache-2.0
485
'use strict'; const { embeds, between, fromNow } = require('../NotifierUtils'); const Broadcaster = require('../Broadcaster'); const logger = require('../../Logger'); const { platforms } = require('../../CommonFunctions'); const beats = {}; let refreshRate = (process.env.WORLDSTATE_TIMEOUT || 60000) / 3; function bu...
WFCD/genesis
src/notifications/worldstate/CycleNotifier.js
JavaScript
apache-2.0
5,632
// 工作日数据模型 Ext.define('Workday', { extend: 'Ext.data.Model', fields: [{name: "id"}, {name: "day"}, {name: "weekday"}, {name: "type"}, {name: "remark"}, {name: "create_time",type: 'date',dateFormat: 'timestamp'}, {name: "update_t...
eoasoft/evolve
application/modules/hra/views/scripts/attendance/js/setting/workday.js
JavaScript
apache-2.0
8,680
export default { name: "khajiit_female", contrib: [ "http://en.uesp.net/wiki/Lore:Khajiit_Names#Female_Khajiit_Names" ], description: "The Khajiit are a cat race from the Elder Scrolls game series.", list: [ "aahin", "aahni", "abadusa", "abahrimaya", "abandarra-la", "abanji", "...
almightynassar/BrokenStarsAndroid
src/data/names/khajiit_female.js
JavaScript
apache-2.0
12,513
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/cordova-plugin-whitelist/whitelist.js", "id": "cordova-plugin-whitelist.whitelist", "runs": true }, { "file": "plugins/plugin.http.request/www/http-request.js", ...
MZaratin-Larus/neo4art
neo4art-mobile/src/main/app/platforms/android/assets/www/cordova_plugins.js
JavaScript
apache-2.0
951
// Copyright 2018 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
GoogleCloudPlatform/serverless-cloud-maker-next-18
functions/shape/index.js
JavaScript
apache-2.0
2,997
/** * @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/stats/base/svariancetk/lib/ndarray.js
JavaScript
apache-2.0
2,036
var win = Ti.UI.currentWindow; var orderReq = Titanium.Network.createHTTPClient(); //-- Scrollview for our obj list, maximum obj, numobj for reference var scrollView = Ti.UI.createScrollView(); var maxobj = 6; var numobj = 0; getObjList(); function getObjList() { var usr_id = win.usr_id; var objTopping = []; v...
amihud/hookup
Resources/main_windows/obj.js
JavaScript
apache-2.0
17,621
import * as Emoji from './emoji' import * as SuggestScorePopup from './suggest-score-popup' const HOLDER_SELECTOR = '.argh-fakeContent' const HOLDER_OVERLAY_SELECTOR = '.argh-overlay' const HOLDER_SHOW_BUTTON_SELECTOR = '.argh-overlay > a' const HOLDER_EMOJI_SELECTOR = '.argh-emojis' const COMMENT_HOLDER_CLASS = 'argh...
ArghTeam/behave-for-chrome
app/scripts/behave/fake-comment.js
JavaScript
apache-2.0
6,182
// Copyright 2011 Traceur 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 applicable law or agreed ...
rwaldron/traceur-compiler
test/unit/syntax/ParseTreeValidator.js
JavaScript
apache-2.0
831
const SimpleMarketABI = { interface: [{ constant: false, inputs: [{ name: 'pay_gem', type: 'address' }, { name: 'buy_gem', type: 'address' }, { name: 'pay_amt', type: 'uint128', }, { name: 'buy_amt', type: 'uint128' }], name: 'make', outputs: [{ name: 'id', type: 'bytes32' }], paya...
OasisDEX/oasis
frontend/packages/dapple/contracts-abi/simple-market.js
JavaScript
apache-2.0
6,205