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
import React, { Component } from 'react'; export default class LXBtn extends Component { constructor(prop) { super(prop); this.state = { isOpen: false, }; } render() { const { isOpen } = this.state; return ( <div className={'btn-group'}> <a className={'btn toolti...
SuperDOgePx/chrome-extension-react
app/components/LXBtn.js
JavaScript
mpl-2.0
1,073
test(function() { var name ; testStorages(runTest); function runTest(storageString, callback) { name = storageString; window.completionCallback = callback; assert_true(storageString in window, storageString + " exist"); window.storage = eval(storageString); sto...
mt2d2/servo
tests/wpt/web-platform-tests/webstorage/event_body_attribute.js
JavaScript
mpl-2.0
4,821
/** * Example of the most basic Knockout component that has just an html template, * where the given 'params' becomes the view model. * It's useful for very simple things (no params or a few) or to start * mocking-up a feature. * * @module kocomponents/_examples/a-template-only * * FIXME: Update this component ...
loconomics/loconomics
app/source/js/kocomponents/_examples/a-template-only/index.js
JavaScript
mpl-2.0
796
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * Date: 26 November 2000 * ...
JasonGross/mozjs
js/src/tests/js1_5/LexicalConventions/lexical-001.js
JavaScript
mpl-2.0
3,219
(function ($) { $.extend(true, window, { "ca": { "nrc": { "cadc": { "search": { "HTMLCellFormat": HTMLCellFormat, "JSONObservationDetailsFormat": JSONObservationDetailsFormat, "UnitConversionFormat": UnitConversionFormat, "DateFormat": DateFo...
at88mph/caom2ui
caom2-search-server/src/main/resources/META-INF/resources/js/cadc.search.format.js
JavaScript
agpl-3.0
5,692
/* * Copyright (C) 2011 Klokan Technologies GmbH (info@klokantech.com) * * The JavaScript code in this page is free software: you can * redistribute it and/or modify it under the terms of the GNU * General Public License (GNU GPL) as published by the Free Software * Foundation, either version 3 of the License, or...
AsherBond/MondocosmOS
webglearth/weapp/ui/zoomslider.js
JavaScript
agpl-3.0
4,530
/* globals cbio, QuerySession */ /* jshint devel: true, laxbreak: true*/ var stringListUnique = function(list) { var seen = {}; var ret = []; for (var i=0; i<list.length; i++) { var string = list[i]; if (!seen[string]) { seen[string] = true; ret.push(string); } } return ret; }; var uti...
mandawilson/cbioportal
portal/src/main/webapp/js/src/oncoprint/setup.js
JavaScript
agpl-3.0
128,838
/* * Manage slide thumbnails */ VISH.Editor.Thumbnails = (function(V,$,undefined){ var thumbnailsDivId = "slides_list"; var slidesetThumbnailsDivId = "subslides_list"; //Tmp vars var redrawThumbnailsCallback; var drawSlidesetThumbnailsCallback; //State vars var lastSelectedSlideThumbnail = und...
ging/vish_editor
js/VISH.Editor.Thumbnails.js
JavaScript
agpl-3.0
13,058
var request = require('request'); module.exports = function(req, res, next) { var slug = req.params.product; var token = req.query.token; request.get({ uri: process.env.ASSEMBLY_API + '/products/' + slug + '/authorization?token=' + token, headers: { 'content-type': 'application/json', 'accep...
asm-products/monsoon-google-analytics
middleware/authorization.js
JavaScript
agpl-3.0
678
angular.module('main'). factory('mjs', ['$http', '$resource', 'apiClient', '$rootScope', 'item', 'auth', '$q', '$sessionStorage', '$window', 'notification', function($http, $resource, apiClient, $rootScope, item, auth, $q, $sessionStorage, $window, notification) { var self = this; self.item = ite...
Beit-Hatfutsot/dbs-front
js/modules/main/src/services/mjsService.js
JavaScript
agpl-3.0
4,987
OC.L10N.register( "encryption", { "Missing recovery key password" : "Falta o contrasinal da chave de recuperación", "Please repeat the recovery key password" : "Repita o contrasinal da chave de recuperación", "Repeated recovery key password does not match the provided recovery key password" : "A rep...
Ardinis/server
apps/encryption/l10n/gl.js
JavaScript
agpl-3.0
5,859
///import core ///import commands\removeformat.js ///commands 字体颜色,背景色,字号,字体,下划线,删除线 /** * @description 字体 * @name baidu.editor.execCommand * @param {String} cmdName 执行的功能名称 * @param {String} value 传入的值 */ (function() { var domUtils = baidu.editor.dom.domUtils, fonts = ...
0612800232/sns_shop
public/javascripts/ueditor/_src/commands/font.js
JavaScript
agpl-3.0
7,893
const { ScopeService } = require('./ScopeService'); /** * Implements retrieving a list of all scope instances a user has a specific permission in. * For example, this can be used to implement a service that returns the user's teams, courses, etc. * or only those where the user is admin, teacher, etc. * @class Scop...
schul-cloud/schulcloud-server
src/services/helpers/scopePermissions/ScopeListService.js
JavaScript
agpl-3.0
1,282
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
djbender/canvas-lms
packages/canvas-rce/src/rce/plugins/shared/Upload/UploadFile.js
JavaScript
agpl-3.0
8,160
/* * Kuali Coeus, a comprehensive research administration system for higher education. * * Copyright 2005-2015 Kuali, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, eithe...
sanjupolus/kc-coeus-1508.3
coeus-webapp/src/main/webapp/scripts/awardHierarchyShared.js
JavaScript
agpl-3.0
7,307
module.exports = (api) => { const env = api.env(); const envOptions = { debug: false, loose: true, modules: false, }; const config = { presets: [ '@babel/react', ['@babel/env', envOptions], ], plugins: [ '@babel/syntax-dynamic-import', ['@babel/proposal-object-r...
KnzkDev/mastodon
babel.config.js
JavaScript
agpl-3.0
1,381
odoo.define('board.favorite_menu', function (require) { "use strict"; var ActionManager = require('web.ActionManager'); var Context = require('web.Context'); var core = require('web.core'); var Domain = require('web.Domain'); var FavoriteMenu = require('web.FavoriteMenu'); var pyeval = require('web.pyeval'); var _t =...
maxive/erp
addons/board/static/src/js/favorite_menu.js
JavaScript
agpl-3.0
4,548
var shovel = require('../shovel'), util = require('../util'); module.exports.run = function run(opts, cb) { shovel.start(opts, cb, { modifyOpts: function() { // if a github repo was provided, add the workspace to the load path so that requires work correctly if (opts.githubRepo || opts.files || o...
DonaldKellett/codewars-runner-cli
lib/runners/ruby.js
JavaScript
agpl-3.0
3,389
$(function() { $(document).on("change", "[data-behavior~=toggle-disable-list-command]", function(e) { var commandButtonsSelector = $(e.target).data("commands"); var commandButtons = $(document).find(commandButtonsSelector); var list = $(document).find("[name='" + $(e.target).attr("name") + "']:checked"); ...
UM-USElab/gradecraft-development
app/assets/javascripts/behaviors/toggle_disable_list_command.js
JavaScript
agpl-3.0
512
import raceNav from './race-nav.js' import { getAccessToken } from '../token' import GameSelector from './GameSelector.vue' import CategorySelector from './CategorySelector.vue' const _ = require('underscore') export default { components: { raceNav, GameSelector, CategorySelector, }, computed: { ...
BatedUrGonnaDie/splits-io
app/javascript/vue/race-title.js
JavaScript
agpl-3.0
2,858
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
djbender/canvas-lms
app/jsx/assignments_2/student/components/StudentViewQuery.js
JavaScript
agpl-3.0
3,401
// Generated by CoffeeScript 1.9.3 var Instance, Locale, LocalizationManager, Polyglot, supported, supportedLanguages, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Locale = require('locale'); Polyglot = require('node-polyglot'); Instance = require('../models/instance'); suppor...
rlustin/cozy-proxy
build/server/lib/localization_manager.js
JavaScript
agpl-3.0
2,115
/** * @file * @copyright 2020 Aleksej Komarov * @license MIT */ import { useLocalState } from '../backend'; import { Flex, Section, Tabs } from '../components'; import { Pane, Window } from '../layouts'; const r = require.context('../stories', false, /\.stories\.js$/); /** * @returns {{ * meta: { * titl...
kingofkosmos/-tg-station
tgui/packages/tgui/debug/KitchenSink.js
JavaScript
agpl-3.0
1,600
var passport = require('../../config/Passport'); module.exports = function (app) { var controller = app.controllers.api.DataFormat; app.get('/api/DataFormat/', passport.isAuthenticated, controller.get); };
edelatin/terrama2
webapp/routes/api/DataFormat.js
JavaScript
lgpl-3.0
212
CityGL.ParameterizedTexture = function(url){ this.targets = []; this.url = url; } CityGL.ParameterizedTexture.prototype = { constructor : CityGL.ParameterizedTexture, clone: function(){ var c = new CityGL.ParameterizedTexture(this.url); for(var i = 0; i< this.targets.length; i++){ c.targets[i] = this.targ...
tursics/kiez-karte
www/scripts/citygl/src/Util/parameterizedTexture.js
JavaScript
unlicense
1,303
import { useQuery } from '@apollo/react-hooks' import Breadcrumbs from '@material-ui/core/Breadcrumbs' import Grid from '@material-ui/core/Grid' import { makeStyles } from '@material-ui/core/styles' import NavigateNextIcon from '@material-ui/icons/NavigateNext' import classnames from 'classnames' import gql from 'graph...
lamassu/lamassu-server
new-lamassu-admin/src/pages/Machines/Machines.js
JavaScript
unlicense
4,403
/** * Created by zhangjh on 2015/6/9. */ (function () { var table; $(function () { var modalID = "myModal"; var searchUrl = "search"; if (typeof(clientModalID) != "undefined") { modalID = clientModalID; } if (typeof(clientSearchUrl) != "undefined") { ...
firebata/skysport160125
one/src/main/webapp/resources/js/interfaces/list-new.js
JavaScript
apache-2.0
2,562
// TODO Writable, with support for buffer // TODO WritableBuffer (that copies to a given writer) // TODO consider pipe instead of copy // TODO look into distinction between pipeTo and pipeThrough var Q = require("q"); var Queue = require("q/queue"); var makeSemaphore = require("./semaphore"); // Readable must implem...
leogoesger/bloc-frontend-project-starter
node_modules/q-io/streams.js
JavaScript
apache-2.0
12,487
/* * 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/cognitiveServicesContentModerator/lib/models/jobListResult.js
JavaScript
apache-2.0
1,243
/* * Tick object handles all the process/display related to tick streaming * * We request tick stream for particular underlying to update current spot * * * Usage: * use `Tick.detail` to populate this object * * then use * * `Tick.quote()` to get current spot quote * `Tick.id()` to get the unique for curren...
shuwnyuantee/binary-static
src/javascript/binary/websocket_pages/trade/tick.js
JavaScript
apache-2.0
3,383
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ /* File in use inside removed dir partial MAR file background patch apply failure fallback test */ const TEST_ID = "0191_svc"; const MAR_IN_USE_WIN_FILE = "data/partial.mar"; // The files are listed in the sa...
sergecodd/FireFox-OS
B2G/gecko/toolkit/mozapps/update/test_svc/unit/test_0191_rmrfdirFileInUse_xp_win_partial_svc.js
JavaScript
apache-2.0
9,998
/* * 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. */ /...
begoldsm/azure-sdk-for-node
lib/services/dataLake.Analytics/lib/job/operations/index.js
JavaScript
apache-2.0
534
var gulp = require('gulp'); var changed = require('gulp-changed'); var imagemin = require('gulp-imagemin'); var paths = require('./paths.js'); gulp.task('optimize-and-copy-images', function() { return gulp.src(paths.src.images) .pipe(changed(paths.dest.images)) .pipe(imagemin({ ...
MV-INFORMATICA/components-html5
modulo-client/gulpScripts/optimize-and-copy-images.js
JavaScript
apache-2.0
502
 /// <reference path="jquery-1.8.3.min.js" /> var loading = loading || {}; var tmpl = ' <div class="swt-messageBox-window">' + ' <div class="swt-messageBox-title"><span class="swt-messageBox-title2"></span><span class="swt-messageBox-close"></span>' + ' </div>' + ' <div class="swt-messageBox-conten...
hottech-jxd/sayhi
src/sayhiservice/web/msite/obj/Release/Package/PackageTmp/js/loading/jquery.loading-0.1.js
JavaScript
apache-2.0
2,446
/* * 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/keyVaultManagement/lib/models/accessPolicyEntry.js
JavaScript
apache-2.0
2,535
Bridge.merge(new System.Globalization.CultureInfo("teo-UG", true), { englishName: "Teso (Uganda)", nativeName: "Kiteso (Uganda)", numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), { nanSymbol: "NaN", negativeSign: "-", positiveSign: "+", negativeInfinit...
bridgedotnet/Bridge
Bridge/Resources/Locales/teo-UG.js
JavaScript
apache-2.0
2,988
var should = require('should') var Arrow = require('arrow') var common = require('./common') var server = common.server var connector = server.getConnector('appc.mssql') describe('Connector Capabilities', Arrow.Connector.generateTests(connector, module))
titanium-forks/appcelerator.appc.mssql
test/integration/capabilities.js
JavaScript
apache-2.0
256
XWikiObj(function (obj) { obj.setCache("long"); obj.setCode("#connectGithub{\r\n background-image: url(\"$doc.getAttachmentURL('github.png')\");\r\n background-position: left center;\r\n background-repeat: no-repeat;\r\n display: inline-block;\r\n height: 35px;\r\n padding-left: 35px;\r\n}"); ...
pombredanne/riscoss-wiki-ui
src/xwiki/RISCOSSPlatformCode/GithubLogin/objects/XWiki.StyleSheetExtension_0/this.js
JavaScript
apache-2.0
396
/** * Copyright 2012-2016, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../lib'); var Plots = require('../plots/plots'); var PlotSchema = require('./plot_schema');...
manatarms/HIDE-Ski-boot
bower_components/plotly.js/src/plot_api/validate.js
JavaScript
apache-2.0
10,415
var searchData= [ ['m_5fclcontext',['m_clContext',['../class_j_n_i_c_l_tracker_1_1_c_l_manager.html#a50b943308685c5735c451814369bc52a',1,'JNICLTracker::CLManager']]], ['m_5fdevice',['m_device',['../class_j_n_i_c_l_tracker_1_1_c_l_manager.html#aff8c3e55f62a11dc2009a05b9c904ad4',1,'JNICLTracker::CLManager']]], ['m_...
Samsung/ColorPatternTracker
PatternTracker/doxygen/html/search/variables_c.js
JavaScript
apache-2.0
6,773
var Fatty = Class.extend({ init: function (args) { this.mesh = new THREE.Object3D(); var head = new THREE.Mesh( new THREE.SphereGeometry(16, 8, 8), new THREE.MeshLambertMaterial({ color: 0xF5F5F5 }) ); head.translateY(32); ...
Hajtosek/ggEasy
public/javascripts/game/enemies/fatty.js
JavaScript
apache-2.0
3,675
$(document).ready(function(){ $('.ejecutar').live('click',ejecutar); $('.linkBuscar').live('click',buscarFacturas ); $("#linkBack").click(atras); $("#ejecutarOrd").click(ejecutOrd); buscarFacturas(); }); function validar(){ var sup = $("#txtSuperv").val(); if(sup.length==0){ jAlert(mensaje_sistema[6]); $("#...
hugoangeles0810/SisEventos
sisEventos/web/js/forms/pagfactura.js
JavaScript
apache-2.0
4,347
export { default as SharedDocumentButton } from './SharedDocumentButton';
gpolitis/jitsi-meet
react/features/etherpad/components/index.web.js
JavaScript
apache-2.0
74
import {VisibilityState} from '#core/constants/visibility-state'; import {removeElement} from '#core/dom'; import {layoutRectLtwh} from '#core/dom/layout/rect'; import {setStyle, toggle} from '#core/dom/style'; import {dict} from '#core/types/object'; import {Services} from '#service'; import {installPositionObserverS...
jpettitt/amphtml
extensions/amp-next-page/0.1/next-page-service.js
JavaScript
apache-2.0
19,054
/** * Copyright 2021 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
rsimha-amp/amphtml
extensions/amp-embedly-card/1.0/base-element.js
JavaScript
apache-2.0
1,583
// Copyright 2011 Google Inc. All Rights Reserved. // Author: jacobsa@google.com (Aaron Jacobs) // // 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/LI...
google/gjstest
gjstest/public/matchers/equality_matchers.js
JavaScript
apache-2.0
9,720
/** * @license Copyright 2017 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or a...
tkadlec/lighthouse
lighthouse-core/test/audits/seo/http-status-code-test.js
JavaScript
apache-2.0
1,931
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your /...
rwaldron/runtime
src/colony/modules/fs.js
JavaScript
apache-2.0
9,809
/* * This is a CLIENT-SIDE-ONLY collection that stores globals * It's basically like a Session, but cleaner. It's also great * for reactivity! */ export const Globals = new Mongo.Collection(null); Globals.attachSchema(new SimpleSchema({ name: { type: String, optional: false, }, value: { type: S...
henricasanova/databet_meteor_1.4
app/imports/api/databet_collections/Globals.js
JavaScript
apache-2.0
362
/* * Copyright (c) 2015 Internet of Protocols Alliance (IOPA) * * 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 ...
iopa-io/iopa-discovery-upnp
test/spec.js
JavaScript
apache-2.0
3,728
(function() { 'use strict'; angular.module('u2ware.i18n').config(u2wareI18NConfig); angular.module('u2ware.i18n').service('u2wareI18NService',u2wareI18NService); angular.module('u2ware.i18n').directive('u2wareI18NDirective', u2wareI18NDirective); u2wareI18NConfig.$inject = [ '$translateProvider...
u2ware/projects
com.u2ware.singapps/src/main/resources/static/apps/u2ware/i18n/i18n.js
JavaScript
apache-2.0
4,082
var data = require('..'); var assert = require('assert'); describe('list-of-programming-languages', function() { it('should be available as a JS object', function() { assert.equal(data.itemListElement.filter(itemListElement => itemListElement.item.name === 'JavaScript').length, 1); }); });
scienceai/list-of-programming-languages
test/test.js
JavaScript
apache-2.0
300
// test dotDivide (element-wise divide) import assert from 'assert' import math from '../../../../src/defaultInstance.js' import approx from '../../../../tools/approx.js' const dotDivide = math.dotDivide const complex = math.complex describe('dotDivide', function () { it('should divide two numbers', function () { ...
FSMaxB/mathjs
test/unit-tests/function/arithmetic/dotDivide.test.js
JavaScript
apache-2.0
7,626
// Copyright (C) 2017 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.reverse description: > Ensure reverse() implementation correctly handles length exceeding 2^53-1 with plain objects. info: | ... 2. Let len be ? ToLengt...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
JavaScript
bsd-2-clause
808
/** * @module olcs.OLCesium */ import olGeomPoint from 'ol/geom/Point.js'; import {getTransform} from 'ol/proj.js'; import olcsUtil from './util.js'; import olcsCore from './core.js'; import olcsAutoRenderLoop from './AutoRenderLoop.js'; import olcsCamera from './Camera.js'; import olcsRasterSynchronizer from './Rast...
openlayers/ol-cesium
src/olcs/OLCesium.js
JavaScript
bsd-2-clause
20,715
/** * Copyright (c) 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. * * @emails o...
chirag04/relay
packages/react-relay/classic/query/__tests__/RelayQueryMutation-test.js
JavaScript
bsd-3-clause
3,471
function createDocumentChooser(id) { var chooserElement = $('#' + id + '-chooser'); var docTitle = chooserElement.find('.title'); var input = $('#' + id); var editLink = chooserElement.find('.edit-link'); $('.action-choose', chooserElement).click(function() { ModalWorkflow({ 'ur...
jorge-marques/wagtail
wagtail/wagtaildocs/static/wagtaildocs/js/document-chooser.js
JavaScript
bsd-3-clause
839
/** * by Maxim Shumakov 2017-04-14 */ /** * Настройки профиля */ /* ################################################################## */ // TODO: Установить модуль включения для "склеивания" js файлов /* ################################################################## */ /** * ...
mikaelwasp/yii.test
backend/web/js/custom/modules/profile/settings.js
JavaScript
bsd-3-clause
401
// 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. /** * Namespace object for file type utility functions. */ var FileType = {}; FileType.types = { // Images 'jpeg': {type: 'image', name: 'IMAGE...
aYukiSekiguchi/ACCESS-Chromium
chrome/browser/resources/file_manager/js/file_type.js
JavaScript
bsd-3-clause
4,830
var express = require("express") ,app = express(); //app.use(express.basicAuth('user', 'pass')); var env = process.argv.length > 2 && (process.argv[2] === "prod" || process.argv[2] === "production") ? "prod" : "dev" ,path = "/app" + (env === "prod" ? "/build" : "") ,port = process.env.PORT || 9000; app.use(...
lminkov/property
main.js
JavaScript
bsd-3-clause
473
$wnd.jsme.runAsyncCallback5('t(637,631,im);_.md=function(){this.a.x&&(GS(this.a.x),this.a.x=null);0==this.a.lb.v&&(this.a.x=new LS(2,this.a))};v(JO)(5);\n//@ sourceURL=5.js\n')
aina1205/nmtrypi-seek
vendor/assets/javascripts/jsme/deferredjs/D1FB9F6857DB4198D78FE8D082DE7B5E/5.cache.js
JavaScript
bsd-3-clause
177
"use strict"; var mapnik = require('../'); var assert = require('assert'); var fs = require('fs'); describe('mapnik constants', function() { it('should have valid settings', function() { assert.ok(mapnik.settings); assert.ok(mapnik.settings.paths); assert.ok(mapnik.settings.paths.fonts.len...
tomhughes/node-mapnik
test/constants.test.js
JavaScript
bsd-3-clause
1,879
/** @module liaison/wrapper */ define([ "decor/Observable", "decor/ObservableArray" ], function (Observable, ObservableArray) { "use strict"; var getPrototypeOf = Object.getPrototypeOf; /** * @function module:liaison/wrapper.wrap * @param {Object} o A plain object. * @returns {module:decor/Observable} The ...
ibm-js/liaison
wrapper.js
JavaScript
bsd-3-clause
2,106
var engineLog = (function () { var content; function mod(c) { content = c; } mod.get = function () { return content; }; return mod; })(); (function (){ var etpl = require( '../../src/main' ); var readText = require( './readTextSync' ); var mytpl = new etpl.Engine(...
yibuyisheng/etpl
test/spec/engine.spec.js
JavaScript
bsd-3-clause
9,519
"use strict"; const Heap = require('./heap'); const deltas = [-1, 0, -1, 1, 0, -1, 0, 1, 1, -1, 1, 0]; function Point (x, y) { this.x = x; this.y = y; } Point.equals = (point, other) => point.x === other.x && point.y === other.y; Point.hash = point => String.fromCharCode(point.x, point.y); function PointMap (.....
IonPostglacial/hexagon-game-editor
lib/pathfinding.js
JavaScript
bsd-3-clause
2,610
/* * * @Name: Main js. Util functions * @Author: Daniel Robert */ operations = { /** * @param {Array} data datos a guardar * @param {String} url /module/controller */ save: function(data, url, successCallBack, errorCallBack) { if(data == undefined || data == null){ ...
jchurin/tracingapp
public/application/common/main.js
JavaScript
bsd-3-clause
1,748
function getE(name) { if (document.getElementById) var elem = document.getElementById(name); else if (document.all) var elem = document.all[name]; else if (document.layers) var elem = document.layers[name]; return elem; } function str2url(str, encoding, ucfirst, separator) { str = str.toUpperCase()...
duythien/phanbook
core/modules/backend/assets/js/scripts.js
JavaScript
bsd-3-clause
11,313
// Declare app level module which depends on views, and components angular.module('myApp', ['ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version']). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); $routeProvider.otherwise({ redirect...
nori-vinay/Angular-Blog-3
app/app.js
JavaScript
mit
342
define("seajs/seajs-style/1.0.2/seajs-style",[],function(){var a,b=/\W/g,c=document,d=document.getElementsByTagName("head")[0]||document.documentElement;seajs.importStyle=function(e,f){if(!f||(f=f.replace(b,"-"),!c.getElementById(f))){var g;if(!a||f?(g=c.createElement("style"),f&&(g.id=f),d.appendChild(g)):g=a,g.styleS...
stephenml/demo
src/main/webapp/resource/js/modules/seajs/seajs-style/1.0.2/seajs-style.js
JavaScript
mit
567
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionLanguage = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1...
alvarolobato/blueocean-plugin
jenkins-design-language/src/js/components/material-ui/svg-icons/action/language.js
JavaScript
mit
1,081
/*! * Ext JS Connect * Copyright(c) 2010 Sencha Inc. * MIT Licensed */ /** * Module dependencies. */ var Session = require('./session/session'), utils = require('./../utils'); /** * Setup session store with the given `options`. * * Options: * * - `store` Session store instance * - `finger...
atmos/heroku-express
vendor/connect/lib/connect/middleware/session.js
JavaScript
mit
4,169
'use strict'; // Setting up route angular.module('posts').config(['$stateProvider', function ($stateProvider) { // Articles state routing $stateProvider .state('posts', { abstract: true, url: '/posts', template: '<ui-view/>' }) .state('posts.list', { url: '',...
tomkaX/kleo
modules/posts/client/config/posts.client.routes.js
JavaScript
mit
966
import React from "react"; class PaginationInfo extends React.Component { render() { const {collection} = this.props; return ( <span> Showing {collection.pagination.start_index} to {collection.models.size} of {collection.pagination.total_entries} entries </...
pannkotsky/groupmate
frontend/src/app/components/PaginationInfo.js
JavaScript
mit
377
// content content content content content content // content content content content content content export default "shared"
webpack/webpack
test/statsCases/split-chunks-min-size-reduction/node_modules/shared.js
JavaScript
mit
126
//-------------------------------------------------------------------- // WebGL Analyser // var ANALYSISTYPE_FREQUENCY = 0; var ANALYSISTYPE_SONOGRAM = 1; var ANALYSISTYPE_3D_SONOGRAM = 2; var ANALYSISTYPE_WAVEFORM = 3; // The "model" matrix is the "world" matrix in Standard Annotations and Semantics var model = 0; v...
benjaminabel/lyceum-animations
src/realtime-visualizer/visualizer-gl/visualizer.js
JavaScript
mit
15,809
module.exports = { description: 'auto-indents with spaces and indent: true', options: { output: { name: 'foo', indent: true } } };
corneliusweig/rollup
test/form/samples/indent-true-spaces/_config.js
JavaScript
mit
144
(function () { var _buildUpdatesProtocol = '$buildUpdates'; var ws = new WebSocket('ws://' + location.host, [_buildUpdatesProtocol]); ws.onmessage = function (event) { location.reload(); }; })();
johnpryan/dartbyexample
packages/build_runner/src/server/build_updates_client/live_reload_client.js
JavaScript
mit
208
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; const GraphQLCompilerContext = require('./GraphQLCompilerContext'); const {vis...
freiksenet/relay
packages/relay-compiler/core/filterContextForNode.js
JavaScript
mit
1,370
/* smooth-scroll.js v1.0.1 */ (function(){var e=500,t=15,n=0,r=document.getElementsByTagName("a"),i;for(var s=0;s<r.length;s++){i=r[s].attributes.href===undefined?null:r[s].attributes.href.nodeValue.toString();if(i!==null&&i.length>1&&i.substr(0,1)=="#"){r[s].onclick=function(){var r;var i=this.attributes.href.nodeValu...
thedatasounds/website
public/themes/datasounds/bower_components/smooth-scroll/smooth-scroll.min.js
JavaScript
mit
775
var getDelimiter = require("../libs/core/getDelimiter.js"); var assert = require("assert"); describe("Test delimiters", function () { it("should return the explicitly specified delimiter", function() { var delimiter = ";"; var rowStr = "a;b;c"; var returnedDelimiter = getDelimiter(rowStr, {delimiter:";"}...
futuristicblanket/reef-space
node_modules/csvtojson/test/testDelimiter.js
JavaScript
mit
1,074
/*! * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file. */ import '@webex/internal-plugin-mercury'; import '@webex/internal-plugin-presence'; import {assert} from '@webex/test-helper-chai'; import WebexCore from '@webex/webex-core'; import testUsers from '@webex/test-helper-test-users'; import {expectEv...
aimeex3/spark-js-sdk
packages/node_modules/@webex/internal-plugin-presence/test/integration/spec/presence.js
JavaScript
mit
7,262
import DS from 'ember-data'; import {module, test} from 'qunit'; module('unit/transform - DS.NumberTransform'); test('#serialize', function(assert) { let transform = new DS.NumberTransform(); assert.equal(transform.serialize(null), null); assert.equal(transform.serialize(undefined), null); assert.equal(tran...
workmanw/data
tests/unit/transform/number-test.js
JavaScript
mit
1,134
import _regeneratorRuntime from 'babel-runtime/regenerator'; /** * Enhances a set of <code>StackFrame</code>s with their original positions and code (when available). * @param {StackFrame[]} frames A set of <code>StackFrame</code>s which contain (generated) code positions. * @param {number} [contextLines=3] The num...
kishigo/recipes-react-redux
node_modules/react-error-overlay/lib/utils/mapper.js
JavaScript
mit
4,652
$(function () { let HexagonGridCellModule = window.HTM.gridCells.HexagonGridCellModule let GridCellModuleRenderer = window.HTM.gridCells.GridCellModuleRenderer const minScale = 20, maxScale = 100, minOrientation = 0, maxOrientation = 45 let GlobalConfig = function() { t...
htm-community/sdr-viz
static/js/ep14/grid-cells.js
JavaScript
mit
4,407
var scissor = /# ------------------------ >8 ------------------------[\s\S]+/; module.exports = function( value ) { return value.replace( scissor, "" ).split( /\n/ ).filter(function( line ) { return !/^#/.test( line ); }).join( "\n").trim(); };
wenjoy/homePage
node_modules/geetest/node_modules/request/node_modules/tough-cookie/node_modules/async/node_modules/benchmark/node_modules/qunitjs/node_modules/commitplease/lib/sanitize.js
JavaScript
mit
249
'use strict'; const Topology = require('../core').Topology; const ServerCapabilities = require('./topology_base').ServerCapabilities; const Cursor = require('../cursor'); const translateOptions = require('../utils').translateOptions; class NativeTopology extends Topology { constructor(servers, options) { option...
aguerny/LacquerTracker
node_modules/mongodb/lib/topologies/native_topology.js
JavaScript
mit
2,022
define([ 'lib/glMatrix', 'editor/tools/Tools', 'gui/GuiTR', 'math3d/Picking' ], function (glm, Tools, TR, Picking) { 'use strict'; var vec3 = glm.vec3; var GuiSculptingTools = {}; GuiSculptingTools.initGuiTools = function (sculpt, menu, main) { // init each tools ui var tnames = Tools.keys; ...
beni55/sculptgl
src/gui/GuiSculptingTools.js
JavaScript
mit
10,094
'use strict'; const co = require('co'); const path = require('path'); const util = require('util'); const EventEmitter = require('events'); const childProcess = require('child_process'); const _ = require('../common/helper'); const defaultOpt = { cwd: process.cwd(), directory: 'macaca-test' }; const server = re...
macacajs/macaca-client
lib/run/index.js
JavaScript
mit
4,097
require('ember-runtime/~tests/suites/enumerable'); var suite = Ember.EnumerableTests; // .......................................................... // any() // suite.module('any'); suite.test('any should should invoke callback on each item as long as you return false', function() { var obj = this.newObject(), ...
michaelBenin/ember.js
packages/ember-runtime/tests/suites/enumerable/any.js
JavaScript
mit
3,609
var should = require('chai').should(); var ex = require('./ex.js').load('./exercise.js'); function timeStamp(time){ var stamp = { hour_col1 : Math.floor(time.getHours() / 10), hour_col2 : (time.getHours() % 10), min_col1 : Math.floor(time.getMinutes() / 10), min_col2 : (time.get...
sremsen/hw-binary
starter_code/test/test.js
JavaScript
mit
2,106
define({ "layersPage": { "title": "Pasirinkite šabloną elementui kurti", "generalSettings": "Bendrieji parametrai", "layerSettings": "Sluoksnio parametrai", "editDescription": "Nurodykite redagavimo skydelio rodomą tekstą", "editDescriptionTip": "Šis tekstas rodomas virš šablono parinkiklio. Jei n...
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/SmartEditor/setting/nls/lt/strings.js
JavaScript
mit
6,047
export const throttle = (func, limit) => { let inThrottle; return function () { const args = arguments; // @ts-ignore const context = this; if (!inThrottle) { func.apply(context, args); inThrottle = true; setTimeout(() => inThrottle = false, limit); } }; };
tannerlinsley/react-table
docs/src/components/utils/throttle.js
JavaScript
mit
299
define({ "_widgetLabel": "Conversión de coordenada", "DD": "DD", "DDM": "DDM", "DMS": "DMS", "DDRev": "DDRev", "DDMRev": "DDMRev", "DMSRev": "DMSRev", "USNG": "USNG", "MGRS": "MGRS", "UTM_H": "UTM (H)", "UTM": "UTM", "GARS": "GARS", "GEOREF": "GEOREF", "DDLatLongNotation": "Grados decimales ...
tmcgee/cmv-wab-widgets
wab/2.15/widgets/CoordinateConversion/nls/es/strings.js
JavaScript
mit
2,735
/* jshint curly: false */ /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2013 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * A collection of easing methods defining ease-in ease-out curves. * * @class Phaser.Easing...
GoodBoyDigital/phaser
src/tween/Easing.js
JavaScript
mit
12,875
import Ember from 'ember-metal/core'; import { computed } from 'ember-metal/computed'; import run from 'ember-metal/run_loop'; import jQuery from 'ember-views/system/jquery'; import EmberView from 'ember-views/views/view'; import { compile } from 'ember-template-compiler'; import { registerKeyword, resetKeyword } from...
acburdine/ember.js
packages/ember-views/tests/views/view_test.js
JavaScript
mit
4,686
// dependencies var expect = require('chai').expect; var sinon = require('sinon'); exports = module.exports = function (profile) { describe('Profile', function () { describe('#get()', function () { it('should return profile if successful', function (done) { var req = { ...
eiriklv/hoardr
test/handlers/api/profile/index.js
JavaScript
mit
2,806
(function () { "use strict"; var LogLine = function() { }; LogLine.__name__ = true; LogLine.prototype = { __class__: LogLine }; var Job = function(ident) { this.pendingLogLines = 0; this.downloadCountBucket = (function($this) { var $r; var _g = []; { var _g1 = 0; while(_g1 < 62) { var dummy = _g1++; ...
Frogging101/ArchiveBot
dashboard/assets/scripts/dashboard.js
JavaScript
mit
17,264
import Promise from './index'; var globalNS = (function() { // the only reliable means to get the global object is // `Function('return this')()` // However, this causes CSP violations in Chrome apps. if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return wind...
tipographo/tipographo.github.io
node_modules/promise-polyfill/src/polyfill.js
JavaScript
mit
507
// Adding a comment stops the pretty printing process and everything is // squished in a single line afterward export type BuckWebSocketMessage = { // Not actually from Buck - this is to let the receiver know that the socket is connected. type: 'SocketConnected', } | { type: 'BuildProgressUpdated', progressValu...
prettier/prettier
tests/format/flow/comments/issues.js
JavaScript
mit
747
var gulp = require("gulp"); var runSequence = require('run-sequence'); // Copy jS and CSS ************************************************************************************* gulp.task('copy-html', function () { return gulp.src('productionfiles/pinger.html') .pipe(gulp.dest('dist/')); }); gulp.task('cop...
Anvesh-Reddy/Pinger
PingerExtension/gulp-tasks/build-prod.js
JavaScript
mit
1,042