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 |
|---|---|---|---|---|---|
/* eslint-env node */
/* eslint-disable camelcase */
module.exports = {
framework: 'qunit',
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
]
};
| usecanvas/web-v2 | testem.js | JavaScript | apache-2.0 | 240 |
Array.prototype.unique = function() {
var o = {}, i, l = this.length, r = [];
for(i=0; i<l;i+=1) o[this[i]] = this[i];
for(i in o) r.push(o[i]);
return r;
};
| nils-werner/Typewriter | services/dropbox/utilities/arrays.js | JavaScript | apache-2.0 | 162 |
//= require jquery.ui.dialog
//= require jquery.ui.sortable
(function($) {
$.PMX.SortServices = function($el, options) {
var base = this;
base.$el = $el;
base.defaultOptions = {
connectWith: 'ul.services',
dragHelper: '.dragging-service'
};
base.init = function() {
base.optio... | xirun/panamax-ui | app/assets/javascripts/jquery.category_actions.js | JavaScript | apache-2.0 | 16,263 |
var namespacemembers_vars =
[
[ "a", "namespacemembers_vars.html", null ],
[ "c", "namespacemembers_vars_c.html", null ],
[ "e", "namespacemembers_vars_e.html", null ],
[ "f", "namespacemembers_vars_f.html", null ],
[ "k", "namespacemembers_vars_k.html", null ],
[ "l", "namespacemembers_vars_l.h... | stweil/tesseract-ocr.github.io | 3.x/namespacemembers_vars.js | JavaScript | apache-2.0 | 590 |
define(["dojo/has"], function (has) { /*App capabilities*/
/*Right now we are just checking config so has is just duplicating behavior
but might want to add more checks later for example only enable locate if geolocation is supported etc. */
has.add("search", function (g) {
var search = g.config.search;... | adrianwelsh/adrianwelsh.github.io | js/sniff.js | JavaScript | apache-2.0 | 2,026 |
define([
'donation_data/config',
'donation_data/feed',
'donation_panel/donation',
'donation_panel/menu'
], function(config, feed, Donation, menu) {
var nullOrder = {build: []}
var unfinished = function(donation) {return !donation.finished()}
var knownDonations = {}
var makeModel = function(d) {
va... | JustinLove/donation_panel | ui/mods/donation_panel/feed_view.js | JavaScript | apache-2.0 | 5,542 |
var a00075 =
[
[ "base", "a00075.html#ae32ef3972dab4df4c3a4a3569658eb36", null ],
[ "MemberSignature", "a00075.html#a4e42ab7ef04ba3bc95b252bbaae14470", null ],
[ "_ConstTessMemberResultCallback_6_1", "a00075.html#a050e253bda733ed433ab3a73f922dd0c", null ],
[ "Run", "a00075.html#a05f52ba9c59048e8e9b43f4e... | stweil/tesseract-ocr.github.io | 3.x/a00075.js | JavaScript | apache-2.0 | 340 |
'use strict';
/**
* @ngdoc overview
* @name clientApp
* @description
* # clientApp
*
* Main module of the application.
*/
angular
.module('clientApp', [
'ngRoute',
'ngResource',
'ui.bootstrap',
'ngLodash',
'ui.grid'
])
.config(['$routeProvider', '$locationProv... | bonds0097/eliteauthority | client/app/scripts/app.js | JavaScript | apache-2.0 | 1,447 |
!function(e){if("object"==typeof exports)module.exports=e()
else if("function"==typeof define&&define.amd)define(e)
else{var t
"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.ExposureUtils=e()}}(function(){return function e(t,n,o){function r(l,s){if(!n[l]){if... | Liamta/js-utils | dist/utils.min.js | JavaScript | apache-2.0 | 3,518 |
/*
* 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/autocompleteList/autocompleteListHelper.js | JavaScript | apache-2.0 | 18,741 |
/**
* @license
* Copyright (C) 2020 The Android Open Source Project
*
* 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... | GerritCodeReview/gerrit | tools/node_tools/rollup-runner.js | JavaScript | apache-2.0 | 1,716 |
define([
"resources/init",
"views/visualizations/bar",
"views/visualizations/table",
"views/visualizations/value",
"views/visualizations/time",
"views/visualizations/plot",
"views/visualizations/map",
"views/visualizations/extremes"
], function(resources, bar, table, value, time, plot, m... | Mri-monitoring/Mri-server | public/src/views/visualizations/all.js | JavaScript | apache-2.0 | 522 |
import classnames from 'classnames';
import ActiveSidePanelStore from './stores/ActiveSidePanelStore';
import AT from './constants/AT';
import Dispatcher from './Dispatcher';
import EditorMarkerStore from './stores/EditorMarkerStore';
import OpenFileStore from './stores/OpenFileStore';
import FileContentsStore from './... | Sable/McLab-Web | js/CodeContainer.react.js | JavaScript | apache-2.0 | 2,159 |
// Environment imports
import dotenv from 'dotenv';
// Apollo imports
import { graphqlExpress, graphiqlExpress } from 'apollo-server-express';
import { printSchema } from 'graphql';
// Middleware imports
import express from 'express';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
imp... | telco2011/graphql-example | server.js | JavaScript | apache-2.0 | 3,042 |
'use strict';
var TABLE_FILTERS = 'filters';
var PREFIX_SORT = 'sort_';
var DATA_SEPARATOR = '||'; // separates display/alt/sort/filter values in a cell
var SORT_ARROW_WIDTH = 14;
var ICON_FONT_BASE = 'glyphicon';
var ICON_ARROW_UP = 'glyphicon-arrow-up'; // when Sass is used, a generic class (ie: sortarrowup) co... | Pollyfun/ViewHandler | ViewHandler/Scripts/viewHandler.js | JavaScript | apache-2.0 | 80,376 |
System.register(['./datasource', './query_ctrl', './config_ctrl'], function(exports_1) {
var datasource_1, query_ctrl_1, config_ctrl_1;
var CrateQueryOptionsCtrl;
return {
setters:[
function (datasource_1_1) {
datasource_1 = datasource_1_1;
},
func... | buom/crate-datasource | dist/module.js | JavaScript | apache-2.0 | 1,139 |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.analytics.plugins.mouseClick"]){dojo._hasResource["dojox.analytics.plugins.mouseClick"]... | feklee/rotogame | source/dojo-release-1.3.0-src/release/dojo/dojox/analytics/plugins/mouseClick.js | JavaScript | apache-2.0 | 1,155 |
const unoconv = require('../unoconv');
const FileCache = require('../file-cache');
module.exports = function (davServer) {
return async function (req, res, next) {
let converter = unoconv('unoconv');
let queryParams = new URL(req.url, true).searchParams;
let fileUrl = queryParams.get('url');
let tim... | mnutt/davros | server/api/preview-document.js | JavaScript | apache-2.0 | 1,571 |
"use strict";
define(function (require) {
var warning = require("warning");
var ajax = require("ajax");
var util = require("util");
return {
template: "#user-edit",
mixins: [warning, ajax],
route: {
data: function () {
var self = this;
... | rinp/task | src/main/js/vues/user/edit.js | JavaScript | apache-2.0 | 1,178 |
var fs = require('fs'),
path = require('path'),
findPackagePath = require('./find-package-path'),
pkgCache = {};
// A wrapper for npm packages.
function Package(settings, path) {
this.settings = settings;
this.path = path;
this.id = settings.name + '~' + settings.version;
// Cache this package to prevent fur... | nathanjd/sass-stitcher | lib/package.js | JavaScript | apache-2.0 | 1,011 |
migration.up = function(db) {
db.dropTable();
db.createTable({
columns: {
"id": "TEXT",
"title": "TEXT",
"content": "TEXT",
"speaker": "TEXT",
"startDate": "TEXT",
"endDate": "TEXT",
"room": "TEXT"
}
});
};
migration.down = function(db) {
};
| PHPBenelux/titanium-conference-app | app/migrations/201501091839211_schedule.js | JavaScript | apache-2.0 | 296 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = {
today: '오늘',
now: '현재 시각',
backToToday: '오늘로 돌아가기',
ok: '확인',
clear: '지우기',
month: '월',
year: '년',
timeSelect: '시간 선택',
dateSelect: '날짜 선택',
monthSelect: '달 선택',
yearSelect: '연 선택',
decadeSelec... | qingege/react_draft | node_modules/rc-calendar/lib/locale/ko_KR.js | JavaScript | apache-2.0 | 911 |
var class_x_labs_1_1_serialization_1_1_asp_net_1_1_media_type_serializer =
[
[ "MediaTypeSerializer", "class_x_labs_1_1_serialization_1_1_asp_net_1_1_media_type_serializer.html#ad09835a40a22bbb01076939bacb3adca", null ],
[ "CanReadType", "class_x_labs_1_1_serialization_1_1_asp_net_1_1_media_type_serializer.html... | XLabs/xlabs.github.io | html/class_x_labs_1_1_serialization_1_1_asp_net_1_1_media_type_serializer.js | JavaScript | apache-2.0 | 802 |
/* global MM, jQuery, FormData, _ */
/**
* MM Gold API wrapper. This class is a JavaScript interface to the remote HTTP Gold server API,
* and provides low-level methods for authentication and generating security tokens.
* It implements the _configurationGenerator_ interface required by the {{#crossLink "LayoutExpor... | troven/meta4nms | todo/src/static/js/vendor/mindmup/lib/gold-api.js | JavaScript | apache-2.0 | 11,137 |
var win = Titanium.UI.currentWindow;
var imageView = Titanium.UI.createImageView({
image:'../../images/cheese.png',
width:261,
height:178,
top:20
});
win.add(imageView);
| wdmchaft/Translator | Resources/views/items/cheese.js | JavaScript | apache-2.0 | 178 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/i18n/angular-locale_en-to.js | JavaScript | apache-2.0 | 2,591 |
var _qrt = require("quark/quark_runtime.js");
exports.call_main = function () { main(process.argv.slice(1)); }
function main(args) {
_qrt.print("\"");
_qrt.print("\"\"");
_qrt.print("\u0000");
_qrt.print("\u00FF");
_qrt.print("\u00ff");
_qrt.print("\u00FF");
_qrt.print("\u00ff");
_qrt.p... | bozzzzo/quark | quarkc/test/emit/expected/js/strings/strings/index.js | JavaScript | apache-2.0 | 355 |
// flow-typed signature: 48fd157f231107443eea621151774082
// flow-typed version: <<STUB>>/prettier-eslint_v^9.0.0/flow_v0.92.0
/**
* This is an autogenerated libdef stub for:
*
* 'prettier-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work... | vishwesh3/zulip-mobile | flow-typed/npm/prettier-eslint_vx.x.x.js | JavaScript | apache-2.0 | 1,171 |
AWS.config.region = 'eu-west-1';
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
IdentityPoolId: 'eu-west-1:350ec7b8-c08e-4bc6-a52f-fad9f2b1ae5c'
});
function SendSNS(msg, name, email, result, thankyou)
{
msg = msg.trim()
name = name.trim()
email = email.trim()
thankyou = thankyou.tri... | isecurefi/startbootstrap-modern-business | js/sns.js | JavaScript | apache-2.0 | 1,487 |
/*global define */
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true,indent:4 */
/** @license
| Version 10.2
| Copyright 2013 Esri
|
| 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 ... | djmapper/smb-site-selector | js/library/nls/es/localizedStrings.js | JavaScript | apache-2.0 | 3,804 |
var createModal = function(width, height, file) {
var modalBackground = "<div id=\"modal-background\"></div>";
var modalHTML = "<div id=\"modal\"></div>";
var containerHTML = "<div id=\"modal-container\"></div>";
var closeButtonHTML = "<div id=\"close\"></div>";
$("body").prepend(modalBackground);
$("body")... | aditprab/Lucem | backend/public/javascripts/modal.js | JavaScript | apache-2.0 | 1,142 |
/*
Copyright (c) AppDynamics, Inc., and its affiliates
2015
All Rights Reserved
*/
'use strict';
function PgProbe(agent) {
this.agent = agent;
this.packages = ['pg'];
}
exports.PgProbe = PgProbe;
PgProbe.prototype.attach = function(obj) {
var self = this;
if(obj.__appdynamicsProbeAttached__) return;
o... | cloudfoundry/nodejs-buildpack | fixtures/with_appdynamics/node_modules/appdynamics/lib/probes/pg-probe.js | JavaScript | apache-2.0 | 3,824 |
var faultTolerantGetRandom = require('./faultTolerantGetRandom');
var bluebird = require('bluebird');
// start timer
console.time('timespent');
// retry options
var opts = {
retries: 100,
factor: 1.03,
minTimeout: 5,
maxTimeout: 100,
randomize: true,
maxTotalTimeout: 2000,
showTimeoutsArray: false
};
... | saitodisse/node-retry-example | index-promise.js | JavaScript | apache-2.0 | 776 |
/* 散点图表组件对象 */
var H5ComponentPoint = function(name, cfg) {
var component = new H5ComponentBase(name, cfg);
var base = cfg.data[0][1]; // 以第一个数据的 比例为大小的 100%
// 输出每个 Point
$.each(cfg.data, function(idx, item) {
var point = $('<div class="point point_' + idx + '" >');
var name = $('<div class="na... | zxchcyc/workplaces | codes/h5-report/js/H5ComponentPoint.js | JavaScript | apache-2.0 | 1,815 |
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2015-12-02 using
// generator-karma 1.0.1
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: tr... | zouzias/qlocktwo-angular | test/karma.conf.js | JavaScript | apache-2.0 | 2,419 |
class SidebarController {
constructor($scope, $state, $mdToast, Auth) {
this.$scope = $scope;
this.$state = $state;
this.$mdToast = $mdToast;
this.Auth = Auth;
this.user = {};
this.isAdmin = Auth.isAdmin;
this.options = [{
displayName: 'Buscar',
icon: 'search',
restricti... | taverasmisael/reservasmultiuso | app/scripts/controllers/controller.sidebar.js | JavaScript | apache-2.0 | 1,366 |
/*
* Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... | y-todorov/Inventory | Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.en.js | JavaScript | apache-2.0 | 2,669 |
/**
* Copyright 2014 Maxwell R Hadley
*
* 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 t... | kornelpro51/node-RED-dup | nodes/node-red-nodes/hardware/BBB/145-BBB-hardware.js | JavaScript | apache-2.0 | 23,945 |
// JavaScript Document
function getLures()
{
$.getJSON("lures.json", function(lures){
$('#lureList li').remove(); /*Remove list items, then run forloop*/
//alert(lures[1].brand);
//alert(lures.length);
for (var i=0; i<lures.length; i++)
{
document.getElementById('lureList').innerHTML +=
'<li>' + '<a href=... | mdeluca/FishingLureApp | www/js/lures.js | JavaScript | apache-2.0 | 553 |
/*
AngularJS v1.4.7
(c) 2010-2015 Google, Inc. http://angularjs.org
License: MIT
*/
(function (p, c, C) {
'use strict';
function v(r, h, g) {
return {
restrict: "ECA", terminal: !0, priority: 400, transclude: "element", link: function (a, f, b, d, y) {
function z() {
... | kbss/web-db-manager | db-manager-war/src/main/webapp/js/libs/angular/angular-route.min.js | JavaScript | apache-2.0 | 7,762 |
/**
* A toolbar that displays hierarchical data from a {@link Ext.data.TreeStore TreeStore}
* as a trail of breadcrumb buttons. Each button represents a node in the store. A click
* on a button will "select" that node in the tree. Non-leaf nodes will display their
* child nodes on a dropdown menu of the correspo... | rzen/link-rest-cms-demo | src/main/webapp/ext/src/toolbar/Breadcrumb.js | JavaScript | apache-2.0 | 15,023 |
/*
If you are new to grunt, be sure to examine the list of grunt.
registerTasks at the bottom of the page. Once defined, a
registered tasks can be used within other task definitions.
************************************************
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Most of the grunt tasks (watch/concat/... | slashk/goldstone-server | Gruntfile.js | JavaScript | apache-2.0 | 8,490 |
import React, {Component} from "react";
import {bindActionCreators} from "redux";
import {connect} from "react-redux";
import {requestToRollTheDice} from "../actions/roll-the-dice-select"
import { GAME_STATUS_NOT_STARTED, GAME_STATUS_IS_READY_TO_START,
GAME_STATUS_STARTED } from "../actions/game-status-select"
impo... | sarunask/roll-the-dice | dev/js/containers/roll-the-dice.js | JavaScript | apache-2.0 | 2,319 |
/* Navigation toggle on mobile */
(function () {
var hamburger = {
navToggle: document.querySelector('.wfp--main-navigation__button'),
nav: document.querySelector('.wfp--main-navigation__list'),
doToggle: function (e) {
e.preventDefault();
this.nav.classList.toggle('wfp--main-navigation__lis... | wfp/ui | src/components/MainNavigation/main-navigation.js | JavaScript | apache-2.0 | 2,235 |
var prefix = "/sys/menu";
$(document).ready(function () {
load();
});
var load = function () {
$('#exampleTable')
.bootstrapTreeTable(
{
id: 'menuId',
code: 'menuId',
parentCode: 'parentId',
type: "GET", // 请求数据的ajax类... | lcg0124/bootdo | bootdo/src/main/resources/static/js/appjs/sys/menu/menu.js | JavaScript | apache-2.0 | 5,749 |
// 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... | IanLewis/dashboard | src/test/frontend/common/components/resourcecard/resourcecardeditmenuitem_component_test.js | JavaScript | apache-2.0 | 2,618 |
// ParseDuration parses a duration string.
// A duration string is a possibly signed sequence of
// decimal numbers, each with optional fraction and a unit suffix,
// such as "30s", "5h" or "2h45m30s".
// Valid time units are "s", "m", "h".
function parseDuration(s) {
if (s.length == 0) {
return 0
}
... | bingoohuang/go-redis-web | res/utils.js | JavaScript | apache-2.0 | 2,419 |
'use strict';
/**
* @ngdoc function
* @name yomenApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the yomenApp
*/
angular.module('yomenApp')
.controller('MainCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
| postalC/angular-basic | work/yomen/app/scripts/controllers/main.js | JavaScript | apache-2.0 | 307 |
(function() {
"use strict";
angular
.module("TendrlModule")
.component("login", {
restrict: "E",
templateUrl: "/modules/login/login.html",
bindings: {},
controller: LoginController,
controllerAs: "loginCntrl"
});
/*@ngInj... | Tendrl/dashboard | src/modules/login/login.js | JavaScript | apache-2.0 | 3,679 |
var foo = {};
var obj = {a : 1, b : 2};
var names = Object.keys(obj);
var i = 0;
var name_obj = { name: names[i]};
foo[name_obj.name] = obj[name_obj.name]; // Split on name_obj.name
if (foo.a !== undefined) {
TAJS_assertEquals(1, foo.a);
}
if (foo.b !== undefined) {
TAJS_assertEquals(2, foo.b);
}
| cs-au-dk/TAJS | test-resources/src/property-name-partitioning/test4.js | JavaScript | apache-2.0 | 312 |
module.exports = bootstrap
function bootstrap (server, stores) {
return stores.reduce((promise, store) => {
return promise
.then(() => {
return findAllSentiments(server, store)
})
.then(() => {
// 1s timeout between bootstrapping
return new Promise(resolve => setTimeout(resolve, 1... | neighbourhoodie/voice-of-interconnect | hoodie/server/bootstrap.js | JavaScript | apache-2.0 | 1,733 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The Date.prototype has the property "setUTCMonth"
esid: sec-properties-of-the-date-prototype-object
es5id: 15.9.5_A39_T1
description: The Date.prototype has the property "setU... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Date/prototype/S15.9.5_A39_T1.js | JavaScript | bsd-2-clause | 466 |
var _kernel_8c =
[
[ "compute", "_kernel_8c.html#a657ce1d1d756eb99c1a0d2fbc1e1f884", null ]
]; | crurik/GrapeFS | Doxygen/html/_kernel_8c.js | JavaScript | bsd-2-clause | 98 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-cover.case
// - src/dstr-binding/default/cls-decl-gen-meth.template
/*---
description: SingleNameBinding does assign name to "anonymous" functions "through" cover grammar (class expression method)
esi... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/class/dstr-gen-meth-ary-ptrn-elem-id-init-fn-name-cover.js | JavaScript | bsd-2-clause | 3,095 |
// This file was procedurally generated from the following sources:
// - src/class-fields/init-err-contains-super.case
// - src/class-fields/initializer-error/cls-expr-fields-private-name.template
/*---
description: Syntax error if `super()` used in class field (ClassElementName PrivateName)
esid: sec-class-definitions... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/class/fields-private-literal-name-init-err-contains-super.js | JavaScript | bsd-2-clause | 780 |
(function ($) {
$.entwine('ss', function ($) {
/**
* Customise the cms-panel behaviour for right sidebar
*
* see LeftAndMain.Panel.js for base behaviour
*/
$('.rightsidebar').entwine({
MinInnerWidth: 1020,
onadd: function() {
// only set cms-panel collapse/expand if direct child of fieldset... | micschk/silverstripe-rightsidebar | js/cms.js | JavaScript | bsd-2-clause | 1,063 |
"use strict";
function isFunction(func) {
var type = {};
return func && type.toString.call(func) === '[object Function]';
}
function HTTP() {
var self = this;
self.jwt = localStorage.getItem('webtoken');
self.checkToken();
};
HTTP.prototype.request = function (method, url, body, success, failur... | rdleon/fileshare | public/libutil.js | JavaScript | bsd-2-clause | 4,490 |
goog.require('ol.Geolocation');
goog.require('ol.Map');
goog.require('ol.Overlay');
goog.require('ol.OverlayPositioning');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.dom.Input');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
var map = new ol.Map({
layers: [
new... | yinxiaomei/ol3 | examples/geolocation.js | JavaScript | bsd-2-clause | 1,667 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-id-init-fn-name-class.case
// - src/dstr-binding/default/gen-func-decl-dflt.template
/*---
description: SingleNameBinding assigns `name` to "anonymous" classes (generator function declaration (default parameter))
esi... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/generators/dstr-dflt-ary-ptrn-elem-id-init-fn-name-class.js | JavaScript | bsd-2-clause | 2,289 |
"use strict";
var helpers = require('../core/helpers');
var ResponseModule = (function (options, eventEmitter) {
this._ee = helpers.setDefaultEvents(eventEmitter, []);
var handlers = options.handlers,
overrideParseResponseBody = !!(handlers && handlers.parseResponseBody);
this.parseResponseBody = func... | sebinsua/express-keenio | lib/parse/response.js | JavaScript | bsd-2-clause | 941 |
/*global require: false, java: false, load: false */
(function () {
'use strict';
require.load = function (context, moduleName, url) {
load(url);
//Support anonymous modules.
context.completeLoad(moduleName);
};
}()); | alkaest2002/gzts-lab | web/app/assets/frameworks/bower_components/r.js/build/jslib/rhino.js | JavaScript | bsd-3-clause | 257 |
$.extend({
keys: function(obj){
var a = [];
$.each(obj, function(k){ a.push(k); });
return a;
}
});
if (!Array.indexOf) Array.prototype.indexOf = function(obj) {
for(var i = 0; i < this.length; i++){
if(this[i] == obj) {
return i;
}
}
return -1;
};
if (!Array.find_matches) Array.fi... | kinduff/spree_variant_options | app/assets/javascripts/spree/frontend/spree_variant_options.js | JavaScript | bsd-3-clause | 6,773 |
function FileData_Pairs(x)
{
x.t("survival","plot");
x.t("probe","enter");
x.t("example","snp_a-1650833");
x.t("human","mapping");
x.t("saved","previous");
x.t("create","kaplan-meier");
x.t("hugo","gene");
x.t("probeset","affymetrics");
x.t("kaplan-meier","survival");
x.t("type","search");
x.t("please","select");
x.t("... | NCIP/rembrandt | WebRoot/helpDocs/REMBRANDT_Online_Help/wwhdata/js/search/pairs/pair28.js | JavaScript | bsd-3-clause | 2,335 |
var express = require('express')
, router = express.Router()
, settings = require('../lib/settings')
, locale = require('../lib/locale')
, db = require('../lib/database')
, lib = require('../lib/explorer')
, qr = require('qr-image');
function route_get_block(res, blockhash) {
lib.get_block(blockhash, fun... | rudy4682/explorer | routes/index.js | JavaScript | bsd-3-clause | 8,591 |
var x = 'My ' + 'string';
var x = 'My ' + 1234;
var x = 'My ' + y + ' test';
this.errors['test'] = x;
this.errors['test' + 10] = x;
this.errors['test' + y] = x;
this.errors['test' + 'blah'] = x;
this.errors[y] = x;
this.errors[y + z] = x;
this.errors[y + z + 'My' + 'String'] = x;
this.errors['String'] = 'llllllllllll... | phpcq/coding-standard | tests/fixtures/PhpCodeQuality/Strings/UnnecessaryStringConcatUnitTest.js | JavaScript | bsd-3-clause | 564 |
/**************************************************************************************
* Copyright (c) 2013-2015, Finnish Social Science Data Archive/University of Tampere *
* *
* All rights reserved. ... | henrisu/metka | metka/src/main/webapp/resources/js/modules/map/savedExpertSearchQuery/transferRow.js | JavaScript | bsd-3-clause | 2,755 |
jQuery.fn.farbtastic = function (e) {
$.farbtastic(this, e);
return this
};
jQuery.farbtastic = function (e, t) {
var e = $(e).get(0);
return e.farbtastic || (e.farbtastic = new jQuery._farbtastic(e, t))
};
jQuery._farbtastic = function (e, t) {
var n = this;
$(e).html('<div class="farbtastic"><... | mzabolotnyi/familybudget | frontend/web/Material Admin Theme/farbtastic.min.js | JavaScript | bsd-3-clause | 7,694 |
dojo.provide("dojox.lang.functional.lambda");
// This module adds high-level functions and related constructs:
// - anonymous functions built from the string
// Acknoledgements:
// - lambda() is based on work by Oliver Steele
// (http://osteele.com/sources/javascript/functional/functional.js)
// which was publishe... | lortnus/zf1 | externals/dojo/dojox/lang/functional/lambda.js | JavaScript | bsd-3-clause | 3,596 |
/**
* simplePagination.js v1.6
* A simple jQuery pagination plugin.
* http://flaviusmatis.github.com/simplePagination.js/
*
* Copyright 2012, Flavius Matis
* Released under the MIT license.
* http://flaviusmatis.github.com/license.html
*/
(function($){
var methods = {
init: function(options) {
var o = $.extend(... | javierAgrocolor/aproa | web/js/jquery.simplePagination.js | JavaScript | bsd-3-clause | 6,966 |
// Copyright (c) 2015 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.Object}
*/
WebInspector.StylesPopoverHelper = function()
{
this._popover = new WebInspector.Popover... | Bysmyyr/chromium-crosswalk | third_party/WebKit/Source/devtools/front_end/elements/StylesPopoverHelper.js | JavaScript | bsd-3-clause | 12,232 |
var chai = require("chai"),
expect = chai.expect;
chai.should();
// In this instance, we're not testing the instrumentor, so we want the
// un-instrumented version.
var instrument = require("../lib/instrumentor");
path = global.__steamshovel ? "../lib-cov" : "../lib";
// A quick function to add some dummy results ... | cgiffard/SteamShovel | test/stats.js | JavaScript | bsd-3-clause | 6,719 |
Ext.define('Admin.view.dashboard.Dashboard', {
extend: 'Ext.container.Container',
requires: [
'Ext.ux.layout.ResponsiveColumn'
],
id: 'dashboard',
controller: 'dashboard',
viewModel: {
type: 'dashboard'
},
layout: 'responsivecolumn',
listeners... | sqlwang/DeviceManagementSystem | backend/webapp/ext/templates/admin-dashboard/classic/src/view/dashboard/Dashboard.js | JavaScript | bsd-3-clause | 1,405 |
YUI.add('aui-scheduler-tests', function(Y) {
var suite = new Y.Test.Suite('aui-scheduler');
var DateMath = Y.DataType.DateMath;
var today = new Date();
var JANUARY_1 = DateMath.getJan1(today.getFullYear());
var JULY_1 = DateMath.getDate(today.getFullYear(), 6, 1);
var NO_DST_OFFSET = (JANUARY_... | fernandosouza/alloy-ui | src/aui-scheduler/tests/unit/js/tests.js | JavaScript | bsd-3-clause | 42,062 |
/**
* @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/tests/planning-manifest-integration-test.js | JavaScript | bsd-3-clause | 1,106 |
var classwblut_1_1geom_1_1_w_b___earcut_1_1_collinear =
[
[ "Collinear", "classwblut_1_1geom_1_1_w_b___earcut_1_1_collinear.html#a65fb2bb48755d753d569ec48f4b0d329", null ]
]; | DweebsUnited/CodeMonkey | resources/hemesh/ref/html/classwblut_1_1geom_1_1_w_b___earcut_1_1_collinear.js | JavaScript | bsd-3-clause | 178 |
'use strict';
require('../helper');
const sinon = require('sinon');
const assert = require('../support/assert');
const PubSubMetricsService = require('../../lib/services/pubsub-metrics');
const fakeTopic = {
name: 'test-topic',
publish: sinon.stub().returns(Promise.resolve())
};
const fakePubSub = {
top... | CartoDB/CartoDB-SQL-API | test/unit/pubsub-metrics-test.js | JavaScript | bsd-3-clause | 1,211 |
'use strict';
var queue = require('queue-async');
/**
* @param {Array|Object} cacheBackends each backend backend should respond to `invalidate(cacheObject, callback)` method
* @constructor
*/
function SurrogateKeysCache (cacheBackends) {
this.cacheBackends = Array.isArray(cacheBackends) ? cacheBackends : [cach... | CartoDB/Windshaft-cartodb | lib/cache/surrogate-keys-cache.js | JavaScript | bsd-3-clause | 1,553 |
jsonp({"fullName":'Fx.numberTweener',"source":'Tween.js',"sourceFile":'data/source/Tween.js.html#Fx-numberTweener',"methods":[{"name":'compute',"icon":'method',"fullName":'Fx.numberTweener.compute',"summary":'<p>\u5e38\u7528\u8ba1\u7b97\u3002</p>\n',"isStatic":true}],"summary":'<p>\u7528\u4e8e\u6570\u5b57\u7684\u52a8\... | jplusui/jplusui.github.com | resources/cookbooks/jplusui-full-api/data/api/Fx.numberTweener.js | JavaScript | bsd-3-clause | 419 |
// @remove-on-eject-begin
/**
* 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 ... | andyhite/create-react-app | packages/react-scripts/config/webpack.config.prod.js | JavaScript | bsd-3-clause | 10,535 |
import React from 'react';
import ReactDOM from 'react-dom';
import './themedux/common.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
| i-July/footballgo | src/index.js | JavaScript | bsd-3-clause | 178 |
"use strict";
var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
var _halDecoratorsDecoratorFactory = require('./halDecorators/decoratorFactory');
var _halDecoratorsDecoratorFactory2 = _interopRequireDe... | openAgile/CommitStream.Web | src/app/api/inboxes/inboxFormatAsHal.js | JavaScript | bsd-3-clause | 1,362 |
/*!
Windows Registry Settings Handler
Copyright 2012 Raising the Floor - International
Copyright 2012 Antranig Basman
Copyright 2012 Astea Solutions AD
Licensed under the New BSD license. You may not use this file except in
compliance with this License.
You may obtain a copy of the License at
https://github.com/gpii... | amb26/windows | gpii/node_modules/WindowsUtilities/WindowsUtilities.js | JavaScript | bsd-3-clause | 15,830 |
/**
* jQuery Grid-A-Licious(tm) v3.01
*
* Terms of Use - jQuery Grid-A-Licious(tm)
* under the MIT (http://www.opensource.org/licenses/mit-license.php) License.
*
* Copyright 2008-2012 Andreas Pihlström (Suprb). All rights reserved.
* (http://suprb.com/apps/gridalicious/)
*
*/
// Debouncing function from John... | arrti/myF2E | static/js/widget/jquery.grid-a-licious.js | JavaScript | bsd-3-clause | 13,350 |
---
---
jQuery(function() {
// Initialize lunr with the fields to be searched, plus the boost.
window.idx = lunr(function () {
this.field('id');
this.field('title');
this.field('content', { boost: 10 });
this.field('author');
this.field('categories');
});
// Get the generated se... | CELavecchia/LMG | docs/js/search.js | JavaScript | bsd-3-clause | 2,019 |
/* eslint-disable */
import fs from 'fs';
import mongoose from 'mongoose';
import parseChallenge from './utils/parseChallenge';
import copyChallengeTemplate from './utils/copyChallengeTemplate';
import ReactSource from './source/react';
import ReduxSource from './source/redux';
import ReactReduxSource from './source/re... | bonham000/fcc-react-tests-module | conversion-utils/seed-converter/src/conversionUtility.js | JavaScript | bsd-3-clause | 4,327 |
'use strict';
module.exports = function (Logger, $http, $q, config) {
var service = this;
this.loadFile = function (url) {
var deferred = $q.defer();
$http.get(config.website.content_root + url, {
skipAuthorization: true
}).then(function (response) {
deferre... | e1528532/libelektra | src/tools/rest-frontend/resources/assets/js/services/WebsiteService.js | JavaScript | bsd-3-clause | 525 |
/**
* Copyright 2013-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.
*
* @providesModu... | eoin/react | src/renderers/shared/fiber/ReactFiberCommitWork.js | JavaScript | bsd-3-clause | 11,945 |
var searchData=
[
['cprogramming',['CProgramming',['../struct_c_programming.html',1,'']]]
];
| MicrochipTech/unicens | doc/html/search/classes_63.js | JavaScript | bsd-3-clause | 95 |
/* ==========================================================
* bootstrap-carousel.js v2.0.0
* http://twitter.github.com/bootstrap/javascript.html#carousel
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")... | consec/ConSec | federation-id-prov-support/src/main/resources/usr/share/simplesamlphp-1.9.0/www/resources/contrail-theme/js/bootstrap/bootstrap-carousel.js | JavaScript | bsd-3-clause | 5,098 |
"use strict";
var vo = {
contextRoot : ""
, tokenizer : function(s){ // c is string TODO array!
for(var i = 0; i < s.length; i++){
var c = s.charAt(i);
if(c == " ")
debug.log("");
}
}
};
| jaoki/visualoozie | src/main/webapp/js/visualoozie.js | JavaScript | bsd-3-clause | 211 |
Source={};
Source.table=function(type){return {
struct:"/v1/parcelleunitefiscale",
// query :"/v1/parcelleunitefiscale/",
// param :{conj:["&"],name:["documentation_associée"],oper:["!"],data:['']},
// only:{},
table :{
'id' :{format:function(val,row,t,c){return $("<button/>",{title:$.map(row,functi... | Laumaned/Site_DoItYourself | web/js/Source.js | JavaScript | bsd-3-clause | 1,340 |
var searchData=
[
['node',['Node',['../a00166.html',1,'gtsam::DecisionTree']]],
['node',['Node',['../a00167.html',1,'gtsam::EliminationTree']]],
['noisemodelfactor',['NoiseModelFactor',['../a00168.html',1,'gtsam']]],
['noisemodelfactor1',['NoiseModelFactor1',['../a00169.html',1,'gtsam']]],
['noisemodelfactor1... | devbharat/gtsam | doc/html/search/classes_e.js | JavaScript | bsd-3-clause | 3,235 |
define(function (require, exports, module) {
// 该模块负责留言页面的功能
var yy = require("config"),
div = $('#aj-mid .mess-wrap');
function Mess(div){
if( this instanceof Mess ){
this.div = div;
this.canSubmit = true;
this.form = $(this.div).find('.mess-submit-form')[0];
this.event();
}else{
return new Mes... | AJLoveChina/oshjf | web/js/modules/message/message.js | JavaScript | bsd-3-clause | 3,082 |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import d3 from 'd3';
import { USER_PROFILE_URL } from '../../config';
import TasksSelectors from '../../stores/tasks_selectors';
import ActivitySelectors from '../../stores/activity_selectors';
import ActivityActionCreators fro... | osmlab/to-fix | src/components/activity/index.js | JavaScript | bsd-3-clause | 4,413 |
function limparCamposFotoPerfil() {
$("#idFotoPerfil").val('');
$("#idAlbumFotoPerfil").val(top.idAlbum);
$("#tpFotoPerfil").val('1');
$("#stFotoPerfil").val('1');
$("#stComentarioFotoPerfil").val('1');
$("#dsLegendaFotoPerfil").val('');
$("#dsArquivoFotoPerfil").val('');
$('#img... | luizrjunior/ClubeLuxuria | public/js/album-foto/foto-perfil.js | JavaScript | bsd-3-clause | 6,940 |
/*
*= require store/equalheight
*/
| tka/spree_plus | app/assets/javascripts/store/spree_plus.js | JavaScript | bsd-3-clause | 35 |
//
// This is the original comment.
//
// Note: we can't get significant speed boost here.
// So write code to minimize size - no pregenerated tables
// and array tools dependencies.
// (C) 1995-2013 Jean-loup Gailly and Mark Adler
// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
//
// This software is provided 'as-... | filesender/filesender | www/js/crc32handler.js | JavaScript | bsd-3-clause | 2,299 |
/*
* Copyright (C) 2012-2018 Doubango Telecom <http://www.doubango.org>
* License: BSD
* This file is part of Open Source sipML5 solution <http://www.sipml5.org>
*/
/**
* SIP INVITE Client Transaction as per RFC 3261 subclause 17.1.1.
*/
tsip_transac_ict.prototype = Object.create(tsip_transac.prototype);
tsip_transac... | DoubangoTelecom/sipml5 | src/tinySIP/src/transactions/tsip_transac_ict.js | JavaScript | bsd-3-clause | 25,312 |
/**
* Sidebar view
*
* @author Mautilus s.r.o.
* @class View_Sidebar
* @extends View
*/
function View_Sidebar() {
View.apply(this, arguments);
};
View_Sidebar.prototype.__proto__ = View.prototype;
/**
* @inheritdoc View#render
*/
View_Sidebar.prototype.render = function() {
return Template.render('sidebar',... | wdoganowski/inio-tvapp | application/view/sidebar.js | JavaScript | bsd-3-clause | 1,490 |
var axios = require('axios');
var BASE_URL = 'https://spreadsheets.google.com/feeds/';
// Utility functions
// Get value from a nested structure or null.
function getIn(o, keys) {
var k = keys[0],
ks = keys.slice(1);
if (!o.hasOwnProperty(k)) return null;
return ks.length ? getIn(o[k], ks) : o[k];
}
// ... | geraldarthur/gsheets | index.js | JavaScript | bsd-3-clause | 3,752 |