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 |
|---|---|---|---|---|---|
['../utils/Maths.js', '../lib/gems.js'];
namespace('models').Touch = new (function Touch(_dom, Maths, Vector) {
// Private class
function Finger(pos, vel) {
this.extend = gems.Model;
this.extend({
position: pos || new Vector(),
velocity: vel || new Vector()
});
};
// Inheritence
this.extend = gems.... | hamizmz/Devengo-Prototype | js/lib/Touch.js | JavaScript | apache-2.0 | 2,435 |
/**
* Created by Ali on 3/10/2015.
*/
"use strict";
const Hapi = require("hapi"),
path = require("path"),
fs = require("fs"),
logger_factory = require("../app_logger"),
Joi = require("joi"),
_isEmpty = require("lodash/isEmpty"),
app_config = require("../app_config").get_config();
const {prom... | gaaiatinc/valde-hapi | lib/server/index.js | JavaScript | apache-2.0 | 15,431 |
/**
*
*/
;
(function($, window, document, undefined) {
var pluginName = "fileUploadPropPane";
var defaults = {
id : "",
parent : "",
entity : "",
topparent : "",
currowner : "",
};
var BasicPropPanel = function(element, options) {
this.element = element;
this.options = $.extend({
id : "",
p... | CloudBPM/SwinFlowCloud-CloudSide | fm/src/main/webapp/js/pane/fileuploadproppane.js | JavaScript | apache-2.0 | 9,771 |
define(
({
map: {
error: "Kaarti ei saa luua"
},
general: {
map: "Kaart",
mapInfo: "Kaardi info",
legend: "Legend",
layers: "Kihid",
rendererTitle: "Kuva selle ala kohta infot",
summarize: "Kogu ala",
... | stolbov/chebinvest.github.io | js/nls/et/resources.js | JavaScript | apache-2.0 | 1,670 |
/**
* Copyright JS Foundation and other contributors, http://js.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 r... | HiroyasuNishiyama/node-red | packages/node_modules/@node-red/editor-api/lib/index.js | JavaScript | apache-2.0 | 4,200 |
define({tools:{search:{error:"स्थान नहीं मिल सका",notWhatYouWanted:"वह नहीं है जो आपने चाहा?",selectAnother:"अन्य स्थान चुनें",currentLocation:"वर्तमान स्थान",title:"लोकेशन"},basemap:{label:"बेसमैप",title:"कोई बेसमैप चुनें",close:"बंद"},legend:{title:"लिजेंड"},details:{title:"विवरण",error:"वेब मैप के विवरण को इस अनुभाग... | Esri/embed-template | build/js/nls/hi/resources.js | JavaScript | apache-2.0 | 1,773 |
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {SuperMap} from '../../SuperMap';
/**
* @c... | SuperMap/iClient9 | src/common/components/messagebox/MessageBox.js | JavaScript | apache-2.0 | 3,503 |
describe('fertilizersPurchased module', function() {
// instantiate service
var $log;
var fertilizersPurchased,
dap, dapName = 'DAP',
dairyManureStockpile, dairyManureStockpileName = 'Dairy manure stockpile',
superphosphate, superphosphateName = 'Superphosphate (Super)',
urea, ureaName = 'Urea';
... | FarmBuild/farmbuild-dairy-nutrient-calculator | src/fertilizers-purchased/index.spec.js | JavaScript | apache-2.0 | 5,848 |
'use strict';
angular
.module('mapProjectApp.widgets.mapProject', [ 'adf.provider' ])
.config(function(dashboardProvider) {
dashboardProvider.widget('mapProject', {
title : 'Map Project Details',
description : 'Map Project Details',
controller : 'MapProjectWidgetCtrl',
templateUrl : 'js/... | IHTSDO/OTF-Mapping-Service | rest/src/main/webapp/js/widgets/mapProject/mapProject.js | JavaScript | apache-2.0 | 11,363 |
var hotkeys = (function () {
var exports = {};
function do_narrow_action(action) {
action(current_msg_list.selected_id(), {trigger: 'hotkey'});
return true;
}
function focus_in_empty_compose() {
return (
compose.composing() &&
compose.message_content() === "" &&
$('#new_message_c... | dattatreya303/zulip | static/js/hotkey.js | JavaScript | apache-2.0 | 19,796 |
import { isEmpty } from 'lodash'
const validate = (payload, schema) => {
let errorDetails = schema.validate(payload)
let isValid = isEmpty(errorDetails)
if (isValid) return payload
else {
console.error(errorDetails)
return undefined
}
}
export default validate
| DrSensor/F.I.D.E | src/renderer/utils/validate.js | JavaScript | apache-2.0 | 281 |
/**
* Copyright 2019 The AMP HTML 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 o... | ampproject/amp-github-apps | owners/test/reviewer_selection.test.js | JavaScript | apache-2.0 | 12,552 |
const base = require('./base.js');
const slumber = base({
filter: ['saturate(0.66)', 'brightness(1.05)'],
customElementFilterBefore: {
background: 'rgba(69, 41, 12, 0.4)',
'mix-blend-mode': 'lighten'
},
customElementFilterAfter: {
background: 'rgba(125, 105, 24, 0.5)',
'mix-blend-mode': 'soft-l... | ctr-lang/ctr | lib/ctr-nodes/preset/filter/CSS-gram/_slumber.js | JavaScript | apache-2.0 | 361 |
$(document).ready(function(){
$(".nav ul li").eq(0).click(function(event) {
$('html,body').stop().animate({ scrollTop: 814}, 500)
});
$(".nav ul li").eq(1).click(function(event) {
$('html,body').stop().animate({ scrollTop: 1498}, 500)
});
$(".nav ul li").eq(2).click(function(event)... | linmingling/demo | zt/2016/qmjjg/three/js/index.js | JavaScript | apache-2.0 | 6,769 |
import { darkBlack } from '../../styles/modules/variables';
import { muiText } from '../../styles/modules/muiTypography';
const display1Text = muiText('display1');
const subheadText = muiText('subhead');
export default {
container: {
position: 'relative',
'& $circularProgressContainer': {
position: 'a... | veritone/veritone-sdk | packages/veritone-react-common/src/components/ProgressDialog/styles.js | JavaScript | apache-2.0 | 1,488 |
Grailbird.data.tweets_2011_10 =
[ {
"source" : "\u003Ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003ETweetDeck\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ {
"name" : "DJ Adams",
"screen_name" : "qmacro",
"indices" : [ 0, 7 ],
"id_str" : "47414... | mhawksey/mhawksey.github.io | tweets/data/js/tweets/2011_10.js | JavaScript | apache-2.0 | 365,720 |
import {MapWrapper} from 'angular2/src/facade/collection';
//import {int} from 'angular2/src/facade/lang';
// TODO: uncoment `int` once https://github.com/angular/angular/issues/1414 is fixed
/**
* A unique object used for retrieving items from the [Injector].
*
* [Key]s have:
* - a system-wide unique [id].
* - ... | srawlins/angular | modules/angular2/src/di/key.js | JavaScript | apache-2.0 | 1,576 |
(function() {
Ti.DB = _.extend(Ti.DB, {
name: 'socialmenuDBTest'
});
Ti.include('../lib/jasmine-1.0.2.js');
Ti.include('../lib/jasmine-titanium.js');
Ti.include('../lib/mock-ajax.js');
Ti.include('models/UserSpec.js');
Ti.include('models/MenuSpec.js');
Ti.include('models/DishSpec.js');
Ti.... | yuchenzhang/social_menu_tt | Resources/specs/tests.js | JavaScript | apache-2.0 | 715 |
import JwtSparkLine from 'Scripts/Modules/jwtComponents/JwtSparkLine.js';
var JwtNode=React.createClass({
getInitialState:function(){
return {data:[], pageNo:1, dataStorage:null, isFilter:false, isExpanded:false}
},
getDefaultProps:function(){
return {options:{}}
},
getLinks:function(row, col,... | JUkhan/directives | reactApp/Scripts/Modules/jwtComponents/src/JwtNode.js | JavaScript | apache-2.0 | 3,289 |
'use strict';
var BackboneAdaptor = require('../../../adaptors/backbone');
var BaseModel = BackboneAdaptor.Model;
var BaseCollection = BackboneAdaptor.Collection;
var Backbone = BackboneAdaptor.Backbone;
var logger = require('../../../src/utils/logger');
describe('base_model.js static api', function() {
describe('e... | cgvarela/tungstenjs | test/adaptors/backbone/base_model_spec.js | JavaScript | apache-2.0 | 53,557 |
/**
***随机节点类
***作成日期 2014/7/18
*/
(function () {
var Class = ZYDesign.Class;
// 随机节点类 继承自工具节点类
Class.RandomNode = (function () {
/**
随机节点类
*/
function RandomNode() {
if (!(this instanceof RandomNode)) {
return;
}
... | emksaz/choicefrom | development/de-app/script/model/node_random_model.js | JavaScript | apache-2.0 | 8,048 |
function onReady() {
var btnExpandAll = Ext.getCmp(IDS.btnExpandAll);
var btnCollapseAll = Ext.getCmp(IDS.btnCollapseAll);
var mainMenu = Ext.getCmp(IDS.mainMenu);
var mainTabStrip = Ext.getCmp(IDS.mainTabStrip);
var windowSourceCode = Ext.getCmp(IDS.windowSourceCode);
function getExpa... | dushougudu/CraneAlert | CraneAlert/CraneAlert/Scripts/default.js | JavaScript | apache-2.0 | 3,529 |
var toString = Object.prototype.toString;
function noop () { }
function isFunction (fn) {
return toString.call(fn) === '[object Function]';
}
function objectOrFunction(x) {
return isFunction(x) || (typeof x === "object" && x !== null);
}
| haghard/splanet | web/bootstrap/RxJS/src/core/promise/utils.js | JavaScript | apache-2.0 | 279 |
// 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... | chone/closure-library | closure/goog/fs/fs_test.js | JavaScript | apache-2.0 | 23,765 |
/**
* @method FS.Collection.prototype.filters
* @public
* @param {Object} filters - File filters for this collection.
* @returns {undefined}
*/
FS.Collection.prototype.filters = function fsColFilters(filters) {
var self = this;
// Check filter option values and normalize them for quicker checking later
if (... | bompi88/concept | packages/collection-filters/filters.js | JavaScript | apache-2.0 | 6,381 |
/*global QUnit*/
sap.ui.define([
"sap/ui/dt/enablement/ElementEnablementTest",
"sap/m/Button",
"sap/ui/thirdparty/sinon-4"
],
function (
ElementEnablementTest,
Button,
sinon
) {
"use strict";
var fnTestInterface = function(assert, oEntry) {
assert.ok(true, "... then '" + oEntry.name + " Entry' : Test Interf... | SAP/openui5 | src/sap.ui.dt/test/sap/ui/dt/qunit/enablement/ElementEnablement.qunit.js | JavaScript | apache-2.0 | 2,401 |
var searchData=
[
['ball_5fimage',['BALL_IMAGE',['../a00002.html#aea3d98d4944ae809995fdf367d37c98e',1,'constants.h']]],
['bonus_5fimage',['BONUS_IMAGE',['../a00002.html#af3432ceb64286e0384ec138577399f71',1,'constants.h']]],
['bottom_5fbar_5fimage',['BOTTOM_BAR_IMAGE',['../a00002.html#aeeeeca40a933a903d8d0b35c6d9f... | Bokoblin/DUTS2-POO-ProjetRunner | docs/search/variables_1.js | JavaScript | apache-2.0 | 348 |
'use strict';
var common = require('../common');
var assert = common.assert;
describe('JsonParser', function () {
var parse = require('../../lib/parser/JsonParser');
it('should parse valid json without error', function (done) {
var validJson = '{"abc":"123","def":[3,1,2]}';
parse(validJson, function (err... | stormpath/stormpath-node-config | test/parser/JsonParserTest.js | JavaScript | apache-2.0 | 1,127 |
var MouseEventType;
(function (MouseEventType) {
MouseEventType[MouseEventType["CLICK"] = "click"] = "CLICK";
MouseEventType[MouseEventType["UP"] = "mouseup"] = "UP";
MouseEventType[MouseEventType["DOWN"] = "mousedown"] = "DOWN";
MouseEventType[MouseEventType["OVER"] = "mouseover"] = "OVER";
MouseEv... | BabylonJS/Samples | build/Scenes/prosecution/js/utils/event/MouseEventType.js | JavaScript | apache-2.0 | 460 |
var dwpApiKey = "";
var dwpDemoMode = true;
var dwpDemoLoc = "39.953333,-75.17";
var dwpCallLimit = 40; | dkirker/dash-weather-plus | source/config.js | JavaScript | apache-2.0 | 103 |
var QueryCaCardGrid = Ext.extend(Ext.grid.GridPanel, {
caStore: null,
cardId: null,
constructor: function () {
this.caStore = new Ext.data.JsonStore({
url:Constant.ROOT_PATH + "/core/x/Prod!queryCaCommand.action",
root: 'records',
totalProperty: 'totalProperty... | leopardoooo/cambodia | boss-core/src/main/webapp/pages/index/toptoolbar/SendCaCard.js | JavaScript | apache-2.0 | 8,670 |
'use strict';
const babelify = require('babelify');
const browserSync = require('browser-sync');
const browserify = require('browserify');
const fs = require('fs');
const gulp = require('gulp');
const gulpAutoprefixer = require('gulp-autoprefixer');
const gulpConcat = require('gulp-concat');
const gulpImageDataURI = r... | kjirou/retry-heroes | gulpfile.js | JavaScript | apache-2.0 | 6,364 |
// 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 applicable... | ussuri/axiom | lib/wash/washrc.js | JavaScript | apache-2.0 | 3,366 |
const
{ ChildProcessReporter } = require('@integration/testing-tools'),
{ actorCalled, configure, Duration, Interaction, StreamReporter } = require('@serenity-js/core');
describe('Jasmine reporting', () => {
const
notEnough = Duration.ofMilliseconds(50),
tooLong = Duration.ofMilliseconds(2... | jan-molak/serenity-js | integration/jasmine/examples/screenplay/ability-discard-timeout.spec.js | JavaScript | apache-2.0 | 1,288 |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | egobrightan/material-design-lite | src/radio/radio.js | JavaScript | apache-2.0 | 6,930 |
/*
* taskboard.js - should be loaded while rendering taskboard for each project
* Uses Knockout.js to monitor changes in DOM
*
*/
(function(window, document, ko){
'use strict';
//my extension for knockout
var dragitem = null;
//actual ko code
ko.utils.extend(ko.bindingHandlers, {
cardext : {
init : fun... | botsie/dirt | public/js/taskboard.js | JavaScript | apache-2.0 | 10,845 |
import React, { Component } from 'react';
class Header extends Component {
render() {
return (
<nav className="navbar navbar-inverse navbar-fixed-top">
<div className="container">
<div className="navbar-header">
<button type="button" className="navbar-toggle collapsed" data-toggle="c... | mitre/ptmatchadapter | examples/ptmatchadapter-fril/src/main/es6/components/Header.js | JavaScript | apache-2.0 | 1,114 |
'use strict';
angular.module('mwHelper', [])
.directive('mwSetDirtyOn', function(){
return {
restrict: 'A',
scope: {
mwSetDirtyOn: '@'
},
require: '^form',
link: function (scope, elm, attr, formCtrl) {
elm.on(scope.mwSetDirtyOn, function(){
formCtrl.$setDi... | mwaylabs/uikit | src-relution/mwHelper.js | JavaScript | apache-2.0 | 6,834 |
/*
Copyright 2014-2015, Marten de Vries
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, ... | pouchdb/pouchdb-server | packages/node_modules/pouchdb-auth/lib/index.js | JavaScript | apache-2.0 | 3,259 |
/* ***** LICENSE BLOCK *****
* Version: GPL 3
*
* This program is Copyright (C) 2007-2008 Aptana, Inc. All Rights Reserved
* This program is licensed under the GNU General Public license, version 3 (GPL).
*
* This program is distributed in the hope that it will be useful, but
* AS-IS and WITHOUT ANY WARRANTY; wi... | Himkwok/TaxEasy | Aptana Jaxer/jaxer/framework/src/ParseStart.js | JavaScript | apache-2.0 | 4,367 |
require([
"modules/MapController",
"modules/Palette",
"modules/Portal",
"modules/Utils"
], function(MapController, Palette, Portal, Utils) {
//Session Variables-----------------------------------------------------------------------------
var mapController = new MapC... | maplabs/mapstyler | js/mapstyler.js | JavaScript | apache-2.0 | 15,572 |
'use strict';
const helper = require('./template-parser-helper');
// eslint-disable-next-line node/no-unpublished-require
const SafeParser = require('postcss-safe-parser/lib/safe-parser');
const templateTokenize = require('./template-tokenize');
class TemplateSafeParser extends SafeParser {
createTokenizer() {
thi... | kyleterry/sufr | pkg/ui/node_modules/@stylelint/postcss-css-in-js/template-safe-parser.js | JavaScript | apache-2.0 | 623 |
/**
* Copyright 2013-2018 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | jkutner/generator-jhipster | generators/generator-base.js | JavaScript | apache-2.0 | 112,045 |
/* A suite of tests for the SelectedLayerViewModel AMD.
* Copyright (c) 2014 University of Oxford
*/
define([
"app/datavalidation/SelectedLayerViewModel",
"ko",
"underscore"
], function (SelectedLayerViewModel, ko, _) {
"use strict";
describe("The 'selected layer' view model", function () {
... | SEEG-Oxford/ABRAID-MP | src/PublicSite/web/js/app/spec/datavalidation/SelectedLayerViewModelSpec.js | JavaScript | apache-2.0 | 10,258 |
import { setPropertiesFromJSON } from '../../json-helper';
/**
* Generated class for shr.core.ContentType.
*/
class ContentType {
/**
* Get the value (aliases code).
* @returns {code} The code
*/
get value() {
return this._code;
}
/**
* Set the value (aliases code).
* @param {code} value... | standardhealth/flux | src/model/shr/core/ContentType.js | JavaScript | apache-2.0 | 1,095 |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... | karlmoser/Video-Annotation | web/public/js/dashjs/src/streaming/StreamProcessor.js | JavaScript | apache-2.0 | 25,089 |
define(function (require) {
"use strict";
var net = require("net");
var env = require("utils/environment");
/**
* Subscription request for receiving UPnP events from media devices
*
* @param {Object} opts
* @param {string} opts.remoteIp ... | oddbit/sonosjs | src/ssdp/subscribe.js | JavaScript | apache-2.0 | 3,415 |
// This is an automatically generated file, created by nitpick
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);
if (typeof depth === 'undefined') {
depth = 0;
nitpick = createN... | highfidelity/hifi_tests | tests/content/entity/model/modelReaders/testRecursive.js | JavaScript | apache-2.0 | 856 |
// Copyright 2019 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/nodejs-translate | samples/test/v3beta1/translate_create_glossary_beta.test.js | JavaScript | apache-2.0 | 2,128 |
define(function(require, exports, module) {
var $ = require('jquery');
require('jquery-form')($);
require('superslide')($);
require('placeholder');
var page = 2;
var totalPages = 3;
$(document).ready(function(){
$(".slideBox").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true,interTime:5000});
... | yanguangkun/KunSoftware_Tour | webapp/js/front/product-list-g.js | JavaScript | apache-2.0 | 2,501 |
/* ************************************************************************
APPUDO CLI Creator
https://www.appudo.com
Copyright: 2018 Appudo UG (haftungsbeschränkt), https://www.appudo.com
License: MIT License, https://opensource.org/licenses/MIT
Authors: source@appudo.com
*************************... | Appudo/Appudo.github.io | cli/source/class/appudo_cli_creator/view/desktop/I18nValueList.js | JavaScript | apache-2.0 | 10,482 |
(function () {
'use strict';
angular
.module('va.canvas')
.directive('vandaidPaper', vandaidPaper);
/* @ngInject */
function vandaidPaper() {
var directive = {
replace: true,
transclude: true,
restrict: 'E',
templateUrl: '/src/client/vandaid/canvas/paper.directive.html',
... | KevinDufendach/VandAID | src/client/vandaid/canvas/paper.directive.js | JavaScript | apache-2.0 | 378 |
import styled, { css } from 'react-emotion';
import { queries } from './mediaQueries';
export const resultItemDetails = css`
color: #a2a2a2;
position: relative;
div:not(:first-child) {
border-left: 1px solid #eee;
}
`;
export const resultListContainer = css`
margin-top: 60px;
${queries.xLarge`
margin-top... | appbaseio/reactivesearch | site/demos/gitxplore-dark/src/styles/ResultItem.js | JavaScript | apache-2.0 | 1,411 |
var getWifiInfo = function(win, fail) {
if (typeof win != 'function') {
console.log('getWifiInfo first parameter must be a function to handle wifi info');
return;
}
cordova.exec(win, fail, 'WifiInfo', 'getWifiInfo', []);
};
module.exports = {getWifiInfo: getWifiInfo};
| hgenru/cordova-plugin-wifiinfo | www/wifiinfo.js | JavaScript | apache-2.0 | 298 |
import { prop, computed, bundle } from 'frptools';
import { defineElement as el } from '../../utils/domvm.js';
import { ImageType } from '../../data/image.js';
import { FileType } from '../../data/file.js';
import { pouchDocHash } from '../../utils/conversion.js';
import { styled } from '../../services/style.js';
impo... | explorigin/portfolio | packages/gallery/src/interface/components/attachmentImage.js | JavaScript | apache-2.0 | 1,281 |
angular.module('mwUI.Form')
.directive('ngModel', function () {
return {
require: ['ngModel', '?^ngModelErrors', '?^mwInputWrapper'],
link: function (scope, el, attrs, ctrls) {
var ngModelCtrl = ctrls[0],
ngModelErrorsCtrl = ctrls[1],
mwInputWrapperCtrl = ctrls[2],
... | mwaylabs/uikit | src/mw-form/directives/ng_model.js | JavaScript | apache-2.0 | 2,102 |
var UpnpManager;
(function(){
var socket = chrome.socket;
// SSDP definitions
var M_SEARCH_REQUEST = "M-SEARCH * HTTP/1.1\r\n" +
"MX: 3\r\n" +
"HOST: 239.255.255.250:1900\r\n" +
"MAN: \"ssdp:discover\"\r\n" +
"ST: {{st}}\r\n\r\n";
// UPnP classes
UpnpManager = function(){};
UpnpManager... | est/push2air | src/dlna-device-inspector/models/dlna_communicator/upnpmanager.js | JavaScript | apache-2.0 | 2,055 |
export default
[
{
question: '分手时的想法是',
answers: ['优柔寡断', '当断则断']
},
{
question: '参加聚会时,你更喜欢',
answers: ['坐在角落,默默观察大家', '和朋友一起坐在中央欢快地聊天游戏']
},
{
question: '一个人在家待一整天,我会觉得',
answers: ['安静舒适', '无聊难耐']
},
{
question: '当一个目标完成之后',
answers: ['会想再做点什么,满足自己的野心', '先歇一歇,或者等待新的目标出现']
},
... | airingursb/two-life | src/constants/questions.js | JavaScript | apache-2.0 | 2,182 |
#!/usr/bin/env node
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/lice... | tessel/colony-compiler | bin/colony-compiler.js | JavaScript | apache-2.0 | 1,404 |
/**
* @license
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | osric-the-knight/foam | js/foam/ui/RadioBoxView.js | JavaScript | apache-2.0 | 1,729 |
"use strict";
var Parser = require ('./ex8.js').Parser;
var lexer = new Parser ().lexer;
var fs = require ('fs');
var data = fs.readFileSync('./program.php').toString();
lexer.setInput (data);
var tokens = [];
var s = null;
do
{
try
{
s = lexer.next ();
}
catch (e)
{
console.log (... | UPB-FILS/ALF | TP/TP4/main8.js | JavaScript | apache-2.0 | 635 |
'use strict';
let lib = {
"_id": "5d9321f8b40e09438afbd0c9",
"type": "product",
"oauth": {
secret: "this is a secret",
redirectURI: "http://domain.com",
grants: [
"password",
"refresh_token"
],
disabled: 0,
type: 2.0,
loginMode... | soajs/soajs.urac | test/data/integration/tenants/test.js | JavaScript | apache-2.0 | 8,386 |
module.exports = function (){
return {
//Defaults.
analyticsUrl: 'https://cloudboost.io/cluster-analytics/',
globalDb : "_GLOBAL",
globalSettings : "_Settings",
slackWebHook : process.env['SLACK_WEBHOOK']
};
};
| CloudBoost/cloudboost | storage-analytics-service/database-connect/key.js | JavaScript | apache-2.0 | 261 |
"use strict";
var InputController = {};
window.sha1 = function() {};
String.prototype.codePointAt = function(index) {};
/**
* @type {(function(Object):!Editable)}
*/
InputController.createEditable = function() {};
InputController.disable = function() {};
InputController.enable = function() {};
var Editable = {};... | cicakhq/potato | web-app/src/cljs/externs-input.js | JavaScript | apache-2.0 | 969 |
sap.ui.define([
'jquery.sap.global',
'sap/ui/core/mvc/Controller',
'sap/ui/model/json/JSONModel'
], function(jQuery, Controller, JSONModel) {
"use strict";
var ListController = Controller.extend("sap.m.sample.DisplayListItem.List", {
onInit: function () {
// set explored app's demo model on this sample
... | cschuff/openui5 | src/sap.m/test/sap/m/demokit/sample/DisplayListItem/List.controller.js | JavaScript | apache-2.0 | 487 |
(self._S=self._S||[]).push((function(){var ta={};ra();console.log("in b");self.System.import("sample/lib/a").then(function(a){console.log("imported sample/lib/a");a.test()});ta.test=function(){console.log("loaded b")};(self._S=self._S||[])["//sample/lib/b.js"]=ta;}));
//# sourceMappingURL=sample-lib-b.js.map
| cramforce/splittable | sample/out/sample-lib-b.js | JavaScript | apache-2.0 | 311 |
define(
"dojo/cldr/nls/en-hk/gregorian", //begin v1.x content
{
"dateFormatItem-yMMMEd": "EEE, d MMM, y",
"dateFormatItem-Md": "d/M",
"dateFormatItem-yMEd": "EEE, d/M/yyyy",
"dateFormatItem-MEd": "E, d/M",
"dateFormatItem-MMMMEd": "E, d MMMM",
"dateFormat-medium": "d MMM, y",
"dateFormatItem-MMMd": "d MMM",
"d... | WASdev/skunkworks.libertycar | LibertyCar/WebContent/remote/dojo-release-1.7.4/dojo/cldr/nls/en-hk/gregorian.js | JavaScript | apache-2.0 | 514 |
var mongoose = require('mongoose');
// create a schema
var SkillSchema = new mongoose.Schema({
text: String,
ord: Number,
});
module.exports = mongoose.model('Skill', SkillSchema);
| frederick623/cand_mgmt | models/SkillModel.js | JavaScript | apache-2.0 | 187 |
/**
* Utility functions for tabulator
*/
/**
* A function emulating Scheme's filter. Should have been part of JavaScript so
* it is global.
*/
function filter(func, list) {
//tdebug("entered filter with list length=" + list.length);
var output = [];
for (var elt in list) {
//tdebug("elt=" + list[elt]... | chb/survey_client | survey/resources/tabulator/util.js | JavaScript | apache-2.0 | 3,816 |
const bodyParser = require('body-parser');
const express = require('express');
const app = express();
const port = process.env.PORT || 3000;
app.use(bodyParser.json());
const data = new Map();
const getMissingProperties = (body) => {
const expectedProperties = ['organization_guid', 'space_guid', 'service_name', ... | cloudfoundry-incubator/cf-abacus | test/test-utils/static-apps/resources/test-mapping-app/app.js | JavaScript | apache-2.0 | 1,808 |
// NPM IMPORTS
// import assert from 'assert'
// import _ from 'lodash'
// COMMON IMPORTS
import T from '../utils/types'
import CollectionBase from './collection_base'
// const context = 'common/base/collection'
/**
* Instance objects collection.
*
* @author Luc BORIES
* @license Apache-2.0
*
... | lucbories/devapt-core-common | src/js/base/collection.js | JavaScript | apache-2.0 | 2,710 |
var classorg_1_1onosproject_1_1store_1_1intent_1_1impl_1_1PartitionManagerTest_1_1TestLeadershipService =
[
[ "addListener", "classorg_1_1onosproject_1_1store_1_1intent_1_1impl_1_1PartitionManagerTest_1_1TestLeadershipService.html#a25c3866e0f2421e1a480089fce660e21", null ]
]; | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1store_1_1intent_1_1impl_1_1PartitionManagerTest_1_1TestLeadershipService.js | JavaScript | apache-2.0 | 280 |
/*
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 in writing, software
dis... | mauricionr/simpl | video/button/js/main.js | JavaScript | apache-2.0 | 1,086 |
/**
* Copyright (c) 2016 OffGrid Networks. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | nodekit-io/nodekit-darwin | src/samples/sample-nodekit/app/server/index.js | JavaScript | apache-2.0 | 2,260 |
db.Players.remove({
name : "ldaniels"
});
db.Players.insert({
"_id" : ObjectId("51a308ac50c70a97d375a6b2"),
"acquaintances" : [ "naughtymonkey" ],
"awards" : [ "MADMONEY", "CHKDFLAG", "FACEBOOK", "PERK" ],
"country" : "us",
"email" : "lawrence.daniels@gmail.com",
"facebookID" : "1796471892",
"favorites" : [ "RO... | ldaniels528/shocktrade-server | testscripts/players/ldaniels.js | JavaScript | apache-2.0 | 4,654 |
/* global xit */
'use strict';
import should from 'should';
import {engine} from '../fixtures';
export default function vrecTests() {
xit('should return visually similar results given an id', (done) => {
engine.vrec({
id: 7764071
})
.end((err, res) => {
should.not.exist(err);
should.... | blackbirdtech/merlin.js | test/suite/vrec.js | JavaScript | apache-2.0 | 370 |
var searchData=
[
['short_5ftopic',['short_topic',['../structmqtt__sn__task__t.html#a3d9e943523a4987c87d38c91a8284f6a',1,'mqtt_sn_task_t']]]
];
| aignacio/homestark_6LoWPAN | doxy_files/html/search/variables_9.js | JavaScript | apache-2.0 | 146 |
window.minterface = function(task,args,success,error) {
cordova.exec(success, error, "mInterface", task, args);
};
| chakm72/mInterface2.0 | www/mInterface.js | JavaScript | apache-2.0 | 116 |
/*!
* ${copyright}
*/
sap.ui.define([
"sap/ui/test/_OpaLogger",
"sap/ui/test/_ParameterValidator",
"sap/ui/test/autowaiter/_autoWaiter",
"sap/ui/test/_LogCollector",
"sap/ui/thirdparty/jquery"
], function(_OpaLogger, _ParameterValidator, _autoWaiter, _LogCollector, $) {
"use strict";
var oLogger = _OpaLogger... | SAP/openui5 | src/sap.ui.core/src/sap/ui/test/autowaiter/_autoWaiterAsync.js | JavaScript | apache-2.0 | 2,781 |
/**
* NOTE TO SELF: To run sequelize commands, use the following
*
* TO Drop everything from the DB, run the following.
* - sequelize db:migrate:undo or sequelize db:migrate:undo:all
*
* TO CREATE A NEW MODEL
* - sequelize model:create --name Users --attributes 'name:string, password:string'
*
* THEN AFTER YOU... | HappyZombies/RaGooey | src/db/models/index.js | JavaScript | apache-2.0 | 1,705 |
var applab_locale = {lc:{"ar":function(n){
if (n === 0) {
return 'zero';
}
if (n == 1) {
return 'one';
}
if (n == 2) {
return 'two';
}
if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) {
return 'few';
}
if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) {
retu... | ty-po/code-dot-org | dashboard/public/apps-package/js/lt_lt/applab_locale-2618248531e5405f99af85e4740354d8.js | JavaScript | apache-2.0 | 46,634 |
/**
* Created by Otávio on 18/08/2015.
*/
(function() {
'use strict';
angular.module("oobjDirectives").directive("crud", crud);
crud.$inject = ['$rootScope'];
function crud($rootScope) {
return {
restrict: 'E',
templateUrl: 'app/directives/crud/crud.html',
... | otaviocx/CursoAngularJS | app/directives/crud/crud.js | JavaScript | apache-2.0 | 1,188 |
webpackHotUpdate(4,[
/* 0 */
/***/ function(module, exports, __webpack_require__) {
var React = __webpack_require__(2);
var ReactDOM = __webpack_require__(158);
var bootstrap = __webpack_require__(159);
var centerDiv = {
textAlign: "center",
margin: "0 auto"
};
var buttonStyle = {
width: '100%'... | JivaGzw/Gaddress | build/4.24a83207d2c6c185d59d.hot-update.js | JavaScript | apache-2.0 | 5,459 |
var Hapi = require('hapi'),
path = require('path'),
port = process.env.PORT || 3000,
server = new Hapi.Server(port),
routes = {
css: {
method: 'GET',
path: '/styles/{path*}',
handler: createDirectoryRoute('styles')
},
js: {
method: ... | cuzoaru90/bloc-time | server.js | JavaScript | apache-2.0 | 1,298 |
const YAML = Meteor.npmRequire("js-yaml");
const HTTPS = Npm.require("https");
OS = Npm.require("os");
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var basicAuth;
var hostname;
function isInArray(value, array) {
return array.indexOf(value) > -1;
}
/**
* @return {null}
*/
function URISplitter(toSplit, segment... | membrane/api-management | server/server.js | JavaScript | apache-2.0 | 45,098 |
/*
Copyright 2010-2013 SourceGear, 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | glycerine/vj | src/veracity/src/js_tests/longtests__st_merge_delete_vs_edit__SPRAWL_912_01.js | JavaScript | apache-2.0 | 8,352 |
var namespace_f_h_s_d_k_1_1_config =
[
[ "FHConfig", "class_f_h_s_d_k_1_1_config_1_1_f_h_config.html", "class_f_h_s_d_k_1_1_config_1_1_f_h_config" ]
]; | feedhenry/fh-dotnet-sdk | Documentations/html/namespace_f_h_s_d_k_1_1_config.js | JavaScript | apache-2.0 | 155 |
sap.ui.controller("shine.democontent.epm.spatial.view.main", {
// instantiated view will be added to the oViewCache object and retrieved from there
oViewCache: {},
onInit: function() {
sap.app.mainController = this;
},
/**
* getCachedView checks if view already exists in oViewCache object, will create it... | marionschlotte/hana-shine-xsa | site-web/resources/spatial/view/main.controller.js | JavaScript | apache-2.0 | 5,014 |
var searchData=
[
['ub_0',['ub',['../classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#a68fffc459264c22ae1c6ef0774f06036',1,'com.google.ortools.linearsolver.MPVariable.ub()'],['../classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a68fffc459264c22ae1c6ef0774f06036',1,'com.google.ortools... | google/or-tools | docs/java/search/functions_12.js | JavaScript | apache-2.0 | 3,351 |
console.log("%cTesting for random", "color: blue; font-size: 20pt;");
for(let i = 0; i < 100; i++){
console.log(BigArith.random());
} | osofem/BigArith.js | test/random.js | JavaScript | apache-2.0 | 139 |
var util = require('util');
var url = require('url');
var OAuth2Strategy = require('passport-oauth2');
var Profile = require('./profile');
var InternalOAuthError = OAuth2Strategy.InternalOAuthError;
/**
* `Strategy` constructor.
*
* The Gumroad authentication strategy authenticates requests by delegating to
* Gum... | SamyPesse/passport-gumroad | lib/strategy.js | JavaScript | apache-2.0 | 3,551 |
/* global define: false */
define([], function() {
'use strict';
var builtInResources = {
'application': 0,
'user': 1,
'group': 2,
'group membership': 3,
'authorization': 4,
};
var mapParameters = function(permissionName, resource, resourceId) {
var request = {};
request.permissi... | nagyistoce/camunda-commons-ui | lib/directives/showIfAuthorized.js | JavaScript | apache-2.0 | 1,963 |
/* Copyright (C) 2013-2014 Computer Sciences Corporation
*
* 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... | ezbake/globalsearch | src/main/webapp/lib/jquery/jquery.cookie.js | JavaScript | apache-2.0 | 2,731 |
var express = require('express');
var router = express.Router();
var ObjectId = require('mongodb').ObjectId
var Q = require('q');
var dbConf = require('../db');
router.get('/', function(req, res, next){
// console.log('req', req.query);
var filter = {};
if(!!req.query.query) filter.Client = new RegExp(req.... | ShuangLei/MSI_QS | routes/interview.js | JavaScript | apache-2.0 | 2,069 |
/*
* Copyright (c) 2015-2016 Dilvan Moreira.
* Copyright (c) 2015-2016 John Garavito.
*
* 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... | DilvanLab/Decisioner | grails-app/assets/javascripts/ace-min-noconflict/snippets/handlebars.js | JavaScript | apache-2.0 | 802 |
'use strict';
import _ from 'lodash';
const angular = require('angular');
module.exports = angular.module('spinnaker.kubernetes.pipeline.stage.runJobStage', [
require('kubernetes/container/commands.component.js'),
require('kubernetes/container/arguments.component.js'),
require('kubernetes/container/environment... | kenzanlabs/deck | app/scripts/modules/kubernetes/pipeline/stages/runJob/runJobStage.js | JavaScript | apache-2.0 | 4,166 |
/*
* Copyright 2017 Alexander Pustovalov
*
* 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... | ipselon/structor | src-client/api/app/restApi.js | JavaScript | apache-2.0 | 2,785 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/reactstrap/lib/ButtonGroup.js | JavaScript | apache-2.0 | 1,682 |
angular.module('app.services', [])
.factory("MessageDatabase", function() {
/* I used jQueries AJAX calls to query the Flask routes. I ran into an issue attempting to use angulars $http calls
, where due to asynchronous calls the data wasn't being set so I used AJAX with async: false to work around it.
... | ImErvin/SecretMessage | static/js/services.js | JavaScript | apache-2.0 | 5,319 |
/**
* Created by towek on 1/6/2017.
*/
function triggerDraw(){
trigger.clearRect(0, 0, canvasWidth, canvasHeight);
//player
trigger.fillStyle= player.color
trigger.fillRect(player.x, player.y, player.width, player.height)
//point
trigger.fillStyle= point.color
trigger.fillRect(point.x, point.y, point.... | dmbsk/blockster | src/js/trigger.js | JavaScript | apache-2.0 | 1,145 |