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 binarySearch(sortedContestsList, id){
var start = 0, end = sortedContestsList.length-1, mid;
while(start<end){
mid = start+((end-start+1)>>1);
if(sortedContestsList[mid].id == id) return mid;
else if(sortedContestsList[mid].id < id) start = mid;
else end = mid - 1;
}
return start;
}
function get... | mahmoudmohsen213/codeforces-assistant | src/intent-handlers/getrandomproblem.js | JavaScript | lgpl-3.0 | 2,489 |
// Suppose you have an array of plain Javascript hashes,
// representing sales of certain products in certain regions
var chartData = [
{region: "West", product: "Cars", sales: 37},
{region: "North", product: "Cars", sales: 29},
{region: "East", product: "Cars", sales: 80},
{region: "South", product:... | kylemwhite/isc | isomorphic_11.1p/system/reference/inlineExamples/charts/simpleChart.js | JavaScript | lgpl-3.0 | 2,378 |
PluginRegistry.add('route', {
'stateName': 'view1',
'url': '/view1',
'component': 'view1',
'module': 'sandbox/components/dialog/views'
}); | SirmaITT/conservation-space-1.7.0 | docker/sep-ui/sandbox/components/dialog/plugin.js | JavaScript | lgpl-3.0 | 146 |
import Item from './Item.js';
/**
* Item object with referenced items and properties
*/
export default class RelItem extends Item {
/**
* Initializes the object
*
* @param {object} data JSON:API document with id, type, attributes and relationships
* @param {object} included Nested map of type/id/data e.g.... | aimeos/ai-client-jsonapi | jsapi/src/RelItem.js | JavaScript | lgpl-3.0 | 3,151 |
mipOverlapWorker = function() {
var mipOverlapWorker = {},
nodeWidth = 24,
nodePadding = 30,
size = [1, 1],
nodes = [],
links = [];
mipOverlapWorker.nodeWidth = function(_) {
if (!arguments.length) return nodeWidth;
nodeWidth = +_;
return mipOverlapWorker;
};
mipOverl... | nickjhathaway/htmlExperiments | mipOverlap/d3_ver4/mipOverlap.js | JavaScript | lgpl-3.0 | 11,915 |
var class_catharsis_1_1_domain_1_1_audio_1_1_schema =
[
[ "ColumnCommentBitrate", "class_catharsis_1_1_domain_1_1_audio_1_1_schema.html#ae282673125aac4ecc7d9113411346363", null ],
[ "ColumnCommentFile", "class_catharsis_1_1_domain_1_1_audio_1_1_schema.html#a7585953255a27169775fac4335f68d1c", null ],
[ "Colu... | prokhor-ozornin/Catharsis.NET.Domain | doc/html/class_catharsis_1_1_domain_1_1_audio_1_1_schema.js | JavaScript | lgpl-3.0 | 1,037 |
// Copyright 2014 YDN Authors. All Rights Reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ... | yathit/crm | src/ydn/social/profile.js | JavaScript | lgpl-3.0 | 3,388 |
'use strict';
const app = require('express')();
const mobileApp = require('azure-mobile-apps')();
mobileApp.tables.add('TodoItem');
app.set('port', process.env.port || 3000);
app.use(mobileApp);
app.listen(app.get('port'), () => {
console.log('Application listening on port %d', app.get('port'));
});
| peterblazejewicz/azure-nodejs-examples | src/azure-mobile-apps-sample/server.js | JavaScript | unlicense | 306 |
import { getAllItems, getAllModels, getAllStudents } from '../../lib/api-client';
import { Dispatcher } from 'consus-core/flux';
export default class CurrentlyCheckedOutReportPageController {
static getAllItems() {
return Promise.all([getAllItems(), getAllModels(), getAllStudents()]).then(results => {
... | TheFourFifths/consus-client | src/controllers/reports/currently-checked-out.js | JavaScript | unlicense | 538 |
// Generated by CoffeeScript 1.6.3
(function() {
var Backbone, BasePlugin, CSON, Collection, DocPad, DocumentModel, ElementsCollection, EventEmitterGrouped, Events, FileModel, FilesCollection, MetaCollection, Model, PluginLoader, QueryCollection, ScriptsCollection, StylesCollection, TaskGroup, View, ambi, balUtil, co... | c0d3/darrin.github.io | c0d3mac.io/node_modules/docpad/out/lib/docpad.js | JavaScript | unlicense | 142,248 |
cordova.define("cordova-plugin-ace.PathGeometry", function(require, exports, module) { //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root fo... | Universav/UniversavPoke | cordova/platforms/android/platform_www/plugins/cordova-plugin-ace/www/framework/PathGeometry.js | JavaScript | unlicense | 1,160 |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const isNodeLike_1 = __importDefault(require("./isNodeLike"));
function default_1(kind) {
if (isNode... | diegopacheco/scala-playground | caliban-graphql-fun/src/main/resources/gateway/node_modules/apollo-server-core/dist/utils/createSHA.js | JavaScript | unlicense | 506 |
module.exports = Object.assign({
DB_NAME: 'meetingbooker.db',
});
| maxknu/meetingbooker | server/Config.js | JavaScript | unlicense | 68 |
'use strict';
const babel = require('rollup-plugin-babel');
const nodeResolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const uglify = require('rollup-plugin-uglify');
// Necessary for certain global includes, like Bootstrap/Tether
const requireFix = function () {
... | newabbenay/newabbenay.github.io | rollup.config.js | JavaScript | unlicense | 664 |
/**
* @license
* Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... | gaarf/polydux | sw-precache-config.js | JavaScript | unlicense | 696 |
var fs = require('fs')
, acorn = require('acorn')
, escodegen = require('escodegen')
, estraverse = require('estraverse')
;
var dispatcherJs = fs.readFileSync(require('path').join(__dirname, 'dispatcher.js'), {encoding: 'utf8'});
var makeTry = function(body) {
return {
type: 'TryStatement',
guardedH... | shz/catcher-in-the-try | lib/citt.js | JavaScript | unlicense | 2,491 |
import React, {Component} from 'react';
import RNDrawer from 'react-native-drawer';
export default class Drawer extends Component{
constructor(props){
super(props);
}
render(){
return(
<RNDrawer ref={(drawer)=>this._root = drawer} {...this.props} />
);
}
}
Drawer.defaultProps = {
type: "ov... | MisterZhouZhou/ReactNativeLearing | NativeBaseDemo/src/basic/Drawer/index.js | JavaScript | apache-2.0 | 736 |
var app = require('../app')
var abi = require('./etherex.json')
var Web3 = require('web3')
var assert = require('chai').assert
var yeth = app.yeth
beforeEach(function() {
//do something before testing
});
afterEach(function() {
//do something after testing
});
function padLeft(string, chars, sign) {
retur... | y12studio/y12js | y12ji/yeth/test/testSc.js | JavaScript | apache-2.0 | 2,217 |
var classorg_1_1onlab_1_1packet_1_1RADIUS =
[
[ "RADIUS", "classorg_1_1onlab_1_1packet_1_1RADIUS.html#a707a38ffda4cdd5d0c18a32f0d3f282e", null ],
[ "RADIUS", "classorg_1_1onlab_1_1packet_1_1RADIUS.html#ab6753347392fcc4dfe913fe9b1a4b7c1", null ],
[ "addMessageAuthenticator", "classorg_1_1onlab_1_1packet_1_1R... | onosfw/apis | onos/apis/classorg_1_1onlab_1_1packet_1_1RADIUS.js | JavaScript | apache-2.0 | 2,810 |
'use strict';
module.exports = function (grunt) {
grunt.config(
'jsdoc', {
dist : {
src: ['app/js/**/*.js'],
options: {
destination: 'doc'
}
}
});
};
| spolnik/javascript-workspace | grunt/TodoApp/tasks/jsdoc.js | JavaScript | apache-2.0 | 193 |
(function (enyo, scope) {
/**
* Enyo supports a set of normalized events that work similarly across all supported platforms.
* These events are provided so that users can write a single set of event handlers for
* applications that run on both mobile and desktop platforms. They are needed because desktop
* and mo... | KyleMaas/org.webosports.app.maps | enyo/source/dom/gesture.js | JavaScript | apache-2.0 | 11,083 |
/**
* Created by plter on 6/15/16.
*/
(function () {
function init() {
var h = Human("ucai");
h.sayHello();
var s = Student("ZhangSan");
s.sayHello();
s.learn();
}
init();
}()); | plter/HTML5Course20160612 | 20160615/oo/oo1/oo1.js | JavaScript | apache-2.0 | 249 |
/* eslint-disable */
angular.module('MeteringViewModule', ['ResourceProviderService', 'MessageBoxService'])
.controller('MeteringViewController', ['$translatePartialLoader', '$translate', 'trans',
'ResourceProviderFactory', '$scope', '$uibModal', '$stateParams', '$location', 'MessageBox', '$rootScope',
functi... | cloudfoundry-incubator/cf-abacus | lib/cf/dashboard/src/webapp/components/metering/MeteringViewModule.js | JavaScript | apache-2.0 | 6,584 |
/**
* Swarm algorithm.
*
* @class Swarm
* @constructor
**/
ENCOG.Swarm = function () {
'use strict';
};
ENCOG.Swarm.prototype = {
/**
* The name of this object.
* @property NAME
* @type String
* @final
*/
NAME : 'Swarm',
/**
* An array of agents.
* @property ag... | Thimira/encog-node | lib/algoritms/swarm.js | JavaScript | apache-2.0 | 4,153 |
var test_ovn_8c =
[
[ "tree_shape", "structtree__shape.html", "structtree__shape" ],
[ "test_rule", "structtest__rule.html", "structtest__rule" ],
[ "OP_CONVERT", "test-ovn_8c.html#aa7477aaaec7caec07471eb609c556f5fa6ccc94d237d0221110370a798163f7c9", null ],
[ "OP_SIMPLIFY", "test-ovn_8c.html#aa7477aaaec... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/test-ovn_8c.js | JavaScript | apache-2.0 | 4,412 |
/**
* Copyright (c) 2014 Intel 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 law or ... | enableiot/iotanalytics-dashboard | public-interface/iot-entities/postgresql/models/userInteractionTokens.js | JavaScript | apache-2.0 | 1,388 |
define('rhinautheros.jquery', ['rhinautheros', 'jQuery'], function(rhino, $) {
// function signedXHR(options, originalOptions, jqXHR) {
// return {
// send: function(headers, completeCallback) {
// [> completeCallback(status, statusText, responses, headers); <]
// },... | hallettj/rhinautheros | src/rhinautheros.jquery.js | JavaScript | apache-2.0 | 744 |
export default function store () {
const domProxy = (el) => {
return new Proxy({}, {
get: (target, prop) => {
if (el && el.dataset && el.dataset[prop])
return el.dataset[prop]
var el2 = document.getElementById(el.id + "." + prop);
if (el2) {
return el2.value;
... | xunilrj/sandbox | sources/games/html5/App.js | JavaScript | apache-2.0 | 4,087 |
//>>built
define("dojox/widget/nls/nb/ColorPicker",{redLabel:"r",greenLabel:"g",blueLabel:"b",hueLabel:"h",saturationLabel:"s",valueLabel:"v",degLabel:"\u00b0",hexLabel:"hex",huePickerTitle:"Nyansevelger",saturationPickerTitle:"Metningsvelger"});
//# sourceMappingURL=ColorPicker.js.map | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/widget/nls/nb/ColorPicker.js | JavaScript | apache-2.0 | 286 |
(function(w,d,s,g,js,fs){
if (w.gapi) {return;} //Prevent duplicate load of the GAPI
g=w.gapi={};g.analytics={q:[],ready:function(f){this.q.push(f);}};
js=d.createElement(s);fs=d.getElementsByTagName(s)[0];
js.src='https://apis.google.com/js/platform.js';
fs.parentNode.insertBefore(js,fs);js.onload=... | enonic/app-google-analytics | src/main/resources/assets/js/embed-api.js | JavaScript | apache-2.0 | 384 |
/*
* Copyright (C) 2013 salesforce.com, 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 ... | navyliu/aura | aura-components/src/main/components/ui/datePickerGrid/datePickerGridHelper.js | JavaScript | apache-2.0 | 16,542 |
import React from 'react';
const Course = props => (
<li className="course media group">
<img className="course-img" src={props.img} />
<div>
<h3>{props.title}</h3>
<p>{props.desc}</p>
</div>
</li>
);
export default Course; | olliecee/React-Projects | React Router/src/components/courses/Course.js | JavaScript | apache-2.0 | 253 |
const MOVIE_URL_PREFIX = 'www.nicovideo.jp/watch/';
const PLAYER_NAME = 'external_nicoplayer';
const URL_ANCHOR = '#playerContainerWrapper';
const FAILED_MESSAGE = '次の動画が見つかりませんでした。';
var interval;
var isScrolled = false;
function findLastSymbolIndex(str) {
var index = str.lastIndexOf('次');
if (index ===... | semnil/nico_next | nn_main.js | JavaScript | apache-2.0 | 5,843 |
define({
root:({
currentLayer: "Current Layer",
stretchParameters: "Stretch Parameters",
r: "R",
g: "G",
b: "B",
stretchType: "Stretch Type",
minmax: "Minimum and Maximum",
standardDeviation: "Standard Deviation",
percentClip: "Percent Clip",
dra: "DRA",
dynamicRangeAdjustment: "Dynamic Rang... | Esri/WAB-Image-Services-Widgets | imagery_widgets/ISRenderer/nls/strings.js | JavaScript | apache-2.0 | 770 |
// Auto-generated. Do not edit!
// (in-package robot_arm_aansturing.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
cons... | nvg-ict/robot_simulation | application/devel/share/gennodejs/ros/robot_arm_aansturing/srv/command.js | JavaScript | apache-2.0 | 4,706 |
/**
* @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/assert/is-whitespace/lib/index.js | JavaScript | apache-2.0 | 1,096 |
import { observable, runInAction } from 'mobx';
import getIndicatorReport from './ipttIndicatorReport';
import { TIME_AWARE_FREQUENCIES, IRREGULAR_FREQUENCIES } from '../../../constants';
import api from '../../../apiv2';
export default (
reportJSON = {}
) => {
const LOADING = 1;
const LOADED = 2;
... | mercycorps/TolaActivity | js/pages/iptt_report/models/reportStore.js | JavaScript | apache-2.0 | 2,671 |
/**
*
* hbUi.geo module provides GIS JS client functionalities relying on hb-geo-api microservice.
*
* Intended for module dependencies, config, run definitions.
* Constants, controllers, factories, filters should be package to their own hbGeoXXX.js
* depending on their increasing complexity, verbosity, thi... | bsisa/hbUi.geo | src/main/js/hbGeoModule.js | JavaScript | apache-2.0 | 1,549 |
var a00443 =
[
[ "CROSS", "a00443.html#aec4dedcf89534ed10f6107bf9c6418f3", null ],
[ "LENGTH", "a00443.html#ad0e13d94164219be2d5bbd4d65e71d1e", null ],
[ "point_diff", "a00443.html#adc5b1f2b1c3f7afb5b0b035449f5e2ec", null ],
[ "SCALAR", "a00443.html#aa9c4c0cbfeda43da7c0c28c7a8e836ed", null ],
[ "dir... | stweil/tesseract-ocr.github.io | 4.00.00dev/a00443.js | JavaScript | apache-2.0 | 387 |
/* A suite of tests for the ExpertAdministrationViewModel AMD.
* Copyright (c) 2014 University of Oxford
*/
define([
"app/admin/ExpertAdministrationViewModel",
"shared/app/BaseTableViewModel",
"shared/app/BaseFormViewModel",
"squire",
"underscore"
], function (DiseaseGroupAdministrationViewModel, ... | SEEG-Oxford/ABRAID-MP | src/PublicSite/web/js/app/spec/admin/ExpertAdministrationViewModelSpec.js | JavaScript | apache-2.0 | 12,707 |
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | apigee/cloud-foundry-apigee | apigee-cf-service-broker/test/helpers/api_mocks.js | JavaScript | apache-2.0 | 3,668 |
/**
* Highcharts ExtJS adapter
* @author Daniel Kloosterman
* @email buz.i286@gmail.com
* @version 0.4
* @examples {@link http://www.senchasugar.com/examples/}
*
* @requires HighChart 2.0.5 {@link http://www.highcharts.com}
*
* HighchartsAdapter
* Updated for Highcharts release 2.0.5
*/
HighchartsAdapter = {
eac... | KITSABHIJIT/Ihalkhata-Web-App | SplitForUs/WebContent/com_exp_cemk_extjs_js/graph/adapter-extjs.js | JavaScript | apache-2.0 | 7,919 |
// Loggger Component Constructor
// usage:
// var lib = require('lib');
// lib.Log.setLogDir('./');
// lib.Log.info('hoge');
// lib.Log.debug('fuga');
var this_ = null;
module.exports = (function(global){
// 既にインスタンスが生成済みの場合は保持している値を返す
// 基本、require()はキャッシュするのでここは通らない
if (this_) {
return this_;
}
var lib... | sharkpp/Tumbdash | Resources/lib/Log.js | JavaScript | apache-2.0 | 2,879 |
;(function(){
/**
* Created with JetBrains PhpStorm.
* User: Karl
* Date: 2013-10-08
* Time: 10:59 AM
* To change this template use File | Settings | File Templates.
*/
App.MenuItems = Backbone.Model.extend({
defaults: {
"logo": "",
"icon": ""
}
});
App.getDynamicModelUrl = function(v... | ktietz/playabb | www/js/models.js | JavaScript | apache-2.0 | 2,636 |
/**
* Example User Agents and their expected bowser objects.
* Most of them where found at http://www.useragentstring.com/
*
* @see test/test.js
* @author hannes.diercks@jimdo.com
*/
module.exports.useragents = {
Chrome: {
'Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPR6.170623.013) AppleWebKit/537.... | decal/werdlists | http-agents/user-agents-objects.js | JavaScript | apache-2.0 | 48,122 |
/**
* Visual Blocks Editor
*
* Copyright 2011 Google Inc.
* http://blockly.googlecode.com/
*
* 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/LICEN... | tjpalmer/blockly | core/connection.js | JavaScript | apache-2.0 | 25,939 |
sap.ui.define(['sap/ui/core/UIComponent'],
function(UIComponent) {
"use strict";
var Component = UIComponent.extend("sap.m.sample.ListToolbar.Component", {
metadata : {
manifest: "json"
}
});
return Component;
});
| SAP/openui5 | src/sap.m/test/sap/m/demokit/sample/ListToolbar/Component.js | JavaScript | apache-2.0 | 230 |
// 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 in ... | googleapis/nodejs-media-translation | webpack.config.js | JavaScript | apache-2.0 | 1,626 |
/// kenway - 2017 ///////////////////////////////////////
// Inspired by the code of mthh /////////////////////////
// (VisualCinnamon.com) and modified for d3 v4 //////////
/////////////////////////////////////////////////////////
const max = Math.max;
const sin = Math.sin;
const cos = Math.cos;
const HALF_PI = Math... | cwkenwaysun/TEDmap | js/radarChart.js | JavaScript | apache-2.0 | 14,063 |
/**
* @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/datasets/spam-assassin/test/test.browser.js | JavaScript | apache-2.0 | 1,582 |
module.exports = {
'*': {
description: 'Root privilege can do anything in the system.'
},
'user': {
description: 'Ability to edit or delete own user information.',
},
'user:admin': {
description: 'Ability to edit or delete any user.',
},
'application': {
description: 'Ability to create, ed... | arthurmilliken/gateway | models/scopes.js | JavaScript | apache-2.0 | 913 |
/*
Copyright 2017 Aleksandar Jankovic
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, so... | stanislavb/roleHaven | test/rest/schemas/gameItems.js | JavaScript | apache-2.0 | 1,550 |
function create()
{
var tOperation = {
story:1,
storyLanguage:2
};
var tPage = {
frontCover:1,
page:2,
backCover:3
};
var mBookId = null;
var mLanguageId = null;
var mStory = null;
var mStoryLanguage = null;
var mCurrentPieceStory = 0;
... | pyromobile/nubomedia-ouatclient-src | qt5/LiveTales/qml/Book.js | JavaScript | apache-2.0 | 5,027 |
var structtnl__ptk__info =
[
[ "flags", "structtnl__ptk__info.html#ace5a0170111f2d302e1cc4ed93d6ecad", null ],
[ "key", "structtnl__ptk__info.html#a6c32868baa4f56abb6c81edde446a567", null ],
[ "proto", "structtnl__ptk__info.html#ac4f408097c387edf64653942d355985f", null ],
[ "seq", "structtnl__ptk__info.... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structtnl__ptk__info.js | JavaScript | apache-2.0 | 370 |
// 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-dialogflow-cx | samples/generated/v3beta1/session_entity_types.get_session_entity_type.js | JavaScript | apache-2.0 | 2,160 |
/**
* Created by yyuue on 2017/5/26.
*/
var btn = document.getElementById("btn").addEventListener("click",post);
var comment = document.getElementById("comment");
var content = "";
var loadedTime = moment().format('YYYYMMDDhmmss');
var time = "";
var relativeTime = "";
function post() {
var ele = document.getElem... | yyuueexxiinngg/ITE220 | FinalExam1/js/social.js | JavaScript | apache-2.0 | 634 |
$(document).ready(function(){
// ZeroClipboard.setMoviePath( 'js/vendor/ZeroClipboard.swf' );
var clip = new ZeroClipboard($("#my-button"));;
clip.setText( $("#link-text").val());
clip.on( 'load', function ( client, args ) {
alert( "movie has loaded" );
});
clip.on('mouseDown',... | raulastu/messige | php/js/main.js | JavaScript | apache-2.0 | 746 |
/**
* 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 appli... | pcostell/gcloud-node | system-test/pubsub.js | JavaScript | apache-2.0 | 11,048 |
'use strict';
$(function() {
var $alertViewBackdrop = $('<div class="alert-view-backdrop"/>');
$(document.body).append($alertViewBackdrop);
/**
Shows the AlertView modal.
@param {Object} Optional properties: title, message, buttons, and callback.
*/
window.AlertView = {
show: function(setting... | entropillc/AlertView.js | alertview.js | JavaScript | apache-2.0 | 1,567 |
function __sna(swfId) {
var swf = document.getElementById(swfId);
// init
(function() {
var script = document.createElement("script");
script.src = "//vk.com/js/api/xd_connection.js?2";
document.getElementsByTagName('head')[0].appendChild(script);
function init() {
if (!!window.VK) {
VK.init(functi... | shypl/sna | flash/src/main/js/vk.js | JavaScript | apache-2.0 | 1,635 |
'use strict';
var extend = require('../../util/object').extend;
function factory (type, config, load, typed) {
var matrix = load(require('../../type/matrix/function/matrix'));
var addScalar = load(require('./addScalar'));
var algorithm01 = load(require('../../type/matrix/util/algorithm01'));
var algorithm... | mikberg/mathjs | lib/function/arithmetic/add.js | JavaScript | apache-2.0 | 3,991 |
/*
* Copyright 2016 Austin Lehman
*
* 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... | ic9/ic9 | tests/ut_xml.js | JavaScript | apache-2.0 | 2,446 |
/*
jQuery Tags Input Plugin 1.3.3
Copyright (c) 2011 XOXCO, Inc
Documentation for this plugin lives here:
http://xoxco.com/clickable/jquery-tags-input
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
ben@xoxco.com
*/
(function ($) {
var delimiter = new Array();
va... | shijunLee/myblog | src/MyBlog.Web/wwwroot/js/jquery.tagsinput.js | JavaScript | apache-2.0 | 14,000 |
var g_bSubmitting;
var g_updates = 0;
var focusOnClose;
$(function()
{
// FIXME: these are english strings...
$(document).ajaxError(function(event, response, settings, exception)
{
$('BODY').removeClass("waitcursor");
if (response)
{
var mimetype = response.getResponseHeader("content-type") || "";
i... | equella/Equella | Source/Plugins/Core/com.equella.core/resources/web/js/ajaxhelper.js | JavaScript | apache-2.0 | 11,828 |
angular.module('hybridapp.services', [])
.constant('appConfig', {
manifestFileName: 'pge-content-packages.json',
basePath: 'content/mobileapps/hybrid-reference-app'
})
.factory('appManifest', ['appConfig', function (appConfig) {
var appManifestData = null;
var readAndCach... | Adobe-Marketing-Cloud-Apps/aem-mobile-hybrid-reference | hybrid-app/www/js/services.js | JavaScript | apache-2.0 | 3,088 |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import request from 'superagent';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
function getUrl(path) {
if (path.startsWith('http') || canUseDOM) {
return path;
}
return process.env.WEBSITE_HOSTNAME ?
`http://${proces... | d3sw/conductor | ui/src/core/HttpClient.js | JavaScript | apache-2.0 | 2,672 |
var CATEGORY_HIERARCHY_MAX_NAME_LENGTH = 200;
(function(exports) {
// Validates a category hierarchy. The category hierarchy should be formatted as follows:
// ["test", "test/test", "test/test/test", "test/test2", "test/test2/test3" ... ]
exports.validateCategoryHierarchy = function(arr, done) {
// A lot of ... | Michael-Stewart-Webdev/annotation-tool | public/javascripts/shared/hierarchy_validator.js | JavaScript | apache-2.0 | 2,874 |
(function() { var a=this,b=function(k,g){var e=k.split("."),d=a;e[0]in d||!d.execScript||d.execScript("var "+e[0]);for(var f;e.length&&(f=e.shift());)e.length||void 0===g?d=d[f]?d[f]:d[f]={}:d[f]=g};var c;
c={s:["M\u00d6","MS"],r:["Milattan \u00d6nce","Milattan Sonra"],w:"O\u015eMNMHTAEEKA".split(""),H:"O\u015eMNMHTAEE... | blandman/PSDChromeImage | config/includes.chroot/etc/skel/.config/chromium/Default/Extensions/nmmhkkegccagdldgiimedpiccmgmieda/0.0.4.11_0/i18n/symbols_tr.js | JavaScript | apache-2.0 | 3,455 |
a = db.getSisterDB( "copydb2-test-a" );
b = db.getSisterDB( "copydb2-test-b" );
a.dropDatabase();
b.dropDatabase();
a.foo.save( { a : 1 } );
a.addUser( "chevy" , "chase" );
assert.eq( 1 , a.foo.count() , "A" );
assert.eq( 0 , b.foo.count() , "B" );
// SERVER-727
a.copyDatabase( a._name , b._name, "" , "chevy" , "c... | WhiteBearSolutions/WBSAirback | packages/wbsairback-mongodb/wbsairback-mongodb-1.4.4/jstests/copydb2.js | JavaScript | apache-2.0 | 405 |
/**
* @license
* 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 ... | picklesrus/blockly | demos/custom-fields/turtle/blocks.js | JavaScript | apache-2.0 | 3,317 |
$(function() {
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
iphone: 2778,
ipad: 2294,
itouch: 2441
... | marcelod/startbootstrap-sb-admin-2 | js/morris-data.js | JavaScript | apache-2.0 | 3,015 |
/**
* Copyright 2017 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | GoogleChromeLabs/howto-components | elements/howto-radio-group/howto-radio-group.e2etest.js | JavaScript | apache-2.0 | 7,357 |
/**
* Copyright 2015 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... | burtcorp/amphtml | extensions/amp-analytics/0.1/test/test-variables.js | JavaScript | apache-2.0 | 5,784 |
/**
* This is the main app, all non-global objects reside within the app memory space
*/
enyo.kind({
name: "Bootplate.MvcApp",
kind: "enyo.Application",
published: {
ajaxBaseURL: 'http://localhost',
ajaxBasePort: '3000',
data: {}, username: '',
adminFlag: '',
gravata... | pcimino/enyo-mvc-web-app | source/apps/mvcApp.js | JavaScript | apache-2.0 | 3,854 |
$(document).ready(function () {
$('#table').bootstrapTable({
toolbar: '#toolbar',
url: '/api/trades/_search/trades',
contentType: 'application/json',
method: 'get',
queryParams: function (params) {
$('#toolbar').find('input[name]').each(function () {
... | xhujinjun/driver-school | project/drivers/drivers-manager/src/main/webapp/js/trade/trade.js | JavaScript | apache-2.0 | 3,045 |
/**
* @license Copyright 2017 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... | wardpeet/lighthouse | lighthouse-core/audits/accessibility/aria-required-parent.js | JavaScript | apache-2.0 | 2,867 |
import { observable } from 'mobx';
/*
* Take an array [{index: #, actual: #},] and fill in all indices from 0 to max with actual: null
* Uncompresses serialized report data for IPTT
*/
const impliedNullValuesMapper = (values) => {
// map of existing (non-null) indices to their actual value
let valuesMap = ... | mercycorps/TolaActivity | js/pages/iptt_report/models/ipttIndicatorReport.js | JavaScript | apache-2.0 | 2,681 |
var map,dialog,selSym,hc,qt,tempQuery,charts=[{source:"pt",chartType:"column",renderTo:"rainfall",
labels:{title:"Average monthly rainfall"},plotOptions:{series:{pointWidth:25}},fields:
[{flds:["rainJan","rainFeb","rainMar","rainApr","rainMay","rainJun","rainJul","rainAug",
"rainSep","rainOct","rainNov","rainDec"]}]... | nixta/gh-pages-test | 2013/AustralianClimateExplorer/js/climateExplorer.js | JavaScript | apache-2.0 | 5,484 |
/* eslint-disable */
var chai = require('chai'),
assert = chai.assert,
webdriverio = require('webdriverio');
describe('my webdriverio tests', function(){
this.timeout(99999999);
var client = {};
before(function(done){
client = webdriverio.remote({ desiredCapabilities: {browser... | 4ndr01d3/clanviewer | test/functional_tests.js | JavaScript | apache-2.0 | 1,769 |
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
module.exports.Logs = (function() {
function Logs() {
this.get_logs = __bind(this.get_logs, this);
}
Logs.prototype.get_logs = function(app, options, fn) {
if (fn == null) {
fn = opt... | floored/lunch | node_modules/heroku/lib/logs.js | JavaScript | apache-2.0 | 531 |
var gulp = require('gulp');
var del = require('del');
gulp.task('clean', function(cb) {
del([
'build',
], cb);
});
| pagi-org/pagijs | gulp/tasks/clean.js | JavaScript | apache-2.0 | 124 |
angular.module('directives.gravatar', [])
// A simple directive to display a gravatar image given an email
.directive('gravatar', ['md5', function(md5) {
return {
restrict: 'E',
template: '<img ng-src="http://www.gravatar.com/avatar/{{hash}}{{getParams}}"/>',
replace: true,
scope: {
email: '='... | Walimu/sims | client/dist/app.js | JavaScript | apache-2.0 | 254,626 |
/*
Copyright 2016 IBM 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 law or agreed to in writing, software... | ibm-wch/wchtools-cli | authoring-api/test/unit/lib/login.rest.unit.js | JavaScript | apache-2.0 | 27,847 |
sap.ui.define(['sap/ui/core/UIComponent'],
function (UIComponent) {
"use strict";
var Component = UIComponent.extend("sap.ui.core.tutorial.navigation.02.Component", {
metadata: {
config: {
sample: {
iframe: "webapp/index.html",
stretch: true,
files: [
"webapp/controller/App.c... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/demokit/tutorial/navigation/02/Component.js | JavaScript | apache-2.0 | 908 |
/**
* Created by king on 15-5-11.
*
* ch09.path_basename.js
*/
console.info("------ path basename() ------");
console.info();
var path = require('path'); // TODO: 引入路径处理模块
/**
* 测试 path.basename() 函数方法
* @type {string}
*/
var path_a = "test";
var path_b = "test.txt";
console.info('path.resolve("test","test.t... | 0end1/code_base | Node.js_Codebase/chapter09/ch09.path_basename.js | JavaScript | apache-2.0 | 1,325 |
var fs = require("fs");
var k = JSON.stringify(fs.readFileSync("people.json").toString())
console.log(k)
| StuartRucker/stuartrucker.github.io | samsidea/3/parser.js | JavaScript | apache-2.0 | 106 |
var searchData=
[
['jsmn_2ec',['jsmn.c',['../jsmn_8c.html',1,'']]],
['jsmn_2eh',['jsmn.h',['../jsmn_8h.html',1,'']]],
['jsmn_5finit',['jsmn_init',['../jsmn_8c.html#a8d4a8b3ce5c3d600feea38615b5f9aa6',1,'jsmn_init(jsmn_parser *parser): jsmn.c'],['../jsmn_8h.html#a8d4a8b3ce5c3d600feea38615b5f9aa6',1,'jsmn_init(... | chainlinq/boatkeeper | linux_mqtt_mbedtls-2.1.1/docs/html/search/all_9.js | JavaScript | apache-2.0 | 1,776 |
var AnnotatedSpectrumModel = Backbone.Model.extend({
defaults: function() {
return {
baseDir: '',
xiAnnotatorBaseURL: 'http://xi3.bio.ed.ac.uk/xiAnnotator/',
JSONdata: false,
standalone: true,
database: false,
};
},
initialize: function(){
//ToDo: change to model change event inste... | colin-combe/spectrum | src/model.js | JavaScript | apache-2.0 | 20,229 |
'use strict';
module.exports = require('./lib/multiple-redis');
| sagiegurari/multiple-redis | index.js | JavaScript | apache-2.0 | 65 |
/*************************************************************
*
* MathJax/localization/gl/TeX.js
*
* Copyright (c) 2009-2017 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy... | jinntrance/mathjax | unpacked/localization/gl/TeX.js | JavaScript | apache-2.0 | 932 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "component";
const pathData = "M448 64q26 0 45 19t19 45-19 45-45 19q-22 0-42-15l-59 36q5 13 5 27 0 29-18.5 51T287 318v71q17 8 27.5 23.5T325 448q0 26-18.5 45T261 512q-26 0-45-19t-19-45q0-21 12-37... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/component.js | JavaScript | apache-2.0 | 842 |
export { default } from "./Banner";
export { default as BannerAction } from "./BannerAction";
export { default as BannerAnimator } from "./BannerAnimator";
export { default as BannerInteractions } from "./BannerInteractions";
export { default as BannerPresenter } from "./BannerPresenter";
export { placements, AVAILABLE... | Autodesk/hig | packages/banner/src/index.js | JavaScript | apache-2.0 | 405 |
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript requires jQuery')
}
+function ($) {
'use strict';
var version = $.fn.jquery.split(' ')[0].split('.')
if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {
throw new Error('Bootstrap\'... | dragoncoders/dragoncoders.github.io | js/bootstrap.js | JavaScript | apache-2.0 | 62,216 |
(function() {
var preloader = require('./preloader');
var level = require('./level');
var game = new Phaser.Game(800, 700, Phaser.AUTO, 'space-shooter');
game.player = null;
game.state.add('level', level);
game.state.add('preloader', preloader, true);
})(); | nateday/SpaceShooter | src/js/game.js | JavaScript | apache-2.0 | 303 |
module.exports = {
displayName: 'jest:test',
'testEnvironment': 'node',
'testPathIgnorePatterns': [
'bootstrap', 'mocks', 'docs', 'utils'
],
'testMatch': ['<rootDir>/tests/**/*.js'],
'collectCoverageFrom': ['<rootDir>/replicate/**/*.{js}'],
'coverageThreshold': {
'global': {
'branches': 100,... | medic/medic-analytics | jest-test.config.js | JavaScript | apache-2.0 | 401 |
({
/**
* Note that this test file operates in system mode (objects are not Lockerized) so the tests delegate logic and
* verification to the controller and helper files, which operate in user mode.
*/
// LockerService not supported on IE
// TODO(W-3674741, W-4446969): FF and LockerService di... | forcedotcom/aura | aura-components/src/test/components/lockerTest/secureActionTest/secureActionTestTest.js | JavaScript | apache-2.0 | 1,617 |
const BinaryPjax = require('../../base/binary_pjax');
const Client = require('../../base/client');
const BinarySocket = require('../../base/socket');
const urlForStatic = require('../../../_common/url').urlForStatic;
const PaymentAgentList = (() => {
let $pa_list_container,
$agent_template;
co... | negar-binary/binary-static | src/javascript/app/pages/cashier/payment_agent_list.js | JavaScript | apache-2.0 | 3,368 |
/*!
* 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.
*/
sap.ui.define([], function () {
"use strict";
/**
* DynamicPage Title renderer.
* @namespace
*/
var DynamicPageTitleRenderer... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/f/DynamicPageTitleRenderer-dbg.js | JavaScript | apache-2.0 | 4,873 |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 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/iter/unique-by-hash/test/test.js | JavaScript | apache-2.0 | 9,926 |
export const UPDATE_VISITORS = 'update_visitors';
export const INVITE_VISITOR = 'invite_visitor';
export function updateVisitors(visitors) {
return {
type: UPDATE_VISITORS,
visitors
};
};
export function inviteVisitor(visitorId) {
return {
type: INVITE_VISITOR,
visitorId
... | JustBlackBird/mibew-ui | src/operator/actions/index.js | JavaScript | apache-2.0 | 328 |