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
// Copyright 2016 The HongJiang Library Project Authors. All right reserved. // Use of this source code is governed by a Apache-style // license that can be found in the LICENSE file. // // 定義設置項數據模式之列項結構 // // @authors hjboss <hongjiangproject@gmail.com> 2016-07-05 13:45:04 CST $$ // @version 0.1.0 const jugglingdb = ...
hongjiangboss/collavis.com.cn
schema/product.js
JavaScript
apache-2.0
1,281
/* * Copyright 2014 Space Dynamics Laboratory - Utah State University Research Foundation. * * 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...
Razaltan/openstorefront
client/openstorefront/app/scripts/controllers/admin/data_management/editcodes.js
JavaScript
apache-2.0
17,192
export default { 'ru': 'rub.', 'lt': '€', 'us': '$' }
Rebulus/ikea-basket
helpers/dicts/currency.js
JavaScript
apache-2.0
68
module.exports = { files: ['Gruntfile.js', './**/*.js', './test/**/*.js'], options: { sub: true, boss: true, globals: { jQuery: true } } };
aakhmerov/DOH2015
dev/tasks/options/jshint.js
JavaScript
apache-2.0
196
/** * Copyright 2012 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
benvanik/games-framework
src/gf/util/util.js
JavaScript
apache-2.0
1,891
var y = 7; function g() { y = y+1; } TAJS_dumpValue(y); g(); TAJS_dumpValue(y);
cs-au-dk/TAJS
test-resources/src/micro/test22b.js
JavaScript
apache-2.0
82
/** * @ignore */ exports.shouldCorrectlyHandleThrownError = { // Add a tag that our runner can trigger on // in this case we are setting that node needs to be higher than 0.10.X to run requires: {node: ">=0.11.0"}, // The actual test we wish to run test: function(configuration, test) { var db = confi...
dnanexus/node-mongodb-native
test/tests/functional/exception_tests.js
JavaScript
apache-2.0
3,302
module.exports = [{"isId":true,"priority":100101.0023,"key":"movableView","style":{top:0,zIndex:100,width:"100%",}}];
lucheins/GoTransfer
Resources/android/alloy/styles/portal.js
JavaScript
apache-2.0
117
/** * Created by zhang on 2016/12/7. */ 'use strict'; var s = 'hello'; function h(name){ console.log(s +" "+ name + "!"); } //把h作为模块的输出 暴露出去 module.exports = h;
feng003/ForXB
api/mHello.js
JavaScript
apache-2.0
194
$(function(){ var $winWidth = 1000; var $winHeight = 600; var $grid = $('#data_grid').datagrid({ url: ksa.buildUrl( "/data/logistics/bookingnote", "query" ), queryParams : { 'CREATOR_ID' : CURRENT_USER_ID }, fit : true, border:false, pageSize: 5, fitColumns: ...
whitesource/fs-agent
test_input/ksa/ksa-web-root/ksa-logistics-web/src/main/resources/portal/logistics/default.js
JavaScript
apache-2.0
2,696
var gr8 = require('gr8') var options = require('./options') var utils = [ ] utils.push({ prop: 'font-family', join: '-', vals: options.typography }) utils.push({ prop: { bgc: 'background-color' }, join: '-', vals: options.colors }) utils.push({ prop: { bgch: 'background-color' }, tail: ':hover', jo...
jondashkyle/enoki-starterkit
source/design/utilities.js
JavaScript
apache-2.0
1,417
// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-component-passport // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 /* * Internal utilities for models */ var crypto = require('crypto'); var assert = requ...
wearescytale/loopback-component-passport
lib/models/utils.js
JavaScript
artistic-2.0
1,256
function ObjectWorm(aImage) { this.image = aImage; this.scale = 1; this.scaleX = 1; this.scaleY = 1; } ObjectWorm.prototype.update = function(delta) { }; ObjectWorm.prototype.draw = function(canvas, x, y, angleInRadians) { var ctx = canvas.getContext("2d"); var lSize = canvas.width * 0.75 * t...
AphexHenry/aphexhenry.github.io
pages/animationCarla/js/objects/ObjectWorm.js
JavaScript
artistic-2.0
601
/* * command line interface for nscale * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * IND...
nearform/nscale-client
lib/fetchSys.js
JavaScript
artistic-2.0
1,908
var indexSectionsWithContent = { 0: "abcdeghilmnoprstuv~", 1: "achpstv", 2: "abcdeghilmnoprstuv~", 3: "i", 4: "o" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "functions", 3: "typedefs", 4: "related" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Functions", 3: "Typed...
theanonym/libyoba-perl
docs/search/searchdata.js
JavaScript
artistic-2.0
345
// This file was procedurally generated from the following sources: // - src/declarations/redeclare-with-class-declaration.case // - src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template /*--- description: redeclaration with ClassDeclaration (GeneratorDeclaration in SwitchStatement) esid...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/switch/syntax/redeclaration/generator-declaration-attempt-to-redeclare-with-class-declaration.js
JavaScript
bsd-2-clause
756
var browserify = require('browserify'), buffer = require('vinyl-buffer'), del = require('del'), gulp = require('gulp'), source = require('vinyl-source-stream'), uglify = require('gulp-uglify'); gulp.task('clean', function () { return del(['build']); }); gulp.task('pages', function () { return gu...
AktivCo/rutokenweb-plugin-demo
gulpfile.js
JavaScript
bsd-2-clause
1,159
var kdbtree = require('../') var test = require('tape') var fdstore = require('fd-chunk-store') var tmpdir = require('os').tmpdir() var path = require('path') var file = path.join(tmpdir, 'kdb-tree-' + Math.random()) test('remove by value', function (t) { t.plan(8) var kdb = kdbtree({ types: [ 'float32', 'flo...
peermaps/kdb-tree-store
test/remove_by_value.js
JavaScript
bsd-2-clause
1,322
var _ = require("underscore"); var request = require("request"); var qs = require("querystring"); var uuid = require("node-uuid"); var should = require("should"); var sinon = require("sinon"); var url = require("url"); var ua = require("../lib/index.js"); var utils = require("../lib/utils.js") var config = require("....
ticolucci/dotfiles
atom/packages/atom-beautify/node_modules/universal-analytics/test/timing.js
JavaScript
bsd-2-clause
13,050
function compareTo() { return { require: 'ngModel', scope: { otherModelValue: '=compareTo', }, link(scope, element, attributes, ngModel) { const validate = (value) => { ngModel.$setValidity('compareTo', value === scope.otherModelValue); }; scope.$watch('otherModelValue...
chriszs/redash
client/app/directives/compare-to.js
JavaScript
bsd-2-clause
602
var webpack = require('webpack'); var path = require('path'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var definePlugin = new webpack.DefinePlugin({ __API_ENDPOINT__: JSON.stringify(process.env.CRDS_API_ENDPOINT || 'https://gatewayint.crossroads.net/gateway/'), __CMS_ENDPOINT__: JSON.str...
crdschurch/crds-corejs
karma.ci.conf.js
JavaScript
bsd-2-clause
3,554
// 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-2-8 description: > Array.prototype.filter applied to Array-like object, 'length' is own accessor property that overrides...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
JavaScript
bsd-2-clause
791
export default { "index": 14, "lineNumber": 1, "column": 15, "description": "Unexpected token =" }
eslint/espree
tests/fixtures/ecma-version/6/destructuring/param-deafults-object.result.js
JavaScript
bsd-2-clause
114
var tree; var prevtrees = []; var nexttrees = []; function node() { this.value = null; this.children = []; this.par = null; this.inverted = 0; this.index; } function mathTree() { this.root = new node(); this.buildTree = function(arr) {add(this.root, arr, arr.length-1, 0); assignIndices(this.root, 0); ...
jlabarbera11/TouchOfMath
tree.js
JavaScript
bsd-2-clause
3,915
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 13.1-38-s description: > StrictMode - SyntaxError is thrown if 'eval' occurs as the Identifier of a FunctionExpression whose FunctionBody is contained in stric...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/function/name-eval-strict-body.js
JavaScript
bsd-2-clause
491
// export the class if we are in a Node-like system. if (typeof module === 'object' && module.exports === exports) exports = module.exports = SemVer; // The debug function is excluded entirely from the minified version. /* nomin */ var debug; /* nomin */ if (typeof process === 'object' && /* nomin */ process.env...
rvagg/sanever
semver.js
JavaScript
bsd-2-clause
28,864
// This file was procedurally generated from the following sources: // - src/annex-b-fns/global-existing-var-update.case // - src/annex-b-fns/global/if-decl-else-decl-a.template /*--- description: Variable-scoped binding is updated following evaluation (IfStatement with a declaration in both statement positions in the ...
sebastienros/jint
Jint.Tests.Test262/test/annexB/language/global-code/if-decl-else-decl-a-global-existing-var-update.js
JavaScript
bsd-2-clause
1,754
import { PluginRegistry } from '../app/PluginRegistry'; import { ObjectNode, ObjectRefUtils } from './ObjectNode'; import { StateNode, } from './StateNode'; import { ActionNode } from './ActionNode'; import { SlideNode } from './SlideNode'; import { GraphEdge } from '../graph/graph'; import { ResolveNow } from '../base...
datavisyn/tdp_core
dist/provenance/ProvenanceGraphUtils.js
JavaScript
bsd-3-clause
5,315
function FileData_Pairs(x) { x.t("uniquely","corresponds"); x.t("calgb","database"); x.t("calgb","patient"); x.t("2007","date"); x.t("lists","variables"); x.t("table","lists"); x.t("description","format"); x.t("mm/dd/yyyy","inst_id"); x.t("variables","description"); x.t("downloaded","calgb"); x.t("(kg)","nu...
NCIP/i-spy
WebRoot/helpDocs/I-SPY_Online_Help/wwhdata/js/search/pairs/pair68.js
JavaScript
bsd-3-clause
2,298
/* ========================================= * Copyright (c) 2015-present, Billgo. * Copyright (c) 2015-present, Facebook, Inc. * * All rights reserved. *======================================== */ function throttleAndDebounce(fn, throttleMs, debounceMs) { let lastCall = null; let timeout = null; return () => {...
teasim/teasim-helpers
source/throttleAndDebounce.js
JavaScript
bsd-3-clause
634
PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null," \n\r  "],[PR.PR_PLAIN,/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])+(?:\'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[[PR.PR_COMMENT,/^(?:\/\/[^\r\n]*|\/\*[\s\S]*?\*\/)/],[PR.PR_PLAIN,/^(?:[^\/\"\'`]|\/(?![\/\*]))+/i]]),["go"]); //# s...
infrabel/docs-gnap
node_modules/gnap-theme-gnap-angular/js/angular/docs/components/google-code-prettify-1.0.1/src/lang-go.min.js
JavaScript
bsd-3-clause
428
/*! lightgallery - v1.2.6 - 2015-10-29 * http://sachinchoolur.github.io/lightGallery/ * Copyright (c) 2015 Sachin N; Licensed Apache 2.0 */ (function($, window, document, undefined) { 'use strict'; var defaults = { pager: false }; var Pager = function(element) { this.core = $(element...
esclkm/hod
themes/hodstrap/js/lightgallery/js/lg-pager.js
JavaScript
bsd-3-clause
2,869
/* medea.js - Open Source, High-Performance 3D Engine based on WebGL. * * (c) 2011-2013, Alexander C. Gessler * https://github.com/acgessler/medea.js * * Made available under the terms and conditions of a 3-clause BSD license. * */ medealib.define('mesh',['vertexbuffer','indexbuffer','material','entity','rende...
acgessler/medea.js
medea/medea.mesh.js
JavaScript
bsd-3-clause
10,062
/*jshint browser:true */ /*global $ */(function() { "use strict"; /* hook up event handlers */ function register_event_handlers() { //intel.xdk.device.addVirtualPage(); /* button Proceed */ /* button Proceed */ /* button Proceed */ /* butto...
konguks/DisApp
www/js/index_user_scripts.js
JavaScript
bsd-3-clause
2,436
define([ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/Deferred', 'dojo/aspect', 'dojo/when' ], function (declare, lang, Deferred, aspect, when) { function getSchemaProperty(object, key) { // this function will retrieve the individual property definition // from the schema, for the provided object and key ...
ibm-js/angular-delite-example
bower_components/dstore/Model.js
JavaScript
bsd-3-clause
24,374
'use strict'; /* eslint-disable */ function PushReceiver(quiet) { this.set = {}; this.quiet = true; if (quiet != undefined) { this.quiet = quiet; } }; function __aggr(tgt, src) { for(var key in src) { if(!tgt.hasOwnProperty(key)) { tgt[key] = { "_type" : src[key]._type...
esproul/nad
node_modules/push_receiver/index.js
JavaScript
bsd-3-clause
2,361
/* globals CodeMirror */ var Formplayer = { Utils: {}, Const: {}, ViewModels: {}, Errors: {} }; var markdowner = window.markdownit(); //if index is part of a repeat, return only the part beyond the deepest repeat function relativeIndex(ix) { var steps = ix.split(','); var deepest_repeat = -1, ...
qedsoftware/commcare-hq
corehq/apps/cloudcare/static/cloudcare/js/form_entry/fullform-ui.js
JavaScript
bsd-3-clause
24,529
$(function () { function buscaCategoriasPai(){ $.ajax({ url: '/finan/categorias/buscaCategoriasPai', }).done(function (result) { $(result).each(function (i, cada){ $('#finan_catpai').append('<option data-status="'+cada.status+'" value="'+cada...
jbmchd/tld
public/js/financeiro/categorias.js
JavaScript
bsd-3-clause
5,664
/** * Create view with outline * * @param container * @param width * @param height */ function createViewWithOutline(container, width, height) { var view = new JenScript.View({ name : container, width : width, height : height, holders : 20, }); var bg1 = new JenScript.GradientVi...
sjanaud/jenscript
catalog/views/outline/outline.js
JavaScript
bsd-3-clause
1,048
(function (angular, showdown) { // Conditional load for NodeJS if (typeof require !== 'undefined') { angular = require('angular'); showdown = require('showdown'); } //Check if AngularJs and Showdown is defined and only load ng-Showdown if both are present if (typeof angular !== 'undefined' && typeof ...
ajn0592/ng-showdown
src/ng-showdown.js
JavaScript
bsd-3-clause
6,742
var path = require('path'), fs = require('fs'), glob = require('glob'), util = require('./index'), log = require('./log'), VERSION = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf8')).version, parse = function(args) { var options = { color: true, ...
leo-guinan/grover
lib/options.js
JavaScript
bsd-3-clause
13,002
var AppConfig = {}
AppSharing/casa-admin-outlet
src/config/app.js
JavaScript
bsd-3-clause
18
// Copyright 2013 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. // Custom binding for the fileSystemProvider API. var binding = require('binding').Binding.create('fileSystemProvider'); var fileSystemProviderInternal =...
chromium2014/src
chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js
JavaScript
bsd-3-clause
7,855
var Backbone = require('backbone'); var LegendBaseTypeView = require('builder/editor/layers/layer-content-views/legend/legend-base-type-view'); var MapDefinitionModel = require('builder/data/map-definition-model'); var LegendDefinitionsCollection = require('builder/data/legends/legend-definitions-collection'); var Conf...
CartoDB/cartodb
lib/assets/test/spec/builder/editor/layers/layer-content-view/legend/legend-base-type-view.spec.js
JavaScript
bsd-3-clause
3,999
/** * Form functionalities * @package zork * @subpackage form * @author David Pozsar <david.pozsar@megaweb.hu> */ ( function ( global, $, js ) { "use strict"; if ( typeof js.form.element.carousel !== "undefined" ) { return; } /** * Carousel form element * * @memberOf Zo...
webriq/core
module/Core/public/scripts/zork/form/element/carousel.js
JavaScript
bsd-3-clause
3,156
jQuery(document).ready(function ($) { // initialize ACE Editor for the WP post content textarea#content $('#content').AceEditor({ // overwrites the default setEditorContent: function () { var value = (getUserSetting('editor') == 'tinymce' && window.tinyMCE) ? tinyMCE.get(this.element).getContent() : ...
daxitude/ace-4-wp
aceinit.dev.js
JavaScript
bsd-3-clause
6,625
function FileData_Pairs(x) { x.t("included","camod"); x.t("camod","working"); x.t("background","entering"); x.t("working","animal"); x.t("editing","sirna"); x.t("editing","models"); x.t("transient","interference"); x.t("details","page"); x.t("entering","editing"); x.t("sirna","background"); x.t("sirna","det...
NCIP/camod
software/camod/WebRoot/WebHelp/caMOD_Online_Help/wwhdata/js/search/pairs/pair75.js
JavaScript
bsd-3-clause
609
tinyMCE.addI18n('en.googlemaps',{ desc : 'google maps', deldesc : 'remove google maps' });
Coalas/apsilesia
sapphire/thirdparty/tinymce/plugins/googlemaps/langs/en.js
JavaScript
bsd-3-clause
97
// This code was written by Tyler Akins and has been placed in the // public domain. It would be nice if you left this header intact. // Base64 code from Tyler Akins -- http://rumkin.com // modified version from svg-edit http://code.google.com/p/svg-edit/ (function($) { $.base64 = {}; /** * Encode in base64 an arra...
dduponchel/GraouPack
js/lib/jQuery.base64.js
JavaScript
bsd-3-clause
1,144
// jshint unused:false, undef:false, quotmark:false require(["jquery"], function ($) { // this must be setup after jquery is loaded, but before jquery.mobile is loaded $(document).bind("mobileinit", function(){ // if this is set false the app must call $.mobile.initializePage(); $.mobile.autoInitializePage =...
edchat/dappSamples
jqmAppSimple/jqmAppSimple.js
JavaScript
bsd-3-clause
1,455
/** Closely modeled on Mapnik's terminology and the structure of its XML files */ // namespacing! if (!com) { var com = { }; } if (!com.stamen) { com.stamen = {}; } if (!com.stamen.vectormap) { com.stamen.vectormap = {}; } // Map... com.stamen.vectormap.Map = function(bgColor, layers, styles) { this....
RandomEtc/js-vector-maps
vectormap.js
JavaScript
bsd-3-clause
10,148
define([ 'backbone', "pages/forum/models/ForumModel" ], function(Backbone, ForumModel){ var ForumCollection = Backbone.Collection.extend({ model: ForumModel, comparator: function(forum) { return forum.getFullName(); } }); return ForumCollection; });
coursera/forum-js-snapshot
app/models/ForumCollection.js
JavaScript
bsd-3-clause
283
var app = require('../../app'), db = require('../database') app.get('/api/log', function (req, res, next) { var where = { timestamp: { gte: req.query.from, lte: req.query.to } } if(req.query.beer && req.query.beer !== '-1') where.beerId = req.query.beer ...
akileh/fermpi
back/routes/log.js
JavaScript
bsd-3-clause
550
var indexSectionsWithContent = { 0: "_acdefghilmnoprstuvw", 1: "elo", 2: "ade", 3: "acdefginprsw", 4: "cdefhilmnrstuvw", 5: "ev", 6: "e", 7: "e", 8: "_adefmnrstv", 9: "demrsv", 10: "deu" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "files", 3: "functions", 4: "variables", 5...
nschloe/seacas
docs/html/search/searchdata.js
JavaScript
bsd-3-clause
635
"use strict"; var path = require("path"); module.exports = function(grunt) { var jsFiles = ["Gruntfile.js", "src/**/*.js", "test/**/*.js"]; grunt.initConfig({ pkg: grunt.file.readJSON("package.json"), jshint: { options: { jshintrc: ".jshintrc" }, all: jsFiles }, jsbeaut...
dertseha/ws-testbed-chat
Gruntfile.js
JavaScript
bsd-3-clause
1,062
var Backbone = require('backbone'); var MetadataView = require('../../../../../../javascripts/cartodb3/components/modals/map-metadata/map-metadata-view'); var VisDefinitionModel = require('../../../../../../javascripts/cartodb3/data/vis-definition-model'); var ConfigModel = require('../../../../../../javascripts/cartod...
splashblot/dronedb
lib/assets/test/spec/cartodb3/components/modals/map-metadata/map-metadata-view.spec.js
JavaScript
bsd-3-clause
3,263
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ /* More information about these options at jshint.com/docs/options */ /* globals trace, InfoBox...
YouthAndra/apprtc
src/web_app/js/appcontroller.js
JavaScript
bsd-3-clause
17,397
/* * Copyright (C) 2008 Apple Inc. All rights reserved. * Copyright (C) 2011 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: * * 1. Redistributions of source code must retai...
kurli/blink-crosswalk
Source/devtools/front_end/ui/TextPrompt.js
JavaScript
bsd-3-clause
29,440
import {extend} from './utils' import UIObject from './ui_object' export default class Playback extends UIObject { constructor(options) { super(options) this.settings = {} } play() {} pause() {} stop() {} seek(time) {} getDuration() { return 0 } isPlaying() { return false } getPl...
wxmfront/clappr
src/base/playback.js
JavaScript
bsd-3-clause
604
define(["dojo/_base/lang", "dojo/_base/connect", "dojo/_base/declare", "dojo/sniff", "./ChartAction", "../Element", "dpointer/events", "../plot2d/common"], function(lang, hub, declare, has, ChartAction, Element, events, common){ var sUnit = 120; var keyTests = { none: function(event){ return !event.ctrlKey &&...
ibm-js/dcharting
action2d/ZoomAndPan.js
JavaScript
bsd-3-clause
12,728
$('document').ready(function() { $('#stage').districtMap({ enableSketching : true, enableZoom : true, states : STATES, districts : DISTRICTS, initialViewBox : '-20 -20 780 440', zoomDuration : 2000, fields : { sketchToken : $('#sketch_token'), ...
sunlightlabs/bdad
public/javascripts/edit_sketch.js
JavaScript
bsd-3-clause
729
'use strict'; var getExamples = require('../lib/examples').get; var renderExamples = require('../lib/examples').render; var pkgMeta = require('../lib/package-meta')('handlebars-intl'); module.exports = function (route) { route.name = 'handlebars'; route.get(function (req, res, next) { res.l...
okuryu/formatjs-site
routes/handlebars.js
JavaScript
bsd-3-clause
760
/** * Created by liuxizi.xu on 3/28/17. */ 'use strict'; /* global angular:false, d3:false, $:false. document:false */ angular.module('argus.services.charts.elements', []) .service('ChartElementService', ['ChartToolService', 'UtilService', function(ChartToolService, UtilService) { var nGridXSmall = 5; var nGridYS...
salesforce/Argus
ArgusWeb/app/js/services/charts/chartElements.js
JavaScript
bsd-3-clause
67,918
/* Copyright (c) 2015, Kotaro Endo. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
kotarondo/PersHA.js
core/types.js
JavaScript
bsd-3-clause
30,172
// Copyright (c) 2012 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. /** * Base class for image metadata parsers that only need to look at a short * fragment at the start of the file. * @abstract */ class SimpleImag...
endlessm/chromium-browser
ui/file_manager/file_manager/foreground/js/metadata/image_parsers.js
JavaScript
bsd-3-clause
6,277
/* Keypress version 1.0.2 */ (function(){var v,w,j,O,P,Q,R,D,x,y,E,F,m,S,T,U,G,V,W,X,H,Y,n,q,g,I,r,J,s,t,K,z,u,L,A,k,M,p,B,N,C,Z,h=[].indexOf||function(a){for(var c=0,b=this.length;c<b;c++)if(c in this&&this[c]===a)return c;return-1},aa={}.hasOwnProperty;Array.prototype.filter||(Array.prototype.filter=function(a){var c...
drawquest/drawquest-web
website/static/lib/keypress-1.0.2.js
JavaScript
bsd-3-clause
9,515
/*jslint white: true, browser: true, onevar: true, undef: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, strict: true, newcap: true, immed: true */ /*global Ext, Rhino */ "use strict"; Ext.namespace('Rhino.Security'); Rhino.Security.MainViewport = Ext.extend(Ext.Viewport, { layout: 'border',...
nexida/Rhino-Security-Administration
src/Rhino.Security.Mgmt/js/Rhino.Security.MainViewPort.js
JavaScript
bsd-3-clause
6,853
var searchData= [ ['getbegintime',['getBeginTime',['../classc_sliding_window.html#a7b8449b1e2c7ddffe0a66de38a3037d4',1,'cSlidingWindow']]], ['getbeginvalue',['getBeginValue',['../classc_sliding_window.html#a92858aaf1ddde60b6918d82cc3ede61f',1,'cSlidingWindow']]], ['getcolorframeptr',['getColorFramePtr',['../class...
KAtana-Karlsruhe/AADC_2015_KAtana
doc/html/search/functions_4.js
JavaScript
bsd-3-clause
2,647
/** * Blockly Apps: Code * * Copyright 2012 Google Inc. * https://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/LICENS...
pi-oneers/bot_face
www/blockly/apps/code/code.js
JavaScript
bsd-3-clause
7,165
var fs = require('fs-extra'); var expect = require('chai').expect; var loadConfigFile = require('../../../lib/loaders/config-file'); describe('loading config files', function () { beforeEach(function () { fs.outputFileSync('.tmp/file.json', '{"key": "value"}', 'utf-8'); fs.outputFileSync('.tmp/packa...
aj0strow/superstatic
test/unit/loaders/config-file.js
JavaScript
mit
2,686
var gulp = require('gulp'); var gutil = require('gulp-util'); var bower = require('bower'); var concat = require('gulp-concat'); var sass = require('gulp-sass'); var minifyCss = require('gulp-minify-css'); var rename = require('gulp-rename'); var sh = require('shelljs'); var uglify = require('gulp-uglify'); var foreach...
bigplayalman/ONOG-Battlezone
gulpfile.js
JavaScript
mit
4,807
// @flow import type { SourceMap } from "convert-source-map"; import sourceMap from "source-map"; export default function mergeSourceMap( inputMap: SourceMap, map: SourceMap, ): SourceMap { const input = buildMappingData(inputMap); const output = buildMappingData(map); const mergedGenerator = new sourceMap...
Skillupco/babel
packages/babel-core/src/transformation/file/merge-map.js
JavaScript
mit
8,509
"use strict"; var fs = require('fs'); var util = require('util'); var events = require('events'); var fork = require('child_process').fork; var _ = require('underscore'); var pad = require('./pad'); function Runner (node, opts, done) { var self = this; events.EventEmitter.call(this); this.node = node; this...
mauricionr/straw
lib/runner.js
JavaScript
mit
6,531
const NoSuchPropertyException = Jymfony.Component.PropertyAccess.Exception.NoSuchPropertyException; const UnexpectedTypeException = Jymfony.Component.PropertyAccess.Exception.UnexpectedTypeException; const PropertyAccessorInterface = Jymfony.Contracts.PropertyAccess.PropertyAccessorInterface; const PropertyPath = Jymfo...
alekitto/jymfony
src/Component/PropertyAccess/src/PropertyAccessor.js
JavaScript
mit
9,227
/** * @author Tarek Auel * @since Sep 08, 2014 */ module.exports = require('./lib/server.js')(false);
tarekauel/NodeJsDemo
app.js
JavaScript
mit
104
import Ember from 'ember'; import moment from 'moment'; import date from '../../helpers/date'; import momentFormat from 'ember-moment/computeds/format'; module('momentComputed', { setup() { moment.locale('en'); } }); let { observer, computed } = Ember; let alias = computed.alias; function createSubject(attrs...
topaxi/ember-moment
tests/unit/computeds/moment-computed-test.js
JavaScript
mit
2,100
LOGINZA.providers_set = 'facebook,google'; LOGINZA.ajax = true; LOGINZA.show = function () { // пред выбор провайдера LOGINZA.selected_provider = LOGINZA.getQueryStringValue(this, 'provider'); // установка языка интерфейса LOGINZA.lang = LOGINZA.getQueryStringValue(this, 'lang'); // мобиль...
PatsaySergey/urest
web/js/c228f15_loginza_14.js
JavaScript
mit
4,445
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19.77 4.93l1.4 1.4L8.43 19.07l-5.6-5.6 1.4-1.4 4.2 4.2L19.77 4.93m0-2.83L8.43 13.44l-4.2-4.2L0 13.47l8.43 8.43L24 6.33 19.77 2.1z" /> , 'DoneOutlineTwoTone');
callemall/material-ui
packages/material-ui-icons/src/DoneOutlineTwoTone.js
JavaScript
mit
285
export default { props: { x: 10 }, html: 'potato', test({ assert, component, target }) { component.x = 3; assert.htmlEqual( target.innerHTML, 'potato' ); } };
sveltejs/svelte
test/runtime/samples/globals-shadowed-by-helpers/_config.js
JavaScript
mit
172
(function() { /** * An update bubble showing an update to the review request or a review. */ const UpdatesBubbleView = Backbone.View.extend({ id: 'updates-bubble', template: _.template([ '<span id="updates-bubble-summary"><%- summary %></span>', ' by ', '<a href="<%- user.url %>" id...
reviewboard/reviewboard
reviewboard/static/rb/js/pages/views/reviewablePageView.es6.js
JavaScript
mit
11,709
import React, { PropTypes, Component } from 'react' import { findDOMNode } from 'react-dom' import Radium from 'radium' import { DragSource, DropTarget } from 'react-dnd' import FileFolder from 'material-ui/svg-icons/file/folder' import FileFolderOpen from 'material-ui/svg-icons/file/folder-open' import ActionNoteAdd ...
heshihao0813/registerScan
src/components/fileTree/Document.js
JavaScript
mit
7,892
process.env.NODE_ENV = 'test'; require('../../models/Ward'); var cp = require('child_process'); var app = require('../../server') , config = require('../../config/config')['test'] , expect = require('chai').expect , mongoose = require('mongoose') , Ward = mongoose.model('Ward') ; describe('Unit Tests - Ward...
davidjamesknight/recycling
test/unit/ward.js
JavaScript
mit
824
var express = require('express'); var router = express.Router(); var pg = require('pg') router.post('/archive', function(request, result) { pg.connect(process.env.PG_CONNECTION, function(err, client, done) { if (err) { console.error(err) result.send('db connection error') done() return ...
nthitz/mashupfm
app/routes/archive.js
JavaScript
mit
1,299
"use strict"; /** * @ngdoc service * @name arethusa.core.idHandler * * @description * TODO * */ angular.module('arethusa.core').service('idHandler', [ 'errorDialog', function(errorDialog) { var self = this; /** * @ngdoc property * @name assigned * @propertyOf arethusa.core.idHandler ...
Masoumeh/arethusa
app/js/arethusa.core/id_handler.js
JavaScript
mit
7,263
app.service('eventService', function ($http) { this.list = function (text, size, page) { return $http.get('api/events', { params: { text: text, size: size, page: page } }); }; this.delete = function (id) { retur...
BahodirBoydedayev/conferenceApp
target/classes/public/js/app/service/eventService.js
JavaScript
mit
835
'use strict'; /** * * @param {type} param1 * @param {type} param2 */ angular.module('mean.organisations').factory('Organisations', ['$resource', function ($resource) { return $resource('api/organisations/:organisationId', { organisationId: '@_id' }, { update: { ...
marianiku/projectDatabase
packages/custom/organisations/public/services/organisations.js
JavaScript
mit
777
'use strict'; function react() { var build = require('./index'); var tree = build('./test/fixture/'); return build(tree, {extensions: ['coffee']}); } module.exports = react();
ghempton/broccoli-cjsx
Brocfile.js
JavaScript
mit
186
goo.V.attachToGlobal(); V.describe('The quad component/handler are used to render 2 svgs to double-faced quads'); var svgData1 = "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 -50 200 150' width='513' height='513'>" + '<rect x="0" y="0" width="200" height="100" stroke="black" stroke-width="3"...
GooTechnologies/goojs
visual-test/goo/quadpack/QuadComponent/QuadComponent-vtest.js
JavaScript
mit
2,193
/** * jemul8 - JavaScript x86 Emulator * http://jemul8.com/ * * Copyright 2013 jemul8.com (http://github.com/asmblah/jemul8) * Released under the MIT license * http://jemul8.com/MIT-LICENSE.txt */ /*global define */ define([ "js/util", "tools/TestSystem" ], function ( util, TestSystem ) { "u...
asmblah/jemul8
tests/bdd/acceptance/real-mode/IODevice/VGA-Test.js
JavaScript
mit
1,353
// new edit toolbar used with permission // by Alex King // http://www.alexking.org/ var edButtons = new Array(); var edLinks = new Array(); var edOpenTags = new Array(); function edButton(id, display, tagStart, tagEnd, access, open) { this.id = id; // used to name the toolbar button this.display = display; // ...
gtyang/micolog-ygt-branch
static/js/quicktags.js
JavaScript
mit
9,662
module.exports = { description: 'A super simple <b>Todo List</b> because every body\'s gotta. This one shows how the List type works. List editing can be turned on or off, by default its off ', schema: { "schema": { "tasks": { type: "List", title: 'Task', ...
martosource/subschema
public/samples/Todos.js
JavaScript
mit
777
import reducer, { initialState } from 'redux/modules/App' describe('(Redux) App', () => { describe('(Reducer)', () => { it('sets up initial state', () => { expect(reducer(undefined, {})).to.eql(initialState) }) }) })
Leviathan5/BeamSoundlyInteractive
test/redux/modules/App.spec.js
JavaScript
mit
236
'use strict'; var nameExistsErrorDefinitionBuilder, valueExistsErrorDefinitionBuilder, reservedNameErrorDefinitionBuilder; nameExistsErrorDefinitionBuilder = require('./dictionaryErrors/nameExistsErrorDefinitionBuilder'); valueExistsErrorDefinitionBuilder = require('./dictionaryErrors/valueExistsErrorDefinitionBuilde...
amcconnell-fusion/dictionary.js
src/dictionaryUtility/dictionaryErrorHandling.js
JavaScript
mit
1,038
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.10_A1.7_T4; * @section: 12.10; * @assertion: The with statement adds a computed object to the front of the * scope chain of the current execution context; * @descrip...
rustoscript/js.rs
sputnik/12_Statement/12.10_The_with_Statement/S12.10_A1.7_T4.js
JavaScript
mit
3,510
var dest = './build'; var src = './src'; var mui = '../src'; module.exports = { browserSync: { server: { // We're serving the src folder as well // for sass sourcemap linking baseDir: [dest, src] }, files: [ dest + '/**' ] }, markup: { src: src + "/www/**", dest: d...
Jandersolutions/material-ui
docs/gulp/config.js
JavaScript
mit
713
import eachOfSeries from '../eachOfSeries'; import wrapAsync from './wrapAsync'; export default function doSeries(fn) { return function (obj, iteratee, callback) { return fn(eachOfSeries, obj, wrapAsync(iteratee), callback); }; }
hargasinski/async
lib/internal/doSeries.js
JavaScript
mit
247
/* * Innerwave's jQuery Spreadsheet plugin v0.2.1226-SNAPSHOT * http://www.innerwave.co.kr * * Copyright 2014 Innerwave Co., Ltd. * */ (function (factory) { if (typeof define === "function" && define.amd) { // AMD. Register as an anonymous module. define([ "jquery", "./core", "./widget...
Innerwave/january
src/js/spreadsheet.js
JavaScript
mit
60,698
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
oliviertassinari/material-ui
packages/mui-icons-material/lib/GroupWorkOutlined.js
JavaScript
mit
865
import bytesToUuid from './bytesToUuid.js'; function uuidToBytes(uuid) { // Note: We assume we're being passed a valid uuid string const bytes = []; uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) { bytes.push(parseInt(hex, 16)); }); return bytes; } function stringToBytes(str) { str = unescape(encodeUR...
equinton/prototypephp
display/node_modules/uuid/dist/esm-node/v35.js
JavaScript
mit
1,704
const Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter'); exports.config = { framework: 'jasmine', seleniumAddress: 'http://localhost:4444/wd/hub', specs: ['e2e/*.spec.js'], capabilities: { browserName: 'chrome' }, onPrepare: function() { jasmine.getEnv().addReporter( new Jas...
500tech/angular2-tree-component
protractor.conf.js
JavaScript
mit
424