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 |
|---|---|---|---|---|---|
function grid100_900()
{
var old = document.getElementById("grid100_900");
var newVar = document.createElement("button");
var parent = old.parentNode;
newVar.setAttribute("id","grid200_0");
newVar.setAttribute("dir","ltr");
newVar.setAttribute("type","button");
newVar.setAttribute("style","width:100px; height:10... | Ccook/Stonewall | src/main/resources/res/js/grid100_900.js | JavaScript | apache-2.0 | 456 |
import $ from 'jquery';
var com = {};
export default com;
var vc; //vueComponent对象
var jo; //对应的jquery对象,mounted函数内设定
com.components = {};
com.props = {
imgUrl: String, //背景图像地址
bgColor: { //背景颜色
type: String,
default: 'none'
},
colorAlpha: { //背景颜色透明
default: 1
},
img... | zhyuzh3d/10knet | cli/coms/symbols/FullScreen/FullScreen.js | JavaScript | apache-2.0 | 2,366 |
var initSigma = function(containerId, rootId, nodes, edges) {
var s = new sigma({
renderer: {
container: document.getElementById(containerId),
type: 'canvas'
},settings: {
defaultEdgeColor: "#eee",
nodesPowRatio: 0.5,
edgesPowRatio: 0.5,
animationsTime: 1000,
autoRescale: false,
... | SOUP-CE-KMITL/DatacenterVisualization | Visualizer/public/js/vis/_bak.vis.core.js | JavaScript | apache-2.0 | 10,678 |
var a01613 =
[
[ "SVPaint", "a04970.html", "a04970" ],
[ "main", "a01613.html#a3c04138a5bfe5d72780bb7e82a18e627", null ],
[ "rgb", "a01613.html#ae2af510c23176345b05b6a9a29fe524b", null ]
]; | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/a01613.js | JavaScript | apache-2.0 | 201 |
var a03274 =
[
[ "base", "a03274.html#a5aaa72c27bb7519beb80f950af76ce87", null ],
[ "MemberSignature", "a03274.html#a7c0df05a1a5c2e00be17567e7d9ed61e", null ],
[ "_TessMemberResultCallback_4_1", "a03274.html#a8a06ab60595b318f58ede262abbe37c2", null ],
[ "Run", "a03274.html#aaf4874b41f8724a320aa807d00d48... | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/a03274.js | JavaScript | apache-2.0 | 335 |
//>>built
define("dojox/charting/themes/Julie",["../Theme","dojox/gfx/gradutils","./common"],function(c,e,d){var a=c.generateGradient,b={type:"linear",space:"shape",x1:0,y1:0,x2:0,y2:100};d.Julie=new c({seriesThemes:[{fill:a(b,"#59a0bd","#497c91"),stroke:{color:"#22627d"}},{fill:a(b,"#8d88c7","#6c6d8e"),stroke:{color:"... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/charting/themes/Julie.js | JavaScript | apache-2.0 | 2,501 |
import {ESClient} from 'modules/es-client';
import {Router} from 'aurelia-router';
import {Redirect} from 'aurelia-router';
import {Parent} from 'aurelia-framework';
export class SearchTester {
queries = [
{
name: 'contains_not_analyzed',
description: "Contains - Not Analyzed",
... | Wedjaa/LookaheadTutorial | src/search.js | JavaScript | apache-2.0 | 9,921 |
function exportBook(){
//获得basePath
basePath=$('#basePath').val();
ajax(
{
method:'GET',
url:'admin/bookManageAction_exportBook.action',
callback:function(data) {
showInfo("数据已导出:<a href='" + basePath + data + "'>点击下载</a>");
}
}
);
}
function showInfo(msg... | cckevincyh/LibrarySystem | LibrarySystem/WebRoot/js/exportBook.js | JavaScript | apache-2.0 | 416 |
// -> Define two constructor functions: 'Robot' and 'Vehicle'
// -> When called with 'new', the Robot constructor function should return
// the implicit 'this'
// -> When called with 'new', the Vehicle constructor function should return
// an object of your own making, not the implicit 'this'.
function Robot()... | qh4r/nodeFun | planetproto/090.js | JavaScript | apache-2.0 | 525 |
exports.api = require('./api'); | Shadowz3n/Clube-do-Assinante-Abril | node_modules/pushbots-api/index.js | JavaScript | apache-2.0 | 31 |
/**
* @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/no-multiple-empty-lines/test/fixtures/valid.js | JavaScript | apache-2.0 | 3,376 |
var
kind = require('enyo/kind'),
job = require('enyo/job');
var
Canvas = require('canvas/Canvas'),
CanvasImage = require('canvas/Image'),
CanvasText = require('canvas/Text'),
Circle = require('canvas/Circle'),
Line = require('canvas/Line'),
Rectangle = require('canvas/Rectangle'),
Shape = require('canvas/Shap... | enyojs/enyo-strawman | src/canvas-samples/src/CanvasPrimitivesSample/CanvasPrimitivesSample.js | JavaScript | apache-2.0 | 2,314 |
var assert = require('chai').assert;
var async = require('async');
var expect = require('chai').expect;
var request = require('request');
var url = require('url');
var sys = require('sys');
var config = require('./test-config');
/**
* Before these tests, make sure the server is running using `test-config.json` confi... | CarlosMecha/notifications | test/integration-test.js | JavaScript | apache-2.0 | 42,971 |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... | edneysamuels/ccm | www/addons/mod_forum/controllers/discussions.js | JavaScript | apache-2.0 | 6,291 |
const path = require('path');
const webpack = require('webpack');
const resolve = require('enhanced-resolve');
const {
keyConfigBuildDll,
filenameDll,
filenameDllManifest
} = require('koot/defaults/before-build');
const defaultModules = require('koot/defaults/dev-dll-modules');
const getDirDevDll = require... | websage-team/super-project | packages/koot-webpack/factory-config/transform-config-client-dev-dll.js | JavaScript | apache-2.0 | 2,489 |
import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, FormattedHTMLMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
// import { hot } from 'react-hot-loader/root';
import Snackbar from '@material-ui/core/Snackbar';
import intl from 'intl'; // eslint-di... | mitmedialab/MediaCloud-Web-Tools | src/components/AppContainer.js | JavaScript | apache-2.0 | 4,430 |
export class Module7 {
}
| trhs-javascript-class/course-site-2017 | src/resources/final-project/module-7.js | JavaScript | apache-2.0 | 30 |
/**
* Make sure that given object is an id
* @function sureId
* @param {*} id
* @param {Object} [options={}] - Optional settings
* @param {string} [options.prefix] - Prefix for errors
* @return {ClayId|String} id
*/
'use strict'
/** @lends sureId */
function sureId (id, options = {}) {
if (!id) {
const {p... | realglobe-Inc/clay-resource | lib/helpers/sure_id.js | JavaScript | apache-2.0 | 458 |
$(function(){
//////////////////////////////////////////////////
// read the json file to fill in the page content
//////////////////////////////////////////////////
$.getJSON( "../data/ResultsAnalysisReport.json", function( data ) {
/////////////////////////////////////////////////
// ... | delaere/WebAccess | js/resultReport.js | JavaScript | apache-2.0 | 8,156 |
/* global before, describe, it */
var _ = require('lodash')
var assert = require('assert')
var normalize = require('../index')
var testUtils = require('rdf-test-utils')
var N3Parser = require('rdf-parser-n3')
var ns = 'http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#'
var entries = ns + 'entries'
function li... | drdozer/shortbol | shortbol/server/jvm/src/main/public/js/node_modules/rdf-normalize/test/test.js | JavaScript | apache-2.0 | 3,038 |
/** Initialization code for the project overview page. */
'use strict';
var $ = require('jquery');
require('jquery-tagsinput');
require('bootstrap-editable');
require('js/osfToggleHeight');
var m = require('mithril');
var Fangorn = require('js/fangorn');
var Raven = require('raven-js');
require('truncate');
var $osf... | abought/osf.io | website/static/js/pages/project-dashboard-page.js | JavaScript | apache-2.0 | 10,592 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 ... | hong1012/FreePay | node_modules/antd/lib/time-picker/index.js | JavaScript | apache-2.0 | 4,671 |
var request = require('request');
var Handlebars = require('handlebars');
var msg = {
url: Handlebars.compile("https://badge.fury.io/{{type}}/{{name}}.svg"),
markdown: Handlebars.compile("[](http://badge.fury.io/{{type}}/{{name}})"),
html: Handlebars.c... | i5ting/badge-cli | index.js | JavaScript | apache-2.0 | 1,531 |
var MenuLayer = cc.Layer.extend({
spriteSheet: null,
ctor: function () {
// call super class's ctor function
this._super();
},
init: function () {
// call super class's super function
this._super();
//add background music
soundManager.playMusic();
... | rasterbrain/box2d-radialgravity-cocos2djs | src/MenuScene.js | JavaScript | apache-2.0 | 1,968 |
/* eslint-disable import/no-extraneous-dependencies */
const { createDefaultConfig } = require('@open-wc/testing-karma');
const merge = require('deepmerge');
module.exports = (config) => {
config.set(
merge(createDefaultConfig(config), {
files: [
// runs all files ending with .test in the test fold... | jarrodek/cookie-parser | karma.conf.js | JavaScript | apache-2.0 | 1,117 |
$.next.addEventListener('click', function (e){
Alloy.createController('dash').getView().open();
});
$.indexWindow.open(); | shirazi/forward | app/controllers/index.js | JavaScript | apache-2.0 | 124 |
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('Blockly.test.names');
const {sharedTestSetup, sharedTestTeardown} = goog.require('Blockly.test.helpers');
suite('Names', function() {
setup(function() {
sharedTestSetup.call(this);
});
teardown(function() ... | google/blockly | tests/mocha/names_test.js | JavaScript | apache-2.0 | 2,732 |
'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 ("va... | vpon/ui-components | lib/MultiSelector/AllList.js | JavaScript | apache-2.0 | 14,607 |
/*
* resources_ux.js contains all drawing functions for resources-related
* menu items in game ux
*/
var icons = ['metal-icon', 'water-icon', 'fuel-icon', 'food-icon'];
var createResourcesMenu = function() {
var innerHTML = '<div id="resources-menu-title" class="menu-title">Resources</div>';
clientGame.game.c... | Zebbeni/alien-empire | client/resources_ux.js | JavaScript | apache-2.0 | 13,348 |
exports.TeamChooserTableView = function(callback) {
//loop team data and populate the table view
var data = [];
for (var key in globals.teamData) {
var team = globals.teamData[key];
var rowdata = {
title: team.name,
leftImage: team.image,
feedURL: team.feed,
color:'#000'
};
if (globals.selected... | appcelerator-titans/TeamFeeder | Resources/ui/common/TeamChooserTableView.js | JavaScript | apache-2.0 | 470 |
// webpack.config.js
const path = require('path');
// Parallel Webpack from https://github.com/trivago/parallel-webpack
// https://www.npmjs.com/package/case-sensitive-paths-webpack-plugin
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
// No longer used
// const HandlebarsPr... | yeastrc/proxl-web-app | proxl_web_app/front_end/webpack.config.js | JavaScript | apache-2.0 | 7,463 |
/*
Copyright 2016 ElasticBox 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... | ElasticBox/elastickube | src/ui/app/core/dataflow/instance-action-creator.service.js | JavaScript | apache-2.0 | 1,980 |
var _ = require('underscore');
var React = require('react/addons');
var Router = require('react-router');
var remote = require('remote');
var exec = require('exec');
var dialog = remote.require('dialog');
var metrics = require('./Metrics');
var ContainerStore = require('./ContainerStore');
var ContainerSettingsVolumes... | spf13/kitematic | src/ContainerSettingsVolumes.react.js | JavaScript | apache-2.0 | 2,835 |
/*
Copyright 2016 Mozilla
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
u... | victorporof/tofino | src/browser-server/index.js | JavaScript | apache-2.0 | 1,808 |
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
ABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3),
which is available at https://github.com/aws/aws-sdk-js-v3. This example is in the 'AWS SDK for JavaScript v3 Develope... | awsdocs/aws-doc-sdk-examples | javascriptv3/example_code/iam/src/iam_attachrolepolicy.js | JavaScript | apache-2.0 | 1,924 |
"use strict";
var core_1 = require('@angular/core');
var position_1 = require('../utils/position');
var tooltip_options_class_1 = require('./tooltip-options.class');
var TooltipContainerComponent = (function () {
function TooltipContainerComponent(element, cdr, options) {
this.top = '-1000px';
this.... | SuccessAnalyzer/SuccessAnalyzer | frontend/node_modules/ng-bootstrap/tooltip/tooltip-container.component.js | JavaScript | apache-2.0 | 2,830 |
/*
* Copyright 2014 TWO SIGMA OPEN SOURCE, 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 la... | vital-ai/beaker-notebook | core/src/main/web/outputdisplay/bko-plot/plotitems/std/plotconstband.js | JavaScript | apache-2.0 | 7,268 |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/google-api-nodejs-client | src/apis/cloudasset/webpack.config.js | JavaScript | apache-2.0 | 2,012 |
/**
* Copyright 2016 ReSys OÜ
*
* 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... | flexiform/flexiform-common | src/components/Loading.js | JavaScript | apache-2.0 | 836 |
/**
* @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/markdown/inline-svg-equation/test/test.cli.js | JavaScript | apache-2.0 | 4,226 |
var util = require('util');
var events = require('events');
var dgram = require('dgram');
var net = require('net');
var packets = require('./packets');
function LifxListener() {
var self = this;
self.emitter = new events.EventEmitter();
self.processMessage = function(msg, rinfo) {
var packet = packets.des... | mitchdenny/lifx-sniffer | network.js | JavaScript | apache-2.0 | 2,305 |
/*
* constraints.js
*
* Copyright 2015 Gilbert Bernstein
* Copyright 2015 Adobe Systems 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... | gilbo/lillicon | js/constraints.js | JavaScript | apache-2.0 | 52,196 |
/*!
* ${copyright}
*/
// Provides control sap.ui.commons.Callout.
sap.ui.define(['jquery.sap.global', './CalloutBase', './library', "./CalloutRenderer"],
function(jQuery, CalloutBase, library, CalloutRenderer) {
"use strict";
/**
* Constructor for a new Callout.
*
* @param {string} [sId] ID for the new c... | cschuff/openui5 | src/sap.ui.commons/src/sap/ui/commons/Callout.js | JavaScript | apache-2.0 | 1,451 |
function doClickMenu(e){
alert(e.source.title);
}
function doOpen(e){
if(OS_ANDROID){
try{
var activity = $.mainwin.activity;
activity.onCreateOptionsMenu = function(e) {
var menu = e.menu;
var menuItem2 = menu.add({
title : "Next",
icon: "/icons/browser_window_32x32.png",
... | ruchango/Test06 | app/controllers/new_customer.js | JavaScript | apache-2.0 | 1,238 |
// pull in our required modules
const config = require('../config');
const api = require('../api');
const S = require('string');
const _ = require('lodash');
// add the actual command logic
module.exports = exports = function(payload, fn) {
// get the token variable
var se... | passmarked/cli | lib/commands/website.js | JavaScript | apache-2.0 | 3,811 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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... | flongo/ariatemplates | src/aria/utils/Json.js | JavaScript | apache-2.0 | 43,641 |
import fs from 'fs';
import when from 'when';
import Particle from 'particle-api-js';
import log from '../app/log';
import _ from 'lodash';
import url from 'url';
import chalk from 'chalk';
export {convertApiError} from 'particle-commands';
class UnauthorizedError extends Error {
constructor(message) {
super();
... | kennethlimcp/particle-cli | src/cmd/api.js | JavaScript | apache-2.0 | 4,435 |
var express = require('express');
var router = express.Router();
var db = require('../db/db');
/* GET users listing. */
router.get('/', function(req, res) {
res.render('users', {title:'A.I.S自动化工作系统'});
});
router.get('/list',function(req,res){
db.open(function(err,db){
db.collection('users',function(err,collectio... | AISteam/AIS | platform/aisweb/routes/users.js | JavaScript | apache-2.0 | 1,015 |
var path = require("path");
var cfind = require("../lib");
describe('Find code', function() {
it('can search', function(done) {
cfind.find({
query: "ell",
root: path.join(__dirname, "fixtures")
}, done);
});
});
| CodeboxIDE/cfind | test/find.js | JavaScript | apache-2.0 | 261 |
const express = require('express');
const router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('index', {title: 'Express'});
});
router.get('/json', function (req, res, next) {
res.cookie('rememberMe', '1', {expires: new Date(Date.now() + 900000), httpOnly: t... | baayso/learn-express | routes/index.js | JavaScript | apache-2.0 | 1,040 |
/**
* Filename: ./modules/router.js
* Author: Kenneth Bastian <kenneth.g.bastian@descouvre.com>
*/
const SmsMessage = require('../modules/SmsMessage');
const redis = require('../modules/redis');
const winston = require('winston');
module.exports = function router(app, socketIo, model) {
app.get('/', (req, res, ne... | onezeronine/bayanihan | modules/router.js | JavaScript | apache-2.0 | 2,747 |
sap.ui.define(["sap/ui/integration/Designtime"
], function (Designtime) {
"use strict";
return function () {
return new Designtime({
"form": {
"items": {
"string1": {
"manifestpath": "/sap.card/configuration/parameters/string1/value",
"type": "string",
"label": "{i18n>string1label}",
... | SAP/openui5 | src/sap.ui.integration/test/sap/ui/integration/qunit/editor/jsons/withDesigntime/sap.card/designtime/multiLanguageForChange.js | JavaScript | apache-2.0 | 1,304 |
/*!
* ${copyright}
*/
sap.ui.define([
"./library",
"sap/ui/core/Control",
"sap/ui/core/Popup",
"sap/ui/core/Core",
"sap/m/Text",
"sap/m/Button",
"sap/ui/core/ResizeHandler",
"sap/ui/Device",
"sap/ui/core/Icon",
"sap/ui/layout/VerticalLayout",
"./InstanceManager",
"sap/ui/core/InvisibleText",
"sap/ui/cor... | SAP/openui5 | src/sap.m/src/sap/m/LightBox.js | JavaScript | apache-2.0 | 21,036 |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('groups-list', 'Integration | Component | groups list', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle ... | langens-jonathan/authorization-ember-materialize-addon | tests/integration/components/groups-list-test.js | JavaScript | apache-2.0 | 677 |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... | caiograg/blockly | core/block.js | JavaScript | apache-2.0 | 59,504 |
import About from './components/About.vue'
import NoteList from './components/NoteList.vue'
import NoteForm from './components/NoteForm.vue'
import NoteDetail from './components/NoteDetail.vue'
import TaskList from './components/TaskList.vue'
import TaskForm from './components/TaskForm.vue'
import TaskDetail from './co... | vkeusebio/api-org-app | frontend/src/routes.js | JavaScript | apache-2.0 | 1,125 |
/**
* Copyright 2021 The Google Earth Engine Community 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | google/earthengine-community | samples/javascript/apidocs/ee-array-bitwisexor.js | JavaScript | apache-2.0 | 1,160 |
/*
Copyright 2014 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/extra-keyboards-for-chrome-os | composekey/options.js | JavaScript | apache-2.0 | 6,886 |
/*!
* ${copyright}
*/
sap.ui.define(['./Service'], function (Service) {
"use strict";
/**
* @class sap.ui.integration.Data
* Provides an interface for a simple DataService
* @experimental
* @private
* @ui5-restricted sap.ushell
* @extends sap.ui.integration.Service
*/
var Data = Service.extend();
... | SAP/openui5 | src/sap.ui.integration/src/sap/ui/integration/services/Data.js | JavaScript | apache-2.0 | 1,790 |
var exec = require('child_process').exec;
/**
* Rsync wrapper.
*
* @author Mattijs Hoitink <mattijs@monkeyandmachine.com>
* @copyright Copyright (c) 2013, Mattijs Hoitink <mattijs@monkeyandmachine.com>
* @license The MIT License
*/
function Rsync(options) {
// executable
this._executable = 'rs... | recurve/ares-ecosystem | node_modules/ares-webos-sdk/node_modules/rsync/rsync.js | JavaScript | apache-2.0 | 11,265 |
/*
Copyright 2015 Packt Publishing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | fabiancook/nodejs-essentials | chapter-4/8-nodejs-bunyan.js | JavaScript | apache-2.0 | 947 |
/*
* Copyright 2015 TWO SIGMA OPEN SOURCE, 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 appl... | maxyeg/beaker-notebook | launcher/electron/app/main.js | JavaScript | apache-2.0 | 5,578 |
// The contents of this file will be executed before any of
// your view controllers are ever executed, including the index.
// You have access to all functionality on the `Alloy` namespace.
//
// This is a great place to do any initialization for your app
// or create any global variables/functions that you'd like to
... | dylants/first-alloy-project | app/alloy.js | JavaScript | apache-2.0 | 1,053 |
/*
* Copyright (C) 2005 - 2011 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the t... | SmarterApp/ItemAuthoring | sbac-iaip-rpm-installer/iaip-tomcatjasper-rpm/src/main/opt/tomcat-jasper/webapps/jasperserver/scripts/controls.datatransfer.js | JavaScript | apache-2.0 | 9,525 |
/** JavaScript Versions
* 5 is minimum -> Last IE11
* 6 = 2015 -> Node >8.10, iOS12+
* 7 = 2016 -> FF78+,
* 8 = 2017 -> Node 10.9+
* 9 = 2018 -> Node 12.11+
* 10 = 2019
* 11 = 2020
* 12 = 2021
*/
module.exports = {
root: true,
env: {
node: false,
browser: true,
es6: true,
... | TotallyInformation/node-red-contrib-uibuilder | front-end/.eslintrc.js | JavaScript | apache-2.0 | 1,460 |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var STATE = {};
var SCREEN = [];
v... | gimdongwoo/titanium-navigation | sample/app/widgets/titanium.navigation/controllers/stack.js | JavaScript | apache-2.0 | 5,397 |
/**
* 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... | aghassemi/amphtml | extensions/amp-analytics/0.1/transport.js | JavaScript | apache-2.0 | 5,190 |
/**
* @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/chi/examples/index.js | JavaScript | apache-2.0 | 751 |
#!/bin/env node
const util = require('util');
const _ = require('lodash');
const chalk = require('chalk');
const express = require('express');
const app = express();
const server = require('http').createServer(app);
const io = require('socket.io')(server);
server.listen(1337);
let services = [];
let getServicIndexBy... | resin-io-projects/boombeastic | ws/app/index.js | JavaScript | apache-2.0 | 1,321 |
var gulp = require('gulp'),
less = require('gulp-less'),
gaze = require('gaze'),
jade = require('gulp-jade'),
jshint = require('gulp-jshint'),
concat = require('gulp-concat'),
stylish = require('jshint-stylish'),
minifyCSS = require('gulp-minify-css'),
connect = require('gulp-connect'),
imagemin = req... | hoverming/eat_cherry | gulpfile.js | JavaScript | apache-2.0 | 1,837 |
export BlockSpacer from './BlockSpacer';
export BlockSpacerForm from './BlockSpacerForm';
export BlockSpacerWireframe from './BlockSpacerWireframe';
| grommet/grommet-cms-content-blocks | src/ContentBlocks/BlockSpacer/index.js | JavaScript | apache-2.0 | 149 |
/*
* #%L
* navigation-interceptor
* %%
* Copyright (C) 2014 Matthieu Brouillard
* %%
* 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... | McFoggy/fxnav-interceptor | src/main/resources/www/javafx-mutation.js | JavaScript | apache-2.0 | 2,653 |
var classorg_1_1onosproject_1_1net_1_1intent_1_1impl_1_1compiler_1_1TwoWayP2PIntentCompiler =
[
[ "activate", "classorg_1_1onosproject_1_1net_1_1intent_1_1impl_1_1compiler_1_1TwoWayP2PIntentCompiler.html#abbb2f04f97cf5130b200c5a949e5fcd0", null ],
[ "compile", "classorg_1_1onosproject_1_1net_1_1intent_1_1impl_1... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1net_1_1intent_1_1impl_1_1compiler_1_1TwoWayP2PIntentCompiler.js | JavaScript | apache-2.0 | 566 |
// Zepto.js
// (c) 2010-2016 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
;(function($){
var touch = {},
touchTimeout, tapTimeout, swipeTimeout, longTapTimeout,
longTapDelay = 750,
gesture
function swipeDirection(x1, x2, y1, y2) {
return... | zhutouzlj2016/littlestar | public/libs/zepto/touch.js | JavaScript | apache-2.0 | 7,066 |
/*
* #%L
* ACS AEM Commons Package
* %%
* Copyright (C) 2013 Adobe
* %%
* 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
*
* Unl... | MikePfaff/acs-aem-commons | content/src/main/content/jcr_root/apps/acs-commons/widgets/source/js/add_multifield_limit.js | JavaScript | apache-2.0 | 2,580 |
/**
* @license
* Visual Blocks Language
*
* Copyright 2014 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apa... | rynguy/BlocklyRobotSimulation | generators/cpp/variables.js | JavaScript | apache-2.0 | 1,398 |
/*
* Copyright 2013 Adobe
*
* 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... | Adobe-Marketing-Cloud/experiencemanager-clientcontext-samples | survey-context-store/jcr_root/apps/loyalty/components/contextstores/survey/clientlib/kernel/survey.js | JavaScript | apache-2.0 | 1,257 |
import React, {Component} from "react";
import {AppState} from "react-native";
import codePush from "react-native-code-push";
import {Provider} from "react-redux";
import FCM from "react-native-fcm";
import {postAnalytics} from "./actions/analytics";
import asteroid from "./lib/asteroid";
import {syncStoreAndAsteroid}... | innowatio/iwapp | app/main.js | JavaScript | apache-2.0 | 1,405 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ProductFamilySchema = new Schema({
created: {
type: Date,
default: Date.now
},
name: {
type: String,
required: true
},
category: {
type: String,
required: true
}
});
ProductFa... | rberneder/huepro | saisonal-api/models/productFamily.js | JavaScript | apache-2.0 | 479 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may ... | keedio/ambari-web | app/utils/components.js | JavaScript | apache-2.0 | 7,230 |
var request = require('request');
var LineData = require('../module/LineData.js');
var cm = require('./common.js');
const LINE_KEY = "IBjA29MocIgv+yzESSEz+76JIUG9arhvd7l5eFmJ8e3Ff3D6uhc2zyNXHWZvYsaYqN/R9hgq5TCb/fKAds0lWKmPC2WWcNchVG3mKoH6HLDXY91em5iuJJaYmaAzZDn0JNy8KkftIOKhB8w7771sDwdB04t89/1O/w1cDnyilFU=";
exports.s... | takeidevelop/linetesttakei | src/common/actionCommon.js | JavaScript | apache-2.0 | 6,423 |
var main = require("./lib/main");
var _ = require("underscore");
var express = require("express");
var app = express();
var port = process.env.VCAP_APP_PORT || 8080;
var options;
var shortOptions;
var envOptions = {};
app.use(express.static(__dirname + '/public'));
// Guide P... | Twanawebtech/Bluemix-Guide-Node | _FINISH_CODE/server.js | JavaScript | apache-2.0 | 776 |
$.scrollView.height = Ti.Platform.displayCaps.platformHeight - 150;
if(Ti.Platform.osname == "android") {
console.log("android");
$.scrollView.height = PixelsToDPUnits(Ti.Platform.displayCaps.platformHeight) - 150;
}
function back()
{
DRAWER.navigation("onlinePurchases",1);
}
function register()
{
console.log("r... | hardikamal/xox | app/controllers/switchXOX.js | JavaScript | apache-2.0 | 368 |
var GlobalConfig = {}
GlobalConfig.install = function (Vue, options) {
Vue.prototype.$server_host = 'http://localhost:3001'
}
module.exports = GlobalConfig
| InkGenius/one-life | globalConfig.js | JavaScript | apache-2.0 | 158 |
// Copyright 2017 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | google/wayback-machine-button | background.js | JavaScript | apache-2.0 | 1,824 |
$(window).scroll(function() {
if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").removeClass("navbar-transparent");
} else {
$(".navbar-fixed-top").addClass("navbar-transparent");
}
});
| 9651-Robotics/website | js/nav-transparent.js | JavaScript | apache-2.0 | 210 |
console.debug = function() { /* do nothing */};
| m-szalik/i-react-utils | test-env-setup.js | JavaScript | apache-2.0 | 48 |
OC.L10N.register(
"user_webdavauth",
{
"WebDAV Authentication" : "WebDAV autentimine",
"Address:" : "Aadress:",
"Save" : "Salvesta",
"The user credentials will be sent to this address. This plugin checks the response and will interpret the HTTP statuscodes 401 and 403 as invalid credentials, and... | kebenxiaoming/owncloudRedis | apps/user_webdavauth/l10n/et_EE.js | JavaScript | apache-2.0 | 613 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | amirakhmedov/ignite | modules/web-console/frontend/app/directives/on-escape.directive.js | JavaScript | apache-2.0 | 1,376 |
sap.ui.define(["sap/ui/model/json/JSONModel", "sap/ui/core/mvc/Controller"], function (JSONModel, Controller) {
"use strict";
return Controller.extend("sap.uxap.sample.ObjectPageHeaderExpanded.controller.ObjectPageHeaderExpanded", {
onAfterRendering: function () {
var oJsonModel = new JSONModel(sap.ui.require.t... | SAP/openui5 | src/sap.uxap/test/sap/uxap/demokit/sample/ObjectPageHeaderExpanded/controller/ObjectPageHeaderExpanded.controller.js | JavaScript | apache-2.0 | 843 |
onmessage = function (e) {
console.log('Message received from main script');
var workerResult = 'Result:' + (e.data[0] * e.data[1]);
postMessage(workerResult);
}
| shisaq/shisaq.github.io | projects/worker_exercise/js/myworker.js | JavaScript | apache-2.0 | 168 |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/nodejs-analytics-data | samples/quickstart_json_credentials.js | JavaScript | apache-2.0 | 2,929 |
//server communications timeout
var ajaxRpcTimeoutMillis = 45 * 1000;
// XSSI prefix. Must be kept in sync with models/transforms.py.
var xssiPrefix = ")]}'";
var URL_VALIDATION_REGEX =
'(^(http:\/\/|https:\/\/|\/\/|\/).*$)|(^[^.\/]*(\/.*)?$)';
/**
* Utility class for an on/off toggle button.
*
* @class
*/
func... | ram8647/gcb-mobilecsp | modules/oeditor/templates/oeditor.js | JavaScript | apache-2.0 | 33,786 |
var args = arguments[0] || {};
if(OS_IOS)
Alloy.Globals.nav = $.nav;
if(OS_ANDROID){
exports.reloadActionBar = function(){
if (Alloy.Globals.actionBar) {
Alloy.Globals.activity.onCreateOptionsMenu = function(e) {
var item, menu;
menu = e.menu;
menu.clear();
... | nitrag/ToImageCacheTest | app/controllers/cached.js | JavaScript | apache-2.0 | 2,133 |
import http from "../api/api.js";
export default redirect => {
// 登录后跳转的url
const redirectUrl =
window.location.origin + "/wechatLogin?redirect=" + redirect;
http
.post(
"socialite/getOriginUrl",
{
redirectUrl
},
{
validateStatus: s => s === 200
}
)
.... | boxshadow/plus-component-web | src/util/getRedirectUrl.js | JavaScript | apache-2.0 | 417 |
import React from 'react';
import TableRow from '../TableRow';
import { shallow } from 'enzyme';
describe('TableRow', () => {
describe('Renders as expected', () => {
const tableRow = shallow(
<TableRow>
<td />
</TableRow>
);
it('should render a tr with the appropriate class', () => {... | jzhang300/carbon-components-react | src/components/TableRow/TableRow-test.js | JavaScript | apache-2.0 | 1,052 |
import Ember from 'ember';
import { getContext, setContext, unsetContext } from './test-context';
import { Klass } from 'klassy';
import { getResolver } from './test-resolver';
import buildRegistry from './build-registry';
import hasEmberVersion from './has-ember-version';
import { _setupAJAXHooks, _teardownAJAXHooks }... | OrKoN/ember-test-helpers | lib/ember-test-helpers/test-module.js | JavaScript | apache-2.0 | 8,098 |
var nodes = new vis.DataSet([
/* {id: a, label: b, ...}, */
{id: '3482', label: 'B2\n-1.6472311463710965', color: '#31b0d5', title: 'Name: B2<br>Alias: null<br>Value: -1.6472311463710965<br>Type: CELL_WITH_FORMULA<br>Id: 3482<br>Formula Expression: Formula String: ASINH(VALUE); Formula Va... | DataArt/CalculationEngine | calculation-engine/engine-tests/engine-it-graph/src/test/resources/standardwithconfig_data_js_files/data_ASINH_Fx__JOIN_2.js | JavaScript | apache-2.0 | 2,550 |
$(function() {
// 全局遮罩
$(".overall_mask").on("click", function() {
$.fn.jqLoading({
height : 100,
width : 240,
text : "正在加载中,请耐心等待...."
});
});
$('._delete').click(function() {
return confirm("删除后不可恢复,是否确认删除?");
});
}) | lazytool/mockServer | mocker/src/main/webapp/js/common/loding-mask.js | JavaScript | apache-2.0 | 294 |
console.log("strt vertx");
//eb = new vertx.EventBus(window.location.protocol + '//' + window.location.hostname + ':' + window.location.port + '/eventbus');
function authenticate(phn, pword)
{
console.log("authenticating.... : " + phn+ pword);
//if(phn != '' && pword != '')
if(phn != '')
{
eb.send('cha... | amit-handa/EventServer | src/main/resources/web/js/Vertx.js | JavaScript | apache-2.0 | 2,978 |