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 |
|---|---|---|---|---|---|
const { Forbidden } = require('../../../errors');
module.exports = async (context) => {
const currentSystem = await context.app.service('systems').get(context.id);
if (currentSystem.type === 'ldap' && currentSystem.ldapConfig && currentSystem.ldapConfig.provider === 'iserv-idm') {
throw new Forbidden('Not allowed ... | schul-cloud/schulcloud-server | src/services/system/hooks/verifyPayload.js | JavaScript | agpl-3.0 | 592 |
// CodeMirror 4.1.1, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
/*
DTD mode
Ported to CodeMirror by Peter Kroon <plakroon@gmail.com>
Report bugs/issues here: https://github.com/marijnh/CodeMirror/issues
GitHub: @peterkroon
*/
(function(mod) ... | axisj/axu4j | axu4j-quick-start/src/main/webapp/plugins/CodeMirror/mode/dtd/dtd.js | JavaScript | lgpl-2.1 | 4,811 |
var searchData=
[
['wdtsleep',['wdtSleep',['../classRiots__Radio.html#a17ac37c6ff067034c1a6031ec64400a8',1,'Riots_Radio']]],
['write',['write',['../classRiots__BabyRadio.html#a566ac93706a719d2c64262099cb9c420',1,'Riots_BabyRadio::write(uint8_t)'],['../classRiots__BabyRadio.html#a3bbb93815284039ce88c9cfe1b1ea6da',1,... | myriots/riots-libraries | doc/search/functions_f.js | JavaScript | lgpl-2.1 | 837 |
/**************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Installer Framework.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding va... | olear/qtifw | examples/componenterror/packages/root.component2/meta/installscript.js | JavaScript | lgpl-2.1 | 2,223 |
Clazz.declarePackage ("JV");
Clazz.load (null, "JV.ShapeManager", ["java.lang.Boolean", "JU.BS", "$.P3", "J.api.Interface", "J.c.PAL", "$.VDW", "JM.Atom", "JU.BSUtil", "JV.JC"], function () {
c$ = Clazz.decorateAsClass (function () {
this.ms = null;
this.shapes = null;
this.vwr = null;
this.bsRenderableAtoms = null;
th... | benjaminabel/jsmol-dist | dist/j2s/JV/ShapeManager.js | JavaScript | lgpl-2.1 | 14,577 |
/**
* Created by user on 2015/2/2.
*/
function CallBackObject()
{
this.XmlHttp = this.GetHttpObject();
}
CallBackObject.prototype.GetHttpObject = function()
{
var xmlhttp;
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
... | botechnic/jiaoxue-cluster | web-server/client/js/mj_ajax.js | JavaScript | lgpl-3.0 | 2,229 |
$(document).ready(function() {
$('#id2by').typeahead({
source: function(query, process) {
var $url = '/ajax/people/?term=' + query ;
var $items = new Array;
$items = [""];
$.ajax({
url: $url,
dataType: "json",
type: "POST",
... | findsorguk/findsorguk | public_html/js/JQuery/typeaheads/secondaryID.js | JavaScript | lgpl-3.0 | 2,058 |
//
// Container Groups
//
import { connect } from 'react-redux';
import Groups from 'components/Groups';
import {
getGroupsRequest,
resetAlert,
} from './actions';
function mapStateToProps(state) {
return {
groupName: state.get('groups').get('GroupsDeletionModalReducer').groupName,
alertMsg: state.get('... | EIP-SAM/SAM-Solution-Server | webapp/app/containers/Groups/index.js | JavaScript | lgpl-3.0 | 747 |
{
"/js/address1.es": {
"dependencies": ["exports", "modal@1.0.0/js/address2.es"],
"path": "/js/address1.es.js"
},
"/js/address2.es": {
"dependencies": ["exports"],
"path": "/js/address2.es.js"
}
} | ipeychev/lfr-module-config-generator | test/expected/expected-no-module-config.js | JavaScript | lgpl-3.0 | 244 |
var searchData=
[
['_7ebtree',['~BTree',['../classfoundation_1_1BTree.html#a7191686429e7c698c212cfd20f53c464',1,'foundation::BTree']]],
['_7ecsaconnection',['~CSAConnection',['../classgame_1_1CSAConnection.html#aab601e283d546219bc70d3e1870fc75d',1,'game::CSAConnection']]],
['_7ehashtree',['~HashTree',['../classfo... | makudenki/libshogi | docs/search/functions_17.js | JavaScript | lgpl-3.0 | 1,716 |
/**
* @desc Media queries breakpoint utility
* @prop half - small screens
* @prop schooner - above small screens
* @prop pint - huge screens
*/
import { css } from 'styled-components'
import * as bp from './breakpoints'
const media = (breakpoint, args) => css`
@media (${ breakpoint }) {
${ css(...args)... | ShandyClub/shandy-club-app | app/universal/shared/style/media.js | JavaScript | apache-2.0 | 502 |
/*
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
* in FIPS 180-1
* Version 2.2 Copyright Paul Johnston 2000 - 2009.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for details.
*/
/... | dogeared/Passable | Resources/helpers/sha1.js | JavaScript | apache-2.0 | 9,482 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
[
... | N03297857/2017Fall | node_modules/@angular/common/locales/extra/fr-VU.js | JavaScript | apache-2.0 | 774 |
import styled from 'styled-components';
import {FONT_FAMILY_HEADLINE} from './constants';
export default styled.h2`
font-family: '${FONT_FAMILY_HEADLINE}', Georgia, sans-serif;
font-weight: 400;
font-size: 18px;
line-height: 1;
margin-top: 1.5em;
margin-bottom: 0.75em;
`;
| spearwolf/blitpunk | packages/kitchen-sink/src/AppShell/Headline.js | JavaScript | apache-2.0 | 287 |
'use strict';
process.env.NODE_ENV = 'test'; //before every other instruction
const APIS = require('../../src/routes/apis');
let expect = require('chai').expect;
let app = require('../../app');
let agent = require('supertest').agent(app);
let async = require('async');
const TestUtils = require('../util/utils');
let ... | Ks89/My-MEAN-website-server | spec/integration/auth-local-register.spec.js | JavaScript | apache-2.0 | 4,998 |
'use strict';
var gulp = require('gulp');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
// Put together multiple javascript files.
gulp.task('module:scripts', ['build'], function() {
return gulp.src([
// Add your javascript sources' ... | mambax/angular-dashboard | docs/module.js | JavaScript | apache-2.0 | 2,224 |
import 'test/foreground/view/stream/clearStreamButtonView.spec';
import 'test/foreground/view/stream/saveStreamButtonView.spec';
import 'test/foreground/view/stream/streamItemsView.spec';
import 'test/foreground/view/stream/streamItemView.spec';
import 'test/foreground/view/stream/streamView.spec'; | umair-gujjar/StreamusChromeExtension | src/js/test/foreground/view/stream/streamSpecLoader.js | JavaScript | apache-2.0 | 302 |
// Copyright 2017 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | kenan435/dashboard | src/app/frontend/ingress/list/cardlist_component.js | JavaScript | apache-2.0 | 2,298 |
'use strict';
/**
* @module List
*/
/**
* Module dependencies.
*/
var Base = require('./base');
var inherits = require('../utils').inherits;
var constants = require('../runner').constants;
var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;
var EVENT_RUN_END = constants.EVENT_RUN_END;
var EVENT_TEST_BEGIN = constants... | Simran-B/arangodb | js/node/node_modules/mocha/lib/reporters/list.js | JavaScript | apache-2.0 | 1,884 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/mediaServicesManagement/lib/models/metricProperties.js | JavaScript | apache-2.0 | 1,292 |
(function()
{
// Adds ArchiMate v3.0 shapes
Sidebar.prototype.addArchimate3Palette = function()
{
this.setCurrentSearchEntryLibrary('archimate3', 'archimate3Application');
this.addArchimate3ApplicationPalette();
this.setCurrentSearchEntryLibrary('archimate3', 'archimate3Business');
this.addArchimate3Business... | jgraph/drawio | src/main/webapp/js/diagramly/sidebar/Sidebar-ArchiMate3.js | JavaScript | apache-2.0 | 28,301 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | deltaprojects/druid | website/core/Footer.js | JavaScript | apache-2.0 | 3,298 |
var _ = require('underscore');
module.exports = PollingService;
PollingService.$inject = ['LocalStorageService'];
function PollingService(LocalStorageService) {
var listeners = [];
var pollingInterval = LocalStorageService.getPollingInterval();
if (!pollingInterval || parseInt(pollingInterval) === 0 || Number.... | ngageoint/mage-server | web-app/src/ng1/factories/polling.service.js | JavaScript | apache-2.0 | 1,318 |
define(function(require) {
const d3Selection = require('d3-selection');
const colors = require('./../../../src/charts/helpers/color');
const selectClass = 'form-control';
/**
* Creates a color schema selector
* @param {String} selectContainerSelector CSS DOM selector for the select box... | Golodhros/britecharts | demos/src/helpers/colorSelector.js | JavaScript | apache-2.0 | 1,772 |
/*
* Copyright 2017 Amadeus s.a.s.
* 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 i... | ymeine/ariatemplates | test/aria/widgets/wai/dropdown/disabled/DropDownDynamicallyDisabledTabJawsTestCase.js | JavaScript | apache-2.0 | 2,762 |
var config = require('./webpack.config');
config.devtool = 'source-map';
module.exports = config; | endeavourhealth/Enterprise | src/enterprise-web/src/main/frontend/webpack.dev.config.js | JavaScript | apache-2.0 | 100 |
var searchData=
[
['readimage',['readImage',['../class_j_n_i_c_l_tracker_1_1_c_l_tracker.html#a1827340e2a48369b5e8740a88359e65e',1,'JNICLTracker::CLTracker']]],
['refineexposure',['refineExposure',['../classpatterntracker_1_1camera_1_1_camera_manager.html#a78b0ec1ae56658e8f478e4355d0733a2',1,'patterntracker::camera... | nagarabh/PatternTracker | PatternTracker/doxygen/html/search/all_12.js | JavaScript | apache-2.0 | 1,108 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/websiteManagement2/lib/models/billingMeter.js | JavaScript | apache-2.0 | 3,303 |
//// [computedPropertyNames16.ts]
var s: string;
var n: number;
var a: any;
class C {
get [s]() { return 0;}
set [n](v) { }
static get [s + s]() { return 0; }
set [s + n](v) { }
get [+s]() { return 0; }
static set [""](v) { }
get [0]() { return 0; }
set [a](v) { }
static get [<any>t... | fdecampredon/jsx-typescript | tests/baselines/reference/computedPropertyNames16.js | JavaScript | apache-2.0 | 2,340 |
var emp = window.emp || {};
/**
* @namespace constant
* @memberof emp
*/
emp.constant = emp.constant || {};
/**
* @public
* @enum
* @readonly
*/
emp.constant.parentIds = {
ALL_PARENTS: 'ALL_PARENTS',
MAP_ROOT: 'MAP_ROOT',
MAP_LAYER_PARENT: 'MAP_LAYER_PARENT'
};
/**
* @public
* @enum
* @readonly
*/
e... | missioncommand/emp3-web | src/sdk/core/emp.constant.js | JavaScript | apache-2.0 | 9,088 |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6',
name: 'Node CLI Test',
user: {
... | huangpf/azure-xplat-cli | test/recordings/arm-network-route-table-tests/arm_network_route-table_show_should_display_details_of_route_table.nock.js | JavaScript | apache-2.0 | 2,233 |
'use strict';
var _ = require('lodash');
var Promise = require('bluebird');
var Boom = require('boom');
var getBasicAuthRealm = require('./get_basic_auth_realm');
module.exports = function (client) {
return function (req, endpoint) {
var params = arguments.length <= 2 || arguments[2] === undefined ? {} : argume... | svanschalkwyk/datafari | debian7/elk/kibana/src/plugins/elasticsearch/lib/call_with_request.js | JavaScript | apache-2.0 | 1,148 |
const path = require('path');
const fse = require('fs-extra');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
const expectedFiles = require('../utils/expected-files').entity;
const EntityI18NGenerator = require('../../generators/entity-i18n');
const constants = require('../../generator... | mosoft521/generator-jhipster | test/blueprint/entity-i18n-blueprint.spec.js | JavaScript | apache-2.0 | 3,006 |
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
define(['contrail-list-model'], function(ContrailListModel) {
var AnalyticsNodeListModel = function() {
var listModelConfig = {
remote : {
ajaxConfig : {
url : ctwl.ANALYTICSNODE_SUMMARY... | skizhak/contrail-web-controller | webroot/monitor/infrastructure/common/ui/js/models/AnalyticsNodeListModel.js | JavaScript | apache-2.0 | 2,723 |
//Flot Line Chart
var responseJson = [];
// var nodeUrlBase = "http://192.168.1.59:8000/api/V1/node/";
var nodeUrlBase = "../api/V1/node/";
var Obj_Nnode = {
ID: ["1", "2", "3"],
DOMList: [$('#btnMainLight'), $('#btnWallLight'), $('#btnFan')],
AlarmDOMList: [$('#btnMainLightAlarm'), $('#btnWallLightAlarm... | Baymaxteam/SmartFamily | js/RestControl.js | JavaScript | apache-2.0 | 11,902 |
(function(){
console.log("[+] Initializing window system");
var GoldenLayoutConfig = {
settings:{
hasHeaders: true
},
content:[{
type: 'row',
content: [{
type: 'component',
componentName: 'DataManager',
... | sterlingbaldwin/acme-web-fe | static/js/controllers/window.js | JavaScript | apache-2.0 | 4,518 |
import {fetchBuilder, extractData, buildWith} from './model_builder';
const customActions = {
fetch: fetchBuilder('/', extractData, 'json'),
};
export default buildWith(
{customActions},
);
| uw-it-aca/canvas-analytics | data_aggregator/static/vue/vuex/store/api_store.js | JavaScript | apache-2.0 | 200 |
/**
* 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
* distribut... | BiznetGIO/horizon | horizon/static/horizon/js/horizon.forms.js | JavaScript | apache-2.0 | 23,544 |
'use strict';
// =========================================================================
//
// Routes for Access Control Management
//
// =========================================================================
var dbcontroller = require('../controllers/core.db.controller');
var App = require('../controllers/core.ap... | logancodes/esm-server | modules/core/server/routes/core.access.routes.js | JavaScript | apache-2.0 | 4,178 |
/**
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use self 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
* distri... | bigswitch/horizon | openstack_dashboard/static/app/core/images/actions/create-volume.service.js | JavaScript | apache-2.0 | 3,806 |
// 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... | Gussy/bigcouch | rel/overlay/share/www/script/test/list_views.js | JavaScript | apache-2.0 | 14,246 |
function collideLocal(x) {
x = x | 0;
var a = 0;
a = x*x;
aGlobal(a); // aGlobal needs to be minified into a, but a is used!
bGlobal(x);
}
function collideLocal(x) {
x = x | 0;
var i1 = 0;
i1 = x*x;
aGlobal(i1);
bGlobal(x); // bGlobal needs to be minified into i1, but i1 is used!
}
function collideLocal(a) {
... | slightperturbation/Cobalt | ext/emsdk_portable/emscripten/tag-1.34.1/tests/optimizer/test-js-optimizer-asm-regs-min.js | JavaScript | apache-2.0 | 1,054 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | arenadata/ambari | contrib/views/slider/src/main/resources/ui/test/unit/controllers/createAppWizard/step4_controller_test.js | JavaScript | apache-2.0 | 10,897 |
var util = require('../../lib/test-utils.js');
var expect = require('chai').expect;
describe('FileSystemShell.exec', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
it('should be a function', function() {
var shell = util.shell();
expect(shell.exec).to.be.a('function');
});
it('should... | humphd/filer | tests/spec/shell/exec.spec.js | JavaScript | bsd-2-clause | 911 |
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import FormatHelper from 'ember-intl/helpers/base';
export default FormatHelper('format-relative');
| rlivsey/ember-intl | app/helpers/format-relative.js | JavaScript | bsd-3-clause | 236 |
// Copyright 2020 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.
/**
* @const {boolean}
*/
window.isSWA = true;
import './crt0.js';
/**
* Load modules.
*/
import {BrowserProxy} from './browser_proxy.js';
import {S... | scheib/chromium | ash/webui/file_manager/resources/main.js | JavaScript | bsd-3-clause | 2,398 |
// Copyright 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.
// namespace
var metrics = metrics || metricsBase;
/** @enum {string} */
metrics.Categories = {
ACQUISITION: 'Acquisition'
};
/**
* The values of the... | CTSRD-SOAAP/chromium-42.0.2311.135 | ui/file_manager/file_manager/common/js/metrics_events.js | JavaScript | bsd-3-clause | 2,372 |
/// <reference path="../typings/rx.js/rx.d.ts" />
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Rx = require('rx');
var DataflowElement = requir... | JoshRosen/bloom-compiler | rxflow/src/ObservableSink.js | JavaScript | bsd-3-clause | 845 |
module.exports = {
photos: function(data, callback) {
return callback(null, {
error: 'Instagram does not allow uploading via the API.',
see: 'http://instagram.com/developer/endpoints/media/'
});
}
};
| Singly/hallway | lib/services/instagram/posting.js | JavaScript | bsd-3-clause | 224 |
/*
* Copyright (c) 2018, Two Sigma Open Source
* 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... | jhedwardyang/git-meta | node/lib/cmd/rm.js | JavaScript | bsd-3-clause | 3,821 |
/*
* This is a basic func test for a Common application.
*/
YUI({
useConsoleOutput: true,
useBrowserConsole: true,
logInclude: { TestRunner: true }
}).use('node', 'node-event-simulate', 'test', 'console', function (Y) {
var suite = new Y.Test.Suite("Common: getparamsclient");
suite.add(new Y.... | jeffblack360/mojito | tests/func/common/testgetparamsclient.js | JavaScript | bsd-3-clause | 1,180 |
var searchData=
[
['finalize_5ftimer',['finalize_timer',['../struct_cn_c_1_1debug.html#a2a74a8ce120ce2cb873d55343c8a4aa0',1,'CnC::debug']]],
['flush',['flush',['../class_cn_c_1_1graph.html#ad3aed50bc3b4459454ccb8c64f5ced5a',1,'CnC::graph']]],
['flush_5fgets',['flush_gets',['../class_cn_c_1_1context.html#ad46d885c... | icnc/icnc.github.io | api/search/functions_66.js | JavaScript | bsd-3-clause | 369 |
// this function helps us to check if a string starts with a specified substring or not
if(!String.prototype.startsWith){
String.prototype.startsWith = function (str) {
return !this.indexOf(str);
}
}
//function to check if a given element has a particular class or not
function hasClassName(objElement,... | deforay/odkdash | public/assets/js/deforayValidation.js | JavaScript | bsd-3-clause | 10,550 |
export App from './App/App';
// export Chat from './Chat/Chat';
export Home from './Home/Home';
// export Widgets from './Widgets/Widgets';
export About from './About/About';
export Login from './Login/Login';
export LoginSuccess from './LoginSuccess/LoginSuccess';
// export Survey from './Survey/Survey';
expor... | htaox/node-fhir | src/containers/index.js | JavaScript | bsd-3-clause | 414 |
var __BRYTHON__=__BRYTHON__ || {} // global object with brython built-ins
;(function($B) {
// Get url of this script brython_builtins.js
var scripts = document.getElementsByTagName('script')
var this_url = scripts[scripts.length-1].src
var elts = this_url.split('/')
elts.pop()
// brython_path is the url of the direc... | Mozhuowen/brython | www/src/brython_builtins.js | JavaScript | bsd-3-clause | 3,975 |
'use strict';
// when ready, drop and create tables
var databaseClientP = require('../database/management/databaseClientP');
var dropAllTables = require('../database/management/dropAllTables.js');
var createTables = require('../database/management/createTables.js');
var generateDeclarations = require('../database/man... | 6element/pheromon | tests/init-db.js | JavaScript | mit | 2,772 |
// Canvas Asteroids
//
// Copyright (c) 2010 Doug McInnes
//
KEY_CODES = {
32: 'space',
37: 'left',
38: 'up',
39: 'right',
40: 'down',
70: 'f',
71: 'g',
72: 'h',
77: 'm',
80: 'p'
}
KEY_STATUS = { keyDown:false };
for (code in KEY_CODES) {
KEY_STATUS[KEY_CODES[code]] = false;
}
$(window).keydown... | nba4everwanted/reflections | game.js | JavaScript | mit | 34,052 |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad.displayName = 'HardwareGamepad';
HardwareGame... | alvarolobato/blueocean-plugin | jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/gamepad.js | JavaScript | mit | 378 |
import { get } from "ember-metal/property_get";
import EmberError from "ember-metal/error";
import run from "ember-metal/run_loop";
import jQuery from "ember-views/system/jquery";
import Test from "ember-testing/test";
/**
* @module ember
* @submodule ember-testing
*/
var helper = Test.registerHelper;
var asyncHelper... | rondale-sc/ember.js | packages/ember-testing/lib/helpers.js | JavaScript | mit | 9,592 |
$(function(){"use strict";$("#colorpicker-inline").minicolors({animationSpeed:100,change:null,changeDelay:0,control:"hue",defaultValue:"",hide:null,hideSpeed:100,inline:!0,letterCase:"lowercase",opacity:!0,position:"bottom right",show:null,showSpeed:100,textfield:!0,theme:"default"})}),$(function(){"use strict";$("#col... | newset/theme | backend/best/Delight/assets/widgets/colorpicker/colorpicker-demo.js | JavaScript | mit | 851 |
// http://gruntjs.com/creating-tasks
// http://gruntjs.com/api/grunt.file
module.exports = function(grunt) {
'use strict';
var rewrite = require('../../lib/requirejs/js-ast-js/rewrite-require-config');
grunt.registerTask('rewriteRequireConfig', 'Rewrite require.config.js to r.js', function() {
var project... | talyssoncastro/angularjs-ee-boilerplate | tools/helpers/grunt/tasks/rewriteRequireConfig.js | JavaScript | mit | 764 |
/*
Copyright (c) 2011, 2012 Chris Umbel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribut... | gburtini/node-sylvester | spec/line_segment_spec.js | JavaScript | mit | 1,471 |
const port = process.env.APP_PORT || 3000
const apiBasePath = '/api/auth/'
export const websiteDomain =
process.env.APP_URL ||
process.env.NEXT_PUBLIC_APP_URL ||
`http://localhost:${port}`
export const appInfo = {
appName: 'SuperTokens Demo App',
websiteDomain,
apiDomain: websiteDomain,
apiBasePath,
}
| azukaru/next.js | examples/with-supertokens/config/appInfo.js | JavaScript | mit | 320 |
$wnd.jsme.runAsyncCallback4('r(575,571,zh);_.Tc=function(){this.a.v&&(VK(this.a.v),this.a.v=null);0==this.a.fb.G&&(this.a.v=new $K(2,this.a))};x(IG)(4);\n//@ sourceURL=4.js\n')
| joshua-gould/morpheus.js | js/jsme/deferredjs/36B0DCEF8CC611E42F074A30D0B1A93B/4.cache.js | JavaScript | mit | 177 |
/*
* This type of sprite is based off of the excellent images from Reiner's tilesets: http://www.reinerstilesets.de/
*
* creatures have walking, idle, and dying animations in 8 isometric directions
* The animations directions are in E,N,NE,NW,S,SE,SW,W (alphabetical) order simply because that's
* how i stitche... | hackphx-html5games/presentation | js/mwe/reiner/Creature.js | JavaScript | mit | 3,712 |
/**
* Filter used to format dates so that they appear user friendly
* Ex: Given 20130717, Returns 2013-07-17
*
* @author Acumen Solutions, Inc.
*/
(function() {
'use strict';
angular
.module('app.filters')
.filter('formatResultDate', formatResultDate);
function formatResultDate() {
... | AcumenSolutions/acumen-gsa-agile-prototype | public/app/filters/formatResultDate.filter.js | JavaScript | mit | 699 |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
locales: ['en', 'ru']
});
grunt.registerTask('release', 'Builds a release ZIP package for CWS', function () {
grunt.task.requires('i18n');
grunt.task.requires('templates');
var done = this.async(... | 1999/controlfreak | Gruntfile.js | JavaScript | mit | 3,674 |
/*global define*/
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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
//
... | tmcgee/cmv-wab-widgets | wab/2.15/widgets/DistrictLookup/setting/nls/et/strings.js | JavaScript | mit | 6,606 |
(function (workerScript) {
try {
var blob = new Blob (["\
var fakeIdToId = {};\
onmessage = function (event) {\
var data = event.data,\
name = data.name,\
fakeId = data.fakeId,\
time;\
if(data.hasOwnProperty('time')) {\
time = data.time;\
}\
switch (name) {\
case 'setInterval':\
fakeIdToId[fakeId] =... | Kodagrux/CSNvaka.nu | public_html/js/HackTimer/HackTimer.js | JavaScript | mit | 3,537 |
/**
* Created by Peter on 2017. 10. 18..
*/
var mongoose = require('mongoose');
var townMidSeaSchema = mongoose.Schema({
regId: String,
pubDate: Date, //last data.date+data.time
fcsDate: Date,
data: {
date: String,
time: String,
regId: String,
wf3Am: String,
wf... | skywlrl/TodayWeather | server/models/kma/kma.town.mid.sea.model.js | JavaScript | mit | 2,066 |
var annotate = require('annotate');
var is = require('is-js');
var each = require('./each');
var map = require('./map');
module.exports = annotate('filter', 'Filters using given callback')
.on(is.fn, is.array, function(cb, o) {
var ret = [];
each(function(v, i) {if(cb(v, i)) ret.pus... | elovalo/webide | public/components/funkit/dist/functional/filter.js | JavaScript | mit | 550 |
'use strict';
(function (scope) {
/**
* WebSocket recognition text result message
*
* @class TextResponseWSMessage
* @extends AbstractRecoResponseWSMessage
* @param {Object} [obj] Recognition WebSocket message
* @constructor
*/
function TextResponseWSMessage(obj) {
sc... | kamillamagna/NMF_Tool | public/javascripts/myscript/src/output/text/textResponseWSMessage.js | JavaScript | mit | 798 |
(function(){
var AmbisonicBufferMerger = E2.plugins.audio_ambisonic_buffermerger = function(core, node) {
Plugin.apply(this, arguments)
// Describe plugin and inputs/outputs
var self = this;
this.desc = 'Decode an ambisonic spherical recording to headphones.';
this.input_slots = [
... | vizorvr/vizor | browser/plugins/audio_ambisonic_buffermerger.plugin.js | JavaScript | mit | 4,171 |
export default {
component: require('../../components/common/Layout').default,
childRoutes: [
{
path: 'home',
getComponent(nextState, cb){
System.import('./containers/Home').then((m)=> {
cb(null, m.default)
})
}
},
]
};
| backpackcoder/world-in-flames | src/app/routes/home/index.js | JavaScript | mit | 280 |
Ext.define("JS.article.AdvancedSearch", {
extend: "Xfr.Component",
requires: [],
config: {
slimscroll:false
},
initialize: function () {
console.log("initializing advanced search");
var me = this;
me.on({
afterrendertpl: {
scope: me,
... | genoud/js | web/js/dist/js_part_5_AdvancedSearch_1.js | JavaScript | mit | 2,203 |
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
var testCase = require('../deps/nodeunit').testCase,
debug = require('util').debug,
inspect = require('util').inspect,
nodeunit = require('../deps/nodeunit'),
gleak = require('../tools/glea... | liminglu/node_iblog | node_modules/mongoose/node_modules/mongodb/test/streaming_test.js | JavaScript | mit | 4,258 |
/*
* Copyright (c) 2008-2011 Hasso Plattner Institute
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | pascience/LivelyKernel | core/cop/CopBenchmark.js | JavaScript | mit | 31,550 |
version https://git-lfs.github.com/spec/v1
oid sha256:e0c3a852754175d97fe4dadae703ce3fe0ac47783329f3fefc8a090ce96fffaf
size 222
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.4.0/array-invoke/array-invoke-min.js | JavaScript | mit | 128 |
var express = require("express");
var app = express();
// load liveReload script
var livereload = require('../index.js');
app.use(livereload({
port: 35729
}));
// load static content before routing takes place
app.use(express["static"](__dirname + "/fixtures"));
app.get("/set_length", function (req, res) {
var h... | behind2/connect-livereload | test/app.header.set.js | JavaScript | mit | 1,875 |
'use strict'
var $ = require('jquery')
, Backbone = require('backbone')
, {{PascalName}}Step = require('../step.js')
, $body = $('body')
, {{camelName}}Step
Backbone.$ = $
// Show us how the {{PascalName}} component works
{{camelName}}Step = new {{PascalName}}Step({
})
$body.append({{camelName}}Step.el)
| tedbreen/ribcage-gen | backbone-pane-template/example/entry.js | JavaScript | mit | 316 |
import React, { Component } from 'react';
import { Table, TableHead, TableRow, TableCell } from '../../components/table';
import Tooltip from '../../components/tooltip';
const data = [
{ name: 'Cupcake', calories: 305, fat: 3.7, carbs: 67, protein: 4.3, sodium: 413, calcium: '3%', iron: '8%' },
{ name: 'Donut', ca... | react-toolbox/react-toolbox | spec/components/table.js | JavaScript | mit | 3,627 |
module.exports = function (server, db) {
var validateRequest = require("../auth/validateRequest");
server.get("/api/v1/bucketList/data/list", function (req, res, next) {
validateRequest.validate(req, res, db, function () {
db.bucketLists.find({
user : req.params.token
... | andrejoe/DON | prod/server/list/manageList.js | JavaScript | mit | 3,257 |
/*!
* Connect
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var HTTPServer = require('./http').Server
, HTTPSServer = require('./https').Server
, fs = require('fs');
// node patches
require('./patch');
// expose createServer() as the ... | anodejs/node-rinuts-nodeunit | node_modules/rinuts/node_modules/express/node_modules/connect/lib/connect.js | JavaScript | mit | 2,270 |
/*!
* jQuery JavaScript Library v2.1.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/getStyl... | eric-seekas/jquery-builder | dist/2.1.0/jquery-ajax-css-deprecated-event-alias-sizzle.js | JavaScript | mit | 115,486 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/sqlManagement2/lib/models/failoverGroupReadWriteEndpoint.js | JavaScript | mit | 1,885 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; ... | RobertoWhitmerto/OhioUniversityWXCPerformanceProgram | node_modules/typhonjs-escomplex-commons/dist/project/report/ProjectReport.js | JavaScript | mit | 13,991 |
var assert = require("assert");
function FiberPool(targetFiberCount) {
assert.ok(this instanceof FiberPool);
assert.strictEqual(typeof targetFiberCount, "number");
var fiberStack = [];
function makeNewFiber(Fiber) {
// Just in case someone tampers with Fiber.yield, don't let that interfere
// with ou... | Hansoft/meteor | npm-packages/meteor-promise/fiber_pool.js | JavaScript | mit | 4,377 |
(function () {
'use strict';
var path = require('path');
var _ = require('lodash');
function requiredProcessEnv(name) {
if(!process.env[name]) {
throw new Error('You must set the ' + name + ' environment variable');
}
return process.env[name];
}
// All configurations will extend these options
// ========... | blundercode/logosApp | server/config/environment/index.js | JavaScript | mit | 1,700 |
/* global test, expect, beforeEach */
import { kea, resetContext, getContext } from '../../src'
import './helper/jsdom'
import React from 'react'
import PropTypes from 'prop-types'
import { render, screen } from '@testing-library/react'
import { Provider } from 'react-redux'
beforeEach(() => {
resetContext()
})
te... | keajs/kea | test/jest/multiple-dynamic.js | JavaScript | mit | 2,030 |
;(function(angular, undefined, window, document){
/**
* @license AngularJS-DND v0.1.23
* (c) 2014-2015 Alexander Afonin (toafonin@gmail.com, http://github.com/Tuch)
* License: MIT
*/
'use strict';
/*
=================
ANGULAR DND:
=================
*/
/* ENVIRONMENT VARIABLES */
var version... | zagushka/ui-scroll | demo/grid-dnd-sort-2/angular-dnd.js | JavaScript | mit | 86,656 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = getSelectionStart;
var document = global.document;
//from http://javascript.nwbox.com/cursor_position/, but added the !window.getSelection check, which
//is needed for newer versions of IE, which adhere to standards
fun... | unmeshpro/easyPost | static/node_modules/react-date-picker/lib/TimeInput/getSelectionStart.js | JavaScript | mit | 642 |
'use strict';
var test = require('tape');
var getModule = require('./lib/get-module.js');
var tryCatch = require('./lib/try-catch.js');
test('notAFunction is not a function', function (assert) {
var tuple = tryCatch(function () {
getModule('bad-code', 'not-a-function');
});
assert.ok(tuple[0]);
... | jsigbiz/parser | test/runtime/bad-code.js | JavaScript | mit | 397 |
var should = require('should'),
// Stuff we are testing
helpers = require('../../../server/helpers'),
moment = require('moment-timezone');
describe('{{date}} helper', function () {
it('creates properly formatted date strings', function () {
var testDates = [
'2013-12-31T11:28:58.59... | dbalders/Ghost | core/test/unit/helpers/date_spec.js | JavaScript | mit | 2,004 |
"use strict";
var routes = module.exports = { };
var fs = require("fs");
var path = require("path");
routes.handlers = { };
fs.readdirSync(__dirname).filter(function(filename) {
return (filename !== "index.js") && (filename !== "helper.js");
}).sort().forEach(function(filename) {
routes.handlers[filename] = requ... | Artanis/jsonapi-server | lib/routes/index.js | JavaScript | mit | 470 |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('transform:file', 'FileTransform', {
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
});
// Replace this with your real tests.
test('it exists', function() {
var transform = this.subject();
ok(transform);
});... | jsalva/ember-cli-form-data | tests/unit/transforms/file-test.js | JavaScript | mit | 321 |
/**
@module jsdoc/src/handlers
*/
var currentModule = null;
/**
Attach these event handlers to a particular instance of a parser.
@param parser
*/
exports.attachTo = function(parser) {
var jsdoc = {doclet: require('jsdoc/doclet'), name: require('jsdoc/name')};
// handles JSDoc comments that in... | pombredanne/puke-1 | puke/datas/jsdoc3/rhino_modules/jsdoc/src/handlers.js | JavaScript | mit | 6,162 |
/**
* 批量添加和修改front matter ,需要配置 ./config.yml 文件。
*/
const fs = require('fs'); // 文件模块
const path = require('path'); // 路径模块
const matter = require('gray-matter'); // front matter解析器 https://github.com/jonschlinkert/gray-matter
const jsonToYaml = require('json2yaml')
const yamlToJs = require('yamljs')
const inquirer =... | WooodHead/wooodhead.github.io | utils/editFrontmatter.js | JavaScript | mit | 3,031 |
import { module, test } from 'qunit';
import {
Model,
JSONAPISerializer,
Response
} from 'ember-cli-mirage';
import Server from 'ember-cli-mirage/server';
import HeadShorthandRouteHandler from 'ember-cli-mirage/route-handlers/shorthands/head';
module('Integration | Route Handlers | HEAD shorthand', function(hook... | jherdman/ember-cli-mirage | tests/integration/route-handlers/head-shorthand-test.js | JavaScript | mit | 4,444 |
/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
/*
The MIT License (MIT)
Copyright (c) 2007-2013 Einar Lielmanis and contributors.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in ... | valmzetvn/brackets-beautify | beautify.js | JavaScript | mit | 57,571 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DragSourceImpl = void 0;
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = funct... | cdnjs/cdnjs | ajax/libs/react-dnd/14.0.2/cjs/hooks/useDrag/DragSourceImpl.js | JavaScript | mit | 2,900 |