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
/* global toastr:false, _:false, ActionCable:false, $:false, sprintf: false, moment: false */ (function() { 'use strict'; angular.module('app.core') .constant('lodash', _) .constant('ActionCable', ActionCable) .constant('toastr', toastr) .constant('sprintf', sprintf) .constant('moment', moment)...
dtaylor113/manageiq-ui-self_service
client/app/core/constants.js
JavaScript
apache-2.0
328
var namespacedroid_1_1_runtime_1_1_utilities_1_1_misc_1_1_drawing = [ [ "ArrowRenderer", "classdroid_1_1_runtime_1_1_utilities_1_1_misc_1_1_drawing_1_1_arrow_renderer.html", null ], [ "ConnectPointsWithCubeMesh", "classdroid_1_1_runtime_1_1_utilities_1_1_misc_1_1_drawing_1_1_connect_points_with_cube_mesh.html",...
sintefneodroid/droid
docs/cvs/namespacedroid_1_1_runtime_1_1_utilities_1_1_misc_1_1_drawing.js
JavaScript
apache-2.0
632
/** * @license Copyright 2020 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...
GoogleChrome/lighthouse
lighthouse-core/audits/long-tasks.js
JavaScript
apache-2.0
5,301
import PropTypes from 'prop-types'; const BORDER_SHAPE = PropTypes.shape({ color: PropTypes.oneOfType([ PropTypes.string, PropTypes.shape({ dark: PropTypes.string, light: PropTypes.string, }), ]), side: PropTypes.oneOf([ 'top', 'left', 'bottom', 'right', 'start', '...
grommet/grommet
src/js/components/TableCell/propTypes.js
JavaScript
apache-2.0
1,826
var container = $('#results'); var loader = { msg: 'Calculating', css: { 'background': '#61b0ae', 'color': 'white', 'z-index': '9999', 'font-size': '40px' } }; var funcs = { plain: function(x) { return x; }, cos: function(x) { return Math.cos(x); ...
christabor/etude
01-10-2014/returnofx.js
JavaScript
apache-2.0
2,427
'use strict'; const { withClient, withClientV2, withMonitoredClient, setupDatabase, ignoreNsNotFound, assert: test } = require('../shared'); const { Long, MongoBatchReExecutionError, MongoDriverError } = require('../../../src'); const crypto = require('crypto'); const chai = require('chai'); const expect =...
mongodb/node-mongodb-native
test/integration/crud/bulk.test.js
JavaScript
apache-2.0
72,761
'use strict' var oauth = require('oauth-sign') , qs = require('querystring') , fs = require('fs') , path = require('path') , request = require('../index') , tape = require('tape') , crypto = require('crypto') , http = require('http') function getSignature(r) { var sign r.headers.Authorization.slice(...
pho3nixf1re/request
tests/test-oauth.js
JavaScript
apache-2.0
20,898
/* Copyright (c) 2015 SONATA-NFV [, ANY ADDITIONAL AFFILIATION] 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...
pkarkazis/son-gui
app/js/controllers/AllServicesController.js
JavaScript
apache-2.0
4,420
// following three.js conventions, the ship always looks now the Z axis // it has a forward facing camera. So the camera === the ship. so we only need a camera to contain // the orientation and position info of the ship. just need 1 object. // the navigator changes orientation and position of the ship/camera. // So... ...
rwoodley/LAB
55-Durango/app/ship.js
JavaScript
apache-2.0
4,105
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var async_1 = require("../scheduler/async"); var sampleTime_1 = require("../operators/sampleTime"); /** * Emits the most recently emitted value from the source Observable within * periodic time intervals. * * <span class="informal">Samples...
HeH-Projects/team-agozzino
frontend/node_modules/rxjs/operator/sampleTime.js
JavaScript
apache-2.0
1,966
import AxisAlignedBoundingBox from "./AxisAlignedBoundingBox.js"; import BoundingSphere from "./BoundingSphere.js"; import Cartesian2 from "./Cartesian2.js"; import Cartesian3 from "./Cartesian3.js"; import defaultValue from "./defaultValue.js"; import defined from "./defined.js"; import DeveloperError from "./Develope...
YonatanKra/cesium
Source/Core/HeightmapTessellator.js
JavaScript
apache-2.0
19,020
$(function() { $("input,textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { // Prevent spam click and default submit behaviour ...
6graNik/alexander_galetsky
js/contact_me.js
JavaScript
apache-2.0
3,012
// This Controller is generic so it distributed with the services in the base class ReadModelGenericController { constructor(app, readRepository, logger) { app.get('/api/v1/r/:model', (req, res) => { readRepository.findWhere(req.params.model, req.query) .then(results => res.json(...
kmalakoff/nota
src/services/ReadModelGenericController.js
JavaScript
apache-2.0
557
/* Copyright 2005-2015 Alfresco Software, Ltd. * * 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 la...
paulstapleton/flowable-engine
modules/flowable-ui/flowable-ui-task-frontend/src/main/resources/static/display/bpmn-draw.js
JavaScript
apache-2.0
22,305
/** * Created with JetBrains WebStorm. * User: ty * Date: 14-10-13 * Time: 上午9:26 * To change this template use File | Settings | File Templates. */ var functions = (function (config) { return { /** * 格式化日期 * @param format {string} 格式化 * y:四位数的年份 * m:两位数的月份 ...
zyhndesign/EquipmentSystem
src/main/webapp/resources/js/src/functions.js
JavaScript
apache-2.0
8,458
import React, { Component } from 'react' import isEqual from 'lodash.isequal' import Radium from '@instacart/radium' import PropTypes from 'prop-types' import componentStyles from './ScrollTrackStyles' import equalWidthTrack from './equalWidthTrack' import ScrollTrackPropTypes from './ScrollTrackPropTypes' import { is...
instacart/Snacks
src/components/ScrollTrack/ScrollTrack.js
JavaScript
apache-2.0
11,870
/*global angular*/ (function () { angular .module('simplAdmin.core') .controller('UserListCtrl', UserListCtrl); /* @ngInject */ function UserListCtrl(userService, translateService) { var vm = this; vm.users = []; vm.translate = translateService; vm.getUsers...
johnfosborneiii/SimplCommerceSQLServerRHEL
src/Modules/SimplCommerce.Module.Core/wwwroot/admin/user/user-list.js
JavaScript
apache-2.0
663
import {FeatureService} from '../../../src/mapboxgl/services/FeatureService'; import {EditFeaturesParameters} from '../../../src/common/iServer/EditFeaturesParameters'; import { FetchRequest } from '../../../src/common/util/FetchRequest'; var url = GlobeParameter.dataServiceURL; var id; describe('mapboxgl_FeatureServi...
SuperMap/iClient9
test/mapboxgl/services/EditFeaturesSpec.js
JavaScript
apache-2.0
4,088
module.exports = { top: { secret: 'top-secret' }, array: [ 'value', { secret: 'array-secret' }, ], object: { child: { secret: 'child-secret' }, nesting: [ { secret: 'nested-secret' }, ], }, };
juristat/setec-app-config
__fixtures__/test-config.js
JavaScript
apache-2.0
229
import { push } from 'react-router-redux' import { connect } from 'react-redux' import { addItem } from '../../store/expenses/expensesActions' import AddExpense from './AddExpense' import { createLoadingSelector } from '../../store/loading/loadingSelectors' const mapStateToProps = state => ({ isPosting: createLoadin...
mitchgavan/got-your-money
src/scenes/addExpense/index.js
JavaScript
apache-2.0
506
return; var IdManager = require('../utils/idmanager.js').IdManager; function mtthrow(err) { if (err) { //console.log(err); setTimeout(function () { throw err; }); throw err; } } var idmgr = new IdManager(); var obj = {$namefff: 'thanh', surff: 'kieu', '_id': 4}; idmgr.toID('_iddd').then(function (ret...
meotrics/meotrics
core/test/testidmgr.js
JavaScript
apache-2.0
917
/** * "use strict"; Defines that JavaScript code should be executed in "strict mode". * With strict mode, you can not, use undeclared variables. */ 'use strict'; var App = angular.module('myApp',[]);
rajujrk/raju-demos
SpringCRUDAngularHibernate/src/main/webapp/resources/js/modules/app.js
JavaScript
apache-2.0
208
sap.ui.define([ "com/sap/sapmentors/sitreg/registration/model/grouper", "sap/ui/model/resource/ResourceModel", "jquery.sap.global" ], function (Grouper, ResourceModel, $) { "use strict"; function createResourceModel () { return new ResourceModel({ bundleUrl : [$.sap.getModulePath("com.sap.sapmentors.sitr...
sapmentors/SITregParticipant
webapp/test/unit/model/grouper.js
JavaScript
apache-2.0
2,456
/** * Created by tomihei on 17/02/11. */ import { combineReducers } from 'redux'; import loginFormInput from './login/loginform'; import loginInfo from './login/loginrequest'; import app from './app'; import videoList from './videoList/videoList'; import videoInfo from './videoList/videoInfo'; import addVideoInBoard...
motion123/mbookmakerUI
src/reducers/rootReducer.js
JavaScript
apache-2.0
1,402
import _ from 'lodash' import * as d3Selection from 'd3-selection' import DonutChart from 'britecharts/dist/umd/donut.min' export default { template: '<div class="c-episode-rating-state-chart"></div>', props: { initDataset: { type: String, required: true, }, }, data() { return { ...
elzzup/annict
app/frontend/javascripts/common/components/episodeRatingStateChart.js
JavaScript
apache-2.0
1,007
/* eslint-disable accessor-pairs */ var EventEmitter = require('emitter-component') var Backo = require('Backo') // define some stuff in the global space var globalSockets = {} var globalConnections = {} var hbInterval = 30000 var globalEmitter = new EventEmitter() var createSocket = (typeof require !== 'undefined' && ...
SciSpike/yaktor-dsl-xtext
test-project/src/main/resources/public/socketApi.js
JavaScript
apache-2.0
6,477
/*! * imagesLoaded PACKAGED v3.1.8 * JavaScript is all like "You images are done yet or what?" * Copyright © 2017 David DeSandro * MIT License */ /*! * EventEmitter v4.2.6 - git.io/ee * Copyright (c) 2011-2013 Oliver Caldwell * MIT license * @preserve */ /** * Permission is hereby granted, free of charge, ...
ColmexBDCV/sufia-oai
vendor/assets/javascripts/imagesloaded.pkgd.js
JavaScript
apache-2.0
27,502
/** @scratch /panels/5 * * include::panels/map.asciidoc[] */ /** @scratch /panels/map/0 * * == Map * Status: *Stable* * * The map panel translates 2 letter country or state codes into shaded regions on a map. Currently * available maps are world, usa and europe. * */ define([ 'angular', 'app', 'lodash...
fhuitfeldt/logstash-cartridge
kibana/src/app/panels/map/module.js
JavaScript
apache-2.0
6,479
/* * Copyright 2021 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 ...
GoogleChrome/webdev-infra
shortcodes/Video.js
JavaScript
apache-2.0
3,188
'use strict'; var size = require('../../util/array').size; function factory (type, config, load, typed) { var matrix = load(require('../../type/matrix/function/matrix')); /** * Filter the items in an array or one dimensional matrix. * * Syntax: * * math.filter(x, test) * * Examples: ...
mikberg/mathjs
lib/function/utils/filter.js
JavaScript
apache-2.0
2,147
/* 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 writing, software dis...
samdutton/simpl
getusermedia/test/js/main.js
JavaScript
apache-2.0
2,444
/** * Copyright 2017 Moshe Simantov * * 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...
remotelib/remote-lib
packages/remote-context/src/Context.js
JavaScript
apache-2.0
4,811
/* * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. */ define([ 'co-test-constants', 'co-test-runner', 'ct-test-utils', 'ct-test-messages', 'monitor/networking/test/ui/views/NetworkView.mock.data', 'co-grid-contrail-list-model-test-suite', 'co-grid-view-test-suite' ], funct...
biswajit-mandal/contrail-web-controller
webroot/monitor/networking/test/ui/views/NetworkViewInterfaces.test.js
JavaScript
apache-2.0
7,709
/** Adapter for REST calls to the backend used by the Ember Data Store **/ App.ApplicationAdapter = DS.RESTAdapter.extend({ host: (function() { return this.get("constants.ip"); }).property("constants.ip"), namespace: "vert/data", headers: function() { return { "authorization": this...
VertMusic/vert_web
js/lib/adapter.js
JavaScript
apache-2.0
709
define([ 'jquery', '../utils', '../keys' ], function ($, Utils, KEYS) { function Search (decorated, $element, options) { decorated.call(this, $element, options); } Search.prototype.render = function (decorated) { var $search = $( '<li class="select2-search select2-search--inline">' + ...
RRZE-PP/grails-cmeditor
grails-app/assets/lib/select2-4.0.0/src/js/select2/selection/search.js
JavaScript
apache-2.0
3,886
/** * Run the tests. Registered tasks: * - test * - test:unit * - test:functional * - test:coverage * * @param {Object} grunt Reference to the current Grunt process. */ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-karma'); grunt.config.set('karma', { unit: { options: { ...
moelders/javascript-testing
build/grunt-tasks/test.js
JavaScript
apache-2.0
716
/** * vim:set sw=2 ts=2 sts=2 ft=javascript expandtab: * * 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 t...
framasoft/ep_mypads
spec/backend/mail.spec.js
JavaScript
apache-2.0
7,913
var searchData= [ ['statustext',['StatusText',['../class_sign_language_translator_d_t_w_1_1_main_window.html#a2d4c4bedda8c30177797e16e73cd7c27',1,'SignLanguageTranslatorDTW::MainWindow']]] ];
preetiamatya/SignLanguageTranslator-using-Kinect2-DTW
Documentation/html/search/properties_5.js
JavaScript
apache-2.0
194
import React, { PureComponent } from "react"; import PlaygroundSection from "../PlaygroundSection"; import { ActionBar, ActionBarGroup, ActionBarSpacer, IconButton } from "../../hig-react"; class ActionBarSection extends PureComponent { render() { return ( <PlaygroundSection title="ActionBar"> ...
hyoshizumi/hig
packages/react/src/playground/sections/ActionBarSection.js
JavaScript
apache-2.0
889
$(document).ready(function() { // stop with Googlebot. Googlebot may load page and run script, but no further than this so indexing is correct (index this page) if (navigator.userAgent.indexOf('Googlebot') > -1) return; var dmode = dc.util.Http.getParam('_dcui'); if ((dmode == 'html') || (dmode == '...
Gadreel/dcraft
packages/dc/dcWeb/www/dcw/js/dc.go.js
JavaScript
apache-2.0
1,039
/** * @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/_tools/licenses/header/test/test.validate.js
JavaScript
apache-2.0
3,026
/** * @author nthienan */ var exampleAppConfig = { /* * When set to false a query parameter is used to pass on the auth token. * This might be desirable if headers don't work correctly in some * environments and is still secure when using https. */ useAuthTokenHeader: true }; var mainApp = angular.module...
thienan93/music-manager
MusicManagerClient/src/main/webapp/app/libs/app.js
JavaScript
apache-2.0
12,761
function show_modal_inscripcion(){ var html = ""; //Modal inscripcion $("#inscripcion_modal").modal({ show: true }); $.post('/actions/championship/get_campeonato_list',function(data){ if(data.length == 0){ ...
ralf-zombie/sistema-inscripcion-campeonatos
assets/js_inscripcion/fn_agregar_alumno.js
JavaScript
apache-2.0
3,992
var map; var feature_group; function loadQGIS(){ map = L.map('map', { zoomControl:true }).fitBounds([[1.18696906129,103.557355926],[1.51280279022,104.126030001]]); var hash = new L.Hash(map); //add hashes to html address to easy share locations var additional_attrib = 'created w. <a href="https://github.com/geolici...
geoBlank/geoBlank.github.io
js/qgis.js
JavaScript
apache-2.0
72,840
/** * @license Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
arturmiz/lighthouse
lighthouse-core/test/audits/dobetterweb/no-vulnerable-libraries-test.js
JavaScript
apache-2.0
2,302
'use strict'; angular.module('CentralDogmaAdmin') .config(function ($stateProvider) { $stateProvider .state('user', { abstract: true, parent: 'site' }); });
line/centraldogma
server/src/main/resources/webapp/scripts/app/user/user.js
JavaScript
apache-2.0
264
(function() { function Tasks($firebaseArray) { var firebaseRef = new Firebase('https://bloc-time-craysiii.firebaseio.com/data'); var tasks = $firebaseArray(firebaseRef); return { all: tasks }; } angular .module('blocTime') .factory('Tasks', ['$firebaseArray', Tasks]); })...
craysiii/bloc-time
app/scripts/services/Tasks.js
JavaScript
apache-2.0
323
// See: https://github.com/webpack/karma-webpack/issues/23 var tests = require.context('./cases', true, /.*\.js$/); tests.keys().forEach(tests);
danlamanna/scratch
js/test/all.js
JavaScript
apache-2.0
146
function convert() { var input = $("#input").val(); var split = input.split(/([.?!]+ )/); var out = ""; for (i = 0; i<split.length; i++) { out += split[i] + "\n"; console.log(split[i]); } $("#output").val(out); }
bobbywang000/bobbywang000.github.io
js/splitter.js
JavaScript
apache-2.0
223
var chai = require('chai'); var expect = chai.expect; var assert = chai.assert; var should = chai.should(); //actually call the function describe('chai', function () { it('should check indexOf', function () { [1, 2, 3].indexOf(4).should.equal(-1); }); it('should pass', function () { expect(true).to.be.eq...
segrey/mocha-sample-tests
chai-example/chai-test.js
JavaScript
apache-2.0
341
'use strict'; import * as _ from 'lodash'; import angular from 'angular'; import io from 'socket.io-client'; function Socket(socketFactory) { 'ngInject'; // socket.io now auto-configures its connection when we ommit a connection url var ioSocket = io('', { // Send auth token on connection, you will need to...
jsdoodnauth/newsreader
client/components/socket/socket.service.js
JavaScript
apache-2.0
2,104
// This snippet file was generated by processing the source file: // ./remoteconfig-next/index.js // // To update the snippets in this file, edit the source and then run // 'npm run snippets'. // [START rc_get_values_modular] import { getValue } from "firebase/remote-config"; const val = getValue(remoteConfig, "welco...
firebase/snippets-web
snippets/remoteconfig-next/index/rc_get_values.js
JavaScript
apache-2.0
365
var $_app=function(cfg){ var template="<div id='demo'><p>a的值 :{{a}}</p><p>b的值 :{{b}}</p><input e-input='a' placeholder='修改a的值'> <input e-input='b' placeholder='修改b的值'></div>"; var css="*{ margin:0 auto; padding:0;box-sizing:border-box;} #demo{ width:350px; height:200px; margin-top:40px; border:1px solid red;} #...
343830384/Eng
API 本地/demo/demo.js
JavaScript
apache-2.0
732
(function () { var q = require('q'); var auth = require('basic-auth'); /** * Authenticate an HTTP request and return a message that includes a * 'user' field. * @param {Object} req A node.js HTTP request object * @returns A promise for the data for the authenticated user. */ mo...
brendandburns/metaparticle
metaparticle-basic-auth.js
JavaScript
apache-2.0
521
var OA_Menus_Children = []; function oa_build_top_menu() { var top_menu_html = ""; if(typeof OA_Menus == "object" ){ for(var i in OA_Menus){ var top_menu = OA_Menus[i]; if(top_menu.content.cfg_pid == 0){//说明是顶部菜单 if(typeof top_menu.items == "object"){//说明有子菜单 ...
xiongchuan86/openadm-yii2
app/themes/adminlte2/assets/js/openadm.js
JavaScript
apache-2.0
14,281
import 'd2l-program-outcomes-picker/d2l-program-outcomes-picker.js'; import 'd2l-program-outcomes-picker/d2l-asn-outcomes-picker.js'; import 'd2l-program-outcomes-picker/d2l-unlink-outcomes-picker.js'; import 'd2l-program-outcomes-picker/d2l-delete-outcomes-picker.js';
Brightspace/brightspace-integration
web-components/d2l-program-outcomes-picker.js
JavaScript
apache-2.0
270
var uiWebView = (function() { var API = { }; API.name = "Web"; API.icon = "/KS_nav_ui.png"; API.parentNav = null; API.win = null; API.factoryView = function(opts){ topView = Ti.UI.createView({}); var webView = Ti.UI.createWebView({ url:'http://www.woot.com', top:20, bottom:...
mschmulen/fastmodal
Resources/two.js
JavaScript
apache-2.0
863
/* Copyright 2019 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 law or agreed to in ...
google/chicago-brick
demo_modules/slideshow/fullscreen_display_server.js
JavaScript
apache-2.0
4,316
var menuBG; var menuText; var pacScore, ghostsScore; var pacScoreText, pacScoreRect; function initUI() { menuBG = new Kinetic.Rect({ width: 1000, height: 1000, fill: 'white', x: -200, y: -200 }); menuText = new Kinetic.Text({ x: 200, y: 200, text: "Waiting for other players...",...
michailnenkov/PAC-To-The-Future
scripts/UI.js
JavaScript
apache-2.0
859
var campos = [ document.querySelector("#data"), document.querySelector("#valor"), document.querySelector("#quantidade") ]; var tbody = document.querySelector('table tbody'); document.querySelector(".form").addEventListener("submit", function(event) { event.preventDefault(); var tr = document.createElement(...
pedro-hos/courses
alura/JavaScript/ES6 orientação a objetos e padrões de projetos/aluraframe/client/js/app/index.js
JavaScript
apache-2.0
729
/** * @license * Copyright 2017 The Lovefield Project 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 ...
arthurhsu/rdb-polyfill
example/quickstart/scud.js
JavaScript
apache-2.0
1,797
/************************************************************************* * * INFIVERVE TECHNOLOGIES PTE LIMITED CONFIDENTIAL * __________________ * * (C) INFIVERVE TECHNOLOGIES PTE LIMITED, SINGAPORE * All Rights Reserved. * Product / Project: Flint IT Automation Platform * NOTICE: All information containe...
getflint/fb-cloud
alibaba-ecs/operations/query_orders.js
JavaScript
apache-2.0
2,121
exports.Unboggler = function() { var MAX_ROW = 3, MAX_COL = 3, DICTIONARY = { rain: true, die: true, din: true, aide: true, arse: true }, NEIGHBORS = [ {row: -1, col: -1}, {row: -1, col: 0}, {row: -1, col: 1}, {row: 0, col: -1}, {row: 0, col: 1}, {row...
mcgaffin/unboggleme
routes/boggled.js
JavaScript
apache-2.0
2,791
var dir_22710e1b49b68974126aeedc09de256a = [ [ "binding.c", "vtep_2binding_8c.html", "vtep_2binding_8c" ], [ "binding.h", "vtep_2binding_8h.html", "vtep_2binding_8h" ], [ "gateway.c", "gateway_8c.html", "gateway_8c" ], [ "gateway.h", "gateway_8h.html", "gateway_8h" ], [ "ovn-controller-vtep.c", "ovn...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/dir_22710e1b49b68974126aeedc09de256a.js
JavaScript
apache-2.0
466
// Google Analytics Tracking Code Ti.include('analytics.js'); var analytics = new Analytics('UA-2317436-27'); Ti.App.addEventListener('analytics_trackPageview', function (e) { var path = Ti.Platform.name; analytics.trackPageview(path + e.pageUrl); }); Ti.App.addEventListener('analytics_trackEvent', function (e) { ...
t32k/Nyars
Resources/app.js
JavaScript
apache-2.0
2,344
"use strict"; var $ = require('jquery'), App = require('../app'), settings = require('../core/settings'), router = require('../router').router, views = require('./views'), hopscotch = require('hopscotch'), models = require('./models'); var ModelingController = { projectPrepare: function(pr...
project-icp/bee-pollinator-app
src/icp/js/src/modeling/controllers.js
JavaScript
apache-2.0
7,852
/Users/JDang/Documents/cmsc491-classroom-app/Resources/iphone/alloy/controllers/MyClassroomServer/model/user_web.js
Quixomatic/mobile
build/iphone/build/Debug-iphonesimulator/Classroom+.app/alloy/controllers/MyClassroomServer/model/user_web.js
JavaScript
apache-2.0
115
/** * @license Copyright 2021 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...
ev1stensberg/lighthouse
lighthouse-core/gather/gatherers/web-app-manifest.js
JavaScript
apache-2.0
3,982
/* * Copyright 2017 StreamSets 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...
streamsets/datacollector
datacollector-ui/src/main/webapp/app/home/packageManager/package_manager.js
JavaScript
apache-2.0
20,462
var App = new App(); $(document).on("pageInit", function(e, pageId, $page) { if(pageId == "customer-edit") { seajs.use('mobile/customer.js', function (app) { app.index($); }); }else if(pageId == 'customer-account-index'){ //钱包 seajs.use('mobile/customer_account.js', function...
seed-builder/umbrella
public/mobile/Shineraini/js/page.js
JavaScript
apache-2.0
1,267
var respMod = require("resp-modifier"); var utils = require("./utils"); /** * HTTP proxy server with resp modding * @param proxyServer * @param config * @returns {Function} */ module.exports = function (proxyServer, config) { return function (req, res) { /** * Create middleware on the fly...
ben-prince/ben-prince.github.io
node_modules/browser-sync/node_modules/foxy/lib/server.js
JavaScript
apache-2.0
1,311
define(['jquery', 'backbone'], function($, Backbone){ var View = Backbone.View.extend({ initialize: function(){ this.setElement('#general-alert'); $(this.el).modal({ show : false, keyboard : true, backdrop : true }); ...
magnetsystems/message-console-server
public/admin/js/views/AlertGeneralView.js
JavaScript
apache-2.0
1,466
import React from 'react' import { shallow } from 'enzyme' import moment from 'moment' import RecentlyAddedUsersTable from '.' describe('<RecentlyAddedUsersTable />', () => { it('renders', () => { const wrapper = shallow(<RecentlyAddedUsersTable />) expect(wrapper).toBeTruthy() }) it('shows a user add...
buildit/bookit-web
src/components/02-molecules/RecentlyAddedUsersTable/index.test.js
JavaScript
apache-2.0
1,095
'use strict'; angular.module('revolovexApp') .controller('SubjectController', function ($scope, $http, dialogs) { $http.get(document.location.origin + '/api/admin/subject/') .success(function (subject) { $scope.subject = subject; }); $scope.form = {hour: 3, m...
ashraf-revo/spring-boot-heroku-demo
src/main/resources/static/scripts/app/home/admin/subject/subject.controller.js
JavaScript
apache-2.0
4,007
$(function() { //alert('elad'); //var username = sessionStorage.getItem('clicked'); // alert( sessionStorage.getItem('clicked')); var map; var marker; var item; var markers = []; function initialize() { /* $.get( "././database/geteventsbyuser.php?id="+username, func...
flintisrael/Check-IT
js/map.js
JavaScript
apache-2.0
6,870
//// [overloadingOnConstants2.ts] class C { private x = 1; } class D extends C {} class E { private y = 1; } function foo(x: "hi", items: string[]): D; function foo(x: "bye", items: string[]): E; function foo(x: string, items: string[]): C { return null; } var a: D = foo("hi", []); // D var b: E = foo("bye",...
domchen/typescript-plus
tests/baselines/reference/overloadingOnConstants2.js
JavaScript
apache-2.0
1,983
(function(_, $) { var methods = { init: function(params) { var self = $(this); var ranges = [_.tr("today")]; $.loadCss(['design/backend/css/lib/daterangepicker/daterangepicker.css']); if (typeof(moment) == 'undefined') { var scripts_to_load = [$.getScript("js/lib/daterangepicker...
sandymariscal22/BrandsCsCart
public_html/js/tygh/date_picker.js
JavaScript
apache-2.0
4,346
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // <https://apache.org/licenses/LICENSE-2.0>. // // Unless required by applicable law or agreed to in writing...
v8/v8.dev
prism-languages.js
JavaScript
apache-2.0
4,348
/** * Copyright 2017 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
adup-tech/amphtml
build-system/server/app.js
JavaScript
apache-2.0
44,734
import Head from 'next/head' import Layout, { siteTitle } from '../components/layout' import utilStyles from '../styles/utils.module.css' import { getSortedPostsData } from '../lib/posts' import Link from 'next/link' import Date from '../components/date' export default function Home ({ allPostsData }) { return ( ...
codetojoy/gists
web/next_js/markdown-viewer/pages/index.js
JavaScript
apache-2.0
1,119
import axios from 'axios'; export function getDomains() { return axios .get('/tcc-transaction-dashboard/api/domains') .then(res => res.data.reduce((prev, val) => { return prev.concat({ ...val, value: val.label }) }, []) || []); } export function getManageList({ domain, r...
changmingxie/tcc-transaction
tcc-transaction-admin-web/src/common/api.js
JavaScript
apache-2.0
2,322
console.log("Running factory") var path = require('path') var fs = require('fs') var webpack = require('webpack') var factoryPath = path.resolve(__dirname, "factory") var folders = fs.readdirSync(factoryPath) folders.forEach(function(folderName){ console.log("Processing: ",folderName) var folderPath = path.resolv...
Kelerchian/Caretaker
runfactory.js
JavaScript
apache-2.0
653
describe("timeslider", function(){ //create a new pad before each test run beforeEach(function(cb){ helper.newPad(cb); this.timeout(6000); }); it("loads adds a hundred revisions", function(done) { // passes var inner$ = helper.padInner$; var chrome$ = helper.padChrome$; // make some change...
joequant/etherpad-lite
tests/frontend/specs/timeslider_revisions.js
JavaScript
apache-2.0
6,355
function f() {} f() && typeof(true)
cs-au-dk/TAJS
test-resources/src/flowgraphbuilder/flowgraph_builder0058.js
JavaScript
apache-2.0
37
'use strict'; var adapter = process.env.ADAPTER || 'redis'; var mq = require('../lib'); var Joi = mq.Joi; var fs = require('fs'); var queue = mq(adapter); var pub = queue.Publish(); var channel = pub.channel('cats', {schema: {meow : Joi.string().required()}}); channel.on('error', function(err) { console.error('err...
yldio/message-queue
examples/publish-with-pipe-json.js
JavaScript
artistic-2.0
441
/* global chai */ /* global describe */ /* global sinon */ /* global it */ /* global beforeEach */ import React from 'react'; import { mount, shallow } from 'enzyme'; import UploaderButton from '../../../app/components/uploaderbutton'; import { URL_UPLOADER_DOWNLOAD_PAGE } from '../../../app/core/constants'; const e...
hichameyessou/blip
test/unit/components/uploaderbutton.test.js
JavaScript
bsd-2-clause
2,383
/** * @module ol/control/MousePosition */ import {listen} from '../events.js'; import EventType from '../events/EventType.js'; import {getChangeEventType} from '../Object.js'; import Control from './Control.js'; import {getTransformFromProjections, identityTransform, get as getProjection} from '../proj.js'; /** * ...
tschaub/ol3
src/ol/control/MousePosition.js
JavaScript
bsd-2-clause
7,179
/** * @file opens Silk in a nw.js window */ module.exports = function (toolbar) { var path = require('electron-prebuilt'); var exec = require('child_process').exec; path += ' ' + __root + '/core/electron'; if (toolbar === true) { path += ' --url=file:///' + __root + '/core/nw/index.html?devtools=true'; ...
Silk-GUI/Silk
core/electron/open.js
JavaScript
bsd-2-clause
427
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-id-init-fn-name-gen.case // - src/dstr-binding/default/cls-expr-meth-static-dflt.template /*--- description: SingleNameBinding assigns name to "anonymous" generator functions (static class expression method (default param...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/class/dstr-meth-static-dflt-obj-ptrn-id-init-fn-name-gen.js
JavaScript
bsd-2-clause
2,965
var kdbtree = require('../') var test = require('tape') test('5d', function (t) { var n = 200 var kdb = kdbtree({ dim: 5 }) var data = [] for (var i = 0; i < n; i++) { var pt = [ Math.random() * 200 - 100, Math.random() * 200 - 100, Math.random() * 200 - 100, Math.random() * 200 - 1...
peermaps/kdb-tree
test/5d.js
JavaScript
bsd-2-clause
1,037
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-id-init-fn-name-fn.case // - src/dstr-binding/default/func-expr.template /*--- description: SingleNameBinding assigns name to "anonymous" functions (function expression) esid: sec-function-definitions-runtime-semantics-ev...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/function/dstr-obj-ptrn-id-init-fn-name-fn.js
JavaScript
bsd-2-clause
2,041
/** * @module ol/layer/Layer */ import {listen, unlistenByKey} from '../events.js'; import EventType from '../events/EventType.js'; import {getChangeEventType} from '../Object.js'; import BaseLayer from './Base.js'; import LayerProperty from './Property.js'; import {assign} from '../obj.js'; import RenderEventType fr...
tschaub/ol3
src/ol/layer/Layer.js
JavaScript
bsd-2-clause
9,008
// Hairlip is // a very tiny version of mustache that only does variable replacement // and nothing else. // src: https://gist.github.com/Breton/6027591 // Hairlip is // a very tiny version of mustache that only does variable replacement // and nothing else. define(function() { return function hairlip(o, s) { ...
maks/git-crx
js/hairlip.js
JavaScript
bsd-2-clause
526
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.reduce es5id: 15.4.4.21-5-10 description: > Array.prototype.reduce - if exception occurs, it occurs after any side-effects that might be produce...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
JavaScript
bsd-2-clause
724
var egret_file_list = [ "core/egret/i18n/cn.js", "core/egret/utils/Logger.js", "core/egret/utils/HashObject.js", "core/egret/utils/Recycler.js", "core/egret/utils/getTimer.js", "core/egret/utils/callLater.js", "core/egret/utils/RenderCommand.js", "core/egret/events/Event.js", "core/egret/events/HTTPStatusEvent...
SASUKE40/LizhiMaster
bin-debug/lib/egret_file_list.js
JavaScript
bsd-2-clause
4,442
const gemfire = require("../gemfire.js"); gemfire.configure("/bad/path.xml");
mross-pivotal/node-gemfire
spec/support/scripts/missing_xml_file.js
JavaScript
bsd-2-clause
78
"use strict"; /** Errors prototype defaults Overriding, see docs. */ module.exports.proto = { /** To String Returns the string 'Error.name: Error.message'. */ toString:function() { return this.name + (this.message ? ': ' + this.message : ''); }, /** To Object Returns a shallow object copy. Filt...
smwht/node-errati
lib/defaults.js
JavaScript
bsd-2-clause
2,752
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-elem-obj-prop-id-init.case // - src/dstr-binding/default/cls-expr-gen-meth-static-dflt.template /*--- description: BindingElement with object binding pattern and initializer is used (static class expression generator meth...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/class/dstr-gen-meth-static-dflt-ary-ptrn-elem-obj-prop-id-init.js
JavaScript
bsd-2-clause
3,379
/* See license.txt for terms of usage */ "use strict"; // Add-on SDK const { Cc, Ci, Cu } = require("chrome"); const Events = require("sdk/event/core"); // DevTools const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}); // xxxHonza: is this really required? devtools["require"]("devtools/s...
firebug/devtools-extension-examples
DomInspector/lib/my-actor.js
JavaScript
bsd-3-clause
3,606
describe('ouiSearch', () => { let $timeout; let testUtils; beforeEach(angular.mock.module('oui.search')); beforeEach(angular.mock.module('oui.test-utils')); beforeEach(inject((_$timeout_, _TestUtils_) => { $timeout = _$timeout_; testUtils = _TestUtils_; })); describe('Component', () => { it...
ovh-ux/ovh-ui-kit
packages/components/search/src/js/search.spec.js
JavaScript
bsd-3-clause
4,404