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 |
|---|---|---|---|---|---|
queue()
.defer(d3.json, "/cf/cc/api/data")
.defer(d3.json, "/cf/cc/api/ts/data")
.await(renderAll)
function renderAll(error, rawData, tsData) {
//Start Transformations
var rawDataSet = rawData;
var tsDataSet = tsData;
// Convert String to iso date format
var dateFormat = d3.time.format.iso;
ts... | arunwagle/DemoRepo | IBM/aw-demo-app/public/js/cf/cfDashboard.js | JavaScript | apache-2.0 | 4,984 |
/**
* Copyright (c) 2009 Chris Leonello
* jqPlot is currently available for use in all personal or commercial projects
* under both the MIT and GPL version 2.0 licenses. This means that you can
* choose the license that best suits your project and use it accordingly.
*
* The author would appreciate an email le... | tbporter/http-server | files/plugins/jqplot.categoryAxisRenderer.js | JavaScript | apache-2.0 | 9,285 |
/*
* Vibe
* http://vibe-project.github.io/projects/vibe-protocol/
*
* Copyright 2014 The Vibe Project
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
// Defines the module
module.exports = {
// Creates a vibe socket and establishes a connection to the server... | vibe-project/vibe-protocol | lib/index.js | JavaScript | apache-2.0 | 1,090 |
import mix from "./mix";
export default (color) => (weight) => mix("FFFFFF", color, weight);
| Sage/carbon | src/style/utils/tint.js | JavaScript | apache-2.0 | 94 |
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Wor... | e-nichols/e-nichols.github.io | sw.js | JavaScript | apache-2.0 | 3,495 |
export default function VideoBlockV1Mixin(M) {
Object.assign(M.prototype, {
/**
* @returns {Object}
*/
getUriTemplateVars() {
return {
etag: this.get('etag'),
node_ref: `${this.get('node_ref', '')}`,
autoplay: this.get('autoplay'),
muted: this.get('muted'),
... | triniti/schemas | build/js/src/triniti/canvas/mixin/video-block/VideoBlockV1Mixin.js | JavaScript | apache-2.0 | 435 |
var Account = require('ethereumjs-account');
var Block = require('ethereumjs-block');
var VM = require('ethereumjs-vm');
var RuntimeError = require('./utils/runtimeerror');
var Trie = require('merkle-patricia-tree');
var FakeTransaction = require('ethereumjs-tx/fake.js');
var utils = require('ethereumjs-util');
var see... | Lyniat/hackaburg17-smartcontracts | backend_server/node_modules/ethereumjs-testrpc/lib/statemanager.js | JavaScript | apache-2.0 | 17,415 |
/**
* Created by 310199253 on 2016/12/30.
*/
var moment = require('moment');
var m = moment("2013/7/18", "YYYY/MM/DD HH:mm:ss");
console.log(m.isValid());
console.log(m.valueOf()); | jpgtama/fhir-learning | generate_form_data/hello_moment.js | JavaScript | apache-2.0 | 184 |
// ECMAScript 5 strict mode
"use strict";
assert2(cr, "cr namespace not created");
assert2(cr.plugins_, "cr.plugins_ not created");
/////////////////////////////////////
// Plugin class
cr.plugins_.Rex_Parse_FileUpload = function(runtime)
{
this.runtime = runtime;
};
(function ()
{
var pluginProto = cr.plugins_.R... | jasonshortphd/construct2games | plugins/plugins/rex_parse_FileUpload/runtime.js | JavaScript | apache-2.0 | 4,010 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | popojargo/couchdb-fauxton | app/addons/documents/__tests__/designdocinfo-action.test.js | JavaScript | apache-2.0 | 1,428 |
var Chariot = function ( $core, $control ) {
var self = require( "/globHammer/core/rock/RockContent" )( $core, $control );
self.execute = function(){
self.display.position.x = self.core.rock.x;
self.display.position.y = self.core.rock.y;
}
self.clickUp = function(){}
self.show = function ( id ){
t... | s-r-c/globhammer | client/code/source/globHammer/core/rock/content/Chariot.js | JavaScript | artistic-2.0 | 3,934 |
var AreaRoute = Ember.Route.extend({
// afterModel: function(area) {
// $.get(area.get('image_url')).then(function(data) {
// area.set('contents', [$('<g/>').append(data.documentElement.childNodes).html()]) // parsing twice
// area.set('attributes', { viewBox: data.docum... | oakscastle/event-ui | app/routes/area.js | JavaScript | artistic-2.0 | 439 |
export default {
apiKey: 'YOUR_BOT_API_KEY',
pollingTimeout: 20,
startMessage: `Hello. I'm the TLBot. I can help you to translate some text!`,
masterId: 'YOUR_TELEGRAM_USER_ID (Something like 12345678)'
}
| mamal72/TLBot | config.js | JavaScript | artistic-2.0 | 213 |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2015, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | hichameyessou/blip | app/redux/actions/sync.js | JavaScript | bsd-2-clause | 20,540 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.from
es6id: 22.1.2.1
description: >
`this` value of mapping function with custom `this` argument (traversed via iterator)
info: |
[...]
2. If mapfn ... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/from/iter-map-fn-this-arg.js | JavaScript | bsd-2-clause | 1,449 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.some
es5id: 15.4.4.17-2-13
description: >
Array.prototype.some - 'length' is inherited accessor property
without a get function on an Array-like... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js | JavaScript | bsd-2-clause | 810 |
import { $http } from '@/services/ng';
class OrganizationStatus {
constructor() {
this.objectCounters = {};
}
refresh() {
return $http.get('api/organization/status').then(({ data }) => {
this.objectCounters = data.object_counters;
return this;
});
}
}
export default new OrganizationSt... | chriszs/redash | client/app/services/organizationStatus.js | JavaScript | bsd-2-clause | 328 |
$(function () {
var urlXMLControl = "/xmlctrl";
$.ajax({
type: "GET",
url: urlXMLControl + "/GetVersion",
cache: false,
contentType: "text/xml", // "application/xml", "application/xml; charset=utf-8"
})
.done(function(xml, textStatus, jqXHR) {
$("#textVersion").text("Version: " + $(xml).find("Version").... | bitctrl/bcmms | bcDTVLink-SDK/www/js/site-home.js | JavaScript | bsd-2-clause | 340 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.lastindexof
es5id: 15.4.4.15-8-b-i-5
description: >
Array.prototype.lastIndexOf - element to be retrieved is own data
property that overrides an... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js | JavaScript | bsd-2-clause | 566 |
var searchData=
[
['orientation',['orientation',['../group__orientation.html#gacd4a2942520b68691db5aebde4e537a4',1,'orientation(): orientation.c'],['../group__orientation.html#gacd4a2942520b68691db5aebde4e537a4',1,'orientation(): orientation.c']]],
['orientationerror',['orientationError',['../group__orien... | xythobuz/xyControl | doc/html/search/variables_6f.js | JavaScript | bsd-2-clause | 705 |
/**
* @type {Object}
*/
var olx;
/* typedefs for object literals provided by applications */
/**
* @typedef {{html: string,
* tileRanges: (Object.<string, Array.<ol.TileRange>>|undefined)}}
* @api
*/
olx.AttributionOptions;
/**
* HTML markup for this attribution.
* @type {string}
* @api stable
*/
o... | CandoImage/ol3 | externs/olx.js | JavaScript | bsd-2-clause | 160,923 |
$.register({
rule: {
host: /^www\.spaste\.com$/,
path: /^\/go\/\w+$/,
},
ready: function () {
'use strict';
var id = $.searchScripts(/\{id:'(\d+)'\}/);
_.wait(3000).then(function () {
return $.post('/site/getRedirectLink', {
id: id,
}).then(function (url) {
$.openL... | xor10/adsbypasser | src/sites/link/spaste.com.js | JavaScript | bsd-2-clause | 527 |
import MultilayerPositionTool from "./multilayerPositionTool";
import * as Registry from "../../core/registry";
import Device from "../../core/device";
import MouseTool from "./mouseTool";
import PositionTool from "./positionTool";
import paper from "paper";
export default class ValveInsertionTool extends MultilayerP... | CIDARLAB/3DuF | src/app/view/tools/valveInsertionTool.js | JavaScript | bsd-2-clause | 8,133 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-9-c-iii-28
description: >
Array.prototype.filter - return value of callbackfn is the global
object
---*/
var global = t... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js | JavaScript | bsd-2-clause | 521 |
jsgradient = {
inputA : '',
inputB : '',
inputC : '',
gradientElement : '',
// Convert a hex color to an RGB array e.g. [r,g,b]
// Accepts the following formats: FFF, FFFFFF, #FFF, #FFFFFF
hexToRgb : function(hex){
var r, g, b, parts;
// Remove the hash if given
hex = hex.replace('#', '');
// ... | mbebenita/aom | ins/lib/jsGradient.js | JavaScript | bsd-2-clause | 3,455 |
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-symbol-names.case
// - src/class-fields/productions/cls-decl-after-same-line-static-gen.template
/*---
description: Computed property symbol names (field definitions after a static generator in the same line)
esid: prod-F... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/class/fields-after-same-line-static-gen-computed-symbol-names.js | JavaScript | bsd-2-clause | 1,871 |
import express from 'express';
import path from 'path';
import logger from 'morgan';
import bodyParser from 'body-parser';
const app = express();
if (process.env.DEBUG) {
app.use(logger('combined'));
}
app.use(express.static(path.resolve(__dirname, '../fixtures')));
app.use(bodyParser.json());
app.get('/ping', (re... | UntilNow/meridian | test/support/server.js | JavaScript | bsd-3-clause | 850 |
/**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/admin/utils/configure-store.js
*
* Rigs up the store with redux-thunk ... | salesforce/refocus | view/admin/utils/configure-store.js | JavaScript | bsd-3-clause | 1,084 |
#!/usr/bin/env node
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same direct... | bttf/create-react-app | packages/react-scripts/bin/react-scripts.js | JavaScript | bsd-3-clause | 1,648 |
// This file was generated by silverstripe/cow from client/lang/src/sk.js.
// See https://github.com/tractorcow/cow for details
if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') {
if (typeof(console) !== 'undefined') { // eslint-disable-line no-console
console.error('Class ss.i18n not defined'); ... | jonom/silverstripe-cms | client/lang/sk.js | JavaScript | bsd-3-clause | 1,547 |
var express = require('express');
var configurations = module.exports;
var app = express();
var server = require('http').createServer(app);
var nconf = require('nconf');
var settings = require('./settings')(app, configurations, express);
var path = require('path');
var Grafty = require('grafty');
var grafty = new Graf... | ednapiranha/graft | app.js | JavaScript | bsd-3-clause | 1,270 |
var path = require('path');
module.exports = {
entry: [
'webpack-dev-server/client?http://0.0.0.0:8080',
'./src/index.js'
],
output: {
publicPath: '/',
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|bower_components... | Ricky-Nz/knocknock-app | webpack-dev.config.js | JavaScript | bsd-3-clause | 570 |
db.patients.remove({})
db.getCollection('data_sets').find({}).forEach(function(doc) {
var patientsAdded = 0;
if (!doc["patients"]) return;
for (var i = 0; i < doc["patients"].length; i++) {
var patient = doc["patients"][i];
var samples = [];
for (var s = 0; s < patient["sample_lab... | UCSC-MedBook/MedBook_ | patient-care/scripts/move_patients_from_data_sets_to_collection.js | JavaScript | bsd-3-clause | 885 |
function adjustInputWidths() {
// Can't seem to do this with CSS only...
$("#theResource li").each(function(index,ele) {
liWidth = $(this).innerWidth();
if (!$(this).children("span").hasClass("hidden")) { spanWidth = $(this).children("span").width() + 10; } //10 is the total padding on the span
else { spanWidth... | usgin/resources | static/js/editor/additional-style.js | JavaScript | bsd-3-clause | 6,240 |
import React from 'react';
import Toggle from 'rc-checkbox';
import 'rc-checkbox/assets/index.css';
import './Checkbox.css';
const Checkbox = ({ title, defaultValue, onChange }) => (
<label className='Checkbox'>
<Toggle
defaultChecked={ defaultValue }
onChange={ e => onChange(e.target.chec... | craft-ai/morning-routine | src/webapp/components/Checkbox.js | JavaScript | bsd-3-clause | 438 |
var dir_169eaf73225633059c1416b195c6cb0d =
[
[ "BayesNet-inl.h", "a00307.html", null ],
[ "BayesNet.h", "a00308.html", [
[ "BayesNet", "a00009.html", "a00009" ]
] ],
[ "BayesTree-inl.h", "a00309.html", "a00309" ],
[ "BayesTree.h", "a00310.html", "a00310" ],
[ "BayesTreeCliqueBase-inl.h", "... | malcolmreynolds/GTSAM | doc/html/dir_169eaf73225633059c1416b195c6cb0d.js | JavaScript | bsd-3-clause | 3,259 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @constructor
* @extends {WebInspector.View}
*/
WebInspector.InspectedPagePlaceholder = function()
{
WebInspector.View.call(this);
this.el... | kurli/blink-crosswalk | Source/devtools/front_end/toolbox/InspectedPagePlaceholder.js | JavaScript | bsd-3-clause | 3,800 |
import * as utils from 'base/utils';
import Component from 'base/component';
var precision = 1;
//constants
var class_playing = "vzb-playing";
var class_loading = "vzb-ts-loading";
var class_hide_play = "vzb-ts-hide-play-button";
var class_dragging = "vzb-ts-dragging";
var class_axis_aligned = "vzb-ts-axis-aligned";
... | jdk137/vizabi | src/components/timeslider/timeslider.js | JavaScript | bsd-3-clause | 12,183 |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.7.3
build: 3.7.3
*/
YUI.add('transition', function (Y, NAME) {
/**
* Provides the transition method for Node.
* Transition has no API of its own, but adds the transition m... | giros/alloy-ui | build/transition/transition.js | JavaScript | bsd-3-clause | 20,226 |
var classcrossbow_1_1infinio_1_1_rpc_response =
[
[ "RpcResponse", "classcrossbow_1_1infinio_1_1_rpc_response.html#a5aff1389291798073171aebf69d744dd", null ],
[ "~RpcResponse", "classcrossbow_1_1infinio_1_1_rpc_response.html#aea474873966add062795e7294e5f45b1", null ],
[ "complete", "classcrossbow_1_1infinio... | tellproject/homepage-generator | api/classcrossbow_1_1infinio_1_1_rpc_response.js | JavaScript | bsd-3-clause | 932 |
module.exports = function (cdb) {
/**
* view for markers
*/
function PointView(geometryModel) {
var self = this;
// events to link
var events = [
'click',
'dblclick',
'mousedown',
'mouseover',
'mouseout',
... | Stonelinks/cartodb-lite | src/geo/gmaps/gmaps.geometry.js | JavaScript | bsd-3-clause | 7,494 |
var _ = require('underscore');
var $ = require('jquery');
var OnboardingView = require('builder/components/onboardings/generic/generic-onboarding-view');
var template = require('./data-onboarding.tpl');
module.exports = OnboardingView.extend({
initialize: function (opts) {
OnboardingView.prototype.initialize.cal... | CartoDB/cartodb | lib/assets/javascripts/builder/components/onboardings/layers/data-onboarding/data-onboarding-view.js | JavaScript | bsd-3-clause | 2,343 |
/*
Copyright (c) 2013, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://yuilibrary.com/license/
*/
var UNKNOWN = 'UNKNOWN';
var fs = require('fs');
var path = require('path');
var read = require('read-installed');
var chalk = require('chalk');
var treeify = require('treeify');
var license =... | tmpvar/license-checker | lib/index.js | JavaScript | bsd-3-clause | 10,954 |
/*!
* Copyright 2012, Chris Wanstrath
* Released under the MIT License
* https://github.com/defunkt/jquery-pjax
*/
(function($){
// When called on a container with a selector, fetches the href with
// ajax into the container or with the data-pjax attribute on the link
// itself.
//
// Tries to make sure the back ... | locnes/monstars | vendor/bower/yii2-pjax/jquery.pjax.js | JavaScript | bsd-3-clause | 28,663 |
"use strict";
var test = require('tape');
var mapnik = require('../');
var exists = require('fs').existsSync || require('path').existsSync;
var helper = require('./support/helper');
var path = require('path');
mapnik.register_datasource(path.join(mapnik.settings.paths.input_plugins,'shape.input'));
test('should clea... | mapnik/node-mapnik | test/render-sync.test.js | JavaScript | bsd-3-clause | 6,477 |
/*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint node: true, nomen: true */
/**
The `express-yui.shifter` extension exposes a set of utilities to build yui modules
from *.js or build.json files.
... | yahoo/locator-yui | lib/shifter.js | JavaScript | bsd-3-clause | 9,854 |
function findFrameByName(strName) {
return findFrame(top, strName);
}
function findFrame(doc, strName) {
if (doc.frames.length == 0) return;
for (var i = 0; i != doc.frames.length; i++)
if (doc.frames[i].name == strName)
return doc.frames[i];
else {
var frm = findFrame(d... | NCIP/cadsr-uml-model-browser | software/umlmodelbrowser/src/web/html/common/skins/umlbrowser/JavaScript.js | JavaScript | bsd-3-clause | 1,087 |
import { shallowMount } from '@vue/test-utils'
import TagSortDropdown from '@/components/Dashboard/Sidebar/TagSortDropdown'
const $bus = {
$emit: jest.fn((e, data) => data)
}
describe('Tag Sort Dropdown', () => {
it('shows if visibility is true', () => {
const wrapper = shallowMount(TagSortDropdown, {
p... | astralapp/astral | resources/assets/js/__tests__/components/Dashboard/Sidebar/TagSortDropdown.test.js | JavaScript | bsd-3-clause | 1,360 |
/*jslint sloppy: true, nomen: true */
/*global exports:true,phantom:true */
/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>
Copyright (C) 2011 Ivan De Marino <ivan.de.marino@gmail.com>
Copyright (C) 2011 James Roe <roejames12@hotmail.com>... | raff/phantomjs | src/modules/webpage.js | JavaScript | bsd-3-clause | 29,194 |
module.exports = () => {
var c = {},
defaults = require('./config/config'),
Canvas = require('./model/Canvas'),
CanvasView = require('./view/CanvasView');
var canvas;
var frameRect;
return {
/**
* Used inside RTE
* @private
*/
getCanvasView() {
return CanvasView;
},
... | devierol/heroku-gjs | src/canvas/index.js | JavaScript | bsd-3-clause | 10,039 |
var WebSocket = require('ws');
function Connection(serverWebSocket) {
this.serverSocket = serverWebSocket;
this.clientSocket = null;
}
Connection.prototype.init = function () {
connection = this;
connection.clientSocket = new WebSocket('ws://localhost:4848/app/TestInterface');
connection.clientSocket... | vadimtsushko/qs_cli | tool/proxy.js | JavaScript | bsd-3-clause | 1,363 |
/* @flow */
import React from "react";
import { typesetMath } from "mathjax-electron";
type Props = {
children?: React$Node
};
function isMathJaxOkYet(): boolean {
const MathJax: global = window ? window.MathJax : null;
return (
!window.disableMathJax &&
typeof MathJax !== "undefined" &&
window.Math... | jdetle/nteract | packages/core/src/components/latex.js | JavaScript | bsd-3-clause | 844 |
/**
* Normalizes a representation of a float to a {float}.
*
* @function float
* @param {(string|float)} x - The original values_
* @param {Object} fallback - If not a {float} or {string}, return this value.
* @return {float} The value as a {float} object.
* @memberof geodash.normalize
*
* @example
* var x = ... | geodashio/geodash.js | src/geodash/normalize/float.js | JavaScript | bsd-3-clause | 665 |
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | youtube/cobalt | third_party/devtools/front_end/timeline_model/TimelineModel.js | JavaScript | bsd-3-clause | 76,580 |
const parser = require("../main");
describe("Array without keys", () => {
it("deference array", () => {
expect(
parser.parseEval(
["$a = [", '"a", "b"', "]($foo)[$foo->bar()[1]]->foo()"].join("\r")
)
).toMatchSnapshot();
});
it("of strings", () => {
expect(
parser.parseEval... | glayzzle/php-parser | test/snapshot/array.test.js | JavaScript | bsd-3-clause | 3,800 |
var Jsonix = require('jsonix').Jsonix;
var fs = require('fs');
var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var GML_3_1_1 = require('ogc-schemas').GML_3_1_1;
var SMIL_2_0 = require('ogc-schemas').SMIL_2_0;
var SMIL_2_0_Language = require('ogc-schemas').SMIL_2_0_La... | highsource/jsonix-support | w/wmts-gh111/index.js | JavaScript | bsd-3-clause | 1,098 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Invariant: This model can only be constructed on a ServiceWorker target.
* @constructor
* @extends {WebInspector.SDKModel}
* @param {!WebInspect... | danakj/chromium | third_party/WebKit/Source/devtools/front_end/sdk/ServiceWorkerCacheModel.js | JavaScript | bsd-3-clause | 10,693 |
/**
* @project : modula
* @package : core
* @internal : declareFunctionSupport
* @type : function
* @dependencies : none
*
* @description :
* the support is used to build crossbrowser compatible modula.js functions.
*
* @example
* support.test = support( function() { return true; } ); // result support.test... | NHoeller/conceptixx | modula/js/fragments/declareFunctionSupport.js | JavaScript | bsd-3-clause | 942 |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
i... | mpontus/jest | packages/jest-changed-files/src/hg.js | JavaScript | bsd-3-clause | 2,070 |
fromStreams(['createdItems', 'updatedItems']).when({
itemCreated: function (s,e) {
linkEvent(e,'createdItems-');
},
itemUpdated: function (s,e) {
linkEvent(e,'updatedItems-');
}
});
function linkEvent(e, streamPrefix)
{
var emailparts = e.body.user.split('@');
if(emailparts.length == 2)
{
linko(streamPref... | rcknight/EventStore-HttpLogs | projections/ItemCreationByCustomer.js | JavaScript | bsd-3-clause | 348 |
module.exports = (function () {
var EventSubscription = Cactus.Util.EventSubscription;
var C = Class({
does : EventSubscription,
methods : {
onFoo : Function.empty,
onBar : Function.empty
}
});
function S() {
} S.prototype = {
onFooTriggered : Function.empty,
onBarTriggered :... | bergmark/Cactus | module/Core/test/Util.EventSubscription.test.js | JavaScript | bsd-3-clause | 7,443 |
module.exports = {
selector: 'img[alt="chairlift icon"]',
parse: {
name: '../1',
status: {
child: '../../2',
attribute: 'class',
fn: s => s.slice(5)
}
}
};
| code42day/liftie | lib/resorts/red-mountain/index.js | JavaScript | bsd-3-clause | 192 |
tonic.Widget.ControlWidget = tonic.Widget.extend(function () {
/**
* objectExtend for tonic.Widget.ControlWidget class.
*
* Create a new dictionary that is extended by one or more dictionaries.
*
* @method objectExtend
* @param {Array} out dictionary plus argument dictionaries.
... | patrickoleary/tonic | src/js/lib/t-widgets/controlwidget.js | JavaScript | bsd-3-clause | 9,842 |
export class CodeBlock {
constructor (codeBlockWriter) {
this.codeBlockWriter = codeBlockWriter;
}
nop (repeat = 1) { this.codeBlockWriter.nop(repeat); }
jp () {}
}
export class CodeBlockWriter {
}
export class CodeBlockAssembler extends CodeBlockWriter {
}
export class CodeBlockExecuter extends CodeBl... | amorri40/GameboyDisassembler | assembler/assemblerMain.js | JavaScript | bsd-3-clause | 335 |
(function ($) {
"use strict";
window.savedBreakpoint = 'base';
var methods = {
bodyFontSize: function () {
if (!$.fn.whim.settings.body) {
$.fn.whim.settings.body = $('body');
}
return parseInt($.fn.whim.settings.body.css('font-size'), 10);
},
virtualPx: function () {
return Response.viewpor... | dnadesign/dna-recipe | theme-default/src/js/lib/jquery.whim.src.js | JavaScript | bsd-3-clause | 1,817 |
const router = require('koa-router')()
const models = require('../models')
router
.get('/notifications/:id', async (ctx) => {
ctx.body = await models.db.notification.findById(
ctx.params.id,
{
include: [
{
model: models.db.participant, attributes: ['id', 'fbid']
... | AgaKhanFoundation/WCB | lib/routes/notifications.js | JavaScript | bsd-3-clause | 4,530 |
/**
* @license
* Copyright (c) 2017 Google Inc. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io... | PolymerLabs/arcs-live | build/planning/strategies/name-unnamed-connections.js | JavaScript | bsd-3-clause | 1,454 |
(function($, Backbone, _) {
"use strict";
var name_prefix = '{{ name }}'
, catalogKey = '{{ catalog_key }}'
// The Module
// --------------
var Module = BBNS.Module.extend({
name: "StatisticApplication"
, preinitialize: function(options){
var uses = [
... | Excentrics/publication-backbone | publication_backbone/templates/publication_backbone/catalog/_app_statistic.js | JavaScript | bsd-3-clause | 1,317 |
import React from 'react'
import Reflux from 'reflux'
import { Link } from 'react-router'
import auth from '../utils/auth'
var AssetStore = require('../stores/AssetStore');
import BreadCrumb from './BreadCrumb'
export default React.createClass({
mixins: [Reflux.listenTo(AssetStore, "update")],
getInitialState: ... | peragro/peragro-ui | src/components/Assets.js | JavaScript | bsd-3-clause | 2,021 |
(function() {
var module = angular.module('MapLoom', [
'templates-app',
'templates-common',
'storytools.edit.style',
'loom',
'colorpicker.module',
'ui.bootstrap',
'ui.router',
'ui.tree',
'pascalprecht.translate',
'loom_translations_en',
'loom_translations_es',
'xeditabl... | MapStory/MapLoom | src/app/app.js | JavaScript | bsd-3-clause | 14,972 |
/*
@license
Copyright (c) 2015 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 found at http://p... | jyp220/coffer | app/scripts/app.js | JavaScript | bsd-3-clause | 4,723 |
/* Reload the aframe dynamically, as needed
*/
$(function(){
var x = "";
var debuging = {};
var gui;
// We describe specific elements using the path from the a-scene,
// as a list of children #'s, from top to bottom.
// This returns a jquery selector
function sceneElementSelector(o) {
... | ku-fpg/aframe-server | examples/js/aframe-inspector.js | JavaScript | bsd-3-clause | 4,583 |
// @flow
'use strict';
import React from 'react';
import Relay from 'react-relay';
import {createContainer} from 'recompose-relay';
import {compose} from 'recompose';
const NodeId = compose(
createContainer(
{
fragments: {
viewer: () => Relay.QL`
fragment on ExpandedNodeId {
... | gilesbradshaw/uaQL | js/components/NodeId.js | JavaScript | bsd-3-clause | 550 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Length = require('./Length');
var Point = require('../point/Point');
/**
* Get a number of points along a line's length.
*
* Provide a `... | mahill/phaser | src/geom/line/GetPoints.js | JavaScript | mit | 1,879 |
/**
*
* AttributeOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
import useFormModalNav... | wistityhq/strapi | packages/core/content-type-builder/admin/src/components/AttributeOptions/AttributeOption/index.js | JavaScript | mit | 1,587 |
!function ($) {
"use strict";
var FOUNDATION_VERSION = '6.2.4';
// Global Foundation object
// This is attached to the window, or used as a module for AMD/Browserify
var Foundation = {
version: FOUNDATION_VERSION,
/**
* Stores initialized plugins.
*/
_plugins: {},
/**
* Sto... | Nilook/art3870-w17 | sum/js/vendor/foundation.js | JavaScript | mit | 60,656 |
export default function makeInterval (begin, end, type) {
return { begin, end, type };
}
| slacktracer/level | source/intervalMaker.js | JavaScript | mit | 93 |
var chai = require("chai"),
sinon = require("sinon"),
sinonChai = require("sinon-chai"),
expect = chai.expect;
var async = require('async'),
_ = require('lodash');
chai.use(sinonChai);
/**************************************************************************
* Begin of tests
*******************... | authomator/authomator | lib/mongoose/plugins/multiset.spec.js | JavaScript | mit | 3,747 |
module.exports = function (config) {
var configuration = {
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
... | kimpiljae/driving_zone_admin | vendors/sortable/karma.conf.js | JavaScript | mit | 1,986 |
define([], function() {
return {
errorMessage: "Error on loading Organization Chart",
"PropertyPaneDescription": "Modern Organization Chart, With Presence",
"BasicGroupName": "Properties",
"DescriptionFieldLabel": "Title",
}
});
| AJIXuMuK/sp-dev-fx-webparts | samples/react-modern-organization-chart/src/webparts/organizationChart/loc/en-us.js | JavaScript | mit | 250 |
export default function (m, v) {
m[3] = v[0];
m[4] = v[1];
m[5] = v[2];
return m;
}
| photonstorm/lazer | src/math/matrix/mat43/SetUp.js | JavaScript | mit | 103 |
// Flags: --expose-http2
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const http2 = require('http2');
const server = http2.createServer();
server.on('stream', common.mustNotCall());
const count = 32;
server.listen(0, common.mustCall(() => {
const clie... | hoho/dosido | nodejs/test/parallel/test-http2-client-unescaped-path.js | JavaScript | mit | 961 |
angular.module("umbraco").controller("SendTestEmailController.Controller", function ($scope, assetsService, $http, $routeParams, notificationsService) {
$scope.loading = false;
$scope.init = function () {
if ($scope.model.value == null || $scope.model.value == "") {
// Set default if nothin... | PerplexWouter/UmbracoEmailPackage | Input/PerplexMail/SendTestEmail/SendTestEmail.controller.js | JavaScript | mit | 2,552 |
var config = require('./config.js');
var r = require('../lib')(config);
var util = require(__dirname+'/util/common.js');
var assert = require('assert');
var uuid = util.uuid;
var It = util.It
var dbName, tableName, tableName2, cursor, result, pks, feed;
var numDocs = 100; // Number of documents in the "big table" us... | neumino/rethinkdbdash | test/cursor.js | JavaScript | mit | 20,522 |
/**
* GKA (generate keyframes animation)
* author: joeyguo
* HomePage: https://github.com/gkajs/gka-utils
*
* gka utils
*/
const css = require('./core/css');
const html = require('./core/html');
const data = require('./core/data');
const _ = require('./core/_');
module.exports = {
html,
css,
da... | gkajs/gka | lib/packages/gka-utils/index.js | JavaScript | mit | 332 |
Vue.http.options.emulateJSON = true;
vm = new Vue({
el: '#app',
data: {
debug: true, //debug mode?
answered: 0, //the count of answered questions
currentTags: {}, //the answered tags
results: null, //the resulting distros
comment: "", //the user's comment for the result
commentSent: false,
... | squarerootfury/ldc.js | ldc.js | JavaScript | mit | 18,113 |
/**
* @fileoverview
* Test suite for 00-skeleton
*
* @author Graham Klyne
* @version $Id$
*
* Coypyright (C) 2010, University of Oxford
*
* Licensed under the MIT License. You may obtain a copy of the license at:
*
* http://www.opensource.org/licenses/mit-license.php
*
* Unless required by applica... | tectronics/shuffl | src/test/test-shuffl-saveworkspace.js | JavaScript | mit | 35,441 |
function classFactory() {
var _class, _foo, _bar;
return _foo = /*#__PURE__*/new WeakMap(), (_class = class Foo {
constructor() {
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
writable: true,
value: "foo"
});
}
instance() {
return babelHelpers.classPrivateField... | babel/babel | packages/babel-plugin-proposal-class-properties/test/fixtures/private/reevaluated/output.js | JavaScript | mit | 711 |
/**
* The application header displayed at the top of the viewport
* @extends Ext.Component
*/
Ext.define('CF.view.Header', {
extend: 'Ext.Component',
dock: 'top',
baseCls: 'cf-header',
initComponent: function() {
Ext.applyIf(this, {
html: 'MVC simple application example called CF ' +
'(Ca... | KNMI/VERCE | liferay-plugins-sdk-6.1.0/portlets/forward-modelling-portlet/docroot/js/app/view/Header.js | JavaScript | mit | 390 |
'use strict'
var request = require('supertest')
, assert = require('assert')
, models = require('../models');
describe('makeUser', function() {
// 정상적인 유저 생성 확인
it('valid make user', function (done) {
var gameId = 1000;
var facebookId = 0;
var inventorySize = 100;
var maxHeart = 80;
var ... | zzragida/NodeExamples | restapi/test/test-models.js | JavaScript | mit | 1,185 |
var struct_tempest_1_1_abstract_list_delegate_1_1_list_item =
[
[ "ListItem", "struct_tempest_1_1_abstract_list_delegate_1_1_list_item.html#a9c11b618acf99ff46e8d3b369e22bbe8", null ],
[ "emitClick", "struct_tempest_1_1_abstract_list_delegate_1_1_list_item.html#a46adebd1adca8d23768023144cbbe32b", null ],
[ "... | enotio/Tempest | docs/struct_tempest_1_1_abstract_list_delegate_1_1_list_item.js | JavaScript | mit | 555 |
(function () {
angular
.module('kalendr.accounts', [
'kalendr.accounts.controllers',
'kalendr.accounts.services'
]);
angular
.module('kalendr.accounts.controllers', ['ngDialog']);
angular
.module('kalendr.accounts.services', []);
})();
| bewallyt/Kalendr | static/javascripts/accounts/accounts.module.js | JavaScript | mit | 274 |
/**
* @class Cogwheels.SassError
* @extends Error
*/
'use strict';
var util = require('util')
, indent = require('indent-string')
;
function SassError(properties) {
Error.call(this);
if (typeof properties === 'object') {
for (var key in properties) {
this[key] = properties[key];
}
} els... | MammothHR/cogwheels | lib/sass-error.js | JavaScript | mit | 1,021 |
{
"AD" : "d.C.",
"Africa/Abidjan_Z_abbreviated" : "Hora de Costa de Marfil",
"Africa/Abidjan_Z_short" : "GMT",
"Africa/Accra_Z_abbreviated" : "Hora de Gana",
"Africa/Accra_Z_short" : "GMT",
"Africa/Addis_Ababa_Z_abbreviated" : "Hora de Etiopía",
"Africa/Addis_Ababa_Z_short" : "EAT",
"Africa/Algiers_Z_abbreviate... | inikoo/fact | libs/yui/yui3-gallery/src/gallery-i18n-formats/lang/gallery-i18n-formats_gl-ES.js | JavaScript | mit | 37,327 |
module.exports = {
'/': {
backLink: '/../priority_service_170705/filter/uncancelled',
next: '/what-you-need'
},
'/before-you-continue-overseas': {
backLink: '/../priority_service_170705/overseas/uncancelled',
next: '/what-you-need-overseas'
},
'/what-you-need': {
... | maxinedivers/pass-max | routes/priority_service_170705/intro/steps.js | JavaScript | mit | 1,095 |
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
specs: ['./src/**... | angular/universal | integration/express-engine-ivy/e2e/protractor.conf.js | JavaScript | mit | 915 |
const { get } = require('lodash')
const {
postDetails,
setJourneyDetails,
setBreadcrumbs,
renderTemplate,
} = require('../middleware')
const steps = require('../__fixtures__/steps')()
describe('#postDetails', () => {
const buildCurrentStep = (sendSpy) => {
const macro = () => {
return {
ch... | uktrade/data-hub-fe-beta2 | src/modules/form/__test__/middleware.test.js | JavaScript | mit | 18,571 |
'use strict';
angular.module('openhds')
.service('PregnancyResultService',
['EntityService', PregnancyResultService]);
function PregnancyResultService(EntityService) {
var service = this;
var urlBase = "/pregnancyResults";
function Request(model) {
console.log(model);
ret... | jdowns/openhds-ui | app/domain/pregnancyResult/service.js | JavaScript | mit | 1,087 |
/*!
* Bootstrap-select v1.12.4 (https://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2018 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"... | silviomoreto/bootstrap-select | docs/docs/dist/js/i18n/defaults-zh_TW.min.js | JavaScript | mit | 762 |
'use strict';
var Lib = require('../../lib');
var handleXYZDefaults = require('../heatmap/xyz_defaults');
var attributes = require('./attributes');
var handleConstraintDefaults = require('../contour/constraint_defaults');
var handleContoursDefaults = require('../contour/contours_defaults');
var handleStyleDefaults = ... | plotly/plotly.js | src/traces/contourcarpet/defaults.js | JavaScript | mit | 2,395 |