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 (exports) {
'use strict';
var obj = {
playlistFormat: 'http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/vpid/$station/format/pls.pls',
playableLinks: function (container) {
return container.querySelectorAll('a[data-player-html5-stream]');
},
playlistUrl: fun... | mediascape/discovery-extension | remote/js/lib/bbc-radio.js | JavaScript | apache-2.0 | 1,273 |
'use strict';
module.exports = function (app) {
var AbuseService = {
create: function (abuse) {
return app.daos.Abuse.create(abuse).then(function (id) {
return id;
});
},
update: function (abuse) {
return app.daos.Abuse.update(abuse).then(function (id) {
return id;
});
},
delete: functi... | pablolmnora/helpthecity | server/app/services/AbuseService.js | JavaScript | apache-2.0 | 706 |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | google/j2cl-protobuf | java/com/google/protobuf/contrib/immutablejs/runtime/bytestring.js | JavaScript | apache-2.0 | 4,253 |
define({"topics" : [{"title":"Send Data to the Listening Port","shortdesc":"\n <p class=\"shortdesc\">Configure the WebSocket clients to send data to the WebSocket Server listening port.</p>\n ","href":"datacollector\/UserGuide\/Origins\/WebSocketServer.html#concept_djp_bv2_3z","a... | rockmkd/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_thh_3rd_3z-d46e68757.js | JavaScript | apache-2.0 | 899 |
import mongodb from 'mongodb';
import _ from 'lodash';
const debug = require('debug')('mongobless');
const models = [];
let DB;
const Model = new Function();
const isFunction = obj => typeof obj === 'function';
function extend(destination) {
const sources = Array.prototype.slice.call(arguments, 1);
for(let i in ... | redpelicans/mongobless | src/index.js | JavaScript | apache-2.0 | 3,789 |
var config = require('./config.js');
console.log("config: ", config);
var pack = require('./lib/package.js');
var send = require('./lib/send.js');
var inbox = require('./lib/inbox.js');
var express = require('express');
var path = require('path');
var logger = require('morgan');
var bodyParser = require('body-parser... | amida-tech/abelian-connector | server.js | JavaScript | apache-2.0 | 4,686 |
define(function(require, exports, module){
// wrapped Hogan.js into an AMD module and also added pragmas to remove
// compiler after build if it isn't needed. Source code wasn't touched
// besides that.
// START WRAPPED CODE
// ===========================================================================
/*
* Copy... | bfreis/awsexplorer | src/main/webapp/libs/require-plugins/require-hogan/hogan-2.0.0.js | JavaScript | apache-2.0 | 15,687 |
/**
* Created by Bane.Shi.
* Copyright MoenSun
* User: Bane.Shi
* Blog: http://blog.fengxiaotx.com
* Date: 2017/2/4
* Time: 17:04
*/
'use strict';
import Datepicker from "./src/date/datepicker.vue";
module.exports = {
Datepicker
} | ms-vue2/ms-vue2-ui | src/packages/picker/index.js | JavaScript | apache-2.0 | 241 |
import React from 'react';
import Icon from '@ichef/gypcrete/src/Icon';
import iconMap from '@ichef/gypcrete/src/icons/components';
export default {
title: '@ichef/gypcrete|Icon',
component: Icon,
};
export function BasicUsage() {
/**
* Show all icons, ordering from a to z.
*/
return (
<>
... | iCHEF/gypcrete | packages/storybook/examples/core/Icon.stories.js | JavaScript | apache-2.0 | 2,492 |
import React from 'react';
import { storiesOf } from '@storybook/react';
import Lozenge from './';
storiesOf('Lozenge', module)
.add('Base', () => {
return <Lozenge>Foo</Lozenge>;
})
.add('With Custom Background Colors', () => {
return (
<div>
<div style={{ marginBottom: '10px' }}>
... | veritone/veritone-sdk | packages/veritone-react-common/src/components/Lozenge/story.js | JavaScript | apache-2.0 | 1,581 |
'use strict';
import React,{ Component } from 'react';
import { StyleSheet, AppState, Dimensions, Image } from 'react-native';
import CodePush from 'react-native-code-push';
import { Container, Text, View, InputGroup, Input, Icon } from 'native-base';
import Modal from 'react-native-modalbox';
import AppNavigator fr... | chris50bn/Between | js/App.js | JavaScript | apache-2.0 | 3,096 |
'use strict';
module.exports = {
ClientRequest: function () {}
};
| StackStorm/st2client.js | lib/util/http.js | JavaScript | apache-2.0 | 69 |
const path = require('path');
const express = require('express');
const open = require('open');
const serveIndex = require('serve-index');
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
const product = process.argv[2];
var dirname = product === 'openlayers' ? 'ol' :... | SuperMap/iClient9 | build/server.js | JavaScript | apache-2.0 | 2,616 |
/**
* A function to be invoked after completing an asynchronous task.
*
* @typedef {Function} Callback
*/
/**
* A callback whose first argument is either an `Error` or `null`.
*
* @typedef {Callback} Errback
*/
| stdlib-js/stdlib | tools/docs/jsdoc/typedefs/functions.js | JavaScript | apache-2.0 | 212 |
/**
* Created by liyadan01_bj on 2016/4/26.
*/
function addLoadEvent(func){
var oldonload=window.onload;
if(typeof window.onload != 'function'){
window.onload=func;
}else{
window.onload=function(){
oldonload();
func();
}
}
} | KMJB/IFE | lyd/learning_01/scripts/addLoadEvent.js | JavaScript | apache-2.0 | 290 |
angular.module('Angular').config([ '$routeProvider',
function ($routeProvider) {
$routeProvider.when('/exampleRoute', {
templateUrl: 'app/exampleRoute/exampleRoute.html',
controller: 'exampleRoute',
controllerAs: 'exampleRoute'
});
}]);
| MartinKilonzo/Sandbox | src/app/exampleRoute/index.js | JavaScript | apache-2.0 | 259 |
import slayer from "./s_layer";
let params;
export function jsApiCall(callback) {
WeixinJSBridge.invoke(
'getBrandWCPayRequest',
params,
function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") {
slayer.alert('支付成功');
if (callback) {
callback();
}
}... | seed-builder/umbrella-wx | src/assets/js/wechat_pay.js | JavaScript | apache-2.0 | 969 |
/**
* cms 新增js
*/
$(document).ready(function(){
// 数据回显
if(bzptCmsId){
intaddBzptCms(bzptCmsId);
}
//保存
$("#btn_save").on("click",function(){
addBzptCms.saveData();
});
// //确认
// $("#btn_affirm").on("click",function(){
// addArchives.affirmData();
// });
//返回
$("#btn_back").on("click",function(... | 1461862234/kzf | BZGZPT/bzgzpt-web/src/main/webapp/static/scripts/archives/bzptCms/addBzptCms.js | JavaScript | apache-2.0 | 2,580 |
/**
* Created by kev on 15-08-14.
*/
define(['underscore',
'base_sketch',
'snow_2/noiseBuffer'],
function (_,
BaseSketch,
NoiseBuffer) {
Number.prototype.mod = function (n) {
return ((this % n) + n) % n;
};
var HALF_PI = Math.PI / 2;
... | k-may/sketches | app/scripts/ts/sketches/Clima/snow_2/snow_sketch_2.js | JavaScript | apache-2.0 | 5,894 |
/**
* Copyright [2013] [runrightfast.co]
*
* 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 agree... | runrightfast-archived/runrightfast-object-schema-registry-hapi-plugin | lib/object-schema-routes.js | JavaScript | apache-2.0 | 19,523 |
var angular = require('angular');
angular.module('example.photos.controllers', ['example.api.services'])
.controller('PhotosController', ['$scope', 'postService', 'postPhotoService', function ($scope, postService, postPhotoService) {
$scope.photos = {};
$scope.posts = postService.query(); // Obtien... | iLordTony/django-angular-example | static/app/photos/controllers.js | JavaScript | apache-2.0 | 733 |
angular.module("Thesaurus")
.service("NodeHandler", ['$http', 'PagingSet',
function($http, PagingSet) {
var nr_of_displayed_pages = 5;
var items_per_page = 25;
function mapData(data) {
data.items.forEach(function(child) {
child.loadingChildren = false;
child.currentPage = 1;
child.expanded = ... | Joppe-A/rce-doorzoeker | RceDoorzoeker/App/thesaurus/NodeHandler.js | JavaScript | apache-2.0 | 3,344 |
/**
* Created by Ali on 4/08/2015.
*/
"use strict";
const Hoek = require("hoek"),
Joi = require("joi"),
_get = require("lodash/get"),
_set = require("lodash/set"),
model_factory = require("../../../model");
const options_schema = Joi
.object({
enabled: Joi
.boolean()
... | gaaiatinc/valde-hapi | lib/server/plugins/resource_set/index.js | JavaScript | apache-2.0 | 1,694 |
var _ = require("lodash");
var Q = require("q");
var path = require("path");
var nunjucks = require("nunjucks");
var escapeStringRegexp = require("escape-string-regexp");
var git = require("./utils/git");
var fs = require("./utils/fs");
var batch = require("./utils/batch");
var pkg = require("../package.json");
var de... | tzq668766/gitbook | lib/template.js | JavaScript | apache-2.0 | 13,268 |
var models = require('../models/models.js');
exports.ownershipRequired = function (req, res, next) {
models.Quiz.find({
where: {
id: Number(req.comment.QuizId)
}
}).then(function (quiz) {
if (quiz) {
var objQuizOwner = quiz.UserId;
var logUser = req.session.user.id;
var isAdmin = req.session.user.i... | sirasistant/Core-quiz | controllers/comment_controller.js | JavaScript | apache-2.0 | 1,652 |
/**
* @license Copyright 2019 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | wardpeet/lighthouse | stack-packs/packs/wordpress.js | JavaScript | apache-2.0 | 11,796 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/... | GPrathap/analytics-iots | product/samples/motorRallyAnalytics/feature/org.wso2.carbon.analytics.iots.motorrallyalytics.feature/src/main/resources/carbonapps/motorrally/gadgets/gadget-motor-rally/motor-rally/js/application_options.js | JavaScript | apache-2.0 | 3,938 |
"use strict";
var utils = require("./utils.js");
var isThenable = utils.isThenable;
var invoke = utils.invoke;
var fnCall = utils.fnCall;
var delayCall = utils.delayCall;
var deprecateWarning = {};
function promiseResolve(promise, resolve, reject, resolution) {
if (promise === resolution) {
reject(new Typ... | sapbuild/node-sap-promise | lib/enhance.js | JavaScript | apache-2.0 | 15,539 |
export const schema = {}
export const jsonDict = {}
export const columns1 = [
{
items: [
{
errors: [],
key: 'a',
reactId: '/a+{"b":{"123":123,"c":"ccc","d":"ddd"}}',
sortIndex: 1,
value: { b: { 123: 123, c: 'ccc', d: 'ddd' } },
},
{ errors: [], key: '123... | quiltdata/quilt | catalog/app/components/JsonEditor/mocks/sorted.js | JavaScript | apache-2.0 | 2,097 |
'use strict';
// THIS FILE IS AUTO-GENERATED - DO NOT MODIFY
var inherits = require('util').inherits;
var Characteristic = require('../Characteristic').Characteristic;
var Service = require('../Service').Service;
/**
* Characteristic "Label Namespace"
*/
Characteristic.LabelNamespace = function() {
Characteristi... | pantonante/parsec-node | lib/gen/HomeKitTypes.js | JavaScript | apache-2.0 | 104,246 |
const tsconfig = require('./tsconfig');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', 'karma-typescript'],
files: ['node_modules/tslib/tslib.js']
.concat(tsconfig.files)
.concat(['test/setup.ts', 'test/**/*.ts']),
exclude: [],
preprocessors: {
... | manudwarf/sterogrid | karma.conf.js | JavaScript | apache-2.0 | 1,028 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
/**
* SAPUI5 base classes
*
* @namespace
* @name sap.ui.base
* @public
*/
// Provides class sap.ui.base.Object
sap.... | fconFGDCA/DetailCADA | resources/sap/ui/base/Object-dbg.js | JavaScript | apache-2.0 | 7,548 |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | danielromlein/dashboard | src/test/frontend/config/stateconfig_test.js | JavaScript | apache-2.0 | 1,519 |
// https://snazzymaps.com/style/25/blue-water
module.exports = [
{
featureType: 'administrative',
elementType: 'labels.text.fill',
stylers: [{ color: '#444444' }],
},
{ featureType: 'landscape', elementType: 'all', stylers: [{ color: '#f2f2f2' }] },
{ featureType: 'poi', elementType: 'all', stylers: [{ visibi... | appbaseio/reactivesearch | packages/maps/src/components/result/addons/styles/BlueWater.js | JavaScript | apache-2.0 | 824 |
// Copyright 2017 The TIE 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 appl... | BenjaminHolland/tie | client/domain/SnapshotObjectFactory.js | JavaScript | apache-2.0 | 1,970 |
/*!
* CBBL®
* ______________________________________________________________
* Architecture and Code Handcrafted by Prabhat Kumar.
* Architectuur en Code handgemaakt door Prabhat Kumar.
* @author : Prabhat Kumar [http://prabhatkumar.org/]
* @copyright : Sequømics Corporation [http://sequomics.com/]
* ________... | CB2L/CB2L.github.io | cbbl.config.js | JavaScript | apache-2.0 | 511 |
/**
* Copyright 2014 Shape Security, 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 a... | sethmcl/shift-scope-js | src/index.js | JavaScript | apache-2.0 | 1,072 |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --expose-wasm
load('test/mjsunit/wasm/wasm-constants.js');
load('test/mjsunit/wasm/wasm-module-builder.js');
let k1MiB = 1 * 1024 * 1024;
le... | fceller/arangodb | 3rdParty/V8/v7.1.302.28/test/mjsunit/wasm/empirical_max_memory.js | JavaScript | apache-2.0 | 2,541 |
/* jshint esversion: 6 */
/* jslint node: true */
'use strict';
const cose = require('../');
const test = require('ava');
const jsonfile = require('jsonfile');
const base64url = require('base64url');
const cbor = require('cbor');
const deepEqual = require('./util.js').deepEqual;
test('ecdsa-examples verify ecdsa-01',... | erdtman/cose-js | test/sign-tests.js | JavaScript | apache-2.0 | 18,336 |
/*
* Copyright 2019 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | reportportal/service-ui | app/src/components/inputs/inputCheckbox/index.js | JavaScript | apache-2.0 | 642 |
'use strict';
const nock = require('nock');
const watson = require('../../index');
const authHelper = require('./auth_helper.js');
const auth = authHelper.auth;
const describe = authHelper.describe; // this runs describe.skip if there is no auth.js file :)
const TWENTY_SECONDS = 20000;
const TWO_SECONDS = 2000;
descr... | JohnBorkowski/node-sdk | test/integration/test.language_translator.js | JavaScript | apache-2.0 | 1,335 |
import React from 'react'
import Paper from 'material-ui/Paper';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import Card from 'material-ui/Card';
import TextField from 'material-ui/TextField';
import Typography from 'material-ui/Typography'
import Api from '../../../data/api'
import {... | Minoli/carbon-apimgt | features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/Forum.js | JavaScript | apache-2.0 | 4,865 |
//var hostname = "emobile.no-ip.org:8081"
var hostname = "192.168.1.188:3000"
exports.singIn = function(username, password, callback) {
var credentials = '{"utf8":"✓", "authenticity_token":"fLDXlKyfXTlgnltRC3Ab23UQqGrGz/p/klJ9TZfW2r8=", "user":{"login": "' + username + '", "password": "' + password + '"}, "commit": "... | alexjabf/gestorum | Resources/lib/network.js | JavaScript | apache-2.0 | 9,600 |
/*
* Copyright (c) 2011-2016 Pivotal Software 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
*
* Unles... | reactor/reactor-pylon | src/main/app/components/metric/Metric.js | JavaScript | apache-2.0 | 877 |
/* @flow */
export default {
id: 'import-syntax',
title: 'Import Syntax',
description: `\`\`\`
import Menu, { MenuGroup } from 'mineral-ui/Menu';
\`\`\``
};
| mineral-ui/mineral-ui | src/website/app/demos/Menu/MenuGroup/examples/importSyntax.js | JavaScript | apache-2.0 | 163 |
(function(){
function AlbumCtrl(Fixtures, SongPlayer) {
this.albumData = Fixtures.getAlbum();
this.songPlayer = SongPlayer;
}
angular
.module('blocJams')
.controller('AlbumCtrl', ['Fixtures', 'SongPlayer', AlbumCtrl]);
})();
| goodsporning/bloc-jams-angular | app/scripts/controllers/AlbumCtrl.js | JavaScript | apache-2.0 | 270 |
(function() {
angular
.module("zenigmesApp")
.controller("resetCtrl", resetCtrl);
resetCtrl.$inject = ["$location", "$uibModal","$routeParams", "authentication"];
function resetCtrl($location, $uibModal, $routeParams, authentication) {
var vm = this;
vm.pageHeader = {
... | fdagosti/zenigmes | app_client/src/app/auth/reset/reset.controller.js | JavaScript | apache-2.0 | 1,554 |
'use strict';
// Benchmark comparing performance of event emit for single listener
// To run it, do following in memoizee package path:
//
// $ npm install eventemitter2 signals
// $ node benchmark/single-on.js
var forEach = require('es5-ext/lib/Object/for-each')
, pad = require('es5-ext/lib/String/prototype/pad')
... | DeinDesign/css | node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/node_modules/event-emitter/benchmark/single-on.js | JavaScript | apache-2.0 | 1,717 |
$(function() {
var resposta = $.ajax({
url:"http://localhost:8080/estados",
method: "GET",
dataType: "jsonp"//usado por estar em domínios diferentes
});
//A requisição Ajax pode demorar a retornar uma resposta
//com Promises é possível utilizar o método done() que executa
//assim que a requisição retornar u... | fabiokamaral/algaworks-JavaScript | 6 - JQuery/5 - Manipulando o DOM/manipulando_o_dom.js | JavaScript | apache-2.0 | 833 |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.declareModuleId('Blockly.test.helpers.toolboxDefinitions');
/**
* Get JSON for a toolbox that contains categories.
* @return {Blockly.utils.toolbox.ToolboxJson} The array holding information
* for a toolbox.
*/
export... | rachel-fenichel/blockly | tests/mocha/test_helpers/toolbox_definitions.js | JavaScript | apache-2.0 | 6,324 |
var Redirects = function () {
this.respondsWith = ['html', 'json', 'xml', 'js', 'txt'];
this.index = function (req, resp, params) {
var self = this;
geddy.model.Redirect.all(function(err, redirects) {
self.respondWith(redirects, {type:'Redirect'});
});
};
this.add = function (req, resp, par... | dscape/mailproxy | app/controllers/redirects.js | JavaScript | apache-2.0 | 2,476 |
/* @flow */
import { bool, node, number, oneOfType, string } from 'prop-types';
export const iconPropTypes = {
children: node,
color: string,
rtl: bool,
size: oneOfType([number, string]),
title: string
};
| mineral-ui/mineral-ui | src/library/Icon/propTypes.js | JavaScript | apache-2.0 | 216 |
/*!
* Bootstrap-select v1.6.4 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function ($) {
$.fn.selectpicker.defaults = {
noneSelectedText: 'Nu a fost selectat n... | qorio/maestro | clients/sing-angular/vendor/bootstrap-select/dist/js/i18n/defaults-ro_RO.js | JavaScript | apache-2.0 | 612 |
import React, { useState, useEffect } from "react";
import { HexGrid, Layout, Hexagon, Text, GridGenerator } from 'react-hexgrid';
import * as R from 'ramda';
import ProblemsByProject from 'components/ProblemsByProject';
import { LoadingPageNoHeader } from 'pages/_loading';
import { ErrorNoHeader } from 'pages/_error';... | amazeeio/lagoon | services/ui/src/components/Honeycomb/index.js | JavaScript | apache-2.0 | 10,678 |
// Задание 11
// Войти на главную страницу http://localhost/litecart
// Зарегистрировать нового пользователя
// Выйти - Logout
// Авторизоваться пользователем и выйти
var webdriver = require('selenium-webdriver');
var chrome = require('selenium-webdriver/chrome');
var By = webdriver.By;
var until = webdriver.until;
va... | tolmacheva/ST_project | LAB/Less6_Lab11.js | JavaScript | apache-2.0 | 3,414 |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... | HeH-Projects/team-agozzino | frontend/node_modules/rxjs/operators/timeout.js | JavaScript | apache-2.0 | 6,958 |
const fs = require('fs');
const path = require('path');
const { COPYFILE_EXCL } = fs.constants;
function isConflict(origStat, stat)
{
return stat != null && origStat != null && stat.mtimeMs != origStat.mtimeMs;
};
function saveFile(fileObject, data, origStat, overwrite, defEnc, reqId)
{
var retryCount = 0;
var bac... | jgraph/draw.io | src/main/webapp/electronFilesWorker.js | JavaScript | apache-2.0 | 2,829 |
var initialize = function ($scope, callback, splash) {
var self;
var constructor = function () {
self = this;
if ( splash != true ) {
$scope.$on('$stateChangeSuccess', function() {
//self.menuBtnWave();
self.menu();
//self.headerBtnW... | ericktatsui/Anime-Check | www/src/js/initialize.js | JavaScript | apache-2.0 | 6,169 |
define(function (require) {
"use strict";
var fixtures = require("fixtures");
var net = require("net");
QUnit.module("Unit test: net/http/header");
QUnit.test("Can parse HTTP request headers with line break '\\n'", function () {
// Arrange
var testData ... | oddbit/sonosjs | test/unit/net/http/header-tests.js | JavaScript | apache-2.0 | 4,570 |
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('resume');
this.route('wip');
});
export default Router; | vipul261/vipul261.github.io | app/router.js | JavaScript | apache-2.0 | 245 |
// .po file like language pack
plupload.addI18n({
'Select files' : 'Vyberte soubory',
'Add files to the upload queue and click the start button.' : 'Přidejte soubory do fronty a pak spusťte nahrávání.',
'Filename' : 'Název souboru',
'Status' : 'Status',
'Size' : 'Velikost',
'Add Files' : 'Přidat soubory',
... | cunhafernando/antoniofarias | afadmin/includes/plupload/i18n/cs.js | JavaScript | apache-2.0 | 590 |
export const template = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><script>//inject_title</script></title>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<script>/... | dongwenxiao/websage.cn | src/html.js | JavaScript | apache-2.0 | 2,223 |
var EPG = {
pressLeft : function() {
},
pressRight : function() {
},
pressUp : function() {
var element = document.getElementsByClassName("selected")[0];
var previousSiblingElement = element.previousElementSibling;
if (null != previousSiblingElement) {
classList(element).remove("selected");
classList(p... | dyzhxsl3897/goliveiptv | lobby/src/main/webapp/resources/js/mylib.js | JavaScript | apache-2.0 | 840 |
/**
* @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/fs/read-file-list/lib/delay.js | JavaScript | apache-2.0 | 1,066 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _assert = require('assert');
var _assert2 = _interopRequireDefault(_assert);
var _createShareButton = require('./utils/createShareButton'... | BigBoss424/portfolio | v7/development/node_modules/react-share/lib/InstapaperShareButton.js | JavaScript | apache-2.0 | 1,288 |
sap.ui.define([
"sap/ui/core/Control",
"sap/ui/core/HTML",
"sap/ui/core/ResizeHandler",
"sap/ui/dom/jquery/rect" // provides jQuery.fn.rect
], function(Control, HTML, ResizeHandler) {
"use strict";
return Control.extend("sap.ui.demo.toolpageapp.control.D3Chart", {
metadata: {
properties: {
type: {type:... | SAP/openui5 | src/sap.tnt/test/sap/tnt/demokit/toolpageapp/webapp/control/D3Chart.js | JavaScript | apache-2.0 | 1,905 |
/*
* Copyright 2015 Caleb Brose, Chris Fogerty, Rob Sheehy, Zach Taylor, Nick Miller
*
* 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... | lighthouse/harbor | app/js/deploy/appListModel.js | JavaScript | apache-2.0 | 1,724 |
import Controller from '@ember/controller';
import { A } from '@ember/array';
import { computed } from '@ember/object';
import { inject as service } from '@ember/service';
import DS from 'ember-data';
import loadAll from 'ember-osf/utils/load-relationship';
import config from 'ember-get-config';
import Analytics from '... | CenterForOpenScience/ember-preprints | app/controllers/content/index.js | JavaScript | apache-2.0 | 8,707 |
angular.module( 'qkstrt', [
'templates-app',
'templates-common',
'qkstrt.home',
'ui.router'
])
.config( function myAppConfig ( $stateProvider, $urlRouterProvider ) {
$urlRouterProvider.otherwise( '/home' );
})
.run( function run () {
})
.controller( 'AppCtrl', function AppCtrl ( $scope, $location ) {
$sc... | troylelandshields/qkstrt | front/src/app/app.js | JavaScript | apache-2.0 | 550 |
/**
* Visual Blocks Language
*
* Copyright 2012 Fred Lin.
* https://github.com/gasolin/BlocklyDuino
*
* 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/licen... | osdomotics/maier | www/generators/arduino/base.js | JavaScript | apache-2.0 | 11,087 |
{
graphitePort: 2003
, graphiteHost: "{{ inventory_hostname }}"
, port: 8125
, backends: [ "./backends/graphite" ]
, graphite: {
legacyNamespace: false
}
} | invokelabs/invokelabs-ansible-roles | stats/templates/localConfig.js | JavaScript | apache-2.0 | 160 |
'use strict';
var mongodb = require ('@onehilltech/blueprint-mongodb')
, StatPlugin = mongodb.plugins.StatPlugin
;
var schema = new mongodb.Schema ({
name: {type: String, required: true, trim: true},
location: {type: String, required: true, trim: true},
website: {type: String, required: true, ... | DannyPeck/hive-apiserver | app/models/Organization.js | JavaScript | apache-2.0 | 610 |
/**
* @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 required by a... | tensorflow/tfjs-tsne | examples/mnist_data/index.js | JavaScript | apache-2.0 | 34,521 |
require('chai').should();
var viewTestUtils = require('./utils/view-test-utils');
var test_date = new Date();
describe('Pie Sink View', function () {
var PieView = require('../../src/views/piechart');
describe('invalid params', function() {
it('unknown top level field', function() {
viewT... | juttle/juttle-viz | test/views/piechart.spec.js | JavaScript | apache-2.0 | 5,920 |
import React, {Component} from 'react';
class Signup extends Component {
handleSignup(e) {
e.preventDefault();
if ($('#user').val() === '' || $('#pass').val() === '' || $('#pass2').val() === '') {
handleError('Please fill out all fields.');
return false;
}
if ($('#pass').val() !== $('#... | li-cai/folio2 | client/login/Signup.js | JavaScript | apache-2.0 | 1,555 |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Ti.UI.setBackgroundColor('#000');
Ti.UI.iPhone.statusBarStyle = Ti.UI.iPhone.StatusBar.OPAQUE_BLACK;
//Create main app namespace
var demo={};
//Create a few helpers
demo.myHelpers = {
isAndroid : function(){
return (T... | benbahrenburg/TiColorPickerExample | Resources/app.js | JavaScript | apache-2.0 | 1,598 |
Clazz.declarePackage ("J.util");
c$ = Clazz.decorateAsClass (function () {
this.entryCount = 0;
this.entries = null;
Clazz.instantialize (this, arguments);
}, J.util, "Int2IntHash");
Clazz.makeConstructor (c$,
function (initialCapacity) {
this.entries = new Array (initialCapacity);
}, "~N");
$_M(c$, "get", ... | DeepLit/WHG | root/static/js/jsmol/j2s/J/util/Int2IntHash.js | JavaScript | apache-2.0 | 1,785 |
var dir_868198085b236c6136218653797759d1 =
[
[ "ComponentConfigCommand.java", "ComponentConfigCommand_8java.html", [
[ "ComponentConfigCommand", "classorg_1_1onosproject_1_1cli_1_1cfg_1_1ComponentConfigCommand.html", "classorg_1_1onosproject_1_1cli_1_1cfg_1_1ComponentConfigCommand" ]
] ],
[ "Component... | onosfw/apis | onos/apis/dir_868198085b236c6136218653797759d1.js | JavaScript | apache-2.0 | 1,817 |
module.exports = function(w)
{
var global = require('ui/common/globals');
w.barImage='images/iPhone_Nav_Bar_Bkgrd_With_Black.png';
// This is where I am going put the with all the results.
var overview = Ti.UI.createView({
width: Ti.UI.FILL,
height: Ti.UI.SIZE,
layout: 'vertical',
top: 0
});
// Crea... | GladiusMattius/WineApp | Resources/ui/common/settings.js | JavaScript | apache-2.0 | 1,543 |
jQuery(document).ready(function($) {
$('#addmoreitem').click(function() {
var lastid = $('.uploadevent').last().attr('id');
for(var i = 1; i < 5; i++){
var addId = Number(lastid)+Number(i);
var addHtml = '<div class="panel-group" id="accordion"><div class="panel panel-default"><div class="panel-heading"><div... | HeraldStudio/herald_vote | Public/Js/herald-vote.js | JavaScript | apache-2.0 | 3,032 |
export default function reducer(google = {}, action) {
switch (action.type) {
case 'GOOGLE_SET':
return { ...google, ...action.data };
default:
return google;
}
}
| jaedb/Iris | src/js/services/google/reducer.js | JavaScript | apache-2.0 | 195 |
// Copyright 2016 The HongJiang Library Project Authors. All right reserved.
// Use of this source code is governed by a Apache-style
// license that can be found in the LICENSE file.
//
// Administrator服務之簡體中文語言包
//
// @authors hjboss <hongjiangproject@gmail.com> 2016-07-05 13:45:04 CST $$
// @version 0.1.0
module.exp... | hongjiangboss/collavis.com.cn | administrator/locales/zh.js | JavaScript | apache-2.0 | 1,245 |
var config = {
defaultPort: process.env.WEB_PORT || 3000,
defaultLogLength: process.env.LOGLENGTH || 64,
defaultLogLines: process.env.LOGLINES || 10,
defaultSpacer: process.env.SPACER || ' | ',
defaultIdentifier: process.env.IDENTIFIER || '',
defaultLineCount: process.env.LINECOUNT || 1,
defaultLineDated... | bryanlatten/docker-log-gen | lib/config.js | JavaScript | apache-2.0 | 430 |
var searchData=
[
['ratecomment',['rateComment',['../namespace_meanco_app_1_1views_1_1_api_comment.html#a3126e77b21099a4dd4dea0c7d5370b50',1,'MeancoApp::views::ApiComment']]],
['raterelation',['rateRelation',['../namespace_meanco_app_1_1views_1_1_api_relation.html#a024057c446726ba7e55cba45c6ce116c',1,'MeancoApp::vi... | bounswe/bounswe2016group12 | docs/html/search/functions_6.js | JavaScript | apache-2.0 | 512 |
/**
* angularjs-jspm-seed
* Created by kdavin on 19/11/2015.
*/
import {Service, Module} from '../../decorators';
@Module({
name : "app.common.services"
})
@Service("CustomLogService")
class CustomLogService {
constructor ($log) {
"ngInject";
this.$log = $log;
}
print(message = "Hello World !!") {... | davinkevin/angularjs-jspm-seed | public/app/common/service/customLogService.js | JavaScript | apache-2.0 | 390 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | dist/datasets-emoji/test/test.emoji_code_picto.js | JavaScript | apache-2.0 | 1,579 |
function MouseTimer(){
timers = {};
listenersWait = {};
function init(){
setMouseMoveHandler();
}
function setMouseMoveHandler(){
$(document).mousemove(function(event) {
for (var time in timers){
var timer = timers[time];
clearTimeout(ti... | werneckpaiva/retrato-js | src/mouse-timer.js | JavaScript | apache-2.0 | 1,444 |
import tests from "../../support/accessibility/a11y-utils";
tests(0, 150);
| Sage/carbon | cypress/integration/accessibility/a11y-first-part.test.js | JavaScript | apache-2.0 | 76 |
'use strict';
const common = require('../common');
const assert = require('assert');
const cluster = require('cluster');
const net = require('net');
if (cluster.isMaster) {
cluster.fork().on('message', function(msg) {
if (msg === 'done') this.kill();
});
} else {
const server = net.createServer(common.fail)... | dreamllq/node | test/parallel/test-cluster-rr-ref.js | JavaScript | apache-2.0 | 476 |
/**
* Copyright 2020 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... | google-pay/save-to-google-pay-button | examples/html/example.js | JavaScript | apache-2.0 | 1,199 |
function loadNavBar() {'use strict';
var navBarView = Ti.UI.createView({
backgroundImage : '/assets/navBar/backgroundGrey.png',
backgroundColor : '#ffffff',
height : '44dp',
width : '100%',
top : 0
});
// The title
var navBarTitle = Ti.... | andi2/02_singleWindow | Resources/ui/customWidgets/navigationBar.js | JavaScript | apache-2.0 | 3,563 |
/*!
* jQuery UI 1.8.1
*
* Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
jQuery.ui||function(c){c.ui={version:"1.8.1",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d)... | aeolusproject/conductor | src/vendor/assets/javascripts/jquery.ui-1.8.1/jquery-ui-1.8.1.custom.min.js | JavaScript | apache-2.0 | 31,425 |
sap.ui.define(['sap/ui/core/UIComponent'],
function(UIComponent) {
"use strict";
var Component = UIComponent.extend("sap.m.sample.ListDeletion.Component", {
metadata : {
manifest: "json"
}
});
return Component;
});
| SAP/openui5 | src/sap.m/test/sap/m/demokit/sample/ListDeletion/Component.js | JavaScript | apache-2.0 | 232 |
/**
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | gamebytes/blk-game | src/blk/sim/inventory.js | JavaScript | apache-2.0 | 5,067 |
/**
* Users collection.
* Initializes Users collection and provides methods
* for accessing the collection.
* */
users = "Users";
Users = new Mongo.Collection(users);
/**
* Schema for Users
*/
Users.attachSchema(new SimpleSchema({
userName:{
label: "Username",
type: String,
optional: false,
... | CutieOranges/FarmersMarket | app/lib/collections/Users.js | JavaScript | apache-2.0 | 942 |
if (typeof PATH_TO_THE_REPO_PATH_UTILS_FILE === 'undefined') {
PATH_TO_THE_REPO_PATH_UTILS_FILE = "https://raw.githubusercontent.com/highfidelity/hifi_tests/master/tests/utils/branchUtils.js";
Script.include(PATH_TO_THE_REPO_PATH_UTILS_FILE);
nitpick = createNitpick(Script.resolvePath("."));
}
nitpick.... | highfidelity/hifi_tests | tests/content/entity/image/keepAspectRatio/test.js | JavaScript | apache-2.0 | 2,006 |
/*jshint expr: true*/
describe('selectBy', function() {
before(h.setup());
describe('VisibleText', function() {
it('should find element without special conditions', function() {
return this.client.selectByVisibleText('#selectTest', 'seis').getValue('#selectTest').then(function (va... | CoderHam/WebScraper | node_modules/webdriverio/test/spec/selectBy.js | JavaScript | apache-2.0 | 4,906 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 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/regexp/native-function/lib/main.js | JavaScript | apache-2.0 | 1,677 |
/**
* @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/assert/is-positive-integer/examples/index.js | JavaScript | apache-2.0 | 951 |
var http = require('http');
if (null == process.env.WORKER_ID)
throw new Error("env.WORKER_ID not set!");
var s = http.createServer(function(req, res) {
var params = req.url.split('/').slice(1);
setTimeout(function() {
res.writeHead(200);
res.end("hello world\n");
}, params[0] || 1);... | badave/doublevision | node_modules/recluster/test/lib/server-disconnect-halfsec.js | JavaScript | apache-2.0 | 555 |