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 |
|---|---|---|---|---|---|
$(document).ready(function () {
});
var play = function () {
mopidy.playback.play({ "tl_track": null }).then(function (data) {
});
}
var pause = function () {
mopidy.playback.pause({}).then(function (data) {
});
}
var resume = function () {
mopidy.playback.resume({}).then(function (data) {
... | paulburkinshaw/mopidy-radio-pi | mopidy_radio_pi/data/static/Scripts/dj.js | JavaScript | apache-2.0 | 2,906 |
function(from, to) {
if (from > to) {
var arr = this.measure(to, from-to+1);
arr.reverseInPlace();
return arr.sequence();
}
return this.measure(from, to-from+1);
}
| ceylon/ceylon | language/runtime-js/Array/span.js | JavaScript | apache-2.0 | 200 |
function tooCool(){
alert(textSpan("It's too Cool!!!"));
}
window["tooCool"]=tooCool;
function compute(){
var a = 0;
var i = 12;
for(var idx = 0; idx > 10; idx++){
a = idx*i+a;
}
return a;
} | berinle/jawr-core | src/test/resources/global/postprocessor/google/closure/bundle/myBundle/bundle01.js | JavaScript | apache-2.0 | 219 |
/*global QUnit, sinon*/
sap.ui.define([
"sap/ui/core/library",
"./SemanticUtil",
"sap/ui/core/Core"
],
function (
coreLibrary,
SemanticUtil,
oCore
) {
"use strict";
sinon.config.useFakeTimers = false;
// shortcut for sap.ui.core.aria.HasPopup
var AriaHasPopup = coreLibrary.aria.HasPopup;
var oFactory = Se... | SAP/openui5 | src/sap.f/test/sap/f/qunit/SemanticContainer.qunit.js | JavaScript | apache-2.0 | 38,959 |
import Vue from 'vue'
import hello from './components/hello.vue';
import ucenter from './components/ucenter/ucenter.vue'
require('./bootstrap');
require('./less/hello.less');
import store from './store/index'
const app = new Vue({
el: '#app',
store,
components: {
hello, ucenter
}
}); | houdunwang/hdphp | resource/assets/app.js | JavaScript | apache-2.0 | 308 |
/**
* @license Copyright 2018 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... | mixed/lighthouse | lighthouse-extension/app/src/lighthouse-ext-background.js | JavaScript | apache-2.0 | 7,787 |
$(()=>{
$('#save').click(()=>{
saveData();
});
for(let website in data){
for(let coin in data[website]){
const idOpen = `${website}.${coin}.warn.open`;
const idLow = `${website}.${coin}.warn.low`;
const idHeight = `${website}.${coin}.warn.height`;
const html =
`<li>`+
`<label>$... | luoliehe/currency | js/options.js | JavaScript | apache-2.0 | 819 |
var anim = require("alloy/animation");
var args = arguments[0] || {};
function doClick() {
var t = Ti.UI.create2DMatrix();
t = t.scale(0.5);
var animations = [
Ti.UI.createAnimation({
duration: 1000,
transform: t
})
];
anim.chainAnimate($.imgView, animations, function() {
alert("F... | umi-uyura/TiAnimateStudy | app/controllers/sample36.js | JavaScript | apache-2.0 | 374 |
var http = require("http");
var express = require("express");
var app = express();
var fs = require("fs");
var path = require("path");
var port = process.env.PORT || process.env.OPENSHIFT_NODEJS_PORT || 8080;
var mongoClient = require('mongodb').MongoClient,
assert = require('assert');
//var mongodb = "mongodb:/... | MrAlexand0r/kapparr | index.js | JavaScript | apache-2.0 | 4,044 |
define(
({
map: {
error: "Impossible de créer la carte"
},
onlineStatus: {
offline: "Vous travaillez actuellement en mode hors connexion. Les envois de formulaires seront enregistrés localement jusqu\'à l\'établissement d\'une connexion au serveur.",
reconnecting: "Reconnexion…"... | darinacosta/nofd-geoform | js/nls/fr/resources.js | JavaScript | apache-2.0 | 16,959 |
'use strict';
tileTypes
.run(['tileState', 'gettext', function(tileState, gettext){
tileState.addTemplate({
deprecated: true,
type: "externalcontent",
size: "",
colour: "blue",
icon: "list-alt",
name: gettext("External Content"),
description: gettext("A listi... | learning-layers/LTB-Tilestore | app/www/components/tile-types/externalcontent/tile.js | JavaScript | apache-2.0 | 8,100 |
'use strict';
/**
* Parsers are collection of transform streams to processes incoming data
* @summary The default `Parsers` are [Transform streams](https://nodejs.org/api/stream.html#stream_class_stream_transform) that process incoming data. To use the parsers, you must create them and then pipe the Serialport to the... | jvshens/AAG | thingspeak/node_modules/johnny-five/node_modules/serialport/lib/parsers.js | JavaScript | apache-2.0 | 1,464 |
// @flow
import React from 'react';
export default ({ className = '', ...props }) => (
<i className={`${className} fa fa-close`} {...props} />
);
| NCI-GDC/portal-ui | src/packages/@ncigdc/theme/icons/CloseIcon.js | JavaScript | apache-2.0 | 149 |
/*
* KnxValueBoolean.js
*
* David Janes
* IOTDB
* 2015-11-29
*/
exports.binding = {
bridge: require('../../KNXBridge').Bridge,
model: require('./model.json'),
discover: false,
};
| dpjanes/homestar-knx | models/knx-value-boolean/index.js | JavaScript | apache-2.0 | 202 |
/**
--| ADAPTIVE RUNTIME PLATFORM |----------------------------------------------------------------------------------------
(C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | AdaptiveMe/adaptive-arp-javascript | adaptive-arp-js/src_units/IMessaging.js | JavaScript | apache-2.0 | 1,581 |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/nodejs-ai-platform | samples/get-model-evaluation-tabular-classification.js | JavaScript | apache-2.0 | 4,026 |
var gulp = require('gulp');
var paths = {
scripts: ['js/**/*.js']
};
/**
* Run test once and exit
*/
gulp.task('test', function (done) {
new (require('karma').Server)({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, done).start();
});
gulp.task('lint', function () {
va... | atsid/circuits-js | gulpfile.js | JavaScript | apache-2.0 | 2,187 |
'use strict';
/**
* @ngdoc function
* @name sbAdminApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the sbAdminApp
*/
angular.module('sbAdminApp')
.controller('StoreController', function(StoreDataService, $stateParams) {
var vm = this;
// get store and cart from service
... | nagoorkani/azure-crm | app/scripts/controllers/store.controller.js | JavaScript | apache-2.0 | 591 |
(function ($) {
$.fn.scrolld = function (options) {
var scrolldCustom = -160; // Set 'scrolldCustom' value here | Additional distance (+-) on scrolldTop & scrolldPre
var scrolldNavBar = ''; // Set id name of fixed web navbar
var scrolldMobileNavBar = ''; // Set id name of fixed mobile navb... | cfdp/curachat.com | source/js/scrolld.js | JavaScript | apache-2.0 | 27,153 |
/* global config, APP, $, interfaceConfig, JitsiMeetJS */
/* jshint -W101 */
import AudioLevels from "../audio_levels/AudioLevels";
import Avatar from "../avatar/Avatar";
import BottomToolbar from "../toolbars/BottomToolbar";
import FilmStrip from "./FilmStrip";
import UIEvents from "../../../service/UI/UIEvents";
imp... | isymchych/jitsi-meet | modules/UI/videolayout/VideoLayout.js | JavaScript | apache-2.0 | 32,055 |
var Tempest = Tempest || {};
Tempest.Boot = function(){};
//setting game configuration and loading the assets for the loading screen
Tempest.Boot.prototype = {
preload: function() {
//assets we'll use in the loading screen
var loadingbar = this.load.image('preloadbar', 'images/loadingbar.png');
},
create:... | dethe/ggj_2017 | js/boot.js | JavaScript | apache-2.0 | 977 |
import React from "react";
import { observer } from "mobx-react";
import Image from "components/common/Image";
import yellow from
"assets/images/traffic_light_indicator/yellow_background.png";
import green from
"assets/images/traffic_light_indicator/green_background.png";
import red from
"assets/images/traffic_light_i... | fy2462/apollo | modules/dreamview/frontend/src/components/StatusBar/TrafficLightIndicator.js | JavaScript | apache-2.0 | 918 |
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backg... | irosenb/symble-app | build/mobileweb/app.js | JavaScript | apache-2.0 | 1,339 |
sap.ui.jsview("ui.default", {
getControllerName: function() {
return "ui.default";
},
createContent: function(oController) {
oController.oShell = new sap.ui.ux3.Shell("myShell", {
appIcon: "./ui/images/sap_18.png",
appIconTooltip: "SAP",
ap... | SAP/cloud-hana-shine-sp8 | shinesp8/admin/ui/default.view.js | JavaScript | apache-2.0 | 2,914 |
/*! ExtBlockly 2014-05-06 */
/**
* @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
*... | cdjackson/ExtBlockly | build/blocks.js | JavaScript | apache-2.0 | 126,896 |
var classorg_1_1onosproject_1_1provider_1_1lldp_1_1impl_1_1SuppressionConfigTest =
[
[ "setUp", "classorg_1_1onosproject_1_1provider_1_1lldp_1_1impl_1_1SuppressionConfigTest.html#a2dce61fc6869e60bcb0f5be7616b985d", null ],
[ "testDeviceAnnotation", "classorg_1_1onosproject_1_1provider_1_1lldp_1_1impl_1_1Suppres... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1provider_1_1lldp_1_1impl_1_1SuppressionConfigTest.js | JavaScript | apache-2.0 | 537 |
/*global define */
/*
| Copyright 2014 Esri
|
| 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 o... | Esri/crowdsource-reporter | js/nls/resources.js | JavaScript | apache-2.0 | 18,313 |
/** @externs */
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
// externs from /private/var/folders/7d/r6b3nrdj7bn9t_w_dclm6y9r00kg80/T/angular-release-latest.XXXXXXX.FjdRL2Ds/sandbox/darwin-sandbox/169/execroot/angular/packages/core/src/render3/interfaces/player.ts:... | cloudfoundry-community/asp.net5-buildpack | fixtures/node_apps/angular_dotnet/ClientApp/node_modules/@angular/core/esm2015/core.externs.js | JavaScript | apache-2.0 | 2,288 |
/* global QUnit */
sap.ui.define([
"sap/ui/fl/Layer",
"sap/ui/fl/write/_internal/appVariant/AppVariantInlineChangeFactory",
"sap/ui/fl/descriptorRelated/api/DescriptorChangeFactory",
"sap/ui/rta/command/CommandFactory",
"sap/m/Button",
"sap/ui/base/ManagedObject",
"sap/ui/thirdparty/sinon-4",
"test-resources/s... | SAP/openui5 | src/sap.ui.rta/test/sap/ui/rta/qunit/command/AppDescriptorCommand.qunit.js | JavaScript | apache-2.0 | 5,575 |
import { mount } from '@cypress/vue';
import Vuex from 'vuex';
import quicklinks from '../../../vuex/store/quicklinks';
import Quicklinks from './quicklinks.vue';
describe('<Quicklinks />', () => {
it('Verify adding/removing links works', () => {
// Load data from a fixture ('another name for mock data, all fi... | uw-it-aca/myuw | myuw_vue/components/home/quicklinks/quicklinks.spec.js | JavaScript | apache-2.0 | 2,383 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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/utils/enumerable-properties-in/lib/index.js | JavaScript | apache-2.0 | 1,034 |
import fs from 'fs';
import cheerio from 'cheerio';
import colors from 'colors';
/*eslint-disable no-console */
fs.readFile('index.html', 'utf8', (err, markup) => {
if (err) {
return console.log(err);
}
const $ = cheerio.load(markup);
$('head').prepend('');
fs.writeFile('public/index.htm... | andy1992/react-redux-crud | tools/buildHtml.js | JavaScript | apache-2.0 | 496 |
angular.module('ReportModule', ['ngRoute']).
// config(['$locationProvider', function($locationProvider) {
// $locationProvider.html5Mode(true);
// }]).
controller('ReportController', ['$scope', '$http', '$location', function($scope, $http, $location) {
$scope.leasing = [];
$scope.service = [];
$scope.defaulter... | bnewcomer/code-samples | Apartment_Management_System/res/js/ReportController.js | JavaScript | apache-2.0 | 1,204 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.lrc');
goog.require('Blockly.Msg');
Blockly.Msg.ACCESSIBLES_DEFAULT_NAME = "accessible"; // untranslated
Blockly.Msg.ACCESSIBLES_GET_CREATE_SET = "Create 'set %1'"; // untranslated
Blockly.Msg.ACCESSIBLES_GET_HELPURL... | InspectorWidget/blockly | msg/js/lrc.js | JavaScript | apache-2.0 | 37,443 |
/**
* Blockly Apps: Index
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... | RealTimeWeb/corgis-blockly | apps/index/index.js | JavaScript | apache-2.0 | 1,327 |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define(["Handlebars"], function (a0) {
return (factory(a0));
});
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work wit... | datenwelt/cargo-js | example/component/templates/LanguageMenu.js | JavaScript | apache-2.0 | 1,345 |
if (typeof PATH_TO_THE_REPO_PATH_UTILS_FILE === 'undefined') {
PATH_TO_THE_REPO_PATH_UTILS_FILE = "https://raw.githubusercontent.com/highfidelity/hifi_tests/master/tests/utils/branchUtils.js";
Script.include(PATH_TO_THE_REPO_PATH_UTILS_FILE);
nitpick = createNitpick(Script.resolvePath("."));
}
nitpick.... | highfidelity/hifi_tests | tests/content/entity/text/topMargin/test.js | JavaScript | apache-2.0 | 1,903 |
/**
* Backbone Nested - Functions to add nested model and collection support
*
* Forked from backbone-nested-models@0.5.1 by Bret Little
*
* @license MIT
* @source https://github.com/blittle/backbone-nested-models
* (MIT LICENSE)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* ... | cgvarela/tungstenjs | adaptors/backbone/backbone_nested.js | JavaScript | apache-2.0 | 13,801 |
sap.ui.define(['sap/ui/core/UIComponent'],
function(UIComponent) {
"use strict";
return UIComponent.extend("sap.ui.layout.sample.FixFlexHorizontal.Component", {
metadata : {
manifest: "json"
}
});
}); | SAP/openui5 | src/sap.ui.layout/test/sap/ui/layout/demokit/sample/FixFlexHorizontal/Component.js | JavaScript | apache-2.0 | 214 |
'use strict';
var arrayBufferSerialization = require('./arrayBufferSerialization');
function isArrayEmpty(array) {
array = new Int8Array(array);
for (var i = 0; i < array.length; i++) {
if (array[i] !== 0) {
return false;
}
}
return true;
}
function xorArrays(array1, array2) {
array1 = new In... | 3musket33rs/mathsync | javascript/core/lib/bucket.js | JavaScript | apache-2.0 | 1,619 |
define([
'./OnDemandViewCreator',
'dojo/when',
'dojo/_base/Deferred',
'dojo/promise/all',
'gform/schema/meta',
'dojo/_base/lang',
'dojo/topic',
"dojo/_base/declare"
], function (OnDemandViewCreator, when, Deferred, all, meta, lang, topic, declare) {
return declare([], {
cur... | stemey/gform-app | src/gform-app/factory/StoreViewController.js | JavaScript | apache-2.0 | 6,940 |
/* Copyright 2017 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | skalnik/pdf.js | test/unit/test_utils.js | JavaScript | apache-2.0 | 2,882 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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/assert/is-negative-number/test/test.js | JavaScript | apache-2.0 | 1,358 |
// Copyright 2014 Open vStorage NV
//
// 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... | tcpcloud/openvstorage | webapps/frontend/app/viewmodels/site/vmachine-detail.js | JavaScript | apache-2.0 | 9,919 |
var app = angular.module('app', []);
app.directive('codex', function($timeout){
return {
restrict: 'A',
scope: {
content: '='
},
transclude: true,
replace: true,
template: '<div></div>',
compile: function(tElement, tAttrs, transclude){
... | tongjieme/Haier-js-library | formValidHelper/js/ng/app.js | JavaScript | apache-2.0 | 1,145 |
/**
* Created by IntelliJ IDEA.
* User: deepthi.kulkarni
* Date: 27/07/13
* Time: 1:19 PM
* To change this template use File | Settings | File Templates.
*/
var createRuleUrl = '/alertz/scheduledRules';
var getTeamsUrl = '/alertz/teams/scheduledRules';
$(document).ready(function () {
$("#teams").typeahead({... | samaitra/alertz | src/main/resources/assets/js/createScheduledRule.js | JavaScript | apache-2.0 | 5,895 |
// Ensure text search metadata is not lost in an external sort
var t = db.external_sort_text_agg;
t.drop();
t.ensureIndex({text: "text"});
for (i = 0; i < 100; i++) {
t.insert({_id: i, text: Array(210000).join("asdf ")});
// string over 1MB to hit the 100MB threshold for external sort
}
var score = t.find({$te... | christkv/mongo-shell | test/jstests/noPassthroughWithMongod/external_sort_text_agg.js | JavaScript | apache-2.0 | 745 |
/**
* simplePagination.js v1.5
* A simple jQuery pagination plugin.
* http://flaviusmatis.github.com/simplePagination.js/
*
* Copyright 2012, Flavius Matis
* Released under the MIT license.
* http://flaviusmatis.github.com/license.html
*/
(function($){
var methods = {
init: function(options) {
var o = $.extend... | sdvdxl/gin-extend | static/assets/js/jquery.pagination.js | JavaScript | apache-2.0 | 6,018 |
var express = require('express');
var router = express.Router();
var User = require('../entity/user');
var crypto = require('crypto');
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('login');
});
router.post('/submit', function (req, res, next) {
var telephone = req.body.telephone;
... | zhangyanglogin/Evil | routes/login.js | JavaScript | apache-2.0 | 1,340 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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/dists/hypergeometric/ctor/examples/index.js | JavaScript | apache-2.0 | 1,116 |
/*jshint strict: false */
/*global require */
////////////////////////////////////////////////////////////////////////////////
/// @brief query results key value actions
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "... | morsdatum/ArangoDB | js/actions/key-value.js | JavaScript | apache-2.0 | 13,542 |
/*******************************************************************************
*
* Pentaho Data Profiling
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0... | smaring/pentaho-data-profiling | webapp/core/src/main/resources/webview/js/services/profileAppService.js | JavaScript | apache-2.0 | 9,613 |
var nx_match_8h =
[
[ "NXM_TYPICAL_LEN", "nx-match_8h.html#a507ca86a344628ed401aa0b146d32eb4", null ],
[ "mf_format_subfield", "nx-match_8h.html#a8e69b40cba0525f4e9b37d30ffe334a9", null ],
[ "mf_from_nxm_header", "nx-match_8h.html#a3491473078cf8cf4743324ff1e38739f", null ],
[ "mf_nxm_header", "nx-match_... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/nx-match_8h.js | JavaScript | apache-2.0 | 4,061 |
/*
* Shape Shifter
* http://www.kennethcachia.com/shape-shifter
* A canvas experiment
*/
'use strict';
var S = {
init: function () {
var action = window.location.href,
i = action.indexOf('?a=');
S.Drawing.init('.canvas');
S.ShapeBuilder.init();
S.UI.init();
document.body.classList.a... | jiyuren/jiyuren.github.io | special/shape-shifter.js | JavaScript | apache-2.0 | 17,204 |
//// [objectTypesIdentityWithPrivates2.ts]
// object types are identical structurally
class C<T> {
private foo: T;
}
class D<T> extends C<T> {
}
function foo1(x: C<string>);
function foo1(x: C<number>); // ok
function foo1(x: any) { }
function foo2(x: D<string>);
function foo2(x: D<number>); // ok
function foo... | domchen/typescript-plus | tests/baselines/reference/objectTypesIdentityWithPrivates2.js | JavaScript | apache-2.0 | 1,993 |
/*
* Copyright 2015-2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | hawkular/hawkular-apm-opentracing-javascript | test/unit/utils-test.js | JavaScript | apache-2.0 | 867 |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import * as P from '../../../actions/fb-photos';
import Photo from './partials/photo';
import EmbeddedPhoto from './partials/embedded-photo';
import Masonry from 'react-masonry-component';
import Upload from './upload';
class Photos exten... | ChebyrTech/Facebook-Page-Post | src/components/pages/fb/photos.js | JavaScript | apache-2.0 | 3,578 |
var express = require('express');
var app = express();
var destinations = require('./scripts/destinations');
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.logger('dev'));
app.use(express.static(__dirname + '/'))
app.configure('development', function(){
app.use(express.erro... | podung/TripTracker | app.js | JavaScript | apache-2.0 | 517 |
var PluginModel = Backbone.Model.extend({
getName: function () {
return this.get('metadata').name;
},
getGensByModule: function (moduleName) {
if (moduleName === 'metadata') throw 'metadata is not a module';
if (this.has(moduleName))
retu... | appcubator/appbuild | src/js/appeditor/models/PluginModel.js | JavaScript | apache-2.0 | 449 |
import React from 'react';
import { Route } from 'react-router';
import App from './container/App';
import ChannelPage from './container/ChannelPage';
export default (
<Route path="/" component={App}>
<Route path="/channel/:channelId"
component={ChannelPage} >
<Route path="/channel/:channelId/:m... | andybryant/scalack | client/src/routes.js | JavaScript | apache-2.0 | 360 |
// Copyright 2011 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... | lucidsoftware/closure-library | closure/goog/storage/mechanism/errorcode.js | JavaScript | apache-2.0 | 1,050 |
'use strict';
const weatherApiKey = '65242acc93fa100cfe5f6d1968916208';
module.exports.weatherApiKey = weatherApiKey;
| Manzanit0/simple-tgram-bots | src/weatherWarnBot/config.js | JavaScript | apache-2.0 | 120 |
/*************************************************
* Copyright (c) 2016 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
import UsersList from './list/users-list.controller';
import UsersAdd from './add/users-add.controller';
import UsersEdit from './edit/users-edit.controll... | snahelou/awx | awx/ui/client/src/users/main.js | JavaScript | apache-2.0 | 1,828 |
'use strict';
// gulp
var gulp = require('gulp');
var paths = gulp.paths;
var options = gulp.options;
// plugins
var $ = require('gulp-load-plugins')();
// modules
var wiredep = require('wiredep');
var mainBowerFiles = require('main-bower-files');
// inject app/**/*.js, bower components, css into index.html
// inject ... | YouCCTech/skyapp | gulp/injecting.js | JavaScript | apache-2.0 | 4,353 |
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
/// <reference path="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.W... | manimaranm7/azure-mobile-services | sdk/Javascript/test/winJS/tests/functional/blogging.js | JavaScript | apache-2.0 | 2,616 |
define(['build/Objects/Page/Form/integer'], function (Item) {
describe('Integer form item', function () {
beforeEach(function () {
this.addMatchers(require('jasmine_matchers'));
});
it('should return corresponding attributes', function () {
var item = new It... | Label305/Auja | tests/spec/Objects/Page/Form/integer.spec.js | JavaScript | apache-2.0 | 1,891 |
import ModalView from 'OpenOrchestra/Service/Modal/View/ModalView'
import FormBuilder from 'OpenOrchestra/Service/Form/Model/FormBuilder'
import InternalLinkFormView from 'OpenOrchestra/Service/Tinymce/Plugins/InternalLink/View/InternalLinkFormView'
/**
* InternalLinkModalView
*/
class InternalLi... | open-orchestra/open-orchestra-cms-bundle | BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Service/Tinymce/Plugins/InternalLink/View/InternalLinkModalView.js | JavaScript | apache-2.0 | 1,328 |
const webpack = require('webpack')
const copy = require('copy-webpack-plugin')
const extract = require('extract-text-webpack-plugin')
const environment = require('./../environment')
const environments = {
development: require('./plugins/development'),
production: require('./plugins/production')
}
const plugins = e... | fernandocamargo/pizza-webpack | conf/webpack/plugins.js | JavaScript | apache-2.0 | 725 |
require('../lib/common');
const path = require('path');
const pify = require('pify');
const fs = pify(require('fs'));
const Koa = require('koa');
const router = require('koa-router')();
const bodyParser = require('koa-bodyparser');
const log4js = require('koa-log4');
const staticServer = require('koa-static');
const lo... | laizhenhai88/laputa | build/serverProd.js | JavaScript | apache-2.0 | 2,053 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.DiaryClient = ... | jdddog/diary-api | dist/diary-api.js | JavaScript | apache-2.0 | 218,669 |
var UNDEFINED_ERROR = -1;
var NULL_ERROR = -2;
// var NOTHING_ERROR = -3; | arcsin037/RGPP | src/js/RGPP/System/Debug/ErrorCode.js | JavaScript | apache-2.0 | 73 |
var a04485 =
[
[ "Convolve", "a04485.html#a43dc5a3ee340111a240b29c201291351", null ],
[ "~Convolve", "a04485.html#afe4bdcfc64bd500237175b1d30f3bdfb", null ],
[ "Backward", "a04485.html#a2ded8b7c997ed868a02df44445701712", null ],
[ "DeSerialize", "a04485.html#a2ab11ec1c218c57b43a825f6657597b9", null ],
... | stweil/tesseract-ocr.github.io | 4.00.00dev/a04485.js | JavaScript | apache-2.0 | 689 |
define([
'knockout',
'text!./cohort-definition-browser.html',
'components/Component',
'utils/Renderers',
'utils/CommonUtils',
'faceted-datatable',
], function(ko, view, Component, renderers, commonUtils) {
class EntityBrowser extends Component {
constructor(params) {
supe... | OHDSI/Atlas | js/components/entity-browser.js | JavaScript | apache-2.0 | 3,280 |
//Auto generated index for searching.
w["dsc20"]="24";
w["dst"]="20";
w["due"]="20";
w["each"]="16,20";
w["echo"]="15,16,24";
w["edit"]="3,5,7,8,9,11,14,15,16,19,24,25";
w["either"]="7,13";
w["enabl"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27";
w["enable_isolated_metadata"]="11";
w["enc... | midonet/midonet-docs | www/docs/en/quick-start-guide_rhel-7_juno-osp/2015.06-rev5/content/search/index-2.js | JavaScript | apache-2.0 | 6,546 |
/**
* Confirm Component
*
* Same as window.confirm but using Filter component and divs.
*
* @param text The text to confim.
* @param onOK (optional) Javascript function to call when OK button is clicked.
* Make sure that it is a String!
* @param onCancel (optional) Javascript... | gepesz/desktop | LockerWAR/WebContent/components/js/Confirm.js | JavaScript | apache-2.0 | 1,740 |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/optable/GreekAndCoptic.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | AKSW/SlideWiki | slidewiki/libraries/frontend/MathJax/unpacked/jax/element/mml/optable/GreekAndCoptic.js | JavaScript | apache-2.0 | 1,103 |
Ember.Application.initializer({
name: 'current-user',
after: 'preload',
initialize: function(container) {
var user, store = container.lookup('store:main'),
controller = container.lookup('controller:currentUser');
if (window.currentUserName) {
user = store.find('currentUser', window.currentU... | fractalemagic/hummingbird | app/assets/javascripts/initializers/current-user.js | JavaScript | apache-2.0 | 530 |
/*
Description: The class is used to filter assets based on the permissions specified in the extension json files
Filename: permission.asset.filter.js
Created Date: 7/10/2013
*/
var filterModule = function () {
var log = new Log('permission.asset.filter');
var utility = require('/modules/utility.js').rxt_... | lakshani/carbon-mobile-appmgt | features/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/publisher/modules/filters/permission.asset.filter.js | JavaScript | apache-2.0 | 4,837 |
module.exports = function(msg){
alert(msg);
} | xiaogaofudao/project_demo | assets/js/modules/alert.js | JavaScript | apache-2.0 | 46 |
/* Apache-Style Software License for ColorBrewer software and ColorBrewer Color
* Schemes
*
* Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State
* University.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the ... | rmenegaux/bqplot | js/src/colorbrewer.js | JavaScript | apache-2.0 | 20,993 |
/*jslint node: true */
"use strict";
const _ = require('lodash'),
debug = require('debug')('node-registry:registry'),
EventEmitter = require('../event-emitter'),
OrderedConfiguration = require('../ordered-configuration'),
utils = require('../utils'),
server = require('../server'),
Environment = require('../envir... | vladaspasic/node-registry | lib/registry/registry.js | JavaScript | apache-2.0 | 7,958 |
/*
* Copyright 2017-2018 Micro Focus or one of its affiliates.
*
* 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... | CAFDataProcessing/data-processing-service | processing-service-core/api/models/action.js | JavaScript | apache-2.0 | 29,598 |
/**
* @file log.js
*/
import window from 'global/window';
/**
* Log plain debug messages
*/
const log = function(){
_logType(null, arguments);
};
/**
* Keep a history of log messages
* @type {Array}
*/
log.history = [];
/**
* Log error messages
*/
log.error = function(){
_logType('... | fancasy/final | application/static/js/video/utils/log.js | JavaScript | apache-2.0 | 1,832 |
import './explore-user-widget.html';
import './explore-user-widget.js';
import './explorer-choose-user-widget.html';
import './explorer-choose-user-widget.js';
import './student-home-menu.html';
import './student-home-menu.js';
import './student-explorer-courses-widget-button.html';
import './student-explorer-course... | radgrad/radgrad | app/imports/ui/components/student/index.js | JavaScript | apache-2.0 | 3,073 |
var jp = jp || {};
// @TODO Add input for step limiter
$(document).ready(function () {
var $MAP = $('.map'),
MAP_LV_COUNT = 4,
MAP_WIDTH_COUNT = $MAP.find('tr:first td').length,
MAP_HEIGHT_COUNT = $MAP.find('tr').length,
$MAP_TILES = $('.map-tile'),
$BTNS = $('button'),
... | ashblue/pathfinding-presenter | archive-scripts/controllers/visual.js | JavaScript | apache-2.0 | 7,867 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.22/esri/copyright.txt for details.
//>>built
define("esri/dijit/metadata/nls/hr/i18nCodelists",{CI_OnLineFunctionCode:{"001":"Preuzmi","002":"Informacije","003":"Izvanmre\u017eni pristup","004":"Redoslijed","0... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/dijit/metadata/nls/hr/i18nCodelists.js | JavaScript | apache-2.0 | 43,624 |
//// [es6ModuleModuleDeclaration.ts]
export module m1 {
export var a = 10;
var b = 10;
export module innerExportedModule {
export var k = 10;
var l = 10;
}
export module innerNonExportedModule {
export var x = 10;
var y = 10;
}
}
module m2 {
export var a = 10... | mauricionr/TypeScript | tests/baselines/reference/es6ModuleModuleDeclaration.js | JavaScript | apache-2.0 | 1,646 |
'use strict';
/**
* @ngdoc directive
* @name izzyposWebApp.directive:adminPosHeader
* @description
* # adminPosHeader
*/
angular.module('marbleCoreApp')
.directive('header',function(){
return {
templateUrl:'templates/directives/header/header.html',
restrict: 'E',
replace: true,
}
... | miguelfc/marble | marble-core/src/main/resources/web/js/directives/header/header.js | JavaScript | apache-2.0 | 326 |
/* @flow */
import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { StarMap } from './map';
type Props = {};
@observer
export default class RootComponent extends Component {
constructor(props: Props) {
super(props);
}
render() {
return(
<div style={{ color: 'white' }}>
... | ClanWolf/C3-StarMap | src/components/root.js | JavaScript | apache-2.0 | 355 |
define(["marionette","backbone","jquery","underscore", "app/app.models"],
function(Marionette, Backbone, $, _) {
return function(app) {
app.module("Collections", function(Collections, App, Backbone, Marionetter, $, _) {
this.PageCollection = Backbone.Collection.extend({
model: App.Models.PageModel
}... | ericwgreene/intuit-bootcamp | app/www/js/app/app.collections.js | JavaScript | apache-2.0 | 341 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"domingo",
... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/i18n/angular-locale_es-us.js | JavaScript | apache-2.0 | 2,253 |
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
watch: {
files: ["src/less/*.less", "src/js/*.js"],
tasks: ["concat", "less", "uglify"]
},
clean: {
dist: 'dist'
},
concat: {
bootstrap: {
... | yeesoft/yee-theme | Gruntfile.js | JavaScript | apache-2.0 | 2,848 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var debug = require('debug')('mqtt-common');
var Message = require('azure-... | lcarli/NodeRedIoTHub | node_modules/azure-iot-device-mqtt/node_modules/azure-iot-mqtt-base/lib/mqtt_receiver.js | JavaScript | apache-2.0 | 3,575 |
$.index.open();
$.start_button.addEventListener('click', function(){
var config = new Alloy.createController("config").getView();
config.open();
$.index.close();
});
| philsmithsonuk/taxiheat | app/controllers/index.js | JavaScript | apache-2.0 | 176 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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/_tools/pkgs/names/lib/transform.js | JavaScript | apache-2.0 | 2,082 |
import { group, benchmark } from './lib/minibench/minibench.js';
import { BlazorApp } from './util/BlazorApp.js';
group('App Startup', () => {
benchmark('Time to first UI', async () => {
const app = new BlazorApp();
try {
await app.start();
} finally {
app.dispose();
}
}, {
descrip... | aspnet/AspNetCore | src/Components/benchmarkapps/Wasm.Performance/TestApp/wwwroot/benchmarks/appStartup.js | JavaScript | apache-2.0 | 437 |
/*
* 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.
*/
'... | AutorestCI/azure-sdk-for-node | lib/services/webSiteManagement2/lib/models/metricSpecification.js | JavaScript | apache-2.0 | 4,768 |
myApp.factory("relacaoAtletasAPI", function ($http, config) {
var _getEventos = function () {
return $http.get(config.baseUrl + "/ListarEventos");
};
var _getRelacao = function (evento) {
return $http.post(config.baseUrl + "/ListaRelacaoAtletas", evento);
};
return{
getE... | Deividson007/Sis | web/js/angular/services/relacaoAtletasAPIService.js | JavaScript | apache-2.0 | 383 |
/**
* Created with JetBrains PhpStorm.
* User: Mrkupi
* Date: 9/22/13
* Time: 9:34 AM
* To change this template use File | Settings | File Templates.
*/
var BombManager = cc.Node.extend({
bombs:null,
effectManager:null,
initialize:function()
{
this.bombs = new Array();
this.schedul... | binpossible49/bombgame | gamehost/src/GameObject/BombManager.js | JavaScript | apache-2.0 | 1,349 |
var baseUrlServer = 'http://luzparatodos.o3midia.com.br/';
$('#btn_cadastrar_usuario').click(function(){
dadosForm = $('#form_login').serialize();
console.log(dadosForm);
});
// Wait for device API libraries to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// device ... | fcervan/luzparatodos | platforms/ios/www/js/custom.js | JavaScript | apache-2.0 | 2,464 |