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';
angular.module(clever.name).controller('logViewCtrl',
function($scope, $modalInstance, log)
{
$scope.log = log;
console.log(log);
$scope.cancel = function () {
$modalInstance.dismiss();
};
}
);
| jerryhsia/clever-management | scripts/controllers/log/view.js | JavaScript | apache-2.0 | 237 |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
class Board extends React.Component {
renderSquare(i) {
return (
<Square
value={th... | maschoffjake/Fury2 | my-app/src/index.js | JavaScript | apache-2.0 | 3,177 |
/*
* Copyright (c) 2014 DataTorrent, 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... | andyperlitch/malhar-ui-console-2 | js/app/lib/pages/DiagnosticsPageView/IssuesSubView.js | JavaScript | apache-2.0 | 1,338 |
(function($) {
var version = '1.4.13',
optionOverrides = {},
defaults = {
exclude: [],
excludeWithin:[],
offset: 0,
// one of 'top' or 'left'
direction: 'top',
// jQuery set of elements you wish to scroll (for $.smoothScroll).
// if null (default), $('html, body').fi... | Tokyodays/aroma-massage | static/js/jquery.smooth-scroll.js | JavaScript | apache-2.0 | 7,131 |
(function () {
'use strict';
angular
.module('sekcApp')
.factory('Practice', Practice);
Practice.$inject = ['$resource'];
function Practice ($resource) {
var service = $resource('api/v1/practices/:idPractice', {}, {
'query': {method: 'GET', isArray: true... | dads-software-brotherhood/sekc | src/main/webapp/app/services/practice/practice.service.js | JavaScript | apache-2.0 | 728 |
/// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper" name="__extends" />
/// <amd-dependency path="esri/core/tsSupport/decorateHelper" name="__decorate" />
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Arr... | nicksenger/GroupGallery-esri | dist/application/widgets/Main.js | JavaScript | apache-2.0 | 12,858 |
function WPATH(s) {
var index = s.lastIndexOf("/");
var path = -1 === index ? "nl.fokkezb.drawer/" + s : s.substring(0, index) + "/nl.fokkezb.drawer/" + s.substring(index + 1);
return path;
}
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete... | aremox/Ruta-Teresiana | Resources/iphone/alloy/widgets/nl.fokkezb.drawer/controllers/widget.js | JavaScript | apache-2.0 | 8,444 |
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/model/modelReaders/gltfReader/gltfTestSuite/riggedFigure/test.js | JavaScript | apache-2.0 | 2,250 |
define(['marionette', 'backbone',
'jquery',
'utils/forms',
'utils/validation',
'jquery-ui',
'vendor/backbone/backbone.syphon'
], function(Marionette, Backbone, $, forms) {
/*
Basic handler for generating HTML Forms
- Uses model based validation
... | tcspain/SynchWeb | client/js/views/form.js | JavaScript | apache-2.0 | 5,240 |
/*
* Licensed under the Apache License, Version 2.0 (the 'License'); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* d... | openstack/zaqar | samples/nodejs/receive_message/zaqar_sample.js | JavaScript | apache-2.0 | 1,283 |
/**
* @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... | wardpeet/lighthouse | lighthouse-core/audits/metrics/first-contentful-paint.js | JavaScript | apache-2.0 | 3,384 |
var readFixtures = function() {
return jasmine.getFixtures().proxyCallTo_('read', arguments);
};
var preloadFixtures = function() {
jasmine.getFixtures().proxyCallTo_('preload', arguments);
};
var loadFixtures = function() {
jasmine.getFixtures().proxyCallTo_('load', arguments);
};
var setFixtures = function(h... | otrebski/reactive-missile-defend | doc/test/lib/jasmine-jquery.js | JavaScript | apache-2.0 | 7,551 |
var LocationHelper = function() {
var instance = null;
var osname = Ti.Platform.osname,
version = Ti.Platform.version,
height = Ti.Platform.displayCaps.platformHeight,
width = Ti.Platform.displayCaps.platformWidth;
var self = {
isIOS: (osname === 'iphone') || (osname === 'ipad'),
isAndroid: (osname ==... | zuehlke-de/de-camp2012-zwarm-frontend | Resources/lib/LocationHelper.js | JavaScript | apache-2.0 | 2,095 |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import * as uiv from 'uiv'
import Vue2Filters from 'vue2-filters'
import VueCookies from 'vue-cookies'
import App from './App'
import VueI18n from 'vue-i18n'
... | rundeck/rundeck | rundeckapp/grails-spa/packages/ui/src/pages/menu/main.js | JavaScript | apache-2.0 | 1,351 |
'use strict';
describe('Controller: AboutCtrl', function () {
// load the controller's module
beforeEach(module('showcaseweb'));
var AboutCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
AboutCtrl = $co... | Endran/ShowcaseReference | Web/test/spec/controllers/about.js | JavaScript | apache-2.0 | 555 |
import '../styles/main.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import { data } from './settings.json';
// Components
import ImageBG from './components/ImageBG';
// App Container
class App extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.han... | Angelfire/reactgram | js/script.js | JavaScript | apache-2.0 | 5,796 |
var expect = require('chai').expect
const fs = require('fs');
describe('Data Layer', function () {
describe('#Get Parcels', function () {
it('should obtain FeatureCollection for bounding box', function (done) {
var dataLayer = require('../src/dataLayer')
var bbox = [40.437603, -5.762986, 40.439442, -... | ilice/OSCWeb | test/dataLayer.test.js | JavaScript | apache-2.0 | 6,884 |
/*
* Copyright 2019 EPAM Systems
*
* 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 ... | reportportal/service-ui | app/src/components/inputs/inputConditional/index.js | JavaScript | apache-2.0 | 648 |
import { ReducerRegistry } from '../base/redux';
import {
PARTICIPANTS_PANE_CLOSE,
PARTICIPANTS_PANE_OPEN,
SET_VOLUME
} from './actionTypes';
import { REDUCER_KEY } from './constants';
const DEFAULT_STATE = {
isOpen: false,
participantsVolume: {}
};
/**
* Listen for actions that mutate the parti... | jitsi/jitsi-meet | react/features/participants-pane/reducer.js | JavaScript | apache-2.0 | 1,029 |
'use strict';
const { Endpoints } = require('../util/Constants');
const Permissions = require('../util/Permissions');
const Base = require('./Base');
/**
* Represents an invitation to a guild channel.
* <warn>The only guaranteed properties are `code`, `channel`, and `url`. Other properties can be missing.</warn>
*... | appellation/discord.js | src/structures/Invite.js | JavaScript | apache-2.0 | 4,308 |
import axios from 'axios';
export default function rateLimit(instance, retries = 5, wait = 1000) {
return instance.interceptors.response.use(null, (error) => {
const config = error.config;
if (!config) {
return Promise.reject(error);
}
config.rateRetryRequest = config.rateRetryRequest || 0;
... | ordermentum/myob-exo-javascript-sdk | src/interceptors/rate_limit.js | JavaScript | apache-2.0 | 963 |
//// [declFileOptionalInterfaceMethod.ts]
interface X {
f? <T>();
}
//// [declFileOptionalInterfaceMethod.js]
//// [declFileOptionalInterfaceMethod.d.ts]
interface X {
f?<T>(): any;
}
| freedot/tstolua | tests/baselines/reference/declFileOptionalInterfaceMethod.js | JavaScript | apache-2.0 | 196 |
CKEDITOR.plugins.setLang("teamlabcut", "es", {
dialogTitle: "Crear contenedor de Text Cut",
dialogInfo: "El contenido seleccionado será ocultado de la vista previa .",
dialogRemoveInfo: "Para que el elemento se muestre en la vista previa utilice la opción \"Recuperar en la vista previa\" en el menú cont... | ONLYOFFICE/CommunityServer | web/studio/ASC.Web.Studio/UserControls/Common/ckeditor/plugins/teamlabcut/lang/es.js | JavaScript | apache-2.0 | 445 |
/*!
* Ext JS Library 3.0.3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
* @class Ext.data.MemoryProxy
* @extends Ext.data.DataProxy
* An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor
* to the Reader when its loa... | sages-health/openessence-demo | core/src/main/webapp/js/ext-3.0.3/src/data/MemoryProxy.js | JavaScript | apache-2.0 | 2,999 |
/**
* @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/remark/plugins/remark-img-equations/lib/insert_equations.js | JavaScript | apache-2.0 | 3,395 |
/*
* Copyright 2010-2011 Research In Motion Limited.
*
* 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 ... | blackberry/WebWorks-TabletOS | js_api/blackberry.ui.dialog/js/common/dialog/dialog_ns.js | JavaScript | apache-2.0 | 2,150 |
define({"topics" : [{"title":"Retrieve Authentication Information","href":"datacollector\/UserGuide\/Origins\/ADLS-G2.html#concept_xjk_3gw_b3b","attributes": {"data-id":"concept_xjk_3gw_b3b",},"menu": {"hasChildren":false,},"tocID":"concept_xjk_3gw_b3b-d46e46706","topics":[]}]}); | kunickiaj/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_tjg_ggw_b3b-d46e46674.js | JavaScript | apache-2.0 | 280 |
define(function(require, exports, module) {
var Notify = require('common/bootstrap-notify');
var Validator = require('bootstrap.validator');
require('common/validator-rules').inject(Validator);
exports.run = function() {
require('orgbundle/controller/org/org-tree-select').run();
var val... | 18826252059/im | web/bundles/topxiaadmin/js/controller/user/update-org-modal.js | JavaScript | apache-2.0 | 1,044 |
const nav_scroll_tab = '#FE2D4A';
const nav_scroll_tab_underline = '#FE2D4A';
const star_lv_more = 'green';
export {nav_scroll_tab,nav_scroll_tab_underline,//顶部滑动tab
star_lv_more}; | keith527/InstantMessage | App/style/color.js | JavaScript | apache-2.0 | 198 |
Ti.include("/api/config.js");
Ti.include("/api/category_render.js");
Ti.include("/database/produtos.js");
Ti.include("/database/imagens_produtos.js");
var args = arguments[0] || {};
var marca = args.marca || 0;
var categoria = args.cat_id || 0;
var template = args.template || 0;
var current_page = 1;
var itemsperpage ... | lukas-conka/mobile-app | app/controllers/vitrine_quatro_horizontais.js | JavaScript | apache-2.0 | 4,287 |
/* @flow */
import React, { PureComponent } from 'react';
import { View, StyleSheet, KeyboardAvoidingView, Platform } from 'react-native';
import type { LocalizableText } from '../types';
import { ZulipStatusBar } from '../common';
import ModalNavBar from '../nav/ModalNavBar';
import ModalSearchNavBar from '../nav/Mod... | nashvail/zulip-mobile | src/common/Screen.js | JavaScript | apache-2.0 | 1,416 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | kiritbasu/datacollector | datacollector-ui/src/main/webapp/app/home/detail/summary/charts/allStageMemoryConsumer.js | JavaScript | apache-2.0 | 6,214 |
// Allow enter key to open the facet panels (a11y). See also https://tools.lib.umich.edu/jira/browse/CSB-248
$(document).on('turbolinks:load', function() {
$('.panel-heading.facet-field-heading.collapse-toggle').on('keyup', function (event) {
if ((event.keyCode === 13) && ($(document.activeElement).attr('role') =... | mlibrary/heliotrope | app/assets/javascripts/application/role_button_click_on_enter.js | JavaScript | apache-2.0 | 420 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['pt-br'] = {
"editor": "Editor de Texto",
"editorPanel": "Rich Text Editor panel",
"common": {
"editorHelp": "Pressione ALT+0 para ajuda"... | DavidCai1993/awesomeOaSystem | public/js/plugin/ckeditor/lang/pt-br.js | JavaScript | apache-2.0 | 26,470 |
(function () {
"use strict";
angular
.module('mnSettingsNotifications', [
'mnSettingsNotificationsService',
'mnPromiseHelper'
])
.controller('mnSettingsNotificationsController', mnSettingsNotificationsController);
function mnSettingsNotificationsController($scope, mnPromiseHelper, mnSett... | ceejatec/ns_server | priv/public/ui/app/mn_admin/mn_settings/notifications/mn_settings_notifications_controller.js | JavaScript | apache-2.0 | 947 |
/* Copyright 2015 Bloomberg Finance 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 required by applicable law or ag... | ssunkara1/bqplot | js/src/ScatterBase.js | JavaScript | apache-2.0 | 27,104 |
$(document).ready(function(){
$('.responsive-3').slick({
centerMode: true,
centerPadding: '0px',
arrows: false,
dots: true,
infinite: true,
speed: 300,
slidesToShow: 3,
slidesToScroll: 1,
touchThreshold: 20,
responsive: [
{
breakpoint: 1024,
settings: {
centerMode: true,
... | notbleh/notbleh.github.io | js/carousel.js | JavaScript | apache-2.0 | 1,481 |
/*
* Copyright (c) 2014 DataTorrent, 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... | andyperlitch/malhar-ui-console-2 | js/app/lib/pages/InstallWizardPageView/ConfigIPAddressCollection.js | JavaScript | apache-2.0 | 1,365 |
angular.module('nolta', ['ngRoute'])
.config(function ($routeProvider) {
$routeProvider
.when('/frontpage', { templateUrl: 'views/frontpage.html', controller: 'SimpleController' })
.when('/fyrirlestrar', { templateUrl: 'views/fyrirlestrar.html', controller: 'AboutController' })
.when('/leidtogahaefni', {... | Freyr12/Nolta | js/app.js | JavaScript | apache-2.0 | 1,361 |
var mongoose = require("mongoose");
var sessionDB = mongoose.model("sessions");
var enigmesCollection = mongoose.model("enigmes");
var userDB = mongoose.model("User");
var async = require("async");
var sendJsonResponse = function(res, status, content) {
res.status(status);
res.json(content);
};
var _sessionFr... | fdagosti/zenigmes | app_api/controllers/participation.js | JavaScript | apache-2.0 | 7,746 |
/* Copyright 2011 the Melange authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | adviti/melange | app/soc/content/js/templates/modules/gci/avatar.js | JavaScript | apache-2.0 | 5,417 |
var CONSTANTS = require('../constants.json');
var utils = require('../utils.js');
var bidfactory = require('../bidfactory.js');
var bidmanager = require('../bidmanager.js');
var adloader = require('../adloader');
/**
* Adapter for requesting bids from Criteo.
*
* @returns {{callBids: _callBids}}
* @constructor
*/... | ikhemissi/Prebid.js | src/adapters/criteo.js | JavaScript | apache-2.0 | 1,814 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2014 SAP AG or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.support.plugins.Performance
sap.ui.define(['jquery.sap.global', 'sap/ui/core/RenderManager'... | esjewett/tdcode-examples | lib/openUI5/resources/sap/ui/core/support/plugins/Performance-dbg.js | JavaScript | apache-2.0 | 8,201 |
/*global define,dojo,dojoConfig:true,alert,esri,Modernizr,console,dijit,appGlobals*/
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true,indent:4 */
/** @license
| Copyright 2015 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compl... | Esri/configurable-locator | js/library/widgets/searchSetting/eventPlannerHelper.js | JavaScript | apache-2.0 | 35,313 |
// 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... | shaz13/oppia | core/templates/dev/head/pages/exploration_editor/history_tab/HistoryServicesSpec.js | JavaScript | apache-2.0 | 32,221 |
/*
* Copyright 2016 SimplifyOps, Inc. (http://simplifyops.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/LICENSE-2.0
*
* Unless required ... | jamieps/rundeck | rundeckapp/grails-app/assets/javascripts/executionStateKO.js | JavaScript | apache-2.0 | 45,975 |
// @flow
export type Role = {
name: string,
};
export type User = {
firstName: string,
roles?: Array<Role>,
};
| societe-generale/react-loopback-generator | generators/client/templates/client/source/common/user.js | JavaScript | apache-2.0 | 118 |
import RuleConfigurations from './RuleConfigurations'
/**
* Defines the builder to configure a _RuleNotification
*/
export default class _RuleNotification {
/**
* @param {!RuleConfigurations} parent - RuleConfiguration object
* @param {Object} notificationData - notification data to manage
... | amplia-iiot/opengate-js | src/rulesConfiguration/_RuleNotification.js | JavaScript | apache-2.0 | 3,879 |
(function () {
angular.module('alertListModule', [])
.directive("alertList", directive)
.controller("AlertListController", controller)
.config(function ($interpolateProvider) {
$interpolateProvider.startSymbol('[[[').endSymbol(']]]');
})
function... | tony-waters/tony-waters.github.io | angular/demo2/alertList.js | JavaScript | apache-2.0 | 1,224 |
(function() {var implementors = {};
implementors["tokio_http2"] = ["impl <a class='trait' href='https://doc.rust-lang.org/log/log/trait.Log.html' title='log::Log'>Log</a> for Logger","impl <a class='trait' href='https://doc.rust-lang.org/log/log/trait.Log.html' title='log::Log'>Log</a> for <a class='struct' href='http:... | lambdastackio/tokio-http2 | docs/implementors/log/trait.Log.js | JavaScript | apache-2.0 | 642 |
function loadText()
{
var txtLang = document.getElementsByName("txtLang");
txtLang[0].innerHTML = "Afbeelding Bron";
txtLang[1].innerHTML = "Herhalen";
txtLang[2].innerHTML = "Horizontale Uitlijning";
txtLang[3].innerHTML = "Verticale Uitlijning";
var optLang = document.getElementsB... | studiodev/archives | 2009 - Team D4 (IxGamer)/include/Editor/scripts/language/dutch/image_background.js | JavaScript | apache-2.0 | 1,037 |
var wpi = require('wiring-pi');
// var ref = require('ref'); // required if passing pointers to lib functions
// var ffi = require('ffi');
// var gert = ffi.Library('libwiringPiDev', {
// 'gertboardAnalogSetup': [ 'int', [ 'int' ] ]
// });
// var res = gert.atod();
// console.log('Gertboard ADC is currently measu... | mlchin/nodejs-gpio | example/read_analog.js | JavaScript | apache-2.0 | 964 |
var structDCERPC__ =
[
[ "bytesprocessed", "structDCERPC__.html#a31f7f47275fc94f2370c88f495db913b", null ],
[ "dcerpcbindbindack", "structDCERPC__.html#ab1c8ba6432fb59e46dcdb6d98a80a1c1", null ],
[ "dcerpchdr", "structDCERPC__.html#acba75761717afe7a6a5bb0a64480b45f", null ],
[ "dcerpcrequest", "structDC... | onosfw/apis | suricata/apis/structDCERPC__.js | JavaScript | apache-2.0 | 801 |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with ... | AKSW/SlideWiki | slidewiki/libraries/frontend/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js | JavaScript | apache-2.0 | 624 |
/*
* Copyright 2016-present Open Networking Laboratory
*
* 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... | donNewtonAlpha/onos | web/gui/src/main/webapp/app/view/topo2/topo2ViewController.js | JavaScript | apache-2.0 | 1,168 |
/*jslint node:true */
'use strict';
var Augl = require('proto.augl');
var AIHarvest = require('ai.harvest');
var AIExtensionBuild = require('ai.extensionBuild');
var AIBuild = require('ai.build');
var AIBuildExtension = require('ai.build.extension');
var Harvester = function (creepName) {
Augl.call(this, creepNam... | Augl/screeps-bot | augl.harvester.js | JavaScript | apache-2.0 | 761 |
var CreateMultiMaterialScene = function(engine) {
var scene = new BABYLON.Scene(engine);
var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene);
var light = new BABYLON.PointLight("Omni", new BABYLON.Vector3(20, 100, 2), scene);
var material0 = new BABYLON.Sta... | earok/Babylon.Monkey | Samples/samples.data/multimat.js | JavaScript | apache-2.0 | 1,586 |
dojo.provide("dojo.nls.rotogame_zh-tw");
| feklee/rotogame | source/dojo-release-1.3.0-src/release/dojo/dojo/nls/rotogame_zh-tw.js | JavaScript | apache-2.0 | 42 |
const MongoClient = require('mongodb').MongoClient;
const dbusr = process.env.LTDB_USR;
const dbpasswd = process.env.LTDB_PASSWD;
const url = `mongodb://${dbusr}:${dbpasswd}@ds053607.mlab.com:53607/ltdb`;
const dbName = 'ltdb';
let db = null;
MongoClient.connect(url, function (err, client) {
if (err) return con... | hsalmeida/loto-check | jogos.js | JavaScript | apache-2.0 | 608 |
$axure.loadCurrentPage({
"url":"p8_6_5学校.html",
"generationDate":new Date(1438911585007.15),
"isCanvasEnabled":false,
"variables":["OnLoadVariable",
"yz_msg"],
"page":{
"packageId":"8c7449e873ee4338967edf6156480d7c",
"type":"Axure:Page",
"name":"p8_6_5学校",
"notes":{
},
"style":{
"ba... | yicold/axure-case | jzb/嘉禾良木UE&UI-C端-V2.2/files/p8_6_5学校/data.js | JavaScript | apache-2.0 | 12,183 |
// Register script for MDS if possible
RegisterModuleInit("FileConfidentialityMessage.js", RemoteManager_Inject); //MDS registration
RemoteManager_Inject(); //non MDS run
if (typeof (Sys) != "undefined" && Boolean(Sys) && Boolean(Sys.Application)) {
Sys.Application.notifyScriptLoaded();
}
if (typeof (NotifyScrip... | jasoncigan/OfficeDevPnP | Solutions/Provisioning.OneDrive/Provisioning.OneDriveWeb/Resources/FileConfidentialityMessage.js | JavaScript | apache-2.0 | 2,569 |
/**
* Copyright 2017 Telerik AD
* ... | xiangxik/castle-platform | castle-themes/castle-theme-uikit/src/main/resources/META-INF/bower_components/kendo-ui/src/js/cultures/kendo.culture.ta-LK.js | JavaScript | apache-2.0 | 7,169 |
import { combineReducers } from 'redux';
import todos from './todos';
import visibilityFilter from './visibilityFilter';
const todoApp = combineReducers({
todos,
visibilityFilter,
});
export default todoApp;
| appbaseio/reactivesearch | packages/web/examples/withRedux/src/reducers/index.js | JavaScript | apache-2.0 | 212 |
import React from 'react';
import { render } from 'react-dom';
import App from './components/app.js';
import Login from './components/Login.js';
import About from './components/About.js';
import MyApp from './components/MyApp.js';
import MyServer from './components/MyServer.js';
import AllApps from './components/AllApp... | ranebo/project-ipsum | public/index.js | JavaScript | apache-2.0 | 2,604 |
/*
* Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
*/
define(['underscore'], function(_){
this.sloDomainsData = {
"domains": [
{
"fq_name": [
"default-domain"
],
"uuid": "f1f5fd91-8016-4f0f-a0f3-b67e779f1d08"
... | biswajit-mandal/contrail-web-controller | webroot/config/networking/slo/test/ui/views/sloGridView.mock.data.js | JavaScript | apache-2.0 | 98,954 |
var process = function (filename, uri, successCallback, errorCallback) {
if(!filename) {
filename = uri.split('/').pop();
}
return cordova.exec(successCallback, errorCallback, 'Hazelnut', 'Open', [{
uri: uri,
filename: filename
}]);
};
window.hazelnut = {
open: process
};
if(module && module.... | yrezgui/Hazelnut | www/Hazelnut.js | JavaScript | apache-2.0 | 360 |
$(function() {
var header = $('.globalHeader').outerHeight(true);
var footer = $('.globalFooter').outerHeight(true);
$('.globalContents').css('min-height', 'calc(100vh - ' + (header + footer) + 'px)');
});
| ProgrammingDaisukiClub/WPCS2 | app/assets/javascripts/layouts.js | JavaScript | apache-2.0 | 212 |
/**
* @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/discrete-uniform/ctor/examples/index.js | JavaScript | apache-2.0 | 1,089 |
var searchData=
[
['napatechconfigparser',['NapatechConfigParser',['../runmode-napatech_8c.html#a3575cff562436da3fb2b78d5fe71e1e4',1,'runmode-napatech.c']]],
['napatechdecode',['NapatechDecode',['../source-napatech_8c.html#a96df81e27da7d60754c92162338c8c3f',1,'source-napatech.c']]],
['napatechdecodethreaddeinit',... | onosfw/apis | suricata/apis/search/functions_6e.js | JavaScript | apache-2.0 | 3,967 |
import fetch from 'isomorphic-fetch';
import { polyfill } from 'es6-promise';
const defaultHeaders = {
Accept: 'application/json',
'Content-Type': 'application/json'
};
function buildHeaders() {
// fetch csrf token
const csrfToken = 'dsahdjkashdksahdj' ;
return {...defaultHeaders, 'X-CSRF-TOKEN': csrfToke... | vinsol/ex-shop | apps/nectar/web/static/js/utils/index.js | JavaScript | apache-2.0 | 779 |
/* =========================================================
* bootstrap-datepicker.js
* Repo: https://github.com/eternicode/bootstrap-datepicker/
* Demo: http://eternicode.github.io/bootstrap-datepicker/
* Docs: http://bootstrap-datepicker.readthedocs.org/
* Forked from http://www.eyecon.ro/bootstrap-datepicker
... | huahuajjh/requisition_land | WebRoot/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js | JavaScript | apache-2.0 | 46,893 |
/**
* Copyright 2017, 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 i... | awesomest/text-checker | dlp/system-test/redact.test.js | JavaScript | apache-2.0 | 2,304 |
var dir_f2f4f71f5a45c60b1378c92ebba6612a =
[
[ "Controls", "dir_f5d232af4f8c19ea0b9d860e7636a761.html", "dir_f5d232af4f8c19ea0b9d860e7636a761" ],
[ "obj", "dir_a4b4e5e0958f94b0d70d5071b4fb41a7.html", "dir_a4b4e5e0958f94b0d70d5071b4fb41a7" ],
[ "Properties", "dir_9bd6c58bbaf4b9f7ed45f70cb34e8cf6.html", "dir_... | XLabs/xlabs.github.io | html/dir_f2f4f71f5a45c60b1378c92ebba6612a.js | JavaScript | apache-2.0 | 358 |
define(function (require, exports, module) {
'use strict';
var data = {
'defaultLocale': 'en-US',
'systemLocales': ['en-US']
}
/* I18n API TC39 6.2.2 */
function isStructurallyValidLanguageTag(locale) {
return true;
}
/* I18n API TC39 6.2.3 */
function canonicalizeLanguageTag(locale) {
... | michalbe/l20n.js | lib/client/l20n/platform/intl.js | JavaScript | apache-2.0 | 5,192 |
/*
* Copyright 2012 OSBI Ltd
*
* 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... | witcxc/saiku | saiku-ui/js/saiku/views/SaveQuery.js | JavaScript | apache-2.0 | 9,135 |
/* @flow */
import React from 'react';
import Root from '../../common/DemoLayout';
import type { DemoLayoutProps } from '../../common/types';
const DemoLayout = (props: DemoLayoutProps) => (
<Root
includeLastChild
marginBottom="0.5rem"
marginRight="0.5rem"
{...props}
/>
);
export default DemoLayo... | mineral-ui/mineral-ui | src/website/app/demos/Button/common/DemoLayout.js | JavaScript | apache-2.0 | 324 |
// eslint-disable-line max-lines
'use strict';
const fs = require('fs');
const path = require('path');
const appDirectory = fs.realpathSync(process.cwd()); // eslint-disable-line no-sync
const webpack = require('webpack');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const ExtractTextPlu... | otto-de/turing-microservice | packages/turing-example/resources/client/webpack/webpack.config.prod.js | JavaScript | apache-2.0 | 7,909 |
import { Component, View } from 'angular2/angular2';
import styles from './dynamic-component.css';
export default class DynamicComponent {
constructor() {
this.seconds = 0;
this.intervalId = setInterval(() => this.seconds++, 1000);
}
onDestroy() {
clearInterval(this.intervalId);
}
static get an... | Mercateo/component-check | examples/composable-components/angular-2/src/dynamic-component/index.js | JavaScript | apache-2.0 | 546 |
var NAVTREEINDEX30 =
{
"a02629.html#a4afabab621a47c21cbf9397c79973a7a":[3,0,290,4],
"a02629.html#a504e1a484657c0854ac283034f9ce90b":[3,0,290,6],
"a02629.html#a5396d327b5b31136353f01092e0600cd":[3,0,290,0],
"a02629.html#a5c87272acf4bd65f1876257cdd70eab6":[3,0,290,3],
"a02629.html#a5cc61381802a170e0277864cd0b18466":[3,0,... | stweil/tesseract-ocr.github.io | 4.00.00dev/navtreeindex30.js | JavaScript | apache-2.0 | 15,153 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... | starlkj/echarts | src/component/legend/LegendModel.js | JavaScript | apache-2.0 | 8,251 |
(function(global) {
/* global RGPP */
"use strict";
var objName = "Spot";
var mGoalPosX = 0;
var mGoalPosY = 0;
var mMoveFlag = false;
var LINE_WIDTH = RGPP.System.ChangeableValue({
name: "Line Width",
minValue: 1,
maxValue: 10,
defaultValue: 2,
stepValue: 1,
type: "spinner"
});
var construct... | arcsin037/RGPP | src/js/RGPP/User/Script/EventScript/BR/Spot.js | JavaScript | apache-2.0 | 6,005 |
/* Copyright Mihai Bazon, 2002-2005 | www.bazon.net/mishoo
* -----------------------------------------------------------
*
* The DHTML Calendar, version 1.0 "It is happening again"
*
* Details and latest version at:
* www.dynarch.com/projects/calendar
*
* This script is developed by Dynarch.com. Vis... | kalebecalixto/webEntregas | webEntregas/public_html/modelos/ADI_Bin/rotinasJS/calendar/calendar.js | JavaScript | apache-2.0 | 51,347 |
/**
* @author 张慧华 z@j-ui.com
*
*/
(function($){
$.fn.extend({
/**
* options: reverse[true, false], eventType[click, hover], currentIndex[default index 0]
* stTab[tabs selector], stTabPanel[tab panel selector]
* ajaxClass[ajax load], closeClass[close tab]
*/
tabs: function (options){
var ... | roncoo/roncoo-jui-springboot | roncoo-jui-springboot-web/src/main/resources/static/dwz_jui/js/dwz.tab.js | JavaScript | apache-2.0 | 3,540 |
import React from "react";
import ReactDOM from "react-dom";
import { act } from "react-dom/test-utils";
import { ThemeProvider } from "styled-components";
import { mount as enzymeMount } from "enzyme";
import {
simulate,
assertStyleMatch,
testStyledSystemMargin,
} from "../../__spec_helper__/test-utils";
import... | Sage/carbon | src/components/action-popover/action-popover.spec.js | JavaScript | apache-2.0 | 38,798 |
const propertyOrder = [
'service',
'controller',
'query-params',
'attribute',
'relationship',
'property',
'single-line-function',
'init',
'beforeModel',
'model',
'afterModel',
'redirect',
'setupController',
'resetController',
['lifecycle-hook', 'activate', 'deactivate', 'didDestroyElement... | lvuch/ui | tests/.eslintrc.js | JavaScript | apache-2.0 | 6,831 |
var Game = {
entities: [],
walls: [],
entity_i: 0,
entity_length: null,
game_canvas: null,
game_context: null,
transfer_const: 0.5,
init: function(canvas, width,height){
Game.nextID = 0;
Game.physics = Object.create(physicsModule);
Game.physics.init(5);
Game.physics.setEndContactListener(function(contac... | superlinkx/eating-disorder | game/game.js | JavaScript | apache-2.0 | 12,921 |
describe("Memo.text()", function() {
it("returns a value for a correct argument", function() {
expect(() => StellarBase.Memo.text("test")).to.not.throw();
});
it("throws an error when invalid argument was passed", function() {
expect(() => StellarBase.Memo.text()).to.throw(/Expects string/);
expec... | strllar/js-stellar-base | test/unit/memo_test.js | JavaScript | apache-2.0 | 2,779 |
import {
afterEach,
AsyncTestCompleter,
beforeEach,
ddescribe,
describe,
expect,
iit,
inject,
it,
xit,
} from 'changular2/test_lib';
import { StringMap, ListWrapper } from 'changular2/src/facade/collection';
import { isPresent, StringWrapper } from 'changular2/src/facade/lang';
import { PromiseWrap... | jasonjchang/changular | modules/benchpress/test/web_driver_extension_spec.js | JavaScript | apache-2.0 | 1,586 |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | tzerb/Learning | WebApplication3/src/WebApplication3/jspm_packages/npm/dist/js/cjs/src/web_workers/ui/xhr_impl.js | JavaScript | apache-2.0 | 2,151 |
process.exit(
0.00 // budget.js - keeping the books for @fullstacknights
// Inspired by @brooklyn_js
// for details, see our accountant:
// https://travis-ci.org/fullstacknights/fullstacknights.github.io
// Fullstack Nights v3, 2016-03-29 at @prsciencetrust
/... | fullstacknights/fullstacknights.github.io | budget.js | JavaScript | apache-2.0 | 1,998 |
define (function() {
function Progress(size, color, progress, target) {
this.size = size
this.color = color
this.progress = progress
this.target = target
this.draw = function() {
target.innerHTML = '<canvas id="progressCircle"></canvas>'
var canvasCSS =
'#progressCircle {\
... | llaske/sugarizer | activities/Pomodoro.activity/js/progress.js | JavaScript | apache-2.0 | 1,830 |
/*! angular-fcsa-number (version 1.5.3) 2014-10-17 */
(function() {
var fcsaNumberModule,
__hasProp = {}.hasOwnProperty;
fcsaNumberModule = angular.module('fcsa-number', []);
fcsaNumberModule.directive('fcsaNumber', [
'fcsaNumberConfig', function(fcsaNumberConfig) {
var addCommasToInteger, control... | loansolutionsph/angular-fcsa-number | src/fcsaNumber.js | JavaScript | apache-2.0 | 6,982 |
var app = require('../config');
app.component('preloader', {
templateUrl: 'app/views/preloader.html',
controller: function () {
var element = document.getElementById("preloader");
element.setAttribute('class', 'on-load');
setTimeout(function () {
element.parentNode... | synchronit/synchronit_website | zensum/app/components/preloaderComponent.js | JavaScript | apache-2.0 | 373 |
/**
* @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... | mixed/lighthouse | lighthouse-core/test/audits/accessibility/aria-valid-attr-value-test.js | JavaScript | apache-2.0 | 1,492 |
(function() {
function ModalCtrl($uibModal, Room, $cookies) {
this.open = function() {
var modalInstance = $uibModal.open({
templateUrl: '/templates/modal.html',
controller: 'ModalInstanceCtrl as modalInstance'
})
... | Ayla-TK/bloc-chat | app/scripts/controllers/ModalCtrl.js | JavaScript | apache-2.0 | 704 |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {
/******/ // add "moreModules" to the modules o... | oldinaction/smweb | webpack/A03-jquery-server/dist/common.js.bundle.js | JavaScript | apache-2.0 | 29,635 |
var express = require('express');
var mongoose = require('mongoose');
var bodyParser = require('body-parser');
var app = express();
var authenticationController = require('./server/controllers/authentication-controller');
mongoose.connect('mongodb://localhost:27017/wavey');
app.use(bodyParser.json());
app.use('/app'... | AshKetchumza/Wavey-Webapp | app/server.js | JavaScript | apache-2.0 | 728 |
var net = require('net');
var client = new net.Socket();
client.setEncoding('utf8');
// connect to server
client.connect('8020', 'localhost', function () {
console.log('conected to server');
client.write('Browser is for weak');
});
// send data to server on receive
process.stdin.on('data', function (data) {
... | Dr762/NodeJSBase | servers/tcp_client.js | JavaScript | apache-2.0 | 521 |
/**
* @license Copyright 2016 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-core/audits/metrics/estimated-input-latency.js | JavaScript | apache-2.0 | 3,297 |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... | garrensmith/couchdb-fauxton | app/addons/fauxton/tests/nightwatch/highlightsidebar.js | JavaScript | apache-2.0 | 1,084 |