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 feed = require('feed-read'), async = require('async'), _ = require('underscore'); var Connection = require('ssh2'); read.factory('SSHService', function($rootScope) { function tail(host, port, username, password, filename, lines, onData, onErrData, callback) { var id = username + '@' + host + ':' + por...
mertdogar/read
services/SSHService.js
JavaScript
lgpl-3.0
1,220
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
lbndev/sonarqube
server/sonar-web/src/main/js/apps/projects/filters/FilterContainer.js
JavaScript
lgpl-3.0
1,286
/** * As Parent is abstract, it can't be instanciated with new. * First available instance for testing is Domain. * Child type is abstract too, instance on Node will be returned * by create_child_node if no type specified * * @param domain */ var karacos = require('karacos'), testEnv = require('./testEnv.js'),...
karacos/karacos-nodejs
test/testParent.js
JavaScript
lgpl-3.0
1,207
import _parsePath from "./_parsePath.js"; const _simpleAt = (obj, path) => _parsePath(path).reduce((obj, key) => { return (obj != null && obj.hasOwnProperty(key)) ? obj[key] : undefined; }, obj); export default _simpleAt;
leofavre/canivete
dist/internal/helpers/_simpleAt.js
JavaScript
unlicense
228
var _ = require('lodash'), async = require('async'), q = require('q'), request = require('request');
cbjs/fe-learn
fe-general/apieval/index.js
JavaScript
unlicense
113
module.exports = function(grunt) { grunt.initConfig({ jshint: { files: ['js/**/*.js', 'test/**/*.js'], options: { globals: { angular: true } } }, jasmine: { src: { src: [ 'node_modules/angular/angular.js', 'node_modules/angular...
floyd-may/angular-todo-mvc
Gruntfile.js
JavaScript
unlicense
743
var config = require('../config/config'), logger = config.logger(), cards = require('express').Router(); const CardModel = require('../models/CardModel').model; cards.get('/:id', function(req, res) { var ids = req.params.id.split(','); CardModel .find() .where('_id') .in(ids) .exec() .then(function(lis...
ejwaibel/squarrels
src/server/routes/cards.js
JavaScript
unlicense
545
// Enable tests written in ES6 require("babel/register"); // Require tests module.exports = { "testLogger": require("./testLogger"), "testDriver": require("./testDriver"), "testConsoleDriver": require("./testConsoleDriver"), "testLocalStorageDriver": require("./testLocalStorageDriver"), "testRemoteDriver": ...
creatorrr/logdriver
test/index.js
JavaScript
unlicense
402
// Implementation from http://www.pheelicks.com/2013/11/intro-to-images-in-go-fractals/ pixelRatio = window.devicePixelRatio ? window.devicePixelRatio : 1; var ITERATIONS = 50; var ZOOM = 300.0 * pixelRatio; var CENTER = new Complex(-0.75, 0); function mandelbrot(c, iter) { var z = new Complex(0.0, 0.0); for...
bahaa/nature-of-code
scripts/mandelbrot.js
JavaScript
unlicense
3,755
define(['controller/controllers','services/DataDictService'],function(app){ var controller = ['$rootScope','$scope','$location','$indexedDB','$routeParams','DataDictService' ,function($rootScope,$scope,$location,$indexedDB,$routeParams,datadictService){ $scope.selectArch = function(id){...
muyingzhi/ehrOffline
app/scripts/controller/zycmrlistController.js
JavaScript
unlicense
2,559
// ==UserScript== // @name Bypass Twitter click tracking // @namespace https://wincent.com/ // @version 0.6 // @description Bypass Twitter click tracking // @author Greg Hurrell <greg@hurrell.net> // @match https://twitter.com/* // @grant none // @downloadURL http://localhost/~<%= ...
wincent/wincent
aspects/tampermonkey/templates/UserScripts/twitter/bypassClickTracking.user.js
JavaScript
unlicense
1,017
function addQuad(g,s,p,o){ g[s] = g[s] || {} var po = g[s][p] g[s][p] = po ||[] g[s][p].push(o); return g; } module.exports = addQuad
kwijibo/japers
src/addquad.js
JavaScript
unlicense
164
var Splat = function () { return { ///asdm alslasjr vAlign: function vAlign($imgOrDivToReSize, $imgOrDivToFindDimensions, dblScaleOfResize, cb) { try { dblScaleOfResize = typeof dblScaleOfResize !== 'undefined' ? dblScaleOfResize : 1; var h = $imgOrDivT...
jonpanky/splat-vAlign
Scripts/Splat.js
JavaScript
unlicense
619
module.exports = { weapon: { base: { axe: 'axe', gender_axe: 'neutral', bow: 'bow', gender_bow: 'neutral', claw: 'claw', gender_claw: 'neutral', dagger: 'dagger', gender_dagger: 'neutral', grimoire: 'grimoire', gender_grimoire: 'neutral', harp: 'harp', gender_harp: 'neutral', k...
online-adventures/oh-my-rpg
tosort/weapon_component/i18n_weap/en.js
JavaScript
unlicense
3,408
'use strict'; import _ from 'lodash'; const PROPS = [ 'token', 'team_id', 'team_domain', 'channel_id', 'channel_name', 'timestamp', 'user_id', 'user_name', 'text', 'trigger_word', ]; // Adapted from http://stackoverflow.com/a/6969486/454997 function escapeRegExp(str) { return str.replace(/[\-\[\]\/\{\}\(\)\*\+...
uasi/omoikane
src/slack-webhook-payload.js
JavaScript
unlicense
730
addEvent(window, 'load', initForm); var highlight_array = new Array(); function initForm(){ initializeFocus(); var activeForm = document.getElementsByTagName('form')[0]; addEvent(activeForm, 'submit1', disableSubmitButton); ifInstructs(); showRangeCounters(); } function disableSubmitButton() { document.getElem...
dclmict/churchinfo
scripts/wufoo.js
JavaScript
unlicense
4,922
var classorg_1_1onosproject_1_1sdnip_1_1cli_1_1AddSpeakerCommand = [ [ "execute", "classorg_1_1onosproject_1_1sdnip_1_1cli_1_1AddSpeakerCommand.html#ada5f548c38932b032418a7261debd2ac", null ] ];
onosfw/apis
onos/apis/classorg_1_1onosproject_1_1sdnip_1_1cli_1_1AddSpeakerCommand.js
JavaScript
apache-2.0
198
/** * @license Copyright 2016 The Lighthouse Authors. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
umaar/lighthouse
lighthouse-core/test/audits/metrics/first-meaningful-paint-test.js
JavaScript
apache-2.0
2,083
const getRandomInt = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min; export const generateListDemoData = (groupsMin, groupsMax, itemsMin, itemsMax) => { const data = [], groupsCount = getRandomInt(groupsMin, groupsMax); let n = 0, itemsCount, group; // Adds an empty group at the beginning ...
Neovici/cosmoz-grouped-list
demo/helpers/demo-list-helper.js
JavaScript
apache-2.0
796
Ext4.namespace('EHR.reports'); EHR.reports.PregnancyReport = function (panel, tab) { const target = tab.add({xtype: 'ldk-contentresizingpanel'}); try { // according to the DOM spec, the mutation observer should be GC'd if/when the target node is removed const observer = new MutationObserver(tar...
WNPRC-EHR-Services/wnprc-modules
WNPRC_EHR/resources/web/wnprc_ehr/reports/PregnancyReport.js
JavaScript
apache-2.0
835
angular.module('BitGo.Identity.IdentityController', []) /** * @ngdoc controller * @name BitGo.Identity.IdentityController * @description Controller for identity verification process */ .controller('IdentityController', ['$rootScope', '$scope', '$modal', '$location', '$q', 'SettingsAPI', 'IdentityAPI', 'UtilityServi...
BitGo/bitgo-chrome
identity/scripts/identityController.js
JavaScript
apache-2.0
8,727
/** * Easystatic - static site generator (https://easystatic.com) * * Copyright © 2016 Easystatic contributors. All rights reserved. * * This source code is licensed under the Apache 2.0 license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-disable no-console */ import...
easystatic/easystatic
src/easystatic.js
JavaScript
apache-2.0
2,055
sap.ui.define([ "sap/m/Text", "sap/ui/core/mvc/JSView" ], function(Text, JSView) { "use strict"; sap.ui.jsview("samples.components.ext.sap.Sub1", { createContent : function(oController) { return new Text({text: "I am the SAP original view and should be replaced"}); } }); });
SAP/openui5
src/sap.ui.core/test/sap/ui/core/samples/components/ext/sap/Sub1.view.js
JavaScript
apache-2.0
291
/*global QUnit*/ sap.ui.define([ "sap/ui/qunit/QUnitUtils", "sap/m/table/columnmenu/QuickActionBase" ], function (QUnitUtils, QuickActionBase) { "use strict"; // Test setup QUnit.module("Plain ItemBase", { beforeEach: function () { this.oQuickActionBase = new QuickActionBase(); }, afterEach: function () ...
SAP/openui5
src/sap.m/test/sap/m/qunit/table/columnmenu/QuickActionBase.qunit.js
JavaScript
apache-2.0
632
//// [tests/cases/compiler/declarationEmit_nameConflicts.ts] //// //// [declarationEmit_nameConflicts_1.ts] module f { export class c { } } export = f; //// [declarationEmit_nameConflicts_0.ts] import im = require('declarationEmit_nameConflicts_1'); export module M { export function f() { } export class ...
ivogabe/TypeScript
tests/baselines/reference/declarationEmit_nameConflicts.js
JavaScript
apache-2.0
4,203
'use strict'; angular.module('security.forget_password', []) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/forget-password', { templateUrl: 'security/forget_password/forget_password.tpl.html', controller: 'ForgetPasswordCtrl' }); }]) ...
adezfouli/statium
client/src/app/security/forget_password/forget_password.js
JavaScript
apache-2.0
1,270
/* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */ /* */ /* 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 ...
baby-gnu/one
src/fireedge/src/utils/jwt.js
JavaScript
apache-2.0
2,679
var SharedQueries = function(div_id) { this.id = div_id; }; SharedQueries.prototype = new SSBase(); SharedQueries.prototype.draw = function() { this._renderTo(this.id, 'shared_queries/loading.html', { id : this.id }); this._fetchQueries(); }; SharedQueries.prototype._fetchQueries = function() { this....
vegitron/sqlshare
sqlshare/static/javascript/shared_queries.js
JavaScript
apache-2.0
1,083
'use strict'; const decache = require('decache'); const path = require('path'); const Command = require('../../models/Command.js'); /** * Reloads the script containing the commands */ class Reload extends Command { /** * Constructs a callable command * @param {Genesis} bot The bot object */ constructor...
WFCD/genesis
src/commands/Owner/Reload.js
JavaScript
apache-2.0
1,411
'use strict'; const { MessageEmbed } = require('discord.js'); const ping = require('ping').promise; const { timeDeltaToString, games, emojify } = require('../../CommonFunctions.js'); const d2Hosts = [ 'bungie.net', 'api.steampowered.com', 'xbl.io', 'vlkyrie-superi.us', 'status.vlkyrie-superi.us...
WFCD/genesis
src/interactions/core/Ping.js
JavaScript
apache-2.0
2,074
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global'], function(jQuery) { "use strict"; /** * Provide methods for sap.ui.core.routing.Target in asy...
thbonk/electron-openui5-boilerplate
libs/openui5-runtime/resources/sap/ui/core/routing/async/Target-dbg.js
JavaScript
apache-2.0
7,611
var a00355 = [ [ "DawgArgs", "a00355.html#a32dedf4bcf034fa2ae28d19d645160a9", null ], [ "active_dawgs", "a00355.html#abe4f6043296478c11a7e9b6f070dd822", null ], [ "permuter", "a00355.html#ac6d1140877409a292367493620fd8b9b", null ], [ "updated_dawgs", "a00355.html#aa0618a8307e4a124c7c743887437f7db", null...
stweil/tesseract-ocr.github.io
3.x/a00355.js
JavaScript
apache-2.0
325
Ti.include('network.js'); function updateCache() { xhr = Ti.Network.createHTTPClient(); xhr.setTimeout(10000); xhr.open("GET", serverURL + "/tags/get_tags_json");// xhr.setRequestHeader('Content-Type', 'text/json'); xhr.setRequestHeader('Cookie', Ti.App.Properties.getString('cookie')); xhr.onload = function() { ...
joshsilverman/zendomobile
Resources/commonMethods.js
JavaScript
apache-2.0
16,527
'use strict'; angular.module('trackit.view1', []) .controller('View1Ctrl', [function() { }]);
giubil/trackit
ui/ui/app/components/view1/view1.js
JavaScript
apache-2.0
98
/** * Kubernetes * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1.5.1-660c2a2 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit t...
Birdrock/client-javascript
kubernetes/test/model/V1beta1DaemonSetStatus.spec.js
JavaScript
apache-2.0
3,062
define(function (require, exports, module) { "use strict"; var ExtensionUtils = brackets.getModule("utils/ExtensionUtils"); require("lib/jquery.ruler"); require("lib/jQuery-Knob/js/jquery.knob"); require("lib/DOMParserHTMLExtension"); require("lib/jquery-ui-1.10.3.custom"); require...
HunseopJeong/WATT
libs/brackets-server/embedded-ext/swmitra.html-designer/main.js
JavaScript
apache-2.0
3,890
/* * Copyright 2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
conker84/eclairjs-nashorn
src/main/resources/eclairjs/ml/feature/ChiSqSelectorModel.js
JavaScript
apache-2.0
6,288
//// 1st, fetching the selected div... $(function(){ var displayed_div = '#offer_ajax, #food_ajax_list, #product_ajax, #srch_list, #travel_ajax'; var nav_selector = 'div#page-nav-index'; //// setting up the infinite-scroll part... $(displayed_div).infinitescroll({ navSelector : nav_selector, ...
mrinsss/Full-Repo
mydealfound/js/fe/Copy of page_infinite_scroller.js
JavaScript
apache-2.0
1,862
define(function (require, exports) { var NaiveBayesSettings = require("./modelSettings/NaiveBayesSettings"); var RandomForestSettings = require("./modelSettings/RandomForestSettings"); var MLPSettings = require("./modelSettings/MLPSettings"); var KNNSettings = require("./modelSettings/KNNSettings"); var Gradi...
OHDSI/Atlas
js/pages/prediction/inputTypes/ModelSettings.js
JavaScript
apache-2.0
15,626
export default function() { this.get('/trips', function(db, request) { let trips = [ { type: 'trips', id: 1, attributes: { title: "Vietnam 2002", description: "Voyage compagnons Scouts & Guides de France en partenaria avec Maison Chance", countries: ...
guihome-diaz/trip
front/app/mirage/config.js
JavaScript
apache-2.0
4,672
var {Enum} = require("enumify"); var EnumWithParser = require("./EnumWithParser"); class CareAge extends EnumWithParser { } CareAge.initEnum({ 'ZERO_TO_SIX_MONTHS': { get text() { return "0-6 months" }, }, 'SIX_MONTHS_TO_TWO_YEARS': { get text() { return "7 months to 2 years" }, }, 'TWO_YEARS_TO_FIVE...
floodfx/gma-village
data-model/src/CareAge.js
JavaScript
apache-2.0
479
/** * Created by msidolphin on 2017/7/25. */ "use strict"; const _common = require("utils/common.js"); const orderService = { "getOrderProductList" : function (resolve, reject) { _common.request({ "url" : _common.getServerURL("/order/get_order_cart_product.do"), "type" : "...
msidolphin-pers/mmall
src/main/webapp/index/src/service/order-service.js
JavaScript
apache-2.0
2,059
import { GraphQLSchema } from 'graphql' import query from './types/queries' import mutation from './types/mutations' const schema = new GraphQLSchema({ query, mutation }) export default schema
tubackkhoa/tkframework
server/data/graphql/schema.js
JavaScript
apache-2.0
194
application.controller( 'HowViewController', [ '$scope', function( $scope ) { $scope.closeImagePopup = function() { var url = $( '#how-view .popup-image' ).attr( 'src' ); var source = $( '#how-view .content' ).find( 'img[src="' + url + '"]' ); $( '#how-view .image-overlay' )...
eandriol/135lists-pe
templates/js/controllers/view/how.js
JavaScript
apache-2.0
2,016
import { getNamespaceAndName } from '../../json-helper'; import Type from './Type'; import PartOf from './PartOf'; import Party from './Party'; import Entity from './Entity'; import Purpose from './Purpose'; import Role from './Role'; import Person from './Person'; import AnonymizedFlag from './AnonymizedFlag'; import ...
standardhealth/flux
src/model/shr/entity/ShrEntityObjectFactory.js
JavaScript
apache-2.0
11,136
import React, { Component } from 'react'; import { Alert, Linking, Platform } from 'react-native'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import { Card, Container, Header, Title, Content, Text, Button, Icon, Left, Body, Right, } from 'native-base...
marcpechaitis/ForestWatch
js/components/phoneNumbers/index.js
JavaScript
apache-2.0
4,165
angular.module('ui.website.dialog', [ 'ui.website.dialog.service', 'ui.website.dialog.directives' ])
shangmin1990/website-ui
src/js/dialog/dialog.js
JavaScript
apache-2.0
104
// 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-kms
samples/generated/v1/key_management_service.create_import_job.js
JavaScript
apache-2.0
2,207
/* Copyright (c) FeedHenry 2011 fh-api - the node.js implementation of $fh, feedhenry serverside APIs */ var sec = require('fh-security'), util = require('util'); var url = require('url'); var packageJSON = require('../package.json'); var initScript = require('./init.js'); var sync = require('fh-sync'); var EventE...
feedhenry/fh-mbaas-api
lib/api.js
JavaScript
apache-2.0
7,008
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
asgrant/MapPortlet
src/main/webapp/js/map-helper.js
JavaScript
apache-2.0
26,236
define(["require", "exports", "../Services/MarkersService", "../Helpers/WindowDrawer", "../Controllers/AppController"], function (require, exports, MarkersService_1, WindowDrawer_1, AppController_1) { "use strict"; var SearchResultEventListener = (function () { function SearchResultEventListener() { ...
DmitriyLy/travel_portal
web/src/main/webapp/resources/js/EventListeners/SearchResultEventListener.js
JavaScript
apache-2.0
1,318
/** * @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/fast/asinh/lib/asinh.js
JavaScript
apache-2.0
1,552
/*! * ${copyright} */ /* eslint-disable quotes */ sap.ui.define([ "sap/ui/test/gherkin/StepDefinitions", "sap/ui/test/gherkin/dataTableUtils" ], function(StepDefinitions, dataTableUtils) { "use strict"; return StepDefinitions.extend("test.Steps", { init: function() { this.register(/^I should be served a ...
SAP/openui5
src/sap.ui.core/test/sap/ui/core/qunit/gherkin/fixture/testHarnessFailingSteps.js
JavaScript
apache-2.0
1,577
#!/usr/bin/env node var Bot = require('./libs/bot'); var cli = require('./libs/cli'); if (!module.parent) { cli(); } function create(config) { return new Bot(config); } module.exports = create;
kurkku/slack-irc-bot
app.js
JavaScript
apache-2.0
202
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
appbaseio/reactivebase
lib/stories/ReactiveElement/WithStream.js
JavaScript
apache-2.0
4,784
if (Math.random()) { len = 22 cols = 21 } else { len = 47 cols = 3 } function Cell() { return {} } o = {} o.rows = new Array(len); for (row = 0; row != len; ++ row) { o.rows[row] = new Array(cols); for (col = 0; col != cols; ++ col) { o.rows[row][col] = new Cell(); } } TAJS...
cs-au-dk/TAJS
test-resources/src/micro/test169.js
JavaScript
apache-2.0
334
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.22/esri/copyright.txt for details. /* jshint worker: true */ /* global importScripts: false */ /* REQUIRES esri/workers/scripts/helpers */ /* global merge, mixin */ (function(context) { /** * @typedef {...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/workers/scripts/indexInterface.js
JavaScript
apache-2.0
11,142
var COMMON = (function(){ var urlPrefix = '{{ site_name }}'; var sessionRegExp = /.*session=([\-0-9a-zA-Z]+).*/; var validateLoginInfo = function(username, password) { var allLegal = function(s) { var i = 0, len = s.length; for (; i < len; ++i) { if ((s.charCodeAt(i) < 33) || (s.charCodeA...
brownplt/k3
lib/js/common.js
JavaScript
apache-2.0
1,218
var searchData= [ ['maxinputs',['MaxInputs',['../class_screen_manager_1_1_state_control_1_1_input_state.html#a1be1f2408de3a9d9a5397cdfe94f4de8',1,'ScreenManager::StateControl::InputState']]], ['menuentries',['MenuEntries',['../class_screen_manager_1_1_menu_scren_1_1_base_menu_screen.html#affe91ed2ef6e6455281f330598...
SpoonmanGames/MonoGame-ScreenManager
doc/search/properties_6.js
JavaScript
apache-2.0
572
// 外壳的mockup (function() { var NS = xmock.data.console.DimTree = {}; var dimTree = { uniqName : '[myUniqName]', name : 'myDimName', caption : '全国', selected : true, children : [ { uniqName : 'all$[...
lxqfirst/bi-platform
designer/src/main/resources/public/report-ui/src/mockup/frontendmockup/data/console/mockdi-dim-tree.js
JavaScript
apache-2.0
6,772
export default function LaunchJob(Rest, Wait, ProcessErrors, ToJSON, Empty, GetBasePath, $state, $location, $rootScope, i18n) { // This factory gathers up all the job launch data and POST's it. // TODO: outline how these things are gathered return function (params) { ...
snahelou/awx
awx/ui/client/src/job-submission/job-submission-factories/launchjob.factory.js
JavaScript
apache-2.0
13,280
// Copyright 2012 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...
mraleph/moe-js
tracing/engine/assert.js
JavaScript
apache-2.0
749
// start data Q.startUpdate(); // load texture Q.textures.newFromFile("qtext","qtext.png"); Q.textures.newFromFile("qback","qback.png"); // create cube Q.objects.create("cube1","cube"); //set its texture Q.objects.texture("cube1","qtext"); //show it on screen Q.objects.place("cube1","0,0,0.5"); Q.objects.scale("cube1",...
qframework/QFramework
Clients/Html5Q/HellouQ/res/main.js
JavaScript
apache-2.0
804
/* * Copyright 2019 EPAM Systems * * 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 ...
reportportal/service-ui
app/src/components/widgets/singleLevelWidgets/charts/launchesComparisonChart/index.js
JavaScript
apache-2.0
662
var assert = require('assert'), error = require('../../../lib/error/index'), approx = require('../../../tools/approx'), math = require('../../../index')(), arg = math.arg; describe('arg', function() { it('should compute the argument of a boolean', function () { assert.equal(arg(true), 0); ass...
kelonye/mathjs
test/function/complex/arg.test.js
JavaScript
apache-2.0
2,410
/* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
sdellang/vertx-webapp
src/main/resources/web/js/controllers.js
JavaScript
apache-2.0
4,198
$(document).ready(function(){ $(function () { $('[data-toggle="tooltip"]').tooltip() }) $("#input").submit(function(event){ event.preventDefault(); var JIRATEXT = "Jira Tickets:" var JIRABUCKET = "openapis" var addedInput = $('#added').val() var added...
chaz9127/v1ReleaseNotes
js/custom.js
JavaScript
apache-2.0
7,652
/** * @Class * @param realGraph * @param displayGraph * @param managerInstance * @param clickManager * @param overlayId the id where the overlay will be created */ function FeatureCreator(realGraph, displayGraph, managerInstance, clickManager, args) { this.superConstructor(); localScope = this; //this.Inherit...
dtracers/Development-Graph
website/src/graph/nodeClickActions/createNewFeature/createNewFeature.js
JavaScript
apache-2.0
5,166
/** * @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/dssum/lib/main.js
JavaScript
apache-2.0
909
/*! * 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 appli...
tcrognon/google-cloud-node
packages/compute/src/vm.js
JavaScript
apache-2.0
21,018
/** * User: jcorbett * Date: 6/27/13 * Time: 2:59 PM */ "use strict"; angular.module('slickApp') .config(['$routeProvider', 'NavigationServiceProvider', function ($routeProvider, nav) { $routeProvider .when('/projects', { templateUrl: 'static/resources/pages/project/projects...
slickqa/slickqaweb
slickqaweb/static/resources/pages/project/projects.js
JavaScript
apache-2.0
6,938
$_L(["$wt.custom.ControlEditor"],"$wt.custom.TreeEditor",["$wt.events.ControlListener","$.TreeListener","$wt.graphics.Rectangle"],function(){ c$=$_C(function(){ this.tree=null; this.item=null; this.column=0; this.columnListener=null; this.treeListener=null; $_Z(this,arguments); },$wt.custom,"TreeEditor",$wt.cus...
abego/j2slib
src/main/j2slib/org/eclipse/swt/custom/TreeEditor.js
JavaScript
apache-2.0
5,559
define([ '../util/ajax' ], function(ajax) { 'use strict'; var api = { getById: function(id) { if (!id) { throw new Error('id cannot be null'); } return ajax('GET', '/directory/get', { id: id }); }, sea...
visallo/visallo
web/war/src/main/webapp/js/data/web-worker/services/directory.js
JavaScript
apache-2.0
520
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; exports.messages = exports.ruleName = void 0; var _stylelint = require("stylelint"); var _utils = require("../../utils"); var hasOwnProp = Object.prototype.hasOwnProperty; var ruleName = (0, _utils.namespac...
kyleterry/sufr
pkg/ui/node_modules/stylelint-scss/dist/rules/declaration-nested-properties-no-divided-groups/index.js
JavaScript
apache-2.0
2,006
/** * store * @author guanbingchang@wanda.cn */ import angular from 'angular'; import list from './list/list'; import add from './add/add'; import detail from './detail/detail'; import edit from './edit/edit'; import myRole from './myRole/myRole'; let staffModule = angular.module('app.staff', [ list.name, ...
bcguan2008/neusoft
client/app/components/staff/staff.js
JavaScript
apache-2.0
410
'use strict'; const path = require('path'); const uuid = require('node-uuid'); const chalk = require('chalk'); const utils = require('../utils'); module.exports = function* (pkg, options) { options.remotePackages++; const remoteUrl = pkg.spec; options.console.warn(chalk.yellow(`[${pkg.displayName}] install ${pk...
rocknamx8/rocknamx8.github.io
node_modules/npminstall/lib/download/remote.js
JavaScript
apache-2.0
1,407
(function () { 'use strict'; var UIOpenSubMenuBtn = function UIOpenSubMenuBtn(element) { this.init(element); }; UIOpenSubMenuBtn.prototype.onButtonClick = function (e) { var subMenuName = e.currentTarget.getAttribute('data-sub-menu'); var submenu = document.querySelector('[dat...
adomorenok/ui-lite
src/js/components/menu/open-submenu-btn.js
JavaScript
apache-2.0
1,040
#!/usr/bin/env node var preview = require('../lib/exec/preview.js'); var generate = require('../lib/exec/generate.js'); var deploy = require('../lib/exec/deploy-ftp.js'); var create = require('../lib/exec/create.js'); var mindmap = require ('../lib/exec/mindmap.js'); var log = require('../lib/logger').Logge...
christophebe/cocoons
bin/exec.js
JavaScript
apache-2.0
3,280
/** * 页面滚动条不是在最顶端时 页面出现top按钮,点击回到最顶端,按钮隐藏 * * 使用 直接引入 <script src="./js/GoTop.js" id="js_gotop"></script> */ (function() { //获取当前js路径 然后处理图片路径 即绝对路径 (避免在多处引用图片路径不对) var path = document.getElementById('js_gotop').src; path_out = path.replace("js/GoTop.js","images/gotop_out.png"); path_over = path.rep...
SuperMap/iClient-for-JavaScript
examples/js/GoTop.js
JavaScript
apache-2.0
4,661
function WPATH(s) { var index = s.lastIndexOf("/"); var path = -1 === index ? "MessageCenter/" + s : s.substring(0, index) + "/MessageCenter/" + s.substring(index + 1); return path; } module.exports = [ { isApi: true, priority: 1000.0001, key: "TextField", style: { paddingLeft: 5 ...
alanleard/theCellar
Resources/iphone/alloy/widgets/MessageCenter/styles/widget.js
JavaScript
apache-2.0
738
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconQuestionAnswer(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ico...
mineral-ui/mineral-ui
packages/mineral-ui-icons/src/IconQuestionAnswer.js
JavaScript
apache-2.0
610
import React from 'react'; import AmpStoryPage from '/component/amp/AmpStoryPage'; import AmpImage from '/component/amp/AmpImage'; import { TextHighlightBanner, Text, ZoomFadeAnimation, BoxPileContainer, HighlightPileContainer, NoEdgeThirdsLayer, PaddedUpperThird, } from '../shared'; const StoryPage2 = (...
ampproject/samples
amp-stories/src/component/view/WrapUpStoryView/pages/StoryPage2.js
JavaScript
apache-2.0
1,419
// TODO: IMPORT ONLY WHAT IS USED import * as yup from 'yup' // V1 using t.comb: // import Dublincore from 'common/schemas/Dublincore' // FVContributor: Object.assign({}, Dublincore), /* 'dc:title': t.String, 'dc:description': t.maybe(t.String), */ import copy from './copy' const validator = yup.object().shape({ ...
First-Peoples-Cultural-Council/fv-web-ui
frontend/app/components/Contributor/validator.js
JavaScript
apache-2.0
480
const root = '../../'; jest.useFakeTimers(); describe('same-different plugin', function(){ beforeEach(function(){ require(root + 'jspsych.js'); require(root + 'plugins/jspsych-same-different.js'); }); test('loads correctly', function(){ expect(window.jsPsych.plugins['same-different']).not.toBeUnde...
JATOS/JATOS_examples
study_assets_root/clock_drawing/jsPsych/tests/plugins/plugin-same-different.test.js
JavaScript
apache-2.0
2,532
/** * DO NOT EDIT THIS FILE as it will be overwritten by the Pbj compiler. * @link https://github.com/gdbots/pbjc-php * * Returns an array of curies using mixin "gdbots:forms:mixin:process-irr:v1" * @link http://schemas.gdbots.io/json-schema/gdbots/forms/mixin/process-irr/1-0-0.json# */ export default [ ];
gdbots/schemas
build/js/src/manifests/gdbots/forms/mixin/process-irr/v1.js
JavaScript
apache-2.0
315
'use strict'; var common = require('../common'); var mustCall = common.mustCall; var assert = require('assert'); var dgram = require('dgram'); var dns = require('dns'); var socket = dgram.createSocket('udp4'); var buffer = new Buffer('gary busey'); dns.setServers([]); socket.once('error', onEvent); // assert that: ...
dreamllq/node
test/internet/test-dgram-send-cb-quelches-error.js
JavaScript
apache-2.0
1,001
// 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-area120-tables
samples/generated/v1alpha1/tables_service.batch_create_rows.js
JavaScript
apache-2.0
1,983
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ var storageApi= require('../../../../common/api/storage.api.constants'); var commonUtils = require(process.mainModule.exports["corePath"] + '/src/serverroot/utils/common.utils'), storageRest= require('../../../../comm...
skizhak/contrail-web-storage-old
webroot/monitor/storage-infra/storagenode/api/storage.infra.api.js
JavaScript
apache-2.0
7,172
// Run javascript after DOM is initialized $(document).ready(function() { $('#map_canvas').mapit({ latitude: 37.970996, longitude: 23.730542, zoom: 16, type: 'ROADMAP', scrollwheel: false, marker: { latitude: 37.970996, longitude: 23.730542, icon: ...
vdw/MapIt
demo/javascripts/initializers.js
JavaScript
apache-2.0
1,664
/* Copyright 2015 Packt Publishing 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...
fabiancook/nodejs-essentials
chapter-9/4-stub.js
JavaScript
apache-2.0
921
var a = conversionToPrimitive(null); dumpValue(a); var b = conversionToPrimitive(undefined); dumpValue(b); var c = conversionToPrimitive(true); dumpValue(c); var d = conversionToPrimitive(47.11); dumpValue(d); var e = conversionToPrimitive("use it or lose it"); dumpValue(e); var oo = new Object(); var f = co...
keil/TbDA
test/micro/testToPrimitive.js
JavaScript
apache-2.0
1,146
// if you don't specify a html file, the sniper will generate a div with id "rootDiv" var app = require("biojs-vis-yugene-graph"); function round_to_two_decimal_places(num){ new_num = Math.round(num * 100) / 100; return new_num; } //An array of colours which are used for the different probes var colours = ["Da...
rowlandm/biojs-vis-yugene-graph
examples/filtered_gapdh_human.js
JavaScript
apache-2.0
4,850
var anObject = require('../internals/an-object'); var getMethod = require('../internals/get-method'); module.exports = function (iterator, kind, value) { var innerResult, innerError; anObject(iterator); try { innerResult = getMethod(iterator, 'return'); if (!innerResult) { if (kind === 'throw') thr...
cloudfoundry-community/asp.net5-buildpack
fixtures/node_apps/angular_dotnet/ClientApp/node_modules/core-js/internals/iterator-close.js
JavaScript
apache-2.0
592
var app = require("../app"), request = require('supertest'), expect = require('expect.js'); var agent = request.agent(app); //those are my ClasseViva credentials... you can enter on my ClasseViva account, I have nothing to hide ;) //replace if you want with your credentials var TEST_...
donadev/ClasseViva
tests/index.js
JavaScript
apache-2.0
2,671
OC.L10N.register( "gallery", { "Pictures" : "圖片", "Picture view" : "檢視圖片", "Next" : "下一個", "Play" : "播放", "Pause" : "暫停", "Previous" : "上一個", "Close" : " 關閉", "Error loading slideshow template" : "載入投影片檢視樣板時發生錯誤", "Share" : "分享", "No pictures found! If you upload pictures...
kebenxiaoming/owncloudRedis
apps/gallery/l10n/zh_TW.js
JavaScript
apache-2.0
620
import Constants from './constants'; var Messages = Constants.Messages; export default function cookieSyncManager(mpInstance) { var self = this; this.attemptCookieSync = function(previousMPID, mpid, mpidIsNotInCookies) { var pixelConfig, lastSyncDateForModule, url, ...
mParticle/mparticle-sdk-javascript
src/cookieSyncManager.js
JavaScript
apache-2.0
6,244
/* * Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
y-todorov/Inventory
Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.tk-TM.js
JavaScript
apache-2.0
2,645
/* * 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"); you ...
forsrc/MyStudy
src/main/webapp/MyStudy/www/js/web/home.js
JavaScript
apache-2.0
5,554
// const CDN_HOSTNAME = 'https://d2h2bu87t9cnlp.cloudfront.net'; /** * Pass in an absolute path to an asset, and this will return that, or a CDN hosted version of * it (in production mode). `assetPath` should be something like "/static/img/logo.png". */ export function assetUrl(assetPath) { /* if (process.env...
mitmedialab/MediaCloud-Web-Tools
src/lib/assetUtil.js
JavaScript
apache-2.0
447
/** * Created by Abhisek on 11/10/13. */ $(document).ready(function(){ init(); var source = $("#sample-template").html(); var template = Handlebars.compile(source); $.getJSON('https://api.github.com/gists/public',function(data){ html=template(data); $('#content').html(html); ...
abhisekjana/template
js/index.js
JavaScript
apache-2.0
399