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 |
|---|---|---|---|---|---|
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('Blockly.test.connectionChecker');
const {ConnectionType} = goog.require('Blockly.ConnectionType');
const {sharedTestSetup, sharedTestTeardown} = goog.require('Blockly.test.helpers');
suite('Connection checker', func... | google/blockly | tests/mocha/connection_checker_test.js | JavaScript | apache-2.0 | 12,098 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var stylus = require('stylus');
var nib = require('nib');
var passport = require('passport');
var Ht... | Hamcker/PersonalExit | app.js | JavaScript | apache-2.0 | 4,622 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.InputListItem.
sap.ui.define(['jquery.sap.global', './ListItemBase', './library'],
function(jQuery, ListIt... | SuicidePreventionSquad/SeniorProject | resources/sap/m/InputListItem-dbg.js | JavaScript | apache-2.0 | 1,780 |
$(function(){$("li.animated").mouseover(function(){$(this).stop().animate({height:'50px'},{queue:false,duration:600,easing:'easeOutBounce'})});$("li.animated").mouseout(function(){$(this).stop().animate({height:'40px'},{queue:false,duration:600,easing:'easeOutBounce'})});}); | lanesawyer/island | static/homepage/scripts/animated-menu.js | JavaScript | apache-2.0 | 275 |
/**
* @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/utils/async/some-by/lib/some_by.js | JavaScript | apache-2.0 | 3,300 |
//MongoDB script to Update the Wing Directors list.
//The list includes Wing Directors and Assistants only.
//
//History:
// 15Nov21 MEG Clean spaces from email addresses.
// 07Mar21 MEG Exclude assistants
// 27Jan21 MEG Created.
var DEBUG = false;
var db = db.getSiblingDB( 'NHWG');
// Google Group of interest
var ba... | ifrguy/NHWG-MIMS | src/Groups/wing_directors.js | JavaScript | apache-2.0 | 4,806 |
/*!
* ${copyright}
*/
// Provides control sap.ui.commons.HorizontalDivider.
sap.ui.define([
'./library',
'sap/ui/core/Control',
'./HorizontalDividerRenderer'
],
function(library, Control, HorizontalDividerRenderer) {
"use strict";
// shortcut for sap.ui.commons.HorizontalDividerHeight
var HorizontalDivider... | SAP/openui5 | src/sap.ui.commons/src/sap/ui/commons/HorizontalDivider.js | JavaScript | apache-2.0 | 1,812 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.fr');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Ajouter un commentaire";
Blockly.Msg.AUTH = "Veuillez autoriser cette application à permettre la sauvegarde de votre travail et à l’autoriser d'être partagé... | carlosperate/ardublockly | blockly/msg/js/fr.js | JavaScript | apache-2.0 | 39,135 |
import path from 'path'
import chromedriver from 'chromedriver'
import webdriver from 'selenium-webdriver'
import electronPath from 'electron-prebuilt'
import homeStyles from '../app/components/Home.css'
import counterStyles from '../app/components/Counter.css'
chromedriver.start() // on port 9515
process.on('exit', c... | 3-strand-code/3sc-desktop | test/e2e.js | JavaScript | apache-2.0 | 3,188 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... | jmhdez/minimal-router | lib/Router.js | JavaScript | apache-2.0 | 5,579 |
/**
* 预存费用
*/
AcctFeeGrid = Ext.extend(Ext.ux.Grid, {
border : false,
acctFeeStore : null,
region : 'center',
pageSize : 10,
constructor : function() {
this.acctFeeStore = new Ext.data.JsonStore({
url:Constant.ROOT_PATH+ "/commons/x/QueryCust!queryAcctPayFee.action",
totalProperty:'totalProperty',
... | leopardoooo/cambodia | boss-core/src/main/webapp/pages/index/center/PayfeePanel.js | JavaScript | apache-2.0 | 18,342 |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | dremio/dremio-oss | dac/ui/src/reducers/resources/entityTypes.js | JavaScript | apache-2.0 | 1,073 |
'use strict'
// ** Constants
const DEFAULT_HOST = 'localhost';
const DEFAULT_PORT = 8080;
// ** Dependencies
const WebSocket = require('ws');
// ** Libraries
const Service = require('../../lib/Service');
// ** Platform
const logger = require('nodus-framework').logging.createLogger();
function logEvents() {
var... | bradserbu/nodus-server | examples/console/console.js | JavaScript | apache-2.0 | 935 |
import Ember from 'ember';
/**
* @module ember-osf
* @submodule mixins
*/
/**
* Controller mixin that implements common actions performed on nodes.
* @class NodeActionsMixin
* @extends Ember.Mixin
*/
export default Ember.Mixin.create({
/**
* The node to perform these actions on. If not specified, defa... | pattisdr/ember-osf | addon/mixins/node-actions.js | JavaScript | apache-2.0 | 9,519 |
phoxy.internal =
{
ChangeURL : function (url)
{
url = phoxy.ConstructURL(url);
phoxy.Log(4, "History push", url);
if (url[0] !== '/')
url = '/' + url;
history.pushState({}, document.title, url);
return false;
}
,
Reset : function (url)
{
if ((url || true) ... | phoxy/phoxy | subsystem/internal.js | JavaScript | apache-2.0 | 2,785 |
/**
* Main framework
*/
var http = require('http');
var fs = require('fs');
var url = require('url');
var querystring = require('querystring');
var mime = require('mime');
var engineMod = require('./engine.js')
var WebApp = function(path,config){
console.log('Starting PanzerParty at '+path);
var basepath = path... | theoddbeard/PanzerParty | core/app.js | JavaScript | apache-2.0 | 1,246 |
import Router from 'viewModels/router'
import read from './read'
const router = new Router;
router.get('token/read', '/', read);
export default router
| lian-yue/lianyue-server | app/viewModels/token/routes.js | JavaScript | apache-2.0 | 155 |
import 'style!../sass/spinner.scss';
const backdrop = `
<div class="js-blocking" id="lightbox-blocking">
<span class="lightbox-spinner"></span>
</div>
`;
const prevControl = `
<div class="lightbox-extra control prev js-control js-prev">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" w... | nemtsov/lightbox | src/templates.js | JavaScript | apache-2.0 | 1,861 |
/*!
* 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.
*/
/* global ActiveXObject:false */
// Provides control sap.m.PDFViewer.
sap.ui.define([
"jquery.sap.global",
"./library",
"sap/u... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/m/PDFViewer-dbg.js | JavaScript | apache-2.0 | 19,266 |
var madson = (function () {
import "nxutils/generic/base";
import "./utils";
import "./write";
import "./read";
import "./preset";
function mEncode(input, options) {
var encoder = new EncodeBuffer(options);
encode(encoder, cloneDecycle(input));
return encoder.read();
... | arash16/madson | src/index.js | JavaScript | apache-2.0 | 901 |
'use strict';
//https://evaluat-e-api.herokuapp.com
angular.module('evaluateApp').factory('Student',function($resource,$cookieStore,$http,url_api){
var interface_api = {
resource: $resource(url_api+'api/student/:id',{id:'@id','csrf_token' :$cookieStore._csrf, page: 1 },{
update: { method:'PUT'},
d... | IIC3143-Equipo1/angularJS | app/scripts/services/student.js | JavaScript | apache-2.0 | 1,586 |
/**
* Created by yang on 14/12/8.
*/
var SimpleHotCSV = require('./index').SimpleHotCSV;
var HotCSV = require('./index').HotCSV;
var path = require('path');
var hostCityList = path.join(__dirname,'./whiteCityList.csv');
var hotCity1 = new SimpleHotCSV(hostCityList);
hotCity1.init(function(){
setInterval(function... | gastrodia/hot-csv | test.js | JavaScript | apache-2.0 | 619 |
// JavaScript Document
function run_timer()
{
var today = new Date();
var ndate=today.toString(); //April 23, 2009, 02:04:25 pm
ndate=ndate.split('GMT');
document.getElementById("TimeDiv").style.border='transparent';
document.getElementById("TimeDiv").innerHTML=ndate[0];
setTimeout(run_timer,10... | ankuradhey/dealtrip | js/general.js | JavaScript | apache-2.0 | 7,612 |
/* 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 l... | marcus-nl/flowable-engine | modules/flowable-ui-admin/flowable-ui-admin-app/src/main/webapp/scripts/process-instance-controllers.js | JavaScript | apache-2.0 | 29,675 |
import("etherpad.log");
import("plugins.openingDesign.hooks");
function openingDesignInit() {
this.hooks = ['modals', 'docbarItemsPad'];
this.description = 'openingDesign';
this.docbarItemsPad = hooks.docbarItemsPad;
this.modals = hooks.modals;
this.install = install;
this.uninstall = uninstall;
}
function inst... | OpeningDesign/SketchSpace | etherpad/src/plugins/openingDesign/main.js | JavaScript | apache-2.0 | 437 |
/**
* @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/incr/mmpe/lib/main.js | JavaScript | apache-2.0 | 2,139 |
import React from 'react'
import PropTypes from 'prop-types'
import Immutable from 'immutable'
import { connect } from 'react-redux'
import { Link } from 'react-router-dom'
import NavigationPrompt from 'react-router-navigation-prompt'
import Switch from 'react-bootstrap-switch'
import {
generateUnique,
templateN... | mareklibra/userportal | src/components/VmDialog/index.js | JavaScript | apache-2.0 | 28,260 |
/**
* 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... | src-code/amphtml | extensions/amp-analytics/0.1/analytics-root.js | JavaScript | apache-2.0 | 15,094 |
define({
"map": {
"error": "无法创建地图",
"licenseError": {
"message": "您的帐户无权使用非公共的可配置应用程序。 请联系您的组织管理员为您分配包含基本应用程序或附加基本应用程序许可的用户类型。",
"title": "未经许可"
}
},
"viewer": {
"content_title": "过滤器",
"button_text": "应用",
"filterInstructions": "通过指定值来过滤图层。",
"filterOr": "以下任意表达式必须为 true。... | Esri/InteractiveFilter | js/nls/zh-CN/resources.js | JavaScript | apache-2.0 | 1,195 |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | dremio/dremio-oss | dac/ui/src/components/Aggregate/AggregateContent.js | JavaScript | apache-2.0 | 5,729 |
/*
Copyright ONECHAIN 2017 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 w... | onechain/fabric-explorer | socket/websocketserver.js | JavaScript | apache-2.0 | 801 |
/*jslint devel: true */
/*global Titanium, module */
(function (Ti) {
"use strict";
var style = {
win: {
backgroundColor: "#FFFFFF",
layout: "vertical"
},
btn: {
top: 44,
title: "Get GeoHash!"
},
label: {
top: ... | ryugoo/TiGeoHash | Resources/style/app.style.js | JavaScript | apache-2.0 | 898 |
/**
* @license
* Copyright 2018 Google LLC. 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 a... | tensorflow/tfjs-examples | jena-weather/ui.js | JavaScript | apache-2.0 | 4,072 |
var dir_0c96b3d0fc842fbb51d7afc18d90cdec =
[
[ "design", "dir_b39402054b6f29d8059088b0004b64ee.html", "dir_b39402054b6f29d8059088b0004b64ee" ],
[ "v4", "dir_b1530cc8b78b2d9923632461f396c71c.html", "dir_b1530cc8b78b2d9923632461f396c71c" ],
[ "v7", "dir_94bdcc46f12b2beb2dba250b68a1fa32.html", "dir_94bdcc46f12... | feedhenry/fh-dotnet-sdk | Documentations/html/dir_0c96b3d0fc842fbb51d7afc18d90cdec.js | JavaScript | apache-2.0 | 347 |
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import mapboxgl from 'mapbox-gl';
import { ServiceB... | SuperMap/iClient9 | src/mapboxgl/services/ImageService.js | JavaScript | apache-2.0 | 3,968 |
'use strict';
/* Services that are used to interact with the backend. */
var eventManServices = angular.module('eventManServices', ['ngResource']);
/* Modify, in place, an object to convert datetime. */
function convert_dates(obj) {
angular.forEach(['begin_date', 'end_date', 'ticket_sales_begin_date', 'ticket_sa... | raspibo/eventman | angular_app/js/services.js | JavaScript | apache-2.0 | 9,665 |
"use strict";
var samples = {};
module.exports = samples;
samples.valid_0 = {
"address": "xde@sjdu.com",
"type": "work place"
};
samples.valid_1 = {
"address": "xde@sjdu.com"
};
samples.invalid_0 = {};
samples.invalid_1 = {
"address": "xde@sjdu.com",
"type": "work place",
"other": "na"
};
| amida-tech/blue-button-model | test/samples/unit/cda_email.js | JavaScript | apache-2.0 | 320 |
/**
* define global constant
*
* Created by Shiro on 16/12/20.
*/
const NAV = [
{name: 'Home', link: '/index'},
{name: 'Editor', link: '/editor'},
{name: 'Project', link: '/project', children: [
{name: 'RMSP', link: '/project/rmsp'},
{name: 'test', link: '/project/'},
{name: 'test', link: '/projec... | supershiro/Cancer | src/libs/const.js | JavaScript | apache-2.0 | 1,357 |
/* Modernizr (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-shiv-load-cssclasses-csstransforms3d-flexbox-opacity-touch-cors-svg
*/
;Modernizr.addTest("cors",!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest)); | youwenliang/Project-6x6 | dist/scripts/vendor/1aad92e4.modernizr.js | JavaScript | apache-2.0 | 247 |
/**
* @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/eslint/rules/jsdoc-markdown-remark/test/fixtures/valid.js | JavaScript | apache-2.0 | 6,669 |
/*!
* 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.
*/
// Provides the Design Time Metadata for the sap.uxap.ObjectPageLayout control
sap.ui.define([],
function() {
"use strict";
retur... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/uxap/ObjectPageLayout.designtime-dbg.js | JavaScript | apache-2.0 | 1,307 |
const Long = require('long');
const User = require('./User');
const Role = require('./Role');
const Emoji = require('./Emoji');
const Presence = require('./Presence').Presence;
const GuildMember = require('./GuildMember');
const Constants = require('../util/Constants');
const Collection = require('../util/Collection');... | aemino/discord.js | src/structures/Guild.js | JavaScript | apache-2.0 | 34,442 |
var when = require('when');
var request = require('request');
var settings = require("../../../../settings");
var log = require("../../../log");
// view components
var view_start = require('../nodes/view/start');
var view_choice = require('../nodes/view/choice');
var view_form = require('../nodes/view/form');
var view_... | Ubicall/node-red | red/ubicall/plist/utils/index.js | JavaScript | apache-2.0 | 3,754 |
/**
* @license
* Copyright 2012 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | picklesrus/blockly | demos/code/code.js | JavaScript | apache-2.0 | 17,281 |
// 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.generate_random_bytes.js | JavaScript | apache-2.0 | 2,228 |
try
{
if (Koadic.JOBKEY != "stage")
{
if (Koadic.isHTA())
{
//HKCU\SOFTWARE\Microsoft\Internet Explorer\Style\MaxScriptStatements = 0xFFFFFFFF
var path = "SOFTWARE\\Microsoft\\Internet Explorer\\Styles";
var key = "MaxScriptStatements";
Koadic.regi... | zerosum0x0/koadic | data/stager/js/stage.js | JavaScript | apache-2.0 | 1,812 |
/* @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 IconExposurePlus1(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... | mineral-ui/mineral-ui | packages/mineral-ui-icons/src/IconExposurePlus1.js | JavaScript | apache-2.0 | 553 |
Ti.UI.setBackgroundColor('#fff');
var inicio = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var titulo = Ti.UI.createLabel({
text:'UAM',
width:'300dp',
height:'50dp',
left:'10dp',
top:'100dp',
font:{fontSize:30,
fontFamily:'Helvetica Neue'},
textAlign:'center',
});
inicio.add(titulo);
var data = [{title... | addieljuarez/TallerUAM | Resources/app.js | JavaScript | apache-2.0 | 789 |
var httpManager = require("httpManager");
Alloy.Globals.isSearch = true;
if (OS_ANDROID) {
$.search.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;
}
var dataTitles = [
{
name : "Find Us",
view : "findUs"
},
{
name : "Deals",
view : "deals"
},
{
name : "Testimonials",
view : "testmonials"
},
{
n... | SrinivasReddy987/Lookswoow | app/controllers/search.js | JavaScript | apache-2.0 | 2,071 |
/*
* 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.de-LI.js | JavaScript | apache-2.0 | 2,637 |
(function() {
'use strict';
angular
.module('gastronomeeApp')
.controller('MenuDeleteController',MenuDeleteController);
MenuDeleteController.$inject = ['$uibModalInstance', 'entity', 'Menu'];
function MenuDeleteController($uibModalInstance, entity, Menu) {
var vm = this;
... | goxhaj/gastronomee | src/main/webapp/app/dashboard/menu/menu-delete-dialog.controller.js | JavaScript | apache-2.0 | 694 |
var WaitState = function(game){this.game = game};
WaitState.prototype.preload = function(){
};
WaitState.prototype.create = function(){
this.background = this.game.add.sprite(0,0,'fence');
this.title = this.add.sprite(400,200, 'waitforplay');
this.title.anchor.setTo(0.5, 0.5);
this.waitBar = this... | siracoj/ProPain | ProPain/src/Wait.js | JavaScript | apache-2.0 | 1,384 |
/*
* 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 ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/components/floatingMenu/menus/image.js | JavaScript | apache-2.0 | 1,257 |
define([],function(){return function(n){n.addEndpointDescription("_nodes/hot_threads",{methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"]})}}); | skyjia/elasticsearch-rtf | plugins/marvel/_site/sense/app/kb/api_0_90/nodes.js | JavaScript | apache-2.0 | 169 |
function Bibliography() {
this.searchOptions = {
source: 0,
value: '',
style: ''
};
this.bibliography = [];
this.bibliographyText = [];
this.localStorageKey = "Bibliography";
};
Bibliography.prototype.showBookSearchResult = function (results) {
for (key in results) {
... | ONLYOFFICE/CommunityServer | web/studio/ASC.Web.Studio/ThirdParty/plugin/easybib/bibliography.js | JavaScript | apache-2.0 | 9,168 |
module.exports = function(app, express) {
app.configure(function() {
app.use(express.logger());
});
app.configure('development', function() {
app.use(express.errorHandler({
dumpExceptions: true,
showStack: true
}));
});
app.configure('production', f... | Ken-Richard/tincan_nodejs | config/environment.js | JavaScript | apache-2.0 | 385 |
$(document).ready(function() {
PromotionGroup.init();
PromotionGroup.loadImage();
$('#add-new-promotion').on('click', function(){
PromotionGroup.addNew();
})
$('#update-promotion').on('click', function(){
PromotionGroup.update();
})
// date picker
$('#promotion-add-end-... | imtoantran/beleza | Views/spaCMS/promotion/js/spaCMS_promotion.js | JavaScript | apache-2.0 | 21,895 |
/**
* @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/random/base/erlang/lib/index.js | JavaScript | apache-2.0 | 1,304 |
function qSc(){}
function sUc(){}
function W6d(){}
function Q6d(){}
function FV(b){b.c.Ze(JN(b.b.b))}
function jJ(b,c,d){return new sSc(b,c,d)}
function Gte(){kse.call(this,(gCe(),eCe))}
function kse(b){this.M=new Object;this.M[Ghf]=zqg;this.M[kRf]=b.b}
function sSc(b,c,d){fY.call(this,b,c);this.d=d;uld(this.j,263).Wc(... | yauritux/venice-legacy | Venice/Venice-Web/target/Venice-Web-1.0/Venice/deferredjs/AB044E8946F390304175332DF12BD630/38.cache.js | JavaScript | apache-2.0 | 2,880 |
function removeFile() {
var sheet = SpreadsheetApp.getActiveSheet(); //Activate sheet
var tno = sheet.getRange('C1').getValues();
var file_name = 'Current Test Buffer-'+tno+'.zip';
var folder = DriveApp.getFolderById('0B5Sb6IOPwl52flVvMXg4dGJuVVdCYl9fNk1MNlBzazBMdk1IZ3BiWkJRR05TNXFZWUtYV3M');
var file1 = D... | arpan-chavda/my_google_scripts | file_cleaner.js | JavaScript | apache-2.0 | 736 |
/*
* Copyright (c) 2014 DataTorrent, 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... | DataTorrent/malhar-angular-dashboard | src/components/directives/dashboard/dashboard.js | JavaScript | apache-2.0 | 10,601 |
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
//Read the package.json (optional)
pkg: grunt.file.readJSON('package.json'),
// Metadata.
meta: {
basePath: './',
srcPath: './src/',
deployPath: './bin/',
... | wildcatsoft/Knockout.WinJS | gruntfile.js | JavaScript | apache-2.0 | 3,484 |
/**
* Copyright 2014 IBM Corp. 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... | tonybndt/BlueMix-Tutorials | config/express.js | JavaScript | apache-2.0 | 1,764 |
sap.ui.define(['exports'], function (exports) { 'use strict';
var messagebundle_es = {
BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT: "Cancelar",
BARCODE_SCANNER_DIALOG_LOADING_TXT: "Cargando",
FCL_START_COLUMN_TXT: "Primera columna",
FCL_MIDDLE_COLUMN_TXT: "Columna media",
FCL_END_COLUMN_TXT: "Última columna",
... | SAP/openui5 | src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/_chunks/messagebundle_es.js | JavaScript | apache-2.0 | 7,123 |
Ext.define('MCLM.view.cenarios.GerenciarGruposCenarioWindow', {
requires: [
'MCLM.store.Grupo',
'Ext.grid.plugin.DragDrop',
'MCLM.view.cenarios.GerenciarGruposCenarioController'
],
extend: 'Ext.window.Window',
id: 'gerenciarGruposCenarioWindow',
itemId: 'gerenciarGruposCenari... | icemagno/mclm | src/main/webapp/app/view/cenarios/GerenciarGruposCenarioWindow.js | JavaScript | apache-2.0 | 10,122 |
/* global QUnit */
sap.ui.define([
"sap/ui/core/Control",
"sap/ui/fl/write/api/SmartVariantManagementWriteAPI",
"sap/ui/fl/Layer",
"sap/ui/rta/command/CommandFactory",
"sap/ui/thirdparty/sinon-4"
], function(
Control,
SmartVariantManagementWriteAPI,
Layer,
CommandFactory,
sinon
) {
"use strict";
var sandbo... | SAP/openui5 | src/sap.ui.rta/test/sap/ui/rta/qunit/command/compVariant/CompVariantUpdate.qunit.js | JavaScript | apache-2.0 | 8,251 |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... | gravitee-io/graviteeio-access-management | gravitee-am-ui/protractor.conf.js | JavaScript | apache-2.0 | 1,386 |
window.onload = function() {
var Synth = function(audiolet) {
AudioletGroup.apply(this, [audiolet, 0, 1]);
// Basic wave
this.saw = new Saw(audiolet, 100);
// Frequency LFO
this.frequencyLFO = new Sine(audiolet, 2);
this.frequencyMA = new MulAdd(audiolet, 10, 100);
... | accraze/Audiolet | examples/synth/js/synth.js | JavaScript | apache-2.0 | 2,107 |
(function ($) {
"use strict";
/*----------------------------
price-slider active
------------------------------ */
var range = $('#slider-range');
var amount = $('#amount');
range.slider({
range: true,
min: 2,
max: 300,
values: [ 2, 300 ],
slide: function( event, ui ) {
amoun... | TZClub/OMIPlatform | shopping-platfrom/src/main/webapp/resources/js/main.js | JavaScript | apache-2.0 | 10,332 |
require('./second.js');
var i = 0;
console.log('Hello Webpack!');
console.log('Webpack is cool.');
| jitendraag/webpack-2-examples | example2/input.js | JavaScript | apache-2.0 | 99 |
/**
* @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... | ev1stensberg/lighthouse | lighthouse-core/audits/third-party-facades.js | JavaScript | apache-2.0 | 11,065 |
/* @flow */
import Crypto from '../components/cryptography';
import Config from '../components/config';
import ListenerManager from '../components/listener_manager';
import ReconnectionManager from '../components/reconnection_manager';
import utils from '../utils';
import { MessageAnnouncement, SubscribeEnvelope, Statu... | amriteshkumar1/sales-service | node_modules/pubnub/src/core/components/subscription_manager.js | JavaScript | apache-2.0 | 10,768 |
'use strict';
/**
* Requirements
* @ignore
*/
const BaseValueObject = require('../BaseValueObject.js').BaseValueObject;
const Entity = require('./Entity.js').Entity;
const Site = require('../site/Site.js').Site;
const ContentKind = require('../ContentKind.js');
const BaseMap = require('../../base/BaseMap.js').BaseM... | entoj/entoj-core | source/model/entity/EntityAspect.js | JavaScript | apache-2.0 | 4,718 |
function swl_scrollStopExtend() {
var a = SWL.$.event.special, b = "D" + +new Date, c = "D" + (+new Date + 1);
a.scrollstart = {
setup : function() {
var c, d = function(b) {
var d = this, e = arguments;
c ? clearTimeout(c) : (b.type = "scrollstart", SWL.$.event.handle.apply(d, e)), c = setTimeout(functi... | EZWebvietnam/vieclam24h | template/home/js/jquery.scrollstore.js | JavaScript | apache-2.0 | 1,126 |
import { resolve, join } from 'path'
import merge from 'webpack-merge'
import parts from './webpack/parts'
if (process.env.WDS_HOST === undefined) process.env.WDS_HOST = 'localhost'
if (process.env.WDS_PORT === undefined) process.env.WDS_PORT = 3001
const isVendor = ({ resource }) => resource && resource.indexOf('n... | buildit/bookit-web | webpack.config.babel.js | JavaScript | apache-2.0 | 2,535 |
"use strict";
jest.autoMockOff();
const MockDate = require("mockdate");
const DataStore = require("../../src/resources/DataStore");
const FIELDS = ["foo", "bar", "baz"];
describe("DataStore construction", () => {
it("tests constructor fails", () => {
const check = (fields) => {
try {
... | iobeam/iobeam-client-node | tests/resources/test_DataStore.js | JavaScript | apache-2.0 | 6,869 |
/*
* Licensed to STRATIO (C) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. The STRATIO (C) licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file... | Stratio/Explorer | web/app/scripts/directives/ngenter.js | JavaScript | apache-2.0 | 1,295 |
(function() {
var CusPromise, root;
root = typeof exports !== "undefined" && exports !== null ? exports : this;
CusPromise = function(promise_) {
var obj;
obj = {
to: function(target, attr, callback) {
this.promise.then(function(data) {
if (data.data !== void 0 && data.result !==... | zhaowenjian/CCCourse | front/output/js/coffee-js/net_manager.js | JavaScript | apache-2.0 | 2,423 |
//// [varArgParamTypeCheck.ts]
function sequence(...sequences:{():void;}[]) {
}
function callback(clb:()=>void) {
}
sequence(
function bar() {
},
function foo() {
callback(()=>{
this();
});
},
function baz() {
callback(()=>{
this();
});
... | fdecampredon/jsx-typescript-old-version | tests/baselines/reference/varArgParamTypeCheck.js | JavaScript | apache-2.0 | 785 |
import { expect } from 'chai';
import sinon from 'sinon';
import flatMap from 'lodash/flatMap';
import createStore from '../../../store';
import emitterMiddleware from '../../../middlewares/emitter';
/* eslint-disable no-unused-expressions */
describe('Middleware', () => {
let store;
let callback;
befor... | maxmert/reflecti | test/unit/middlewares/emitter.js | JavaScript | apache-2.0 | 2,160 |
/*
* Copyright (c) 2016 Samsung Electronics Co., 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 applic... | SamsungARTIK/demokit | test/test_gpioctrl.js | JavaScript | apache-2.0 | 965 |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... | davidrice/mythtv-ffmpeg-tumblr-clip | public/build/mythtv-ffmpeg-tumblr-clip.js | JavaScript | apache-2.0 | 719,858 |
'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... | brendangregg/vector | karma.conf.js | JavaScript | apache-2.0 | 2,704 |
var utils = require('../../utils').common;
var _ = require('underscore');
/** Adds pagerduty field to devops if pagerduty related api is present
* @param {string} devops_filename the filename of the devopsjson file relative to the fixtures directory
* @param {fn} request_maker A function that takes two arguments, op... | racker/gutsy | lib/web/plugins/pager_duty.js | JavaScript | apache-2.0 | 1,738 |
//
// Autogenerated by Thrift
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
YahooWoeType = {
'UNKNOWN' : 0
,'TOWN' : 7
,'ADMIN1' : 8
,'ADMIN2' : 9
,'ADMIN3' : 10
,'POSTAL_CODE' : 11
,'COUNTRY' : 12
,'ISLAND' : 13
,'AIRPORT' : 14
,'DRAINAGE' : 15
,'PARK' : 16
,'POI' : 20
,'SUBURB' : 22
,'SPO... | foursquare/fsqio | src/jvm/io/fsq/twofishes/server/resources/twofishes-static/gen-js/geocoder_types.js | JavaScript | apache-2.0 | 69,674 |
import * as types from '../mutation_types'
const initTime = {
time: new Date().getDate()
};
export default {
repositoryList({ commit },data) {
commit(types.REPOSITORY_LIST, data)
},
updateList({commit},list){
commit(types.UPDATE_LIST,list)
}
};
| fangyang888/vue-project | src/store/actions.js | JavaScript | apache-2.0 | 273 |
/**
* @fileoverview This file is generated by the Angular 2 template compiler.
* Do not edit.
* @suppress {suspiciousCode,uselessCode,missingProperties}
*/
/* tslint:disable */
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() ... | driftyco/ionic-site | content/docs/v3/demos/src/components/item/item-reorder.ngfactory.js | JavaScript | apache-2.0 | 8,737 |
var namespaceorg_1_1onosproject_1_1driver_1_1extensions =
[
[ "NiciraExtensionTreatmentInterpreter", "classorg_1_1onosproject_1_1driver_1_1extensions_1_1NiciraExtensionTreatmentInterpreter.html", "classorg_1_1onosproject_1_1driver_1_1extensions_1_1NiciraExtensionTreatmentInterpreter" ],
[ "NiciraResubmit", "cla... | onosfw/apis | onos/apis/namespaceorg_1_1onosproject_1_1driver_1_1extensions.js | JavaScript | apache-2.0 | 815 |
var mercurius = require('../index.js');
var request = require('supertest');
var crypto = require('crypto');
var should = require('chai').should();
var redis = require('../redis.js');
describe('mercurius register', function() {
var token;
before(function() {
return mercurius.ready;
});
var origRandomBytes... | marco-c/mercurius | test/testRegister.js | JavaScript | apache-2.0 | 2,638 |
/**
* Created by king on 15-5-20.
*
* ch10.net_maxconnections_clientB.js
*/
console.info("------ net getconnections() ------");
console.info();
var net = require("net"); // TODO: 引入网络(Net)模块
var HOST = '127.0.0.1'; // TODO: 定义服务器地址
var PORT = 8877; // TODO: 定义端口号
/**
* 使用net.connect()函数方法创建一个T... | 0end1/code_base | Node.js_Codebase/chapter10/ServerMaxConnections/ch10.net_maxconnections_clientB.js | JavaScript | apache-2.0 | 743 |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decora... | aciccarello/typedoc | lib/converter/types/alias.js | JavaScript | apache-2.0 | 2,391 |
var SPI = require('spi');
var extend = require('util')._extend;
var openSpi = function() {
var device = '/dev/spidev0.0';
return new SPI.Spi(device, [], function(s) {
s.open();
});
};
var Adc = function(options) {
var self = this;
var settings = extend( {
voltage: 3.3, //3.3V by ... | anha1/mcp-adc | mcp-adc.js | JavaScript | apache-2.0 | 2,219 |
var nbinput = 1;
var $collectionHolder;
$(function() {
var $alreadyUsed = $("#alreadyExistVar").html();
if ($alreadyUsed) {
showDialog("#some-exists-dialog");
}
// Get the ul that holds the collection of tags
$collectionHolder = $('#inputBlock');
// count the current form inp... | adrienManikon/docmanager | src/SW/DocManagerBundle/Resources/public/js/upload.js | JavaScript | apache-2.0 | 4,586 |
/* */
"format esm";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r... | tzerb/Learning | WebApplication3/src/WebApplication3/jspm_packages/npm/angular2@2.0.0-beta.17/es6/prod/src/core/linker/debug_context.js | JavaScript | apache-2.0 | 4,102 |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... | tzerb/Learning | WebApplication3/src/WebApplication3/jspm_packages/npm/dist/js/cjs/src/mock/view_resolver_mock.js | JavaScript | apache-2.0 | 6,175 |
// app/routes/form.js
import Ember from 'ember';
export default Ember.Route.extend({
actions: {
willTransition: function(transition) {
// 如果是使用this.get('key')获取不了页面输入值,因为不是通过action提交表单的
var v = this.controller.get('firstName');
// 任意获取一个作为判断表单输入值
if (v && !confirm("你确定要离开这个页面吗??"))... | ubuntuvim/my_emberjs_code | chapter3_routes/app/routes/form.js | JavaScript | apache-2.0 | 532 |
/* General Loops - Abstract Case - Free variable */
function f1() { return 1; }
function f2() { return 2; }
function f3() { return 3; }
var b = !Date.now(); // non-deterministic boolean value.
var o1 = {x: f1, y: f2, z: f3};
var o2 = {};
var arr = [];
if (b) {
arr.push("x");
arr.push("y");
} else {
arr.pu... | cs-au-dk/TAJS | test-resources/src/micro-different-loop-kinds/AGHeap.js | JavaScript | apache-2.0 | 813 |
function f() { return 42}
TAJS_assert(f.call.call.call(f) === 42)
TAJS_assert(f.apply.apply.apply(f) === 42)
TAJS_assert(Function.prototype.apply.apply(f) == 42)
TAJS_dumpValue(f.apply.apply.apply(f))
function g(x) { return x + 1}
TAJS_assert(Function.prototype.call(g,45) === undefined)
TAJS_assert(isNaN(g.cal... | cs-au-dk/TAJS | test-resources/src/micro/test109.js | JavaScript | apache-2.0 | 514 |
'use strict';
/**
* Get html element by auto-generated (via XPath) class name
* @memberof imgix
* @static
* @private
* @param {string} xpath the xpath of the element
* @returns {Element} element with the xpath
*/
imgix.getElementByXPathClassName = function (xpath) {
return document.querySelector('.' + imgix.g... | kmddev/imgix.js | src/xpath.js | JavaScript | bsd-2-clause | 1,664 |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/socket', function(req, res, next){
res.render('socket', {title: 'socket.io test'})
});
module.exports = router;
| wushuyi/newClassSystem | server/routes/index.js | JavaScript | bsd-2-clause | 309 |