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 2014-2015 Alex Benfaremo, Alessandro Chelli, Lorenzo Di Berardino, Matteo Di Sabatino /** ******************************* LICENSE ********************************** * * * This file is part of ApioOS. ...
ApioLab/ApioServer
public/global/Maps/Maps.js
JavaScript
gpl-2.0
103,576
/*global jQuery *//*! * Lettering.JS 0.6.1 * * Copyright 2010, Dave Rupert http://daverupert.com * Released under the WTFPL license * http://sam.zoy.org/wtfpl/ * * Thanks to Paul Irish - http://paulirish.com - for the feedback. * * Date: Mon Sep 20 17:14:00 2010 -0600 */(function(e){function t(t,n,r,i){var s=t.text()...
sullivanLi/joomla-laconic
libraries/expose/interface/js/jquery.lettering.js
JavaScript
gpl-2.0
987
/// <reference path="../../Scripts/jquery-1.6.4.js" /> /// <reference path="../../Scripts/jquery.signalR.js" /> /// <reference path="../../Scripts/hubs.js" /> $(function () { "use strict"; var hub = $.connection.realtime, $state = $("#state"), $fps = $("#fps"), $serverFps = $("#server...
meebey/smuxi-head-mirror
lib/SignalR/samples/Microsoft.AspNet.SignalR.Hosting.AspNet.Samples/Hubs/RealtimeBroadcast/Realtime.js
JavaScript
gpl-2.0
2,830
import { find, render } from '@ember/test-helpers'; import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | draw map', function(hooks) { setupRenderingTest(hooks); test('it renders', async function(asse...
gabrielkg/Dav127
frontend/tests/integration/components/draw-map-test.js
JavaScript
gpl-3.0
728
jQuery(document).ready(function() { jQuery('.tab-box').tabs({ fx: { height: 'toggle', opacity: 'toggle' } }); });
rraval/PressPlay
tabs.js
JavaScript
gpl-3.0
116
/** * Cross-Origin Resource Sharing (CORS) Settings * (sails.config.cors) * * CORS is like a more modern version of JSONP-- it allows your server/API * to successfully respond to requests from client-side JavaScript code * running on some other domain (e.g. google.com) * Unlike JSONP, it works with POST, PUT, an...
BU-NU-CLOUD-SP16/Cloud-vSwitch
vSwitch-API/config/cors.js
JavaScript
gpl-3.0
3,614
var _ = require("lodash"); var update = {}; // TODO: Validate that clock has the "lap()" method update.buildUpdateService = function($interval, clock, fps) { var updateService = {}; var updateFunctions = []; var promise; var runUpdateFunctions = function() { _...
Prince86EKNJ/royal-hime
src/royal-hime/update.js
JavaScript
gpl-3.0
1,711
/** @fileOverview Convenince functions centered around JSON encapsulation. * * @author Emily Stark * @author Mike Hamburg * @author Dan Boneh */ /** @namespace JSON encapsulation */ sjcl.json = { /** Default values for encryption */ defaults: { v:1, iter:1000, ks:128, ts:64, mode:"ccm", adata:"", cipher:"a...
snowcrystal/cipherjs
src/lib/sjcl/convenience.js
JavaScript
gpl-3.0
9,574
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Software distr...
samn/spectral-workbench
webserver/public/lib/bespin-0.9a2/plugins/supported/filesystem/index.js
JavaScript
gpl-3.0
9,640
/** * Created by fwh on 2017/9/30. */ $(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; }); }); function cantSee(){ $(".hint").css("display","none"); } document.onkeydown = function() { if (window.event && window.event.keyCode == 123) { ...
wenhaofan/blog
target/blog-1.0.0.1/assets/front/js/forbid.js
JavaScript
gpl-3.0
1,117
H5.Device = (function (window, Math) { "use strict"; function Device(userAgent, width, height, devicePixelRatio, screenWidth, screenHeight) { this.userAgent = userAgent; this.isFirefox = /firefox/i.test(userAgent); this.isIE10 = /MSIE 10/i.test(userAgent); this.isWin7 = /Windows...
raphaelstary/thecaptain
www/js/highfivejs/platform/Device.js
JavaScript
gpl-3.0
892
import electron from 'electron' const dialog = (electron.dialog || electron.remote.dialog) export function Error (content = '', title = '') { if (typeof title === 'object') title = title.toString() if (typeof content === 'object') content = content.toString() dialog.showErrorBox(title, content) return new global.E...
cawa-93/ad_maker
src/common/dialog.js
JavaScript
gpl-3.0
677
// Load modules var Lab = require('lab'); var Http = require('http'); var Boom = require('boom'); var Events = require('events'); var Client = require('../../lib/client'); // Declare internals var internals = {}; // Test shortcuts var expect = Lab.expect; var before = Lab.before; var after = Lab.after; var descr...
aasagba/LFI-Accessibility-Dashboard
node_modules/pa11y-webservice/node_modules/hapi/test/unit/client.js
JavaScript
gpl-3.0
5,164
var request = require('request'); // Accesses historical data for a given stock symbol, type (daily, minutes, weekly, etc.), start date and // end date (optional), and callback // Uses barchart free api function historicalStockScraper(symbol, type, startDate, fCallback, endDate, keyNumber) { // optional arguments...
ardasahiner/StockTrade
scrapers/historyscraper.js
JavaScript
gpl-3.0
1,380
Crafty.c(Tree.id, { init: function() { this.requires('Actor, Solid, spr_tree_'+getRandomInt(0,15)); }, }); Bush={id:'Bush'}; Crafty.c(Bush.id, { init: function() { this.requires('Actor, Solid, spr_bush_'+getRandomInt(0,11)); }, }); Crafty.c(Rock.id, { init: fun...
PrinceOfAmber/LothNeoCities
js/entities/terrain.js
JavaScript
gpl-3.0
1,673
YUI.add('moodle-editor_atto-editor', function (Y, NAME) { // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or...
evltuma/moodle
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
JavaScript
gpl-3.0
92,899
module.exports={A:{A:{"1":"A B","2":"K D G hB","132":"E"},B:{"1":"2 C d J M H I"},C:{"1":"0 1 2 3 4 6 7 8 F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z HB GB AB CB DB FB YB XB","2":"eB BB"},D:{"1":"0 1 2 3 4 6 7 8 F N K D G E A B C d J M H I O P Q R S T U V W X Y ...
hhkaos/awesome-arcgis
node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js
JavaScript
gpl-3.0
915
/****************************************************************************** * Fortune * Basic module that pipes the output of the unix command 'fortune' into chat *****************************************************************************/ var exec = require('child_process').exec; module.exports = function(bo...
JDonut/FunBot
modules/fortune.js
JavaScript
gpl-3.0
528
/************************************************************************ * This file is part of EspoCRM. * * EspoCRM - Open Source CRM application. * Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko * Website: http://www.espocrm.com * * EspoCRM is free software: you can redistribute it...
catataw/espocrm
frontend/client/src/views/email/record/list.js
JavaScript
gpl-3.0
5,361
// Mobilization actions export const REQUEST_FETCH_MOBILIZATIONS = 'REQUEST_FETCH_MOBILIZATIONS' export const SUCCESS_FETCH_MOBILIZATIONS = 'SUCCESS_FETCH_MOBILIZATIONS' export const FAILURE_FETCH_MOBILIZATIONS = 'FAILURE_FETCH_MOBILIZATIONS' export const REQUEST_EDIT_MOBILIZATION = 'REQUEST_EDIT_MOBILIZATION' export c...
igr-santos/hub-client
app/scripts/constants/ActionTypes.js
JavaScript
gpl-3.0
1,657
var map = new maptalks.Map('map', { center: [-0.113049, 51.498568], zoom: 14, baseLayer: new maptalks.TileLayer('base', { urlTemplate: '$(urlTemplate)', subdomains: $(subdomains), attribution: '$(attribution)' }) }); var polygon = new maptalks.Polygon([ [ [-0.131049, 51.498568], [-0.10704...
MapTalks/maptalks-demo
src/animation/polygon-animateshow/index.js
JavaScript
gpl-3.0
897
/*! * Webogram v0.3.9 - messaging web application for MTProto * https://github.com/zhukov/webogram * Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com> * https://github.com/zhukov/webogram/blob/master/LICENSE */ 'use strict'; /* Controllers */ angular.module('myApp.controllers', ['myApp.i18n']) .controll...
theajit/webapp
app/js/controllers.js
JavaScript
gpl-3.0
100,578
/* * Copyright (C) 2012 Krawler Information Systems Pvt Ltd * All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your optio...
vdt/Deskera-Accounting
Maven_Accounting/src/main/webapp/scripts/common/WtfUserGrid.js
JavaScript
gpl-3.0
8,916
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'stylescombo', 'ca', { label: 'Estil', panelTitle: 'Estils de format', panelTitle1: 'Estils de bloc', panelTitle2: 'Estils incrustats', panelTitle...
Mediawiki-wysiwyg/WYSIWYG-CKeditor
WYSIWYG/ckeditor_source/plugins/stylescombo/lang/ca.js
JavaScript
gpl-3.0
348
/*! * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2017 * @version 2.1.1 * * Additional enhancements for Select2 widget extension for Yii 2.0. * * Author: Kartik Visweswaran * For more JQuery plugins visit http://plugins.krajee.com * For more Yii related demos visit http://demos.krajee.com...
Motorui/ass-app
web/assets/65b35163/js/select2-krajee.js
JavaScript
gpl-3.0
6,120
(function eventsGraphEvents() { var graph = new joint.dia.Graph; new joint.dia.Paper({ el: document.getElementById('paper-events-graph-events'), model: graph, width: 600, height: 100, gridSize: 1, background: { color: 'white' }, inter...
vtalas/joint
tutorials/js/events-graph-events.js
JavaScript
mpl-2.0
2,433
({ block : 'page', title : 'Пример задания стилей для разных версий IE', head : [ { elem : 'css', url : '30-css-ie.css', ie : false }, { elem : 'css', url : '30-css-ie', ie : true } ] })
tazminweb/bem-core
desktop.blocks/page/page.tmpl-specs/40-css-ie.bemjson.js
JavaScript
mpl-2.0
253
'use strict'; const discreteType = { testInterpolation: (property, setup, options) => { for (const keyframes of options) { const [ from, to ] = keyframes; test(t => { const idlName = propertyToIDL(property); const target = createTestElement(t, setup); const animation = target....
sadmansk/servo
tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/property-types.js
JavaScript
mpl-2.0
116,207
var util = require('../../lib/util'); // TODO: this is a really bad email validation, and should probably be removed. var validateSignupForm = function(signUpFormState) { var errors = []; if ( !util.isValidEmail(signUpFormState.email) ) { errors.push("Please enter an email address."); } return errors; }; ...
Pomax/teach.webmaker.org
pages/community/validateSignupForm.js
JavaScript
mpl-2.0
357
// |reftest| skip-if(!this.hasOwnProperty("SIMD")) var BUGNUMBER = 946042; var float32x4 = SIMD.float32x4; var int32x4 = SIMD.int32x4; var summary = 'float32x4 min'; function test() { print(BUGNUMBER + ": " + summary); // FIXME -- Bug 948379: Amend to check for correctness of border cases. var a = float32x4(1...
JasonGross/mozjs
js/src/tests/ecma_6/TypedObject/simd/float32x4min.js
JavaScript
mpl-2.0
572
import { bus, cache } from '../../core-server'; import * as Constants from '../../lib/Constants'; const resourceMap = {}; bus.on('presence/offline', presence => { const user = resourceMap[presence.resource]; if (user) { cache.getEntity(user, (err, u) => { if (err || !u) { return; } u.resources = u....
scrollback/pure
src/modules/resource/resource.js
JavaScript
agpl-3.0
2,190
Miniflux.Item = (function() { // timestamp of the latest item per feed ever seen var latest_feeds_items = []; // indicator for new unread items var unreadItems = false; var nbUnreadItems = function() { var navCounterElement = document.getElementById("nav-counter"); if (navCounter...
elais/miniflux
assets/js/item.js
JavaScript
agpl-3.0
13,234
q(589,585,Fh);_.Pc=function(){this.a.s&&(lM(this.a.s),this.a.s=null);0==this.a.cb.E&&(this.a.s=new qM(2,this.a))};x(aI)(4);
GbalsaC/bitnamiP
venv/src/edx-jsme/edx_jsme/static/vendor/jsme/jsme/deferredjs/F0006101A1A13BA7A5FB0E4C3A4FD9DE/4.cache.js
JavaScript
agpl-3.0
123
// The MIT License (MIT) // // Copyright (c) 2016 Tom Zöhner // // 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...
eitea/Connect
plugins/rtfConverter/rtf.js-master/samples/symboltable.js
JavaScript
agpl-3.0
4,639
( function( mw, $ ) {"use strict"; mw.PluginManager.add( 'logo', mw.KBaseComponent.extend({ defaultConfig: { parent: "controlsContainer", order: 41, displayImportance: 'low', align: "right", cssClass: "kaltura-logo", href: 'http://www.kaltura.com', title: 'Kaltura', img: null }, getComp...
SVSG/mwEmbed
modules/KalturaSupport/components/logo.js
JavaScript
agpl-3.0
1,066
/* globals MockFirebase */ MockFirebase.override();
ddmck/Quill-Grammar
test/test_helper.js
JavaScript
agpl-3.0
52
/********************************************************************************* * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * * This program is free software; you can redistribute it and/or modify it under * the ...
saeed237/sugarcrmce
modules/Emails/javascript/EmailUICompose.js
JavaScript
agpl-3.0
97,274
/*! * Ext JS Library 3.3.0 * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ /** * @class Ext.calendar.DayHeaderView * @extends Ext.calendar.MonthView * <p>This is the header area container within the day and week views where all-day events are displayed. * Normally ...
daowzq/ExtNet
ext.net.community/Ext.Net/Build/Ext.Net/ux/extensions/calendar/src/views/DayHeaderView.js
JavaScript
agpl-3.0
3,420
'use strict'; module.exports = (core, config, store) => { core.on('setstate', changes => { if (changes.nav && ('mode' in changes.nav || 'room' in changes.nav || 'thread' in changes.nav) && store.get('app', 'queuedActions')) { changes.app = changes.app || {}; changes.app.queuedActions = null; } }, 100); };
wesley1001/io.scrollback.neighborhoods
app/store.orig/rules/clearQueuedActions.js
JavaScript
agpl-3.0
320
#pragma strict public var rotateSpeed : float = 1.0; public var randomize : boolean = false; public var rotateAxis : Vector3 = Vector3(0.5,0.5,0.5); function Start () { } function Update () { transform.Rotate(Vector3(Time.deltaTime*rotateSpeed*rotateAxis.x,Time.deltaTime*rotateSpeed*rotateAxis.y,Time.deltaTime*r...
hcilab-um/UnityHandlers
UnityMultiplatform/unity_epson-200/Assets/FOV2GO/Scripts/miscellaneous/slowRotate.js
JavaScript
agpl-3.0
476
var edx = edx || {}; (function(Backbone, $, _, gettext) { 'use strict'; edx.instructor_dashboard = edx.instructor_dashboard || {}; edx.instructor_dashboard.ecommerce = {}; edx.instructor_dashboard.ecommerce.ExpiryCouponView = Backbone.View.extend({ el: 'li#add-coupon-modal-field-expiry', ...
nttks/edx-platform
lms/static/js/instructor_dashboard/ecommerce.js
JavaScript
agpl-3.0
9,962
/** * @file Defines the class to create "scene level" rendering plugins. These plugins * implement rendering passes that are not tied to a particular mesh layer, but * affect the whole scene. */ /** * @class Base class to create rendering plugins that are not tied to a mesh layer. * * @param {Object} ...
cignoni/meshlabjs
js/mlj/core/plugin/GlobalRendering.js
JavaScript
agpl-3.0
2,760
/** * Copyright 2013-present NightWorld. * * 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 ag...
AppArbor/intellihot-spark-server
node_modules/node-oauth2-server/examples/postgresql/model.js
JavaScript
agpl-3.0
3,536
//inject both fixtures and songPlayer services into the controller (function() { function PlayerBarCtrl(Fixtures, SongPlayer) { this.albumData = Fixtures.getAlbum(); this.songPlayer = SongPlayer; } angular .module('blocJams') .controller('PlayerBarCtrl', ['Fixtures', ...
iamroyalt/bloc-jams-angular
dist/scripts/controllers/PlayerBarCtrl.js
JavaScript
apache-2.0
358
define({ "builder": { "layouts": { "mainStage": "Grande scène", "sideTitle": "Volet latéral", "sideDescr": "Mise en page adaptée aux narrations textuelles intensives qui est idéale pour allier vos photos, vidéos et cartes dans un message clair et précis.", "floatTitle": "Volet flottant", ...
Esri/map-journal-storytelling-template-js
src/resources/tpl/builder/nls/fr/template.js
JavaScript
apache-2.0
10,726
/** * Copyright 2020 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-date-display/1.0/component.type.js
JavaScript
apache-2.0
933
/* * 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/applicationinsights/lib/models/applicationInsightsComponentAnalyticsItemProperties.js
JavaScript
apache-2.0
1,472
// Copyright 2006 The Closure Library 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 requ...
cmgrecu/shaka-player
third_party/closure/goog/base.js
JavaScript
apache-2.0
27,143
/* * 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/luis/authoring/lib/models/entityRoleCreateObject.js
JavaScript
apache-2.0
1,120
//// [recursiveIdenticalAssignment.ts] interface A<T> { x: A<T> } interface B<T extends B<B<T>>> { // error, constraint referencing itself x: B<T> } var a: A<A<any>> var b: B<B<any>> = a // Error, any does not satisfy constraint B<B<T>> //// [recursiveIdenticalAssignment.js] var a; var b = a;
DickvdBrink/TypeScript
tests/baselines/reference/recursiveIdenticalAssignment.js
JavaScript
apache-2.0
312
jQuery.sap.require("oscon2014.util.Formatter"); jQuery.sap.require("oscon2014.util.Grouper"); sap.ui.controller("oscon2014.view.Master", { handleListItemPress : function (evt) { var context = evt.getSource().getBindingContext(); this.nav.to("Detail", context); }, handleSearch : function (evt) { // creat...
BluefinSolutions/OpenUI5-OSCON-2014
projects/OSCON-2014-Solutions/oscon2014-11/view/Master.controller.js
JavaScript
apache-2.0
1,403
//// [negateOperatorWithStringType.ts] // - operator on string type var STRING: string; var STRING1: string[] = ["", "abc"]; function foo(): string { return "abc"; } class A { public a: string; static foo() { return ""; } } module M { export var n: string; } var objA = new A(); // string type var var R...
DickvdBrink/TypeScript
tests/baselines/reference/negateOperatorWithStringType.js
JavaScript
apache-2.0
1,717
import {applyMiddleware, createStore} from 'redux'; import createLogger from 'redux-logger'; import promoise from 'redux-promise-middleware'; import thunk from 'redux-thunk'; import reducer from "./reducers"; const logger = createLogger() const middleware = applyMiddleware(promoise(), thunk, logger); export default cr...
victoryforphil/GTMobile
Dashboard/src/store.js
JavaScript
apache-2.0
351
/******************************************************************************* * Copyright 2013-2014 Aerospike, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
jklepp-tgm/aerospike-client-nodejs
examples/range_put.js
JavaScript
apache-2.0
6,707
// Copyright 2012 The Obvious Corporation. var Q = require('kew') var nodeunitq = require('nodeunitq') var builder = new nodeunitq.Builder(exports) // set up a graph for testing exports.setUp = function (done) { this.error = new Error('This should break') this.graph = new (require ('../lib/shepherd')).Graph done...
1989tianlong/shepherd
test/throw.js
JavaScript
apache-2.0
3,162
/* global */ import angular from 'angular'; import vectorNameModalTpl from './vectorNameModal.html'; const VectorNameModalComponent = { templateUrl: vectorNameModalTpl, bindings: { close: '&', dismiss: '&', modalInstance: '<', resolve: '<' }, controller: 'VectorNameModal...
azavea/raster-foundry
app-frontend/src/app/components/vectors/vectorNameModal/vectorNameModal.module.js
JavaScript
apache-2.0
2,195
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
mdittmer/foam
js/com/google/watlobby/Topic.js
JavaScript
apache-2.0
3,277
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP var React = require('react'); var Locale = require('../utils/Locale'); var SkipLinks = require('./SkipLinks'); var supportedLocales = ['en-US', 'pt-BR']; function localesSupported() { return global.Intl && supportedLocales.every(function (locale)...
nanndoj/grommet
src/js/components/App.js
JavaScript
apache-2.0
1,730
/** * Created by yf-limeng on 2014/5/17. */ define(['angular','demoResult','highcharts','hubConst','template','hubTemplate','datepicker','hubDatepicker'],function(angular, demoResult, highcharts,hubConst, template, hubTemplate, datepicker, hubDatepicker){ var coreServ = angular.module('coreApp.service',[]); v...
sunlin901203/template
sunny-template-view/src/main/webapp/javascript/demo/services/core-service.js
JavaScript
apache-2.0
29,848
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { app: ['./main.js'], }, output: { library: 'shared', libraryTarget: 'commonjs2', path: path.resolve(__dirname, 'dist'), publicPath: '/', filename: 'bundle.js', }, devServer: { port: '4000'...
Autodesk/molecular-design-applications
shared/webpack.config.js
JavaScript
apache-2.0
780
var appLocale = {lc:{"ar":function(n){ if (n === 0) { return 'zero'; } if (n == 1) { return 'one'; } if (n == 2) { return 'two'; } if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { return 'few'; } if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { return '...
cloud3edu/code-dot-org-old
dashboard/public/apps-package/js/vi_vn/maze_locale.js
JavaScript
apache-2.0
12,527
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
jlhughes/foam
js/foam/demos/FOAMComponents.js
JavaScript
apache-2.0
12,761
/** * @license * Visual Blocks Editor * * 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/l...
cdjackson/ExtBlockly
core/warning.js
JavaScript
apache-2.0
4,817
//// [commentsModules.ts] /** Module comment*/ module m1 { /** b's comment*/ export var b: number; /** foo's comment*/ function foo() { return b; } /** m2 comments*/ export module m2 { /** class comment;*/ export class c { }; /** i*/ export va...
DickvdBrink/TypeScript
tests/baselines/reference/commentsModules.js
JavaScript
apache-2.0
5,946
/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ // Tests that xpinstall.[whitelist|blacklist].add preferences are emptied when // converted into permissions on startup with new profile const PREF_XPI_WHITELIST_PERMISSIONS = "xpinstall.whitelist.add"; const...
sergecodd/FireFox-OS
B2G/gecko/toolkit/mozapps/extensions/test/xpcshell/test_bug578467.js
JavaScript
apache-2.0
1,364
'use strict'; /** * @ngdoc overview * @name sayonaraAdminApp * @description * # sayonaraAdminApp * * Main module of the application. */ angular .module('sayonaraAdminApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngMaterial', 'angular-loading-bar', 'ngQuill', 'ui.co...
torch2424/SayonaraJS
SayonaraAdmin/app/scripts/app.js
JavaScript
apache-2.0
4,239
(function () { 'use strict'; function toRect(r, theta) { return r * Math.cos(theta) + ',' + r * Math.sin(theta) + ' '; } function toRectCoord(r, theta) { return {x: r * Math.cos(theta), y: r * Math.sin(theta)}; } var r = 256, inner = 0.82, b = r * 0.1, round = r * 0.09, width ...
jeffbaumes/startbootstrap-agency
js/logo.js
JavaScript
apache-2.0
5,600
// Contact form validation $( document ).ready(function() { $.validate({ modules : 'html5, toggleDisabled' }); }); // Async contact form $('form[id=contactForm]').submit(function(){ $.post($(this).attr('action'), $(this).serialize(), function(res){ $('form[id=contactForm] #success').hide(); $('form[i...
antonioluppi/antonioluppi.github.io
assets/js/contact.js
JavaScript
apache-2.0
615
import debug from 'debug'; import { createSelector, createStructuredSelector } from 'reselect'; import { Map as makeMap } from 'immutable'; import { initEdgesFromNodes } from '../../utils/layouter-utils'; import { canvasWidthSelector, canvasHeightSelector } from '../canvas'; import { activeTopologyOptionsSelector } fr...
alban/scope
client/app/scripts/selectors/graph-view/graph.js
JavaScript
apache-2.0
2,625
'use strict'; const path = require('path'); const os = require('os'); const fs = require('fs'); // A typical sass error looks like this // const SassError = { // message: "invalid property name", // column: 14, // line: 1, // file: "stdin", // status: 1 // }; /** * Enhances the sass error with additional ...
cloudfoundry-community/asp.net5-buildpack
fixtures/node_apps/angular_dotnet/ClientApp/node_modules/sass-loader/lib/formatSassError.js
JavaScript
apache-2.0
2,130
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...
duderoot/generator-jhipster
test/blueprint/entity-i18n-blueprint.spec.js
JavaScript
apache-2.0
3,001
'use strict'; const AWS = require('aws-sdk'); module.exports = function overwriteCheckFactory(options) { let filesExistPromise; return function overwriteCheck() { filesExistPromise = filesExistPromise || checkFilesExist(options); return filesExistPromise; }; }; function checkFilesExist(options) { const cr...
Brightspace/gulp-frau-publisher
src/overwrite.js
JavaScript
apache-2.0
765
//// [tests/cases/compiler/underscoreTest1.ts] //// //// [underscoreTest1_underscore.ts] interface Dictionary<T> { [x: string]: T; } interface Iterator<T, U> { (value: T, index: any, list: any): U; } interface Reducer<T, U> { (accumulator: U, value: T, index: any, list: any): U; } interface Tuple2<T0...
DickvdBrink/TypeScript
tests/baselines/reference/underscoreTest1.js
JavaScript
apache-2.0
45,909
//// [specializedInheritedConstructors1.ts] interface ViewOptions<TModel> { model: TModel; } class View<TModel> { constructor(options: ViewOptions<TModel>) { } model: TModel; } class Model { } class MyView extends View<Model> { } var m: ViewOptions<Model> = { model: new Model() }; var aView = new View({...
synaptek/TypeScript
tests/baselines/reference/specializedInheritedConstructors1.js
JavaScript
apache-2.0
1,534
function cam_ar(_args) { container = {}; container.win = Titanium.UI.createWindow({ title:_args.title }); container.button = Titanium.UI.createButton({ color:'#fff', backgroundImage:'/images/BUTT_grn_on.png', backgroundSelectedImage:'/images/BUTT_grn_off.png', backgroundDisabledImage: '/images/BUTT_gry...
jeehakim/KitchenSink-stable
Resources/ui/handheld/ios/phone/camera_ar.js
JavaScript
apache-2.0
4,052
// Copyright 2014 The Oppia 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 required by ap...
amitdeutsch/oppia
core/templates/dev/head/admin/Admin.js
JavaScript
apache-2.0
9,340
const webpack = require('webpack'); const babylonExternals = require('./babylonExternals'); const config = require("../Config/config.js"); module.exports = function defaultConfig(options) { if (!options) { throw "Options are mandatory to create the config."; } const module = options.mod...
Kesshi/Babylon.js
Tools/WebpackPlugins/babylonWebpackConfig.js
JavaScript
apache-2.0
2,212
// config-unit-test.js // // Test the config module // // Copyright 2018 AJ Jordan <alex@strugee.net> // // 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/licen...
e14n/pump.io
test/config-unit-test.js
JavaScript
apache-2.0
9,347
var $table = $('#table'), $button = $('#button'), $button1 = $('#button1'); var cont; var pro; var moduleId; var interName; var interDes; var status; var interUrl; var method; var param; var requestexam; var responseparam; var trueexam; var falseexam; function getValues(){ pro=$("#pro-name").va...
flyhero/flyapi2.0
flyapi-controller/flyapi-admin/target/flyapi-admin/static/js/page/new-inter.js
JavaScript
apache-2.0
4,216
addI18n({ info: { head:'ZONES', } });
Appudo/Appudo.github.io
static/dashs/www.appudo.com/d/pub/i18n/doc/en-gb/zones.js
JavaScript
apache-2.0
54
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P. var React = require('react'); var Layer = require('grommet/components/Layer'); var Form = require('grommet/components/Form'); var FormFields = require('grommet/components/FormFields'); var FormField = require('grommet/components/FormField'); var Foot...
ieugen/grommet
examples/todo-app-modular/src/js/components/TodoAddTaskForm.js
JavaScript
apache-2.0
2,141
var vendorId = 0x0922; var productId = 0x0020; var ESC = 0x1B; var SYN = 0x16; var pageWidth = 304; // pixels (must be multiple of 8) var pageHeight = 900; // pixels var $ = function(id) { return document.getElementById(id); }; var $$ = function(selector) { return document.querySelector(selector); }; var resetSeq...
premii/chrome-app-samples
usb-label-printer/index.js
JavaScript
apache-2.0
11,915
/** * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
brigand/emitter
src/EventHolder.js
JavaScript
apache-2.0
4,054
//// [commentOnElidedModule1.ts] /*! Keep this pinned comment */ module ElidedModule { } // Don't keep this comment. module ElidedModule2 { } //// [commentOnElidedModule1.js]
DickvdBrink/TypeScript
tests/baselines/reference/commentOnElidedModule1.js
JavaScript
apache-2.0
181
var util = require("util"); var path = require("path"); var Q = require("q"); var _ = require("lodash"); var fs = require("../fs"); var parse = require("../../parse"); var BaseGenerator = require("../generator"); var Generator = function() { BaseGenerator.apply(this, arguments); }; util.inherits(Generator, BaseG...
isakib/al-quran
node_modules/gitbook/lib/generate/json/index.js
JavaScript
apache-2.0
1,877
/* * Copyright (C) 2015-2017 NS Solutions Corporation, All Rights Reserved. */ $(function() { h5.core.controller('body', hifive.pitalium.explorer.controller.FileDiffPageController); });
hifive/hifive-test-explorer
pitalium-explorer/src/main/webapp/src/fileDiff/init.js
JavaScript
apache-2.0
195
// // Module Patterns // http://javascriptweblog.wordpress.com/2010/12/07/namespacing-in-javascript/ // http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth // // // Basic // // using this to reference sibling properties is a little risky // since there is nothing to stop your namespaced functions...
vincentschut/Piggydb
study-js/scripts/module-patterns.js
JavaScript
apache-2.0
1,863
/* * Copyright 2011 Rackspace * * 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...
racker/service-registry
node_modules/swiz/lib/swiz.js
JavaScript
apache-2.0
1,199
// Copyright (c) 2019, Compiler Explorer Authors // 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, // thi...
mattgodbolt/gcc-explorer
lib/compilers/cc65.js
JavaScript
bsd-2-clause
1,650
function foo() { if (true) { var bar = function () {}; var baz = function () {}; var bark = function () {}; } }
sanex3339/javascript-obfuscator
test/functional-tests/node-transformers/simplifying-transformers/if-statement-simplify-transformer/fixtures/variable-declarations-merge-transformer-integration-1.js
JavaScript
bsd-2-clause
143
// exports for available APIs exports.NextBus = require('./src/nextbus').NextBus; exports.MBTA = require('./src/mbta').MBTA; exports.MBTA_RT = require('./src/mbta_rt').MBTA_RT;
djstroky/transit-api
transit.js
JavaScript
bsd-2-clause
180
// 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. /** * @fileoverview Parses scheduler events in the Linux event trace format. */ base.require('tracing.importer.linux_perf.parser'); base.exportTo('t...
windyuuy/opera
chromium/src/third_party/trace-viewer/src/tracing/importer/linux_perf/sched_parser.js
JavaScript
bsd-3-clause
2,444
// 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. function injectAndDelete(tabId) { // Inject code into each frame. If it's the parent frame, it removes the child // frame from the DOM (invalidating i...
PeterWangIntel/chromium-crosswalk
chrome/test/data/extensions/api_test/executescript/removed_frames/test.js
JavaScript
bsd-3-clause
1,990
var Backbone = require('backbone'); /** * Model that represents a visualization export (v3) */ module.exports = Backbone.Model.extend({ initialize: function (attrs, opts) { if (!attrs.visualization_id) throw new Error('visualization_id is required'); if (!opts.configModel) throw new Error('configModel is...
splashblot/dronedb
lib/assets/javascripts/cartodb3/data/export-map-definition-model.js
JavaScript
bsd-3-clause
1,513
/** * Copyright 2013-2015, 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 react-co...
kay-is/react
src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
JavaScript
bsd-3-clause
36,662
'use strict'; const rules = require('./rules'); const { isPlainObject } = require('is-plain-object'); // Rule settings can take a number of forms, e.g. // a. "rule-name": null // b. "rule-name": [null, ...] // c. "rule-name": primaryOption // d. "rule-name": [primaryOption] // e. "rule-name": [primaryOption, secondar...
ChromeDevTools/devtools-frontend
node_modules/stylelint/lib/normalizeRuleSettings.js
JavaScript
bsd-3-clause
2,256
import {truthy} from 'vega-util'; export function data(name) { const data = this.context.data[name]; return data ? data.values.value : []; } export function indata(name, field, value) { const index = this.context.data[name]['index:' + field], entry = index ? index.value.get(value) : undefined; return ...
vega/vega
packages/vega-functions/src/functions/data.js
JavaScript
bsd-3-clause
576
// Generated by CoffeeScript 2.6.1 // # Utils LDAP module.exports = { acl: { // ## Parse ACLs // Parse one or multiple "olcAccess" entries. // Example: // ``` // ldap.acl // .parse [ '{0}to attrs=userPassword,userPKCS12 by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" ma...
adaltas/node-mecano
packages/ldap/lib/utils/ldap.js
JavaScript
bsd-3-clause
3,475
// javascript input masks using the https://github.com/digitalBush/jquery.maskedinput plugin // @TODO: Probably should think about whether we should use a generated id here $(document).ready(function() { jQuery(function($){ $("#project_phone").mask("999-999-9999"); }); });
schlos/homebase
app/assets/javascripts/project_steps/enter_details.js
JavaScript
isc
282
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y PB OB","16":"0 2 4 z s r"},D:{"1":"0 2 4 8 z s r DB AB SB BB","2":"F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m ...
UrbanRiskSlumRedevelopment/Maya
node_modules/caniuse-lite/data/features/css-containment.js
JavaScript
mit
767