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 |
|---|---|---|---|---|---|
'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... | alvaromamani/appDDHH | karma.conf.js | JavaScript | apache-2.0 | 2,705 |
/*
Copyright 2011-2014 Lukas Vlcek
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | nishantsaini/bigdesk | _site/js/store/BigdeskStore.js | JavaScript | apache-2.0 | 13,702 |
nmeta.FlowsBackGridView = Backbone.View.extend({
initialize:function (options) {
// Specify columns that will be displayed in Backgrid:
var columns = [{
name: "timestamp",
label: "Timestamp",
editable: false,
// Extend UriCell to have timestamp custo... | mattjhayes/nmeta | nmeta/webUI/js/views/flows_backgrid_view.js | JavaScript | apache-2.0 | 2,980 |
'use strict';
module.exports = function (grunt) {
var appPath = './app/';
var tempPath = './tmp/';
var resourcePath = '../src/main/resources/';
var javaAppArtifactLocation = '../build/libs/';
var javaAppPort = 8080;
var globalConfig = {
generatedAssetDestination: '../src/main/resources/... | ManamFoundation/manamfoundation | frontend/Gruntfile.js | JavaScript | apache-2.0 | 3,258 |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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... | rovats/waltz | waltz-ng/client/user/user-management.js | JavaScript | apache-2.0 | 5,028 |
const React = require('react');
const classNames = require('classnames');
/**
* Component that renders a day on the calendar.
*/
class CalendarDayRenderer extends React.Component {
render() {
const day = this.props.day;
const month = this.props.month;
const dayClass = day.month() === month.month() ? cl... | atsid/react-calendar-render | src/CalendarDayRenderer.js | JavaScript | apache-2.0 | 719 |
var data = [
{title:'Basic Information', hasChild:true, test:'../examples/about_troy_more/basic_info.js'},
{title:'Vision Statement', hasChild:true, test:'../examples/about_troy_more/vision.js'},
{title:'ESLRs', hasChild:true, test:'../examples/about_troy_more/eslr_s.js'}
];
var tableview = Titanium.UI.createTableV... | voidvoxel/troyhigh | Resources/examples/about_troy.js | JavaScript | apache-2.0 | 822 |
var VideoStreamUID = null;
var MousePosXY = new Array();
var MailType;
var BrowserVer = new BrowserVerChk();
var MsgArrayMove = new Array();
var unique;
var atmailRoot = '';
var MsgCacheLimit = 100;
var FieldInFocus = false;
var NewHeaderStyle = false;
var ComposeMode;
var ComposeModeStorage = null;
var... | BigBlueHat/atmailopen | javascript/ajax/ajax-int.js | JavaScript | apache-2.0 | 190,333 |
global.stub_out_jquery();
add_dependencies({
people: 'js/people.js',
stream_data: 'js/stream_data.js',
util: 'js/util.js',
});
set_global('page_params', {});
set_global('feature_flags', {});
var Filter = require('js/filter.js');
var _ = global._;
var me = {
email: 'me@example.com',
user_id: 30,
... | SmartPeople/zulip | frontend_tests/node_tests/filter.js | JavaScript | apache-2.0 | 18,450 |
var funcModule = require('./functions');
console.log(funcModule.multiply(10));
console.log(funcModule.getScore());
| KalpaD/java_script_tutorial | basics/node_main.js | JavaScript | apache-2.0 | 115 |
'use strict';
require('./controllers/index');
require('./directives/index');
require('./services/analysis-tasks');
require('./services/co-occurrence-matches');
require('./services/match-counts');
| NLPIE/NLP-TAB-webapp | js/type_system_analysis/index.js | JavaScript | apache-2.0 | 198 |
//// [/lib/initial-buildOutput.txt]
/lib/tsc --b /src/with-references
exitCode:: ExitStatus.Success
//// [/src/core/index.d.ts]
export declare function multiply(a: number, b: number): number;
//# sourceMappingURL=index.d.ts.map
//// [/src/core/index.d.ts.map]
{"version":3,"file":"index.d.ts","sourceRoot":"",... | minestarks/TypeScript | tests/baselines/reference/tsbuild/emptyFiles/initial-build/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js | JavaScript | apache-2.0 | 2,260 |
/*globals $ document PUI*/
/**
* PrimeUI Tree widget
*/
$(function() {
"use strict"; // Added for AngularPrime
$.widget("primeui.puitree", {
options: {
nodes: null,
lazy: false,
animate: false,
selectionMode: null,
icons: null
},
... | primeui-extensions/angularPrime | core/src/main/resources/js/puiTree/tree.js | JavaScript | apache-2.0 | 11,357 |
var EnemyStep = [
{
id:0,
stepAttack: 1,
stepDefense: .13,
stepHP:1.30,
stepRange:2.4,
stepAttackSpeed:1,
stepVelocity:0.14,
coinValueStep: 1,
scoreValueStep: 1.2
},
{
id:1,
stepAttack: 1,
stepDefense: .14,
stepHP:1.6,
stepRange:2.4,
stepAttackS... | augustogava/tower-defense-game | js/Settings/EnemySettings.js | JavaScript | apache-2.0 | 2,902 |
angular.module('hybridapp.controllers')
.controller('LocationCtrl', ['$rootScope', '$scope', '$http', '$ionicScrollDelegate', 'appConfig', function ($rootScope, $scope, $http, $ionicScrollDelegate, appConfig) {
var locationData = [];
var sortedLocationData = [];
$scope.showMap = false;
... | Adobe-Marketing-Cloud-Apps/aem-mobile-hybrid-reference | hybrid-app/www/js/LocationController.js | JavaScript | apache-2.0 | 5,809 |
var NAVTREEINDEX40 =
{
"a04062.html#a5f5772fd72c51be8c6c65a6b442d61f7":[3,0,425,67],
"a04062.html#a5fac27fd4b6667de211ec0a12ef85169":[3,0,425,120],
"a04062.html#a620c3ec802c8ddf9401a6940f542618e":[3,0,425,29],
"a04062.html#a6365787ce52ef1c54d5a031c8436b027":[3,0,425,38],
"a04062.html#a65659b4d35490f3e1c56aa0909d8f652":... | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/navtreeindex40.js | JavaScript | apache-2.0 | 15,280 |
var BSplineBuilder = (function () {
var self = {};
self.build = function (order, controlPoints, knots) {
return new BSpline(order, controlPoints, knots);
};
self.interpolate = function (dataPoints, order, fittingStrategy) {
var parameters = fittingStrategy.getParameters(dataPoints, 0... | mirsaeedi/BSpline | wwwroot/js/BSpline/BSplineBuilder.js | JavaScript | apache-2.0 | 8,517 |
define({tools:{search:{error:"Nie można odnaleźć lokalizacji",notWhatYouWanted:"Oczekiwano innej lokalizacji?",selectAnother:"Wybierz inną lokalizację",currentLocation:"Bieżąca lokalizacja",title:"Lokalizacja"},basemap:{label:"Mapa bazowa",title:"Wybierz mapę bazową",close:"Zamknij"},legend:{title:"Legenda"},details:{t... | Esri/embed-template | build/js/nls/pl/resources.js | JavaScript | apache-2.0 | 936 |
(function(){ // hide everything externally to avoid name collisions
// whether to display debugging output
var svgDebug = true;
// whether we are locally debugging (i.e. the page is downloaded to our
// hard drive and served from a local server to ease development)
var localDebug = true;
// the full URL to where svg... | leymannx/svgweb | tests/non-licensed/wikipedia/svgzoom/svgzoom.js | JavaScript | apache-2.0 | 15,871 |
/**
* File: consumer.js
* Description: This is the AMQP consumer handles incoming
* communication from clients publishing messages to a broker server.
* Messages can be received over AMQP exchange types including one-to-one,
* from broadcast pattern, or selectively using specified binding key.
*
* Author: E... | robomq/robomq.io | sdk/AMQP/Node.js/topic/consumer.js | JavaScript | apache-2.0 | 1,684 |
/**
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... | erangatl/carbon-analytics | components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/js/source-editor/constants.js | JavaScript | apache-2.0 | 4,890 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/svariancech/test/test.svariancech.native.js | JavaScript | apache-2.0 | 5,300 |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2021 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | mozilla/pdfjs-dist | lib/core/operator_list.js | JavaScript | apache-2.0 | 18,644 |
'use strict';
import moment from 'moment';
import _ from 'lodash';
import alt from '../alt';
import EntriesActions from '../actions/EntriesActions';
class EntriesStore {
constructor() {
this.entries = [];
this.id = 0;
this.loading = false;
this.load();
this.computeSelected... | cpollet/mytimesheets | src/stores/EntriesStore.js | JavaScript | apache-2.0 | 4,839 |
'use strict';
goog.provide("Entry.Collection");
/*
* Entry Collection object constructor.
*/
Entry.Collection = function(data) {
this.length = 0;
/*
* object for hashing data with id
* @private
*/
this._hashMap = {};
/*
* observers
*/
this._observers = [];
this.se... | jangmoonchul/entryjs | src/class/collection.js | JavaScript | apache-2.0 | 4,530 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/dmskrange/test/test.ndarray.native.js | JavaScript | apache-2.0 | 5,921 |
const /*--- Declaring imports ---*/
_ = require('underscore');
module.exports = {
index : function(obj, is, value) {
if (typeof is == 'string')
return this.index(obj, is.split('.'), value);
else if (is.length == 1 && value !== undefined)
return obj[is[0]] = value;
else if (is.length == 0)
return obj... | jspare-framework/jsdb | jsdb-server/lib/tools/reflections.js | JavaScript | apache-2.0 | 388 |
/**
* 'highlight.js' instance with plugins
*
* @var {highlight.js} $markdown
*/
var $hljs = require('highlight.js');
module.exports = $hljs | bb-drummer/node-patternlibrary | lib/vendor/highlightjs.js | JavaScript | apache-2.0 | 146 |
Ti.include(Titanium.Filesystem.resourcesDirectory + "constants/appConstants.js");
var styles = require('globals').Styles;
var globals = require('globals').Globals;
function createProductView(context, product, position) {
/*
* Product View
*/
var view = Ti.UI.createView({
height : Ti.UI.SIZE,
bottom : 7 * dp,... | b2m-dev/barebones | Resources/ui/handheld/android/ProductsView.js | JavaScript | apache-2.0 | 6,208 |
/*
* Ext JS Library 2.0.2
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext.layout.ColumnLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,extraCls:"x-column",scrollOffset:0,isValidParent:function(B,A){return B.getEl().dom.parentNode==this.innerCt.do... | grasscrm/gdesigner | editor/lib/sources/ext-2.0.2/build/widgets/layout/ColumnLayout-min.js | JavaScript | apache-2.0 | 995 |
document.addEventListener("deviceready", function(){
pushNotification = window.plugins.pushNotification;
$("#app-status-ul").append('<li>registering ' + device.platform + '</li>');
pushNotification.register( successHandler, errorHandler, { 'senderID':'86663666263', 'ecb':'onNotification' } );
function successHand... | AdrianNunez/exerClick | phone/platforms/android/assets/www/js/student.js | JavaScript | apache-2.0 | 14,691 |
// Generated on 2014-09-23 using
// generator-webapp 0.5.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long tasks t... | anuteja/charting-dashboard | Gruntfile.js | JavaScript | apache-2.0 | 9,402 |
var filterReflectionByTitle = filterModule.filter('filterReflectionByTitle', function ($window) {
return function (reflections, filterCriteria) {
var strStartsWith = function (str, prefix) {
return (str + "").indexOf(prefix) === 0;
};
if (filterCriteria == null || filterCriteri... | AjabShahar/Ajab-Shahar-TW | web/app/user/js/common/filters/filterReflectionByTitle.js | JavaScript | apache-2.0 | 830 |
import React, { useState } from 'react';
import * as R from 'ramda';
import Head from 'next/head';
import { useQuery } from "@apollo/react-hooks";
import AllProjectsProblemsQuery from 'lib/query/AllProjectsProblems';
import getSeverityEnumQuery, {getProjectOptions, getSourceOptions} from 'components/Filters/helpers';
i... | amazeeio/lagoon | services/ui/src/pages/problems-dashboard-by-project-hex.js | JavaScript | apache-2.0 | 5,478 |
packageSearchIndex = [{"l":"All Packages","url":"allpackages-index.html"},{"l":"de.mhus.micro.ext.api.dfs"},{"l":"de.mhus.micro.ext.api.mailqueue"}] | mhus/mhus-inka | de.mhus.osgi.micro/micro-ext-api/target/apidocs/package-search-index.js | JavaScript | apache-2.0 | 148 |
/*
* Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
*
* 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 re... | ColdrickSotK/storyboard-webclient | src/app/profile/controller/profile_preferences_controller.js | JavaScript | apache-2.0 | 1,544 |
Clazz.declarePackage ("J.script");
Clazz.load (["J.script.ScriptCompilationTokenParser", "J.util.JmolList"], "J.script.ScriptCompiler", ["java.lang.Boolean", "$.Character", "$.Float", "java.util.Hashtable", "J.api.Interface", "J.i18n.GT", "J.io.JmolBinary", "J.modelset.Bond", "$.Group", "J.script.ContextToken", "$.SV"... | DeepLit/WHG | root/static/js/jsmol/j2s/J/script/ScriptCompiler.js | JavaScript | apache-2.0 | 67,931 |
angular.module('restServices', [ 'ngResource' ]).factory('RestService',
[ '$resource', function($resource) {
return function(restEntitiesUrl) {
return $resource(restEntitiesUrl, {}, {
query : {
method : 'GET',
isArray : false
},
update : {
method : 'PUT'
}
}... | emarkhauser/taxaccounting | src/main/webapp/js/restServices.js | JavaScript | apache-2.0 | 338 |
var row_data = [
{ id: "api_sample", title: "API SAMPLE", hasChild: true, dst: "api_sample"},
{ id: "login", title: "LOGIN SAMPLE", hasChild: true, dst: "login" }
];
rows = [];
row_data.map(function(row){
rows.push(Titanium.UI.createTableViewRow(row));
});
$.main_menu.appendRow(rows);
$.main_menu.addEventList... | ryo0508/AlloySample | app/controllers/index.js | JavaScript | apache-2.0 | 777 |
(function() {
'use strict';
angular
.module('woodstock24App')
.controller('ModuleMySuffixDetailController', ModuleMySuffixDetailController);
ModuleMySuffixDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'previousState', 'entity', 'Module', 'Unit', 'Reference', 'Question... | solairerove/woodstock | src/main/webapp/app/entities/module/module-my-suffix-detail.controller.js | JavaScript | apache-2.0 | 762 |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
reporter: require('jshint-stylish')
},
// when this task is run, lint the Gruntfile and all js files ilisted
build: ['Gruntfile.js', 'server.js', 'pub... | ma3east/eStub2 | Gruntfile.js | JavaScript | apache-2.0 | 1,927 |
exports.AppWindow = function(){
var self = Titanium.UI.createWindow({
backgroundColor: "#888888",
title: "My List"
});
return self;
};
| TShelton41/ListAndPicker | Resources/ui/AppWindow.js | JavaScript | apache-2.0 | 149 |
import React from 'react';
import { Bluetooth as Memory, Storage, Trigger } from 'grommet-icons';
import {
Box,
Card,
CardBody,
CardFooter,
Chart,
Grid,
Grommet,
Text,
} from 'grommet';
const theme = {
themeMode: 'dark',
global: {
font: {
family: `-apple-system,
BlinkMacSystem... | HewlettPackard/grommet | src/js/components/Card/stories/Clickable.js | JavaScript | apache-2.0 | 3,312 |
/*
* Copyright 2015 Caleb Brose, Chris Fogerty, Rob Sheehy, Zach Taylor, Nick Miller
*
* 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... | lighthouse/harbor | app/js/auth/init.js | JavaScript | apache-2.0 | 1,095 |
/**
* @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... | wardpeet/lighthouse | lighthouse-core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.js | JavaScript | apache-2.0 | 1,814 |
// flow-typed signature: f60a5f9217c7adc1d246cdf1c3ef0c39
// flow-typed version: <<STUB>>/eslint-plugin-react-native_v^3.1.0/flow_v0.53.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-react-native'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage ... | kunall17/zulip-mobile | flow-typed/npm/eslint-plugin-react-native_vx.x.x.js | JavaScript | apache-2.0 | 2,864 |
"use strict";
var chai = require("chai"),
checker = require("./password_checker");
let expect = chai.expect;
describe("The password checker component", () => {
describe("password encryption method", () => {
it("can encrypt a password", () => {
let input = "derp";
return checker... | atsid/drugfax-18f | server/components/password_checker.spec.js | JavaScript | apache-2.0 | 1,757 |
import React, { Component, createRef } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl } from 'react-intl';
import { getExperiment, getParams, getRunInfo, getRunTags } from '../reducers/Reducers';
import { connect } from 'react-redux';
import './RunView.css';
import { HtmlTableVi... | mlflow/mlflow | mlflow/server/js/src/experiment-tracking/components/RunView.js | JavaScript | apache-2.0 | 21,401 |
log("NOtification View..");
var win = Ti.UI.createWindow({
"backgroundColor": "yellow"
});
function checkForIntent(){
var _intent = Ti.Android.currentActivity.getIntent();
log(JSON.stringify(_intent));
if (_intent.hasExtra('payload')) {
Ti.API.info("*******found " + intent.getStringExtra('payload'));
}
}
... | linnal/TiAndroidNotification | app/assets/android/notificationView.js | JavaScript | apache-2.0 | 443 |
const Promise = require('q');
const Resource = require('./resource');
/**
* Model to represent an organization.
* @type {Resource}
*/
class Organization extends Resource {
constructor(client, github, clientID) {
super(client);
this.id = clientID;
}
/**
* Return API endpoint for thi... | SamyPesse/octocat.js | src/resources/organization.js | JavaScript | apache-2.0 | 1,330 |
/**
* Copyright 2014 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 appli... | authbox-lib/gcloud-node | lib/common/util.js | JavaScript | apache-2.0 | 18,426 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/blas/ext/base/grev/benchmark_bundle.js | JavaScript | apache-2.0 | 980,448 |
/**
* XPDF phase list
*/
define(['marionette',
'backgrid',
'utils/table',
'modules/samples/views/proteinlist'
], function(Marionette,
Backgrid,
table,
ProteinList) {
var ClickableRow = table.ClickableRow.extend({
event: 'phases:vie... | DiamondLightSource/SynchWeb | client/src/js/modules/types/xpdf/samples/views/phaselist.js | JavaScript | apache-2.0 | 1,880 |
var win;
function fireUpTheCamera()
{
Ti.Media.showCamera({
success : function(event){
Ti.API.info(event);
var cropRect = event.cropRect;
var image = event.media;
Ti.API.info("image :"+image);
Ti.API.debug('Our type was: '+event.mediaType);
if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO)
{
... | crystal520/fb | Resources_phinkit/camera.js | JavaScript | apache-2.0 | 1,287 |
/**
* @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
*/
CLASS({
pack... | osric-the-knight/foam | js/foam/apps/builder/kiosk/ChromeView.js | JavaScript | apache-2.0 | 5,498 |
Ti.include('birdhouse.js');
var BH = new BirdHouse({
consumer_key: "MRUiM8SfDjMBn8QAyheCPA",
consumer_secret: "hskQCPiP9ZBGn4r33XNhTCYewHOmoyxrGDfe59Ylo0",
callback_url:""
});
/*
// ELEMENTS
var alertDialog = Ti.UI.createAlertDialog({
title: 'Twitter Message',
buttonNames: ['OK']
});
*/
var phoughtWind... | crystal520/fb | Resources_phinkit/Copy of phoughtsList.js | JavaScript | apache-2.0 | 22,857 |
//Bind pages to tabs
var pages = document.getElementById('pages');
var tabs = document.getElementById('tabs');
var aboutpages = document.getElementById('aboutpages');
var gamepages = document.getElementById('gamepages');
var gamehome = document.getElementById('gamehome');
if (tabs.addEventListener){
tabs.addEventListe... | kevxiao/cow-egg-game | scripts/binding.js | JavaScript | apache-2.0 | 1,693 |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.xml} class, which represents a
* loaded XML document.
*/
( function() {
/* global ActiveXObjec... | tambora-org/dockerCRE | volumes/www/survey/third_party/ckeditor/plugins/xml/plugin.js | JavaScript | apache-2.0 | 5,473 |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2005 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Op... | CouleurCitron/cms-2014 | lib/FCKeditor/editor/filemanager/browser/default/js/fckxml.js | JavaScript | apache-2.0 | 2,822 |
// ----------------------------------------------------------------------------
// Copyright 2007-2013, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | vimukthi-git/OpenGTS_2.4.9 | war/track/js/DeviceInfo.js | JavaScript | apache-2.0 | 2,300 |
/*
* Licensed Materials - Property of IBM
* (C) Copyright IBM Corp. 2010, 2017
* US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
define({
// NLS_CHARSET=UTF-8
// configuration
configuration_pane_aspera_url: "Adresa URL servera ... | ibm-ecm/ibm-navigator-aspera-sample | src/main/resources/com/ibm/ecm/extension/aspera/WebContent/aspera/nls/sk/messages.js | JavaScript | apache-2.0 | 4,353 |
'use strict';
var commentLineExp = /^[\s]*<!-- (\/|#) (CE|EE)/;
var requireConfExp = /require-conf.js$/;
module.exports = function(config, copyConf) {
var grunt = config.grunt;
var path = require('path');
var now = (new Date()).getTime();
var version = grunt.file.readJSON(path.resolve(__dirname, '../../../... | xlinur/camunda-bpm-webapp | ui/cockpit/grunt/config/copy.js | JavaScript | apache-2.0 | 4,012 |
// Copyright 2009 Google 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 in... | mbrukman/gamebuilder | src/js/games/chess/chess_theme.js | JavaScript | apache-2.0 | 6,601 |
//Requires
var lirc = require("./modules/lirc.js");
var sonybravia = require("./modules/sonybravia.js");
var exec = require('child_process').exec;
var alarms = require("./modules/alarms.js").initialize();
var express = require('express');
var app = express();
var fs = require('fs');
var moment = require('moment');
var ... | RobQuistNL/PieStation | app.js | JavaScript | apache-2.0 | 11,969 |
'use strict';
let Joi = require('joi');
class RequestVaildator {
getListParameterValidator() {
return {
type: Joi.any().valid(process.env.TEMPLATE_PARTS.split(','))
}
}
getListQueryValidator() {
return {
page: Joi.number().min(1),
limit: Joi.number().min(parseInt(process.env.PAGI... | omrsmeh/fuse-cloud | server/api/template/validators/request.validator.js | JavaScript | apache-2.0 | 990 |
var express = require('express');
var path = require('path');
var favicon = require('static-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express(... | rgbkrk/bot-in-a-bottle | app.js | JavaScript | apache-2.0 | 1,454 |
const path = require('path');
const fs = require('fs');
const morgan = require('morgan');
const morganDebug = require('morgan-debug');
const rfs = require('rotating-file-stream');
const config = require(path.join(__dirname, '..', 'logging'));
module.exports = function () {
if (!config.enabled) {
return;
... | Mrtenz/morten.js | config/initializers/01-logging.js | JavaScript | apache-2.0 | 686 |
import { LightningElement } from 'lwc';
export default class Example1 extends LightningElement {
} | forcedotcom/aura | aura-modules/src/test/modules/moduletest/examplesDoc/__examples__/example1/example1.js | JavaScript | apache-2.0 | 101 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... | DBosley/BOOTSTRA.386 | dist/Bootstrap.js | JavaScript | apache-2.0 | 2,853 |
/**
* @param {string} foo
* @param {string} [bar]
* @param {string=} baz some blurb
* @param {string} [quuz=Nope Nope Nope] more blurb
* @return {number}
*/
function allTheOptionalForms(foo, bar, baz, quuz) {
return 4;
};
/**
* @param {string} foo
* @param {string} [bar]
* @param {string=} baz some blurb
* ... | Kegsay/flow-jsdoc | tests/input/11-optional-params.js | JavaScript | apache-2.0 | 624 |
angular.module("emiolo").factory("apiInterceptor", function ($q) {
return {
request: function (config) {
return config;
},
responseError: function (rejection) {
console.log(rejection.config.url);
return $q.reject(rejection);
}
};
});
angular.module("emiolo").config(function ($httpProvider) {
$httpPr... | bimnascimento/TesteConhecimento | src/main/webapp/resources/js/interceptors/apiInterceptor.js | JavaScript | apache-2.0 | 722 |
({"rangeMessage":"* \u8f93\u5165\u6570\u636e\u8d85\u51fa\u503c\u57df\u3002","invalidMessage":"* \u975e\u6cd5\u7684\u8f93\u5165\u503c\u3002","missingMessage":"* \u6b64\u503c\u662f\u5fc5\u987b\u7684\u3002"}) | Gallio/infrastructure | ccnet/WebDashboard/javascript/Dojo/src/widget/nls/zh-cn/validate.js | JavaScript | apache-2.0 | 206 |
/******************************start app.js******************************/
'use strict';
/*jslint unused: false*/
var App = {};
var page;
var splashImage;
var scrollView;
var panel;
var elementCount;
var elements;
var appBar;
var appCanvas;
var utilityBar;
var navigationDrawer;
var mainContentContainer;
var scrolli... | cvince/missout-app | app.js | JavaScript | apache-2.0 | 12,491 |
// ========================== KeySnail Init File =========================== //
// この領域は, GUI により設定ファイルを生成した際にも引き継がれます
// 特殊キー, キーバインド定義, フック, ブラックリスト以外のコードは, この中に書くようにして下さい
// ========================================================================= //
//{{%PRESERVE%
// ここにコードを入力して下さい
//}}%PRESERVE%
// ==============... | mzp/chef-repo | dotfiles/keysnail.js | JavaScript | apache-2.0 | 17,112 |
import {
afterEach,
AsyncTestCompleter,
beforeEach,
ddescribe,
describe,
dispatchEvent,
el,
expect,
iit,
inject,
it,
xit
} from 'angular2/test_lib';
import {DOM} from 'angular2/src/dom/dom_adapter';
import {Inject} from 'angular2/di';
import {Component, Decorator, Template, PropertySetter} fro... | keertip/angular | modules/angular2/test/forms/integration_spec.js | JavaScript | apache-2.0 | 13,142 |
const Discord = require('discord.js');
exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars
const scoreLevel = client.points.get(`${message.guild.id}-${message.author.id}`).level || 0;
let embed = new Discord.RichEmbed()
.setColor('GREEN')
.setAuthor('You are currently')
.s... | NdT3Development/DiscordBot | commands/level.js | JavaScript | apache-2.0 | 717 |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2013 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | reggersusa/pdf.js | web/hand_tool.js | JavaScript | apache-2.0 | 2,539 |
/**
* PokemonController
*
* @description :: Server-side logic for managing Pokemons
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
hola: function (req, res) {
return res.send("Hola desde el controlador pokemon");
},
adios... | adrianeguez/PruebaWeb | Pokedex/api/controllers/PokemonController.js | JavaScript | artistic-2.0 | 437 |
/* jshint indent:4 */
/*
* Copyright 2011-2013 Jiří Janoušek <janousek.jiri@gmail.com>
* Copyright 2014 Jan Vlnas <pgp@jan.vlnas.cz>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... | jnv/nuvolaplayer-thisismyjam | integration.js | JavaScript | bsd-2-clause | 6,875 |
import { helper } from '@ember/component/helper';
export function fooBar(params) {
if (params[0]) {
let penaltyMap = {
30: 'Repeating Substantial Portions of a Song',
32: 'Instrumental Accompaniment',
34: 'Chorus Exceeding 4-Part Texture',
36: 'Excessive Melody Not in Inner Part',
3... | barberscore/barberscore-web | app/helpers/map-penalty.js | JavaScript | bsd-2-clause | 590 |
var searchData=
[
['datetime',['datetime',['../structdatetime.html',1,'']]]
];
| bplainia/galaxyLightingSystem | doxygen/html/search/classes_2.js | JavaScript | bsd-2-clause | 81 |
export default {
"type": "Program",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 19
}
},
"range": [
0,
19
],
"body": [
{
"type": "ExportNamedDeclarat... | eslint/espree | tests/fixtures/ecma-version/6/modules-and-blockBindings/export-let-number.result.js | JavaScript | bsd-2-clause | 5,832 |
var readFile = require('graceful-fs').readFile
var resolve = require('path').resolve
var spawn = require('win-spawn')
module.exports = function () {
return {
getStatement: function getStatement (callback) {
readFile(
resolve(__dirname, './problem.txt'),
{encoding: 'utf-8'},
callback... | othiym23/bug-clinic | problems/node-debug/index.js | JavaScript | bsd-2-clause | 1,860 |
/*
Strike by Appiphony
Version: 1.0.0
Website: http://www.lightningstrike.io
GitHub: https://github.com/appiphony/Strike-Components
License: BSD 3-Clause License
*/
({
afterRender: function(component, helper) {
this.superAfterRender();
helper.selectRadioButtonFromValue(component, helper);
}
})
/*
... | appiphony/Strike-Components | aura/strike_radioGroup/strike_radioGroupRenderer.js | JavaScript | bsd-2-clause | 1,789 |
var EIDSS = {
BvMessages: {
'bntHideSearch': 'Hide Search',
'bntShowSearch': 'Show Search',
'btnClear': 'Clear the field contents',
'btnHideErrDetail': 'Hide Details',
'btnSelect': 'Select',
'btnShowErrDetail': 'Show Details',
'btnView': 'View',
'strSave_Id': 'Save',
'tooltipSave_Id': 'Save',
's... | EIDSS/EIDSS-Legacy | EIDSS v6/eidss.webclient/Scripts/Messages/EIDSS.BvMessages.en-US.js | JavaScript | bsd-2-clause | 10,573 |
/**
* @module ol/control/ZoomSlider
*/
// FIXME should possibly show tooltip when dragging?
import {inherits} from '../index.js';
import ViewHint from '../ViewHint.js';
import Control from '../control/Control.js';
import {CLASS_CONTROL, CLASS_UNSELECTABLE} from '../css.js';
import {easeOut} from '../easing.js';
impo... | planetlabs/ol3 | src/ol/control/ZoomSlider.js | JavaScript | bsd-2-clause | 9,856 |
/**
Copyright 2015 Couchbase, 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 i... | TOTVS/mdmpublic | couchbase-cli/lib/ns_server/erlang/lib/ns_server/priv/public/js/analytics.js | JavaScript | bsd-2-clause | 26,506 |
module.exports = function notEmpty(o) {
if (o == null) {
return false;
} else if (Array.isArray(o)) {
return !!o.length;
} else if (o === '') {
return false;
}
return true;
}; | ticolucci/dotfiles | atom/packages/atom-beautify/node_modules/marko/helpers/notEmpty.js | JavaScript | bsd-2-clause | 220 |
(function(w) {
"use strict";
w.matchMedia = w.matchMedia || function(doc, undefined) {
var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, fakeBody = doc.createElement("body"), div = doc.createElement("div");
div.id = "mq-test-1";
div.style.cssText = "posi... | fergalmoran/dss | static/js/lib/ace/uncompressed/respond.src.js | JavaScript | bsd-2-clause | 8,153 |
/*
Copyright (c) 2006, Tim Becker 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 conditio... | a2800276/jsxmlRPC | src/test_basics.js | JavaScript | bsd-2-clause | 3,340 |
// The ThunderRTC server files are in the lib folder
module.exports = require('./lib/thunderrtc_server'); | thabung/rtc | index.js | JavaScript | bsd-2-clause | 106 |
define([
"cali-calcu/base/var",
"$J",
"cali-calcu/CommandParser",
"../dev/Matchers"
], function (func, $J, CommandParser, Matchers) {
describe("cali.module.base.var", function(){
// setup the environment
var parser = null;
var eps;
beforeEach(function() {
parser = new CommandParser();
$J.jasmine.Expe... | Calculingua/cali-app | test/calcu/base/var.spec.js | JavaScript | bsd-2-clause | 952 |
Kwf.Utils.ResponsiveEl('.kwcTextImage', [420]);
//remove largeText class if >55% of element is covered by image
Kwf.onJElementWidthChange('.kwcTextImage', function textImage(el) {
var img = el.find('div.image .kwcAbstractImage .container');
if (img) {
if (img.width() < (el.width() * 0.55)) {
... | yacon/koala-framework | Kwc/TextImage/Component.js | JavaScript | bsd-2-clause | 507 |
/*
Language: XL
Author: Christophe de Dinechin <christophe@taodyne.com>
Description: An extensible programming language, based on parse tree rewriting
Website: http://xlr.sf.net
*/
export default function(hljs) {
const KWS = [
"if",
"then",
"else",
"do",
"while",
"until",
"for",
"loop... | highlightjs/highlight.js | src/languages/xl.js | JavaScript | bsd-3-clause | 3,413 |
var namespacecode_1_1models_1_1model_etas_ga =
[
[ "model", "classcode_1_1models_1_1model_etas_ga_1_1model.html", "classcode_1_1models_1_1model_etas_ga_1_1model" ]
]; | PyQuake/earthquakemodels | html/namespacecode_1_1models_1_1model_etas_ga.js | JavaScript | bsd-3-clause | 170 |
// 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 User pod row implementation.
*/
cr.define('login', function() {
/**
* Pod width. 170px Pod + 10px padding + 10px margin on... | zcbenz/cefode-chromium | chrome/browser/resources/chromeos/login/user_pod_row.js | JavaScript | bsd-3-clause | 37,808 |
var should = require('should');
var path = require('path');
var _ = require('underscore');
var Graft = require('../server');
var utils = require('./utils');
var sinon = require('sinon');
var testPort = 8924;
function setupSpies() {
sinon.spy(Graft.Server, 'trigger');
}
function restoreSpi... | ONCHoldings/graft.js | test/210System.running.js | JavaScript | bsd-3-clause | 2,169 |
import React, { Component } from 'react';
import { Text, View, ScrollView } from 'react-native';
import Button from 'react-native-button'
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import {
Card,
CardImage,
CardTitle,
Card... | ronanamsterdam/squaredcoffee | application/components/shared/checkoutWebView/index.js | JavaScript | bsd-3-clause | 6,443 |
/*
* Licensed under BSD http://en.wikipedia.org/wiki/BSD_License
* Copyright (c) 2010, Duponchel David
* 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 cod... | dduponchel/GraouPack | js/src/CompatibilityCheck.js | JavaScript | bsd-3-clause | 2,679 |
var allTestFiles = [];
var TEST_REGEXP = /\.spec\.js$/i;
var pathToModule = function(path) {
return path.replace(/^\/base\//, '').replace(/\.js$/, '');
};
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module names.
allTestFiles.p... | effektif/backbone-partialput | test/test-main.js | JavaScript | bsd-3-clause | 904 |