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 fs = require('fs');
var logger = thisapp.getLogger('yuwang');
exports.saveNewFile = function(path, content) {
return new Promise((resolve, reject) => {
var reg = /^.*\//;
var dir = reg.exec(path);
logger.info... | xunull/noadmin | back.src/business/yuwang/lib/fileUtils.js | JavaScript | apache-2.0 | 1,796 |
define({root:
({
loadingInfo: "Loading...",
emptyInfo: "No items to display",
loadFailInfo: "Failed to load data!"
}),
"ar": true,
"ca": true,
"cs": true,
"da": true,
"de": true,
"el": true,
"es": true,
"fi": true,
"fr": true,
"hu": true,
"it": true,
"ja": true,
"kk": true,
"ko": true,
"nb": true,
"nl": true,
"pl": ... | andrescabrera/gwt-dojo-toolkit | src/gwt/dojo/gridx/public/dojo/gridx/nls/Body.js | JavaScript | apache-2.0 | 467 |
function SolarPower(_x, _y) {
this.type = "solar";
var data = eval("buildingData.power."+this.type);
this.label = data.label;
this.title = data.title;
this.width = data.width;
this.height = data.height;
this.price = data.price;
this.currency = data.currency;
this.capacity = data.capacity;
this.dirtyWidth = d... | IWasZeroCool/BuildItDesigner | models/structures/power/SolarPower.js | JavaScript | apache-2.0 | 838 |
var saveAlertTypes = function (alertTypesIDs, emailList, checkedValues) {
jagg.post("/site/blocks/manage-alerts/ajax/manage-alerts.jag", {
action: "saveAlertTypes",
checkedList: alertTypesIDs.toString(),
emailList: emailList,
checkedValues: checkedValues.toString()
}, function... | pubudu538/carbon-apimgt | features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/site/themes/wso2/templates/manage-alerts/js/manage-alerts.js | JavaScript | apache-2.0 | 3,652 |
'use strict';
let express = require('express')
let app = express()
let router = express.Router()
var jsonfile = require('jsonfile')
app.get('/', (req, res) => {
res.send('Hello World!')
})
router.get('/articles', (req, res) => {
jsonfile.readFile('/opt/mianio/api/mock-data/articles.json', (err, obj) => {
re... | cresjean/mianio | app-backend/api/api-server.js | JavaScript | apache-2.0 | 450 |
var _ = require('lodash');
var assert = require('assert');
var Log = function Log (name) {
assert(this instanceof Log, "Missing 'new' keyword");
this.name = name;
this._levels = {
critical: 3,
warn: 2,
info: 1,
debug: 0,
silly: -1
};
_.assign(this._levels, _.... | shakefu/jetconfig | log.js | JavaScript | apache-2.0 | 2,694 |
export default {
xs: '0.8rem',
s: '1.2rem',
m: '1.4rem',
l: '1.6rem',
xl: '2.8rem',
xxl: '3.2rem',
};
| Talend/ui | packages/design-system/src/tokens/sizes.tokens.js | JavaScript | apache-2.0 | 108 |
/**
* @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/uint32-sqrt/lib/sqrt.js | JavaScript | apache-2.0 | 1,752 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getUserFields = getUserFields;
var _pouchdbSelectorCore = require("pouchdb-selector-core");
// determine the maximum number of fields
// we're going to need to query, e.g. if the user
// has selection ['a'] and sorting ['a', 'b'],... | pubkey/rxdb | dist/lib/plugins/dexie/query/pouchdb-find-query-planer/utils.js | JavaScript | apache-2.0 | 1,301 |
/**
* @license
* Copyright 2018 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 require... | youtube/js_mse_eme | harness/compactTestList.js | JavaScript | apache-2.0 | 8,174 |
(function(){
angular
.module('zenigmesApp')
.filter('formatEtablissement', formatEtablissement);
var etablissements = {
"jbsay": "Lycée Jean Baptiste Say",
"lafontaine": "Ecole La Fontaine",
"musset": "Ecole de Musset",
"boileau": "E... | fdagosti/zenigmes | app_client/src/app/common/filters/etablissements.filter.js | JavaScript | apache-2.0 | 474 |
import App from "../app";
import * as Classes from "../classes";
import {pubsub} from "../helpers/subscriptionManager";
App.on("createSoftwarePanel", ({panel}) => {
App.softwarePanels.push(new Classes.SoftwarePanel(panel));
pubsub.publish("softwarePanelsUpdate", App.softwarePanels);
});
App.on("updateSoftwarePanel... | Thorium-Sim/thorium | server/events/softwarePanels.js | JavaScript | apache-2.0 | 1,032 |
use test5
db
db.people.insert( { name: "Alice" } )
db.people.insert( { name: "Bob" } )
db.people.insert( { name: "Charlie" } )
db.people.insert( { name: "Dave" } )
db.people.insert( { name: "Edgar" } )
db.people.insert( { name: "Fred" } )
db.people.find( { name: { $lt: "D" } } )
| hemmerling/nosql-mongodb2013 | src/m101p/week02/lesson_files/hemmerling_week2_mongoinput07.js | JavaScript | apache-2.0 | 289 |
/**
* ESClient
* @see https://github.com/ncb000gt/node-es
* @see https://github.com/ncb000gt/node-es/blob/master/test/functional/core.js
* to see how to configure field types
* <p>ESClient is now an instance of an EventEmitter. This means that it
* will emit an 'onReady' event.</p>
* <p>To use that event, ... | KnowledgeGarden/TQTopicMap | lib/persist/es.js | JavaScript | apache-2.0 | 7,582 |
function validateRequired(object) {
return object.val().trim().length > 0;
}
function formatDate(dt) {
return dt.getFullYear() + "-" + pad2(1 + dt.getMonth()) + "-"
+ pad2(dt.getDate()) + "+" + pad2(dt.getHours()) + ":"
+ pad2(dt.getMinutes()) + ":" + pad2(dt.getSeconds());
}
function pad2(number) {... | mothsoft/openalexis | alexis-ui-war/src/main/webapp/js/functions.js | JavaScript | apache-2.0 | 479 |
'use strict';
import UIROUTER_ANGULARJS from '@uirouter/angularjs';
import { module } from 'angular';
import { REST } from '@spinnaker/core';
export const CANARY_CANARY_ACTIONS_ENDCANARY_CONTROLLER = 'spinnaker.canary.actions.override.result.controller';
export const name = CANARY_CANARY_ACTIONS_ENDCANARY_CONTROLLER... | spinnaker/deck | packages/app/src/canary/canary/actions/endCanary.controller.js | JavaScript | apache-2.0 | 1,045 |
o = {}
o.x = 1
| cs-au-dk/TAJS | test-resources/src/flowgraphbuilder/flowgraph_builder0077.js | JavaScript | apache-2.0 | 15 |
(function($) {
module("stackTeam1");
// Test case : Stack Team
_asyncTest("Stack Team 1", function()
{
expect(12);
var test = this;
var platform = GitanaTest.authenticateFullOAuth();
platform.then(function() {
// NOTE: this = platform
// crea... | gitana/gitana-javascript-driver | tests/js/testStackTeam1.js | JavaScript | apache-2.0 | 4,953 |
'use strict';
import * as _ from 'lodash';
import {GCE_ADDRESS_SELECTOR} from 'google/loadBalancer/configure/common/addressSelector.component';
const angular = require('angular');
module.exports = angular.module('spinnaker.deck.gce.httpLoadBalancer.listener.component', [GCE_ADDRESS_SELECTOR])
.component('gceListene... | kenzanlabs/deck | app/scripts/modules/google/src/loadBalancer/configure/http/listeners/listener.component.js | JavaScript | apache-2.0 | 1,960 |
/**
* Created by viveksh2 on 6/18/15.
*/
var flightApp = angular.module("flightArrival", [
/*********** ngRoute being replaced by the ui.roter *************/
'ui.router',
'flightAppControllers'
]);
flightApp.controller("FlightArrivalCtrl", function ($scope) {
$scope.flightPageTitle = "UCSC Demo Flight ... | decentcamper/MeanStackDevelopment | AngularJS/Basics_FlightsDemoAngularApp/Step_8_SharingBetweenControllers/via_ui-route/js/flightApp.js | JavaScript | apache-2.0 | 865 |
/**
* Ajax Autocomplete for jQuery, version 1.2.9
* (c) 2013 Tomas Kirda
*
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
* For details, see the web site: https://github.com/devbridge/jQuery-Autocomplete
*
*/
(function(d){"function"===typeof define&&define.amd?defin... | AppGeo/GPV | WebApp/Scripts/jquery.autocomplete.min.js | JavaScript | apache-2.0 | 10,696 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides default renderer for control sap.m.Text
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Renderer'],
function(jQuery, Re... | openui5/packaged-sap.m | resources/sap/m/TextRenderer.js | JavaScript | apache-2.0 | 3,372 |
var sqlite3 = require('sqlite3').verbose();
var db;
var environment = require('../../utils/environment.js');
var reflection = require('../../utils/reflection.js');
exports.get = function(req, res){
console.log("Serving " + __filename);
var db_name = req.params.db_resource;
var table = req.params.table;
var d... | jasonbrice/nodeling | routes/database/table_edit.js | JavaScript | apache-2.0 | 4,025 |
/**
*
* Form내에 존재하는 모든 Field들의 ReadOnly를 일괄적용하기 위한 플러그인
*
*/
Ext.define('PmhTech.plugin.form.ReadOnly', {
extend: 'Ext.AbstractPlugin',
alias: 'plugin.pmh-form-readonly',
init: function (form) {
var me = this;
me.form = form;
me.basicForm = form.getForm();
me.form.setReadOnlyFields = Ext.Function.bind(m... | pmhtech/extjs | sys/app/src/PmhTech/plugin/form/ReadOnly.js | JavaScript | apache-2.0 | 1,242 |
/* Prototype JavaScript framework, version 1.5.0_rc1
* (c) 2005 Sam Stephenson <sam@conio.net>
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
*
/*--------------------------------------------------------------... | zzsoszz/MyPaper | database/oracle/分析函数/根据输入的用户名,输出该数据库用户下所有表的行数 - 阿文的博客 - 优友地带 UUZone.files/prototype.js | JavaScript | apache-2.0 | 67,549 |
'use strict';
/**
* @ngdoc component
* @name mcp.component:mp-enable-mobile-build
* @description
* # mp-enable-mobile-build
*/
angular.module('mobileControlPanelApp').component('mpEnableMobileBuild', {
template: `<div class="blank-slate-pf" id="">
<div class="blank-slate-pf-icon">
... | feedhenry/mcp-standalone | ui/public/scripts/components/mobile-client/mp-enable-mobile-build.component.js | JavaScript | apache-2.0 | 1,050 |
import 'babel-polyfill'; // node v0.10... What were they thinking?!!!
import onLambda from '../lib/onLambda';
import processMessage from '../lib/sms/processMessage';
export default (event, context) => {
if (onLambda) {
console.log('___NEW MESSAGE___');
console.log(event.sourceIp);
console.log(event.qu... | dherault/smsnotes | src/server/lambda_sms/handler.js | JavaScript | apache-2.0 | 906 |
var modalVerticalCenterClass = ".modal";
function centerModals($element) {
var $modals;
if ($element.length) {
$modals = $element;
} else {
$modals = $(modalVerticalCenterClass + ':visible');
}
$modals.each( function(i) {
var $clone = $(this).clone().css('display', 'block').a... | firiazabal/firipos | assets/js/center-modals.js | JavaScript | apache-2.0 | 561 |
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '%API_KEY%']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'h... | stori-es/stori_es | dashboard/src/main/java/org/consumersunion/stories/survey/client/resource/js/ga-bootstrap.js | JavaScript | apache-2.0 | 465 |
zrequire('poll_widget');
set_global('$', global.make_zjquery());
set_global('i18n', global.stub_i18n);
set_global('people', {});
set_global('blueslip', {});
set_global('templates', {});
const noop = () => {};
const return_false = () => false;
const return_true = () => true;
run_test('poll_data_holder my question', ... | dhcrzf/zulip | frontend_tests/node_tests/voting_widget.js | JavaScript | apache-2.0 | 10,546 |
"use strict";
describe("init plugin with nationalMode set to true", function() {
beforeEach(function() {
input = $("<input>");
input.intlTelInput({
nationalMode: true
});
// must be in DOM for focus to work
getParentElement().appendTo($("body"));
});
afterEach(function() {
getPare... | IHTSDO/MLDS | src/main/webapp/bower_components/intl-tel-input/src/spec/tests/options/nationalMode.js | JavaScript | apache-2.0 | 961 |
import styled, { css } from 'react-emotion';
import { queries } from './mediaQueries';
const FilterContainer = styled.div`
width: 330px;
left: 0;
padding-left: 10px;
max-height: calc(100vh - 120px);
overflow-y: auto;
position: fixed;
background: #fafafa;
z-index: 2;
.list {
max-height: 140px;
}
${queries... | appbaseio/reactivesearch | site/demos/ecommerce/src/styles/FilterContainer.js | JavaScript | apache-2.0 | 557 |
// Screen layout of exons for a single gene.
var spLen = 3; // size of intronic region to draw between exons
var _ = require('./underscore_ext').default;
// reverse layout if on negative strand.
var reverseIf = (strand, arr) =>
(strand === '-') ? arr.slice(0).reverse() : arr;
var min = (x, y) => x < y ? x : y;
va... | ucscXena/ucsc-xena-client | js/exonLayout.js | JavaScript | apache-2.0 | 7,079 |
var tileLayers = require('./config/tileLayers.js');
var routingLayer;
var map;
var menuStart;
var menuIntermediate;
var menuEnd;
var elevationControl = null;
function adjustMapSize() {
var mapDiv = $("#map");
var width = $(window).width() - 295;
if (width < 400) {
width = 290;
mapDiv.attr... | HelgeKrueger/graphhopper | web/src/main/webapp/js/map.js | JavaScript | apache-2.0 | 9,455 |
import { actions, ACKDispatcher, constants, middlewares, reducers, sagas, ackProcessed } from '.';
describe('cmf-cqrs', () => {
it('should export API', () => {
expect(actions).toBeDefined();
expect(ACKDispatcher).toBeDefined();
expect(constants).toBeDefined();
expect(middlewares).toBeDefined();
expect(reduc... | Talend/ui | packages/cmf-cqrs/src/index.test.js | JavaScript | apache-2.0 | 642 |
'use strict';
const should = require('should');
const sinon = require('sinon');
const KuzzleMock = require('../../../mocks/kuzzle.mock');
const { HotelClerk } = require('../../../../lib/core/realtime/hotelClerk');
describe('Test: hotelClerk.list', () => {
let kuzzle;
let hotelClerk;
let user;
beforeEach(()... | kuzzleio/kuzzle | test/core/realtime/hotelClerk/list.test.js | JavaScript | apache-2.0 | 2,492 |
'use strict';
const DEFAULT_SERVICES = [
"thermostat-homekit",
"battery-homekit"
];
const MIN_BATTERY_LEVEL = 2800;
const LOW_BATTERY_LEVEL = 3000;
const FULL_BATTERY_LEVEL = 4100;
var homebridge;
var Characteristic;
var NetatmoAccessory;
module.exports = function(pHomebridge) {
if (pHomebri... | planetk/homebridge-netatmo | accessory/thermostat-accessory.js | JavaScript | apache-2.0 | 5,964 |
// Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | teppeis/closure-library | closure/goog/i18n/datetimeparse_test.js | JavaScript | apache-2.0 | 27,353 |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/... | samlanh/cam-adsproject | public/ckeditor/config.js | JavaScript | apache-2.0 | 3,032 |
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... | tausifmuzaffar/bisApp | node_modules/react-native/packager/react-packager/src/JSTransformer/worker/extract-dependencies.js | JavaScript | apache-2.0 | 1,466 |
/**
* @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/stats/base/dists/laplace/entropy/examples/index.js | JavaScript | apache-2.0 | 955 |
'use strict';
const should = require('should');
const sinon = require('sinon');
const {
Request,
InternalError: KuzzleInternalError,
} = require('../../../../index');
const KuzzleMock = require('../../../mocks/kuzzle.mock');
const Notifier = require('../../../../lib/core/realtime/notifier');
const actionEnum = r... | kuzzleio/kuzzle | test/core/realtime/notifier/notifyDocuments.test.js | JavaScript | apache-2.0 | 12,409 |
/*global describe:true*/
'use strict';
(function (angular, $) {
angular.module('ngValidate', [])
.directive('ngValidate', function () {
return {
require: 'form',
restrict: 'A',
scope: {
ngValidate: '='
},
... | phanngoc/learn-language-meanjs | modules/posts/client/lib/angular-validate.js | JavaScript | apache-2.0 | 1,642 |
formats["cy-gb"] = [
'EEEE, d MMMM yyyy HH:mm:ss',
'd MMMM yyyy HH:mm:ss',
'd MMM yyyy HH:mm:ss',
'dd/MM/yyyy HH:mm:ss',
'EEEE, d MMMM yyyy',
'EEEE, d MMMM y',
'HH:mm:ss zzzz',
'd MMMM yyyy',
'HH:mm:ss z',
'd MMM yyyy',
'dd/MM/yyyy',
'MMMM yyyy',
'HH:mm:ss',
'd MMMM y',
'dd/MM/yy',
'MMMM... | anychart-solutions/localization-demo | formats/cy-gb.js | JavaScript | apache-2.0 | 396 |
/*global define */
/*
| Copyright 2014 Esri
|
| 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 o... | Esri/map-and-app-gallery-template | nls/lt/localizedStrings.js | JavaScript | apache-2.0 | 3,977 |
function Pie(attributes) {
/**
quorra.pie()
Pie chart. Code for generating this type of plot was inspired from:
http://bl.ocks.org/mbostock/3887235
@author <bprinty@gmail.com>
*/
var _this = this;
if (typeof attributes == 'undefined') attributes = {};
// plot-specific attribut... | bprinty/quorra | src/models/pie.js | JavaScript | apache-2.0 | 3,985 |
var a00692 =
[
[ "char_box_to_tbox", "a00692.html#abe832326e054f5b25a1fc79566c92742", null ]
]; | stweil/tesseract-ocr.github.io | 3.x/a00692.js | JavaScript | apache-2.0 | 99 |
var ko = require('knockout');
var DragDealer = require('dragdealer');
require('jquery');
ko.bindingHandlers.slider = {
init: function(element, valueAccessor, allBindings, viewModel, bindingContext) {
"use strict";
return new DragDealer(element,{
x: ko.unwrap(valueAccessor()),
... | manuelkasiske/openshift-golang-template | example-golang-dep/cmd/server/static/js/viewModels/MoodFormViewModel.js | JavaScript | apache-2.0 | 3,431 |
define({
type: "service",
definition: [
'logger', '$routeParams', '$location', 'twitterSearchService', 'twitterwallModelHolder',
function (logger, $routeParams, $location, twitterSearchService, twitterwallModelHolder) {
'use strict';
var _tweets = new Array();
var _maxTweetCount = 60;
... | hypoport/twitterwall | src/scripts/services/tweetListHolder.js | JavaScript | apache-2.0 | 3,868 |
// ScrollStart/ScrollStop events: http://james.padolsey.com/javascript/special-scroll-events-for-jquery/
(function(){var e=jQuery.event.special,t="D"+ +(new Date),n="D"+(+(new Date)+1);e.scrollstart={setup:function(){var n,r=function(t){var r=this,i=arguments;if(n){clearTimeout(n)}else{t.type="scrollstart";jQuery.event... | reversearrow/news-aggregator-master | scripts/within-viewport-master/demo/inc/demo.js | JavaScript | apache-2.0 | 8,488 |
function validateForm(formId) {
return ($(formId).data('bootstrapValidator').validate().isValid());
}
function validateQuery() {
return validateForm('#queryForm');
}
function validateEsriPush() {
return validateForm('#esriForm');
}
function queryAndPush() {
var queryValid = validateQuery(),
esriParamsV... | Esri/esri-gnip-loader | public/js/ui-handlers.js | JavaScript | apache-2.0 | 8,118 |
/*
* testaddress.js - test the address parsing and formatting routines
*
* Copyright © 2013-2015,2017, JEDLSoft
*
* 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.ap... | iLib-js/iLib | js/test/address/testaddress_CD.js | JavaScript | apache-2.0 | 8,354 |
var args = arguments[0] || {};
var type = args.type;
var id = args.id;
var position = args.position;
var attachmentModel;
if(type == "homework"){
attachmentModel = Alloy.createCollection('homeworkAttachment');
}else if(type =="gallery"){
attachmentModel = Alloy.createCollection('gallery');
}else{
attachmentMode... | geonn/gosco | app/controllers/school/attachmentDetails.js | JavaScript | apache-2.0 | 2,103 |
var g_ = {
game: {
name: 'CountryLife-game',
container: document.getElementById('CountryLife-game'),
getRenderer: function() {
if(DeviceHandler.mbileOrTablet()) {
return Phaser.CANVAS;
}
return Phaser.AUTO;
},
animation: {
... | Drooids/drooids.github.io | projects/game1/src/js/globals.js | JavaScript | apache-2.0 | 943 |
'use strict';
angular.module('noisemakerApp')
.service('projectService', function ($http) {
this.list = function () {
return $http.get('/api/projects');
};
this.get = function (id) {
return $http.get('/api/projects/' + id);
};
this.add = function(project) {
return $http.post('/a... | glompix/noisemaker | client/components/projectService/projectService.js | JavaScript | apache-2.0 | 571 |
import { computed, get, observer } from '@ember/object';
import { alias } from '@ember/object/computed';
import Component from '@ember/component';
import ManageLabels from 'shared/mixins/manage-labels';
import layout from './template';
const HEADERS_WITH_KIND = [
{
name: 'kind',
sort: ['t... | lvuch/ui | lib/shared/addon/components/labels-section/component.js | JavaScript | apache-2.0 | 1,485 |
'use strict';
var http = require('http');
var BBPromise = require('bluebird');
var express = require('express');
var compression = require('compression');
var bodyParser = require('body-parser');
var fs = BBPromise.promisifyAll(require('fs'));
var sUtil = require('./lib/util');
var packageInfo = require('./package.js... | nyurik/service-template-node | app.js | JavaScript | apache-2.0 | 7,277 |
/*
* phonefmt_NZ.js - Test the phonefmt_NZ Style.
*
* Copyright © 2014-2015,2017, JEDLSoft
*
* 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/LIC... | iLib-js/iLib | js/test/phone/testphonefmt_NZ.js | JavaScript | apache-2.0 | 19,845 |
var model = require('../models/track.js');
var should = require('should');
describe('Track', function() {
it('should contain a list of days', function() {
var days = model.getDays();
days.should.have.lengthOf(8);
});
it('should be a list in the correct format', function() {
var days = model.getDays();
days... | jstaffans/gpx_overlay | test/track.js | JavaScript | apache-2.0 | 1,829 |
class RadarQuadrantListController {
constructor() {
this.name = 'radarQuadrantList';
}
}
export default RadarQuadrantListController;
| skpullano/tech-radar | client/app/components/radarQuadrantList/radarQuadrantList.controller.js | JavaScript | apache-2.0 | 142 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ScopeChecker_1 = require("./ScopeChecker");
var utils_1 = require("./utils");
var matchesSelector_1 = require("./matchesSelector");
function toElArray(input) {
return Array.prototype.slice.call(input);
}
var ElementFinder = (function (... | mertnuhoglu/study | js/ex/study_notes_cyclejs/src/problems/p07/ex02/dom/ElementFinder.js | JavaScript | apache-2.0 | 1,395 |
//>>built
define("dojox/grid/enhanced/nls/nl/Filter",{clearFilterDialogTitle:"Filter wissen",filterDefDialogTitle:"Filter",ruleTitleTemplate:"Regel ${0}",conditionEqual:"gelijk aan",conditionNotEqual:"niet gelijk aan",conditionLess:"is kleiner dan",conditionLessEqual:"kleiner dan of gelijk aan",conditionLarger:"is grot... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/grid/enhanced/nls/nl/Filter.js | JavaScript | apache-2.0 | 2,540 |
const webpack = require('webpack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = () => {
return {
entry: { 'create-parser': './src/index' },
mode: 'production',
module: {
rules: [
{
test: /\.ts... | sonarwhal/sonar | packages/create-parser/webpack.config.js | JavaScript | apache-2.0 | 1,317 |
/*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxPopover = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes();
... | dhawal9035/WebPLP | src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxpopover.js | JavaScript | apache-2.0 | 6,619 |
/*
* Copyright 2016 Anton Tananaev (anton@traccar.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Thi... | awaissattar001/mtrack | traccar-web/web/app/view/edit/Geofences.js | JavaScript | apache-2.0 | 1,542 |
var app = app || {};
(function(){
'use strict';
app.ContactBookView = Backbone.View.extend({
el: '#contact-list',
initialize: function() {
this.collection = new app.ContactBook();
this.collection.fetch({reset: true});
this.render();
this.listenTo( this.collection, 'add', this.rend... | hermagrini/ThreeJSDemo | ContactManager/js/views/contactbook.js | JavaScript | apache-2.0 | 1,768 |
/* Copyright 2016 Kii 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | KiiConsortium/DKiiMacaroni | web_front/js/util/fileLoader.js | JavaScript | apache-2.0 | 3,631 |
obj1 = {
func1: function() {
return {
func1_1: function() {
alert("I'm function 1_1");
},
func1_2: function() {
alert("I'm function 1_2");
},
func1_2: function() {
alert("I'm... | zgrossbart/jslim | src/test/resources/closurereturn.js | JavaScript | apache-2.0 | 403 |
'use strict';
angular.module('camManager.filters', []);
| vogloblinsky/elmo-qbic-4-cam-rig-manager | client/src/js/filters/camManager-filters.js | JavaScript | apache-2.0 | 57 |
'use strict';
System.register(['./inferenceCtrl'], function (_export, _context) {
"use strict";
var InferenceCtrl;
return {
setters: [function (_inferenceCtrl) {
InferenceCtrl = _inferenceCtrl.InferenceCtrl;
}],
execute: function () {
_export('PanelCtrl', InferenceCtrl);
}
};
});
/... | CognizantOneDevOps/Insights | PlatformGrafanaPlugins/Panels/Inference_Panel/dist/module.js | JavaScript | apache-2.0 | 354 |
/**
* <LumenFX: An FX system designed and built by thecitysecret>
* Copyright (C) 2015 thecitysecret
*
* 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 ownersh... | thecitysecretltd/Lumen-FX | senecatest/testSenecaLogin.js | JavaScript | apache-2.0 | 4,768 |
export { default as DialogContainer } from './DialogContainer';
export { default as Dialog } from './Dialog';
| parisjulien/arkadin-jitsimeet | react/features/base/dialog/components/index.js | JavaScript | apache-2.0 | 110 |
'use strict';
var angular = require('angular'),
userResource = require('./userResource'),
groupResource = require('./groupResource'),
groupMembershipResource = require('./groupMembershipResource'),
initialUserResource = require('./initialUserResource'),
metricsResource = require('./metricsResource');
var ... | tcrossland/camunda-bpm-webapp | ui/admin/client/scripts/resources/main.js | JavaScript | apache-2.0 | 695 |
var Rx = require('rx');
var source = [0,1,2,3,4,5,6,7];
var result = source
.filter( x => x % 2 === 0)
.map(x => x + '-')
.reduce((r, x) => {
return r + x;
}, '');
console.log(result);
var stream = Rx.Observable.from(source)
.flatMap(x => Rx.Observable.timer(1000).map(y => x)... | NickolayLototskiyDevPro/AngularFlow | Examples/08-observables/05.functional.js | JavaScript | apache-2.0 | 646 |
var searchData=
[
['rrt',['rrt',['../namespacerrt.html',1,'']]]
];
| wallarelvo/CRoPS | docs/html/search/namespaces_72.js | JavaScript | apache-2.0 | 69 |
/* Copyright (C) 2016 R&D Solutions 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 law or agreed... | rndsolutions/hawkcd | Server/ui/src/app/application/services/login.service.js | JavaScript | apache-2.0 | 4,371 |
function addDynamicPanel(Parent, Child, TypeOfPanel, Header, Body)
{
Child.setAttribute("class", TypeOfPanel);
//Add our panel content
var header = document.createElement("div");
header.setAttribute("class", "panel-heading");
header.appendChild(document.createTextNode(Header));
Child.appendChild(header);
v... | mynameissean/ferm-control | Django/LeannBocsa/beerviewer/static/beerviewer_static/js/bootstrap-helpers.js | JavaScript | apache-2.0 | 558 |
'use strict';
import assert from 'assert';
import sinon from 'sinon';
import ftl from "@fluent/dedent";
import FluentBundle from '../src/bundle';
import FluentResource from '../src/resource';
suite('FluentBundle constructor', function() {
setup(function() {
this.nf = sinon.spy(Intl, 'NumberFormat');
});
t... | zbraniecki/fluent.js | fluent-bundle/test/constructor_test.js | JavaScript | apache-2.0 | 1,401 |
#! /usr/bin/env node
const fs = require('fs')
const path = require('path')
const shell = require('shelljs')
const argv = require('minimist')(process.argv.slice(2))
if (argv.h || argv.help) {
console.log('Usage:\n')
console.log('git-publish-npm <github repo> <version/tag> [--help] [--http] [-v]')
console.log('... | tom-james-watson/git-publish-npm | index.js | JavaScript | apache-2.0 | 2,473 |
/**
* 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 i... | JustinBeckwith/nodejs-docs-samples | appengine/cloudsql_postgresql/test/createTables.test.js | JavaScript | apache-2.0 | 3,533 |
/*
* Copyright 2019 dialog LLC <info@dlg.im>
* @flow
*/
import React, { Component, type Node } from 'react';
import Tether from 'react-tether';
import { listen } from '@dlghq/dialog-utils';
export type TriggerHandler =
| 'onClick'
| 'onContextMenu'
| 'onDoubleClick'
| 'onMouseDown'
| 'onMouseEnter'
| '... | dialogs/dialog-web-components | src/components/Trigger/Trigger.js | JavaScript | apache-2.0 | 4,208 |
// SPDX-FileCopyrightText: 2014 SAP SE Srdjan Boskovic <srdjan.boskovic@sap.com>
//
// SPDX-License-Identifier: Apache-2.0
"use strict";
describe("Connection terminate by client", () => {
const setup = require("../../utils/setup");
const DURATION = 3;
const CANCEL = 1;
const RfcCanceledError = {
... | SAP/node-rfc | test/client/cancel/client.cancel.promise.spec.js | JavaScript | apache-2.0 | 1,391 |
/*!@license
* Infragistics.Web.ClientUI common DV widget localization resources 13.1.20131.1012
*
* Copyright (c) 2011-2013 Infragistics Inc.
*
* http://www.infragistics.com/
*
*/
$.ig = $.ig || {};
if (!$.ig.Chart) {
$.ig.Chart = {};
$.extend($.ig.Chart, {
locale: {
seriesName: "オプションを設定するときに、シリーズ名のオプションを指... | mikeleishen/bacosys | frame/frame-web/src/main/webapp/script/ig/modules/i18n/infragistics.dvcommonwidget-ja.js | JavaScript | apache-2.0 | 697 |
// set global AppsCo Mobile namespace
var Como = (function () {
"use strict";
var app = {},
// include underscore utility-belt
_ = require('/lib/Underscore/underscore.min'),
// Core methods
init, applyAction, loadController, loadUI;
/**
* Function to initialize globals... | aaryadewa/como-toysoldier | Resources/lib/Como/Core.js | JavaScript | apache-2.0 | 4,777 |
/**
*
*/
var pizza5App = angular.module('pizza5App', ['ngResource']);
function PizzaMenuCtrl($scope, $resource) {
var MenuResource = $resource('menu.json'); //, {userId:'@id'}
$scope.menu = MenuResource.query(function() { //e non get
console.log("Menu loaded");
});
}
function OrderCtrl($scop... | carlobonamico/angularjs-quickstart | app/09/demo/pizza5.js | JavaScript | apache-2.0 | 797 |
var namespace_f_h_s_d_k =
[
[ "API", "namespace_f_h_s_d_k_1_1_a_p_i.html", "namespace_f_h_s_d_k_1_1_a_p_i" ],
[ "Config", "namespace_f_h_s_d_k_1_1_config.html", "namespace_f_h_s_d_k_1_1_config" ],
[ "FHHttpClient", "namespace_f_h_s_d_k_1_1_f_h_http_client.html", "namespace_f_h_s_d_k_1_1_f_h_http_client" ],
... | feedhenry/fh-dotnet-sdk | Documentations/html/namespace_f_h_s_d_k.js | JavaScript | apache-2.0 | 907 |
import { alias } from '@ember/object/computed';
import Component from '@ember/component';
import ModalBase from 'shared/mixins/modal-base';
import layout from './template';
export default Component.extend(ModalBase, {
layout,
classNames: ['large-modal'],
callback: alias('modalService.modalOpts.callback'),
nam... | pengjiang80/ui | lib/shared/addon/components/modal-new-pvc/component.js | JavaScript | apache-2.0 | 734 |
// 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
// distributed un... | fkaempfer/couchdb | test/javascript/tests/replicator_db_identical_continuous.js | JavaScript | apache-2.0 | 4,153 |
/** **************************************************************************
* Copyright (C) 2016-2017 EPAM Systems
*
* This file is part of Indigo-Node binding.
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 3 as published by the Free Software
* Fo... | epam/indigo-node | bingo.js | JavaScript | apache-2.0 | 9,040 |
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColo... | sugartomato/AllProjects | daihaidong.com/DHDWeb/DHDWeb/wwwroot/lib/ckeditor/config.js | JavaScript | apache-2.0 | 1,094 |
//// [tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule.ts] ////
//// [declFileAmbientExternalModuleWithSingleExportedModule_0.ts]
declare module "SubModule" {
export module m {
export module m3 {
interface c {
}
}
}
}
//// [declFileAmbient... | ivogabe/TypeScript | tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js | JavaScript | apache-2.0 | 1,114 |
import React from 'react'
import i18n from 'app/utils/i18n'
import {Tip} from 'app/components'
const STYLE_IMG={
width: 300,
}
export function make_introduction(props){
return {
tip: (
<div className="ui padding with scroll">
<h1 className="ui centered header" style={{marginBottom: 50}}>{i18n("T... | serverboards/serverboards | frontend/app/js/components/project/wizard/step01_introduction.js | JavaScript | apache-2.0 | 2,872 |
function MqttPush (host, port, topic, displayMessage, displayLog) {
var client;
// this allows to display logs directly on the web page
var log = function(str) {
displayLog("MQTT-LOG: " + str);
};
var logError = function(str) {
displayLog("MQTT-ERROR: " + str);
};
// the cl... | callistaenterprise/websocket-labs | ws-one/src/main/resources/web/js/mqtt_push.js | JavaScript | apache-2.0 | 1,443 |
/*
Code used for displaying dynamic entity markers and static player made markers.
- Note: code in progress
- backend is running on python based tornado server with mongodb for storage
- entity markers are updated via websocket json updates.
- static/player made markers are listed/created/deleted via http requests... | ratilicus/sdtd | static/sdtd.js | JavaScript | apache-2.0 | 14,169 |
var group__i2c__edma__driver =
[
[ "i2c_master_edma_handle_t", "group__i2c__edma__driver.html#struct__i2c__master__edma__handle", [
[ "transfer", "group__i2c__edma__driver.html#a3766bc4cc29984a5df623edcbe1b9ca9", null ],
[ "transferSize", "group__i2c__edma__driver.html#aebd195813157bfa7d42438f90c1055e0"... | scottdarch/Noer | FRDMK66NoEr/SDK_2.1_FRDM-K66F-GCC-Full/docs/Kinetis SDK API Reference Manual MK66F18_v2.1.0/group__i2c__edma__driver.js | JavaScript | apache-2.0 | 1,390 |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('angularLeafletExampleApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Main... | zouzias/angular-leaflet-example | test/spec/controllers/main.js | JavaScript | apache-2.0 | 563 |
var mongoose = require('mongoose');
var config = require('../config');
var options = {
useMongoClient: true,
poolSize: 5
};
mongoose.connect(config.db, options, function (err) {
if (err) {
console.error('Mongoose 连接到服务器 %s 时发生错误: \n%s', config.db, err.message);
return process.exit(1);
... | HiShop/stagex | models/index.js | JavaScript | apache-2.0 | 520 |
const mongoose = require('mongoose');
const models = require('characterinsights-mongoose-models')(mongoose);
mongoose.Promise = require('bluebird');
const errorHelper = require('../helpers/errorHelper.js');
const Movie = models.Movie;
function getAllCharacters() {
return Movie.aggregate([
{ $unwind: '$character... | Thylossus/tud-movie-character-insights | Server/app/api/controllers/characterController.js | JavaScript | apache-2.0 | 2,378 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/assert/is-int16array/benchmark_bundle.js | JavaScript | apache-2.0 | 748,194 |
function AddItem(_title, _container) {
var db = require('lib/db');
var win = Ti.UI.createWindow({
width:'100%',
height:'100%',
backgroundColor:'#ccc',
layout:'vertical'
});
var label = Ti.UI.createLabel({
text: 'Add ' + _title,
top: '10%'
})
win.add(label);
var itemName = Ti.UI.createTextField(... | mardawi/WalletMonitor | Resources/ui/common/transactions/addEditTrans/AddItem.js | JavaScript | apache-2.0 | 852 |