code
stringlengths
2
1.05M
var debug = true; // REF: http://stackoverflow.com/questions/281264/remove-empty-elements-from-an-array-in-javascript Array.prototype.clean = function(deleteValue) { for (var i = 0; i < this.length; i++) { if (this[i] == deleteValue) { this.splice(i, 1); i--; } } ret...
import { Vue } from '../../../vue' import { EVENT_NAME_ROW_CLICKED, EVENT_NAME_ROW_CONTEXTMENU, EVENT_NAME_ROW_DBLCLICKED, EVENT_NAME_ROW_MIDDLE_CLICKED } from '../../../constants/events' import { CODE_DOWN, CODE_END, CODE_ENTER, CODE_HOME, CODE_SPACE, CODE_UP } from '../../../constants/key-codes' i...
/* * catberry-nunjucks * * Copyright (c) 2015 JC Ivancevich and project contributors. * * catberry-nunjucks's license follows: * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software witho...
// Max number of simultaneous connections to allow. export const DEFAULT_MAX_CONNECTIONS = 5; // Max data buffer size for render requests. export const MAX_DATA_BUFFER_SIZE = 2048; // Character sequence to mark end of request data. export const DATA_END_MARKER = '\r\n.'; export default {};
const pathToUrl = require("./path-to-url"); const projectPath = require("./project-path"); const fs = require("fs"); module.exports = function (jsDest, dest, filename) { filename = filename || "rev-manifest.json"; return function () { const plugin = { name: "webpackManifest" }; this.hooks.done.tap(plugin...
const fs = require("fs"); const { Geneva } = require("../lib/base"); const chai = require("chai"); const expect = chai.expect; describe("Read File", function () { context("when given a filepath", function () { it("renders the string", function () { const geneva = new Geneva({ fs }); const results = g...
module.exports = { devtool: 'eval-source-map', entry: ['babel-polyfill',__dirname + '/app/App.js'], output: { path: __dirname + '/public', filename: 'bundle.js' }, debug: true, // stats: { // colors: true, // reasons: true, // }, // plugins: [ // new webpack.HotModu...
(function() { var Behavior, ScrollbarStyleObserver, behavior, observer; Behavior = require('emissary').Behavior; ScrollbarStyleObserver = require('bindings')('scrollbar-style-observer').ScrollbarStyleObserver; observer = new ScrollbarStyleObserver(function() { return behavior.emitValue(observer.getPrefer...
"use strict"; var mongoose = require('mongoose'), PlayerSchema = require('../schema/PlayerSchema'); var Player = mongoose.model('Player', PlayerSchema); module.exports = Player;
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var ComponentToHex = require('./ComponentToHex'); /** * Converts the color values into an HTML compatible color stri...
BaseController = RouteController.extend({ onBeforeAction: function () { Session.set('route', this.route._path); this.next(); } });
/** * Created by adelmo.pereira on 11/11/2016. */ (function() { 'use strict'; angular .module('pandora') .factory('stateHandler', stateHandler); stateHandler.$inject = ['$rootScope', '$state', '$window', 'Auth', 'Principal']; function stateHandler($rootScope, $state, $window, ...
import HyperSpotifyOverlayFactory from './HyperOverlay'; import HyperSpotifyWidgetFactory from '../containers/HyperSpotifyWidget'; export const HyperSpotifyFooterFactory = (React) => { const HyperSpotifyOverlay = HyperSpotifyOverlayFactory(React); const HyperSpotifyWidget = HyperSpotifyWidgetFactory(React); con...
var oauthModule = require('./oauth') , url = require('url'); var tripitModule = module.exports = oauthModule.submodule('tripit') .apiHost('https://api.tripit.com') .oauthHost('https://api.tripit.com') .entryPath('/auth/tripit') .callbackPath('/auth/tripit/callback') .redirectToProviderAuth( function (res, ...
module.exports = [ [false, false, false, true, true, true, true, false, false, false], [false, false, true, true, true, true, true, true, false, false], [false, false, true, true, false, false, true, true, false, false], [false, true, true, false, false, false, false, true, true, false], [false, tru...
import React, { createElement } from 'react'; import { unmountComponentAtNode, render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { ReduxAsyncConnect } from 'redux-connect'; import { AppContainer } from 'react-hot-loader'; import getRoutes from '../share/routes.js'; import createS...
var octobit= require('.././index.js') var struct= new octobit( require('./example.octo.json') ) // full example var getQuery= { requestId: 35 , requestType: {get: true, ack: true, noProxy: true} , timestamp: Date.now() , notInStruct: 'xyz' // ignored as not in structure , key: new Buffer('108827d...
(function ($, _, Backbone, collections, model) { "use strict"; collections.Dashboard = Backbone.Collection.extend({ model: model, url: '/api/dashboards', initialize: function() { this.isFetched = false; this.bind('reset', this.onReset, this); }, onReset: function() { this.is...
const Note = require('mongoose').model('Note') const Product = require('mongoose').model('Product') const User = require('mongoose').model('User') module.exports.add = (req, res) => { Product.findById(req.body.product).then(product => { User.findOne({ username: req.body.username }).then(user => { le...
/* * bubbletip * * Copyright (c) 2009-2010, UhLeeKa. * Version: * 1.0.6 * Licensed under the GNU Lesser General Public License: * http://www.gnu.org/licenses/lgpl-3.0.html * Author Website: * http://www.uhleeka.com * Project Hosting on Google Code: * http://code.google.com/p/bubbletip/ */ var g_tipd...
/* * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertTrue, assertFalse } = Assert; // 00B5;MICRO SIGN;Ll; // 00C0;LATIN CAPITAL LETTER A WITH GRAVE;Lu; // 0660;ARABIC-INDIC DIGIT ZERO;Nd; // 10...
// REGISTER MODULE PATHS dojo.registerModulePath("doh","../../dojo/util/doh"); dojo.registerModulePath("plugins","../../plugins"); dojo.registerModulePath("t","../../t/unit"); // DOJO TEST MODULES dojo.require("dijit.dijit"); //dojo.require("dojox.robot.recorder"); //dojo.require("dijit.robot"); dojo.require("doh.r...
App.Router = Em.Router.extend({ root: Em.Route.extend({ index: Em.Route.extend({ route: '/' // Layout your routes here... }) }) });
const Google = require('../Modules/Google.js'); const Config = require('../Modules/Config.js'); module.exports = { rateLimit: 5000, /** * What is run when someone enters this in chat */ run: function (msg) { var msgArray = msg.content.split(" "); // if (msg.author.id === '...
var camera, scene, renderer; var geometry, material, mesh; function init(){ scene = new THREE.Scene(); geometry = new THREE.IcosahedronGeometry( 200,2); material = getMaterial();//new THREE.MeshBasicMaterial({color:0xFFFFFF, wireframe:true, wireframeLinewidth:2}); mesh = new THREE.Mesh(geometry, mater...
'use strict'; /** * Clip-Two Main Controller */ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$localStorage', '$window', '$document', '$timeout', 'cfpLoadingBar', function ($rootScope, $scope, $state, $translate, $localStorage, $window, $document, $timeout, cfpLoadingBar) { /...
import React from "react"; import * as Components from "@patternplate/components"; export default function SearchResult(props) { return ( <Components.Search.SearchResult active={props.item.id === props.activeId} href={props.item.href} id={props.item.id} index={props.index} icon={pro...
'use strict' var eventsApp = angular.module('eventsApp', ['ngResource', 'ngCookies', 'ngRoute']) .config(function ($routeProvider, $locationProvider) { $routeProvider.when('/newEvent', { templateUrl: '/scripts/app/templates/NewEvent.html', controller: 'EditEvent...
var express = require('express'); var app = express(); var port = process.env.port || 80; var router = express.Router(); var morgan = require('morgan'); var bodyParser = require('body-parser'); app.set('view engine', 'ejs'); app.use(morgan('dev')); // Server log to console app.use(bodyParser.json()); // Parse post req...
import React from 'react'; import PropTypes from 'prop-types'; import OutboundLink from 'shared/components/outboundLink/outboundLink'; import styles from './adBanner.css'; const AdBanner = ({ link, imageSource, altText, adBannerText, clickText, theme }) => { if (process.env.NODE_ENV === 'production') { return ( ...
/** * @author chenjiancai * @time 2017-07-18 */ import './index.less'; import ReactDom from 'react-dom'; import React from 'react'; class HelloWorld extends React.Component{ render (){ return <h1>hello world ,i'm react components</h1> } } ReactDom.render(<div> <HelloWorld></HelloWorld> </div>,...
export default { key: 'Db', suffix: 'b13#9', positions: [ { frets: '2412', fingers: '2413' }, { frets: '4557', fingers: '1234' }, { frets: 'a977', fingers: '4311', barres: 7, capo: true }, { frets: '9978', fingers: '3412' ...
var QP = QP || {}; QP.dqagie = function (f, bound, inf, epsabs, epsrel, limit, result, abserr, neval, ier, alist, blist, rlist, elist, iord, last) { "use strict"; //***begin prologue dqagie //***purpose the routine calculates an approximation result[0] to a given // integral i = integral...
'use strict'; // MODULES // var MEAN = require( './number.js' ); // MEAN // /** * FUNCTION: mean( out, sigma ) * Computes the distribution mean for parameters stored in an array. * * @param {Array|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array} out - ...
import './console-polyfill' import Store from './store' import Reactor from './reactor' import Immutable from 'immutable' import { toJS, toImmutable, isImmutable } from './immutable-helpers' import { isKeyPath } from './key-path' import { isGetter } from './getter' import createReactMixin from './create-react-mixin' e...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchStatement } from './statement/statementActions'; import Overview from './statement/Overview'; import ChargeList from './statement/ChargeList'; class BillApp extends Component { componentDidMount() { this.props.fetchSta...
/* jquery.signalR.core.js */ /*global window:false */ /*! * ASP.NET SignalR JavaScript Library v2.2.1 * http://signalr.net/ * * Copyright (c) .NET Foundation. All rights reserved. * Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. * */ /// <reference p...
var assert = require('chai').assert, Typograf = require('../dist/typograf'), t = new Typograf({lang: 'ru'}), ruTests = [ [ ' Мир - мой мир! ', 'Мир\u00A0— мой\u00A0мир!' ], [ 'пошли письмо на http://ya.ru/', 'пошли письмо на\u00A0...
'use strict' var MODULE_NAME_PATTERN = /\bformat-message$/ exports = module.exports = { setBabelContext: function (path, state) { this.context = { type: 'babel', path: path, state: state } }, setESLintContext: function (context) { this.context = { type: 'eslint', conte...
'enable rp19-jsx'; import marked from 'src/external/marked.js'; import ReactiveMorph from 'src/client/reactive/components/rewritten/conduit/rpComponents/reactiveMorph.js'; import articleStore from 'src/client/reactive/components/rewritten/conduit/src/stores/articleStore.js'; import userStore from 'src/client/reactive/...
PinsClient = new Mongo.Collection('pinsClient'); PinsServer = new Mongo.Collection('pinsServer'); var headers = { 'X-Plex-Product': 'Plex+Web', 'X-Plex-Version': '2.3.21', 'X-Plex-Client-Identifier': 'r4zsj3rp4r4wjyvi', 'X-Plex-Platform': 'Chrome', 'X-Plex-Platform-Version': '41.0', 'X-Plex-Device': 'Linux...
function DeferredChain() { var self = this; this.chain = new Promise(function(accept, reject) { self._accept = accept; self._reject = reject; }); this.await = new Promise(function() { self._done = arguments[0]; self._error = arguments[1]; }); this.started = false; } DeferredChain.prototype...
angular.module( 'sailng.messages', [ ]) .config(function config( $stateProvider ) { $stateProvider.state( 'messages', { url: '/messages', views: { "main": { controller: 'MessagesCtrl', templateUrl: 'messages/index.tpl.html' } } }); }) .controller( 'MessagesCtrl', function MessagesController( $sc...
import Vue from 'vue' import $ from 'jquery' Vue.directive('newbox', { inserted(el) { const input = $(el).find('input')[0]; input.addEventListener('focus', () => { const box = $('<div class="box"></div>'); $('.content .home').append(box); }) } })
/* global describe, expect, test */ const Validation = require('../../src/validation'); describe('Data.Validation', () => { describe('Validation.map', () => { test('It should apply the transform if the instance is a Success', () => { const transform = x => x.toUpperCase(); const either = Validation....
var breakfast = angular.module('ionicApp'); breakfast.controller('BreakfastCtrl', function($scope, BreakfastService) { $scope.recipes = BreakfastService.all(); });
ScalaJS.impls.scala_math_LowPriorityOrderingImplicits$class__ordered__Lscala_math_LowPriorityOrderingImplicits__Lscala_Function1__Lscala_math_Ordering = (function($$this, evidence$1) { return new ScalaJS.c.scala_math_LowPriorityOrderingImplicits$$anon$6().init___Lscala_math_LowPriorityOrderingImplicits__Lscala_Functi...
// 3 sum // Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. // Return the sum of the three integers. // Assume that there will only be one solution // Example: // given array S = {-1 2 1 -4}, // and target = 1. // The sum that is closest to the target...
(function() { /** * @ngdoc service * @name app.core.armorySvc * @description < description placeholder > */ angular .module('app.core') .factory('armorySvc', armorySvc); armorySvc.$inject = ['$http']; /* @ngInject */ function armorySvc($http) { var urlBase = 'https://us.api.battle.n...
/** * switch.js */ //Abstract base Mns._Switch = function(node) { Mns._Switch.superclass.constructor.apply(this, [node]); this.pan = node.children("use").first(); this.key = node.children("use").last(); this.rx = +this.key.attr("x") + +this.key.attr("width") / 2; this.ry = +this.key.attr("y") + +this.key.attr("...
import React from 'react'; import { render } from 'react-dom'; import App from './components/App/App'; render(<App />, document.getElementById('app'));
const assert = require('chai').assert; const brunfaick = require('../../.'); describe('end-to-end > wc.b', () => { it('Should return the expected output', () => { const program = ` >>>+>>>>>+>>+>>+[<<],[ -[-[-[-[-[-[-[-[<+>-[>+<-[>-<-[-[-[<++[<++++++>-]< [>>[-<]<[>]<-]>>[<+>-[<->[-]]]]]]]...
/* Globals */ const POPUP_CONTAINER_CLASS = "notification-popup"; const POPUP_CLOSE_ICON_CLASS = "text right close-icon"; const POPUP_ICON_CLASS = "text center-text icon"; const POPUP_TEXT_CLASS = "text center-text"; const POPUP_CONTAINER_ID = "notificationPopup"; const POPUP_CLOSE_ICON_ID = "notificationPopupCloseIcon...
module.exports = ( modulePath ) => { var path = require( 'path' ); // const webpack = require(`${modulePath}/webpack`); // const HtmlWebpackPlugin = require(`${modulePath}/html-webpack-plugin`); return { // if single entry is used, bundle name will be named as main.js entry: { ...
'use strict'; export default { LOGIN_FAIL: [2000, "用户名或密码不正确,登录失败!"], ERROR: [1000, "出错了..."], };
"use strict"; var index_1 = require('./index'); exports.HomeRoutes = [ { path: '', component: index_1.HomeComponent } ];
/** * author: Sheng JIANG * date: 2017-09-26 */ $(function () { if ($('.js_fixed').length > 0) { //主导航 nova.navScroll({ fixedObj: $('.js_fixed'), navList: $('.js_fixed li'), activeIndex: -1, callback: function (index) { // console.log(index); $('.js_fixed').show()...
var app = (function(me, $, doc) { me.engine = (function(me, $, doc) { me.gameportWidth = gameportWidth; function gameportWidth() { return $(document).width(); } return me; })(me.engine || {}, jQuery, document); return me; })(window.app, jQuery, document);
var mtheft_2010_08 = [{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 102420236, "Date": "08\/30\/2010", "Time": "10:37 PM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense...
import SerialPort from 'serialport' import debug from 'debug' import Transport from './Transport' const log = debug('SerialTransport') export default class SerialTransport extends Transport { constructor(config = {}) { super() this.config = Object.assign({ port: '', baudRate: 3600, }, conf...
/** * @fileoverview Tests for no-return-assign. * @author Ilya Volodin */ //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var vows = require("vows"), assert = require("assert"), ...
import { ADD_ENTRY, FETCH_ENTRIES } from '../constants/ActionTypes'; import 'babel/polyfill'; import 'isomorphic-fetch'; export function addEntry(title, body) { return { type: ADD_ENTRY, title, body }; } export function fetchEntries() { return dispatch => fetch("http://localhost:5000/entries") ...
// Global site scripts // http://github.com/vladimirfedorov/nocms $(document).ready(function() { if (menu) menu.init(); if (site) site.init(); // Set content height var viewportHeight = $(window).height(); if ($("#content").height() < viewportHeight) $("#content").animate({ minHeight: (viewportHe...
'use strict'; const _ = require('lodash'); const moment = require('moment'); const path = require('path'); const chai = require('chai'); const expect = chai.expect; chai.use(require('chai-json-schema')); const schema = require('../helpers/jsonSchemas.js'); const method = path.basename(__filename).split('.')[0]; cons...
// application module //--------------- define(['router'], function(Router){ var initialize = function() { var router = Router.initialize(); }; return { initialize: initialize }; });
/** * # Backend.js * * Abstract Base class for Backend support * */ 'use string'; /** * ## Async support * */ require('regenerator/runtime'); /** * ## Imports * * Config for defaults and underscore for a couple of features */ import CONFIG from './config'; import _ from 'underscore'; export default c...
import './DurasSong.styl' import Page from './../../base/Page' import Hammer from 'hammerjs' import debounce from 'lodash.debounce' import Store from './../../../../../flux/store/mobile' import Actions from './../../../../../flux/actions' import EventsConstants from './../../../../../flux/constants/EventsConstants' imp...
'use strict'; const Utils = require('./Utils'); /** * Big Spender - Achievement for wager amount (total chips spent) */ class BigSpenderAchievementCompiler { /** * Compiles a big spender achievement object to a trigger object. */ static compile(bs_object) { const rank = Utils.checkNonEmptyString(bs_o...
// générer les marqueurs avec http://terpconnect.umd.edu/~jwelsh12/enes100/markergen.html // explications http://iplimage.com/blog/create-markers-aruco/ angular.module('casa').controller('ARController', ['$scope', '$cordovaGeolocation', '$stateParams', '$ionicModal', '$ionicPopup', 'LocationsServi...
var monad = require('./monad'); function isContinuation(obj) { return (typeof obj === 'function'); } // Continuation monad. module.exports = monad( function unit(error, result) { return function(callback) { callback(error, result); }; }, function bind(value, func) { return function(callback) { var done = f...
// see http://vuejs-templates.github.io/webpack for documentation. var path = require('path'); module.exports = { build: { env: require('./prod.env'), index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPa...
var system; var mode; function setup(){ mode = SolarSystem.MODE_3D; if (mode == SolarSystem.MODE_3D) { createCanvas(windowWidth, windowHeight, WEBGL); } else { createCanvas(windowWidth, windowHeight); } system = new SolarSystem(); system.setMode(mode); system.init(); } function draw(){ backg...
// Regular expression that matches all symbols in the Phaistos Disc block as per Unicode v5.2.0: /\uD800[\uDDD0-\uDDFF]/;
/* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*!\n' + ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +...
import { get, debounce, chunk, keys, forEach } from "lodash"; import checkStatus from "./check-status"; import parseJSON from "./parse-json"; export default function batchFetch( keyName, performFetch, { maxBatchSize = 10, timeout = 100 } = {} ) { let queue = {}; const getDebounced = debounce((...extra) => { co...
(function(){this.Vertebrae={VERSION:"0.1",_history:[],push:function(c,b){var d,a,e;b||(b="slide");d=$(".active-view");e=false;if(_.isEmpty(this._history)&&this._homeView==null)this._homeView=d.get(0);if(((a=this._history.slice(-2,-1)[0])!=null?a.id:void 0)===Backbone.history.getFragment()){b=_.last(this._history).trans...
import TWEEN from 'tween.js'; import {Camera, Vector3} from 'three'; import Controls from '../Controls'; describe('Controls', () => { let camera; let controls; beforeEach(() => { camera = new Camera(); controls = new Controls(camera); }); describe('zoom()', () => { describ...
import React from 'react'; import PropTypes from 'prop-types'; import Error from './Error'; import withIntl from '../lib/withIntl'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import CollectiveCard from './CollectiveCard'; import { Button } from 'react-bootstrap'; import { FormattedMessage } ...
/* * ax5 - v0.0.1 * 2015-05-29 * www.axisj.com Javascript UI Library * * Copyright 2013, 2015 AXISJ.com and other contributors * Released under the MIT license * www.axisj.com/ax5/license */ // 필수 Ployfill 확장 구문 (function(){ 'use strict'; var root = this, re_trim = /^\s*|\s*$/g; // Fr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var angleDoubleLeft = exports.angleDoubleLeft = { "viewBox": "0 0 1024 1792", "children": [{ "name": "path", "attribs": { "d": "M627 1376q0 13-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 1...
'use strict'; angular.module('users').controller('AuthenticationController', ['$scope', '$http', '$location', 'Authentication', function($scope, $http, $location, Authentication) { $scope.authentication = Authentication; // If user is signed in then redirect back home if ($scope.authentication.user) $location....
let connection = new WebSocket(`ws://${window.location.hostname}:${window.location.port}/ws`); let playerId, sessionToken; let sendJSON = function sendJSON(obj) { connection.send(JSON.stringify(obj)); }; let sendSpawnRequest = function sendSpawnRequest() { sendJSON({ type: 'request_spawn', nam...
import Ember from 'ember'; import ListFormController from 'ember-flexberry/controllers/list-form'; export default ListFormController.extend({ /** Property to count clicks on user button. @property clickCounter @type Number @default 1 */ clickCounter: 1, /** Property to show user message ...
var returnObjectLib = require('./lib/returnObject') , parameterHandling = require('./lib/parameterHandling'); module.exports.simpleTest = function(configParam, callbackParam) { var config = parameterHandling.getDefaultedConfig(configParam); var callback = parameterHandling.getCallback(callbackParam); makeReque...
/****************************************************************************** The MIT License (MIT) Copyright (c) 2015 Vivek Dinesh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restr...
import Input from './sq-input-file'; export default Input.extend({ autoremove: true, });
import { createStore, applyMiddleware, compose } from "redux"; import freeze from "redux-freeze"; import thunk from 'redux-thunk'; import rootReducer from './reducers'; // add the middlewares let middlewares = [ thunk ]; // add the freeze dev middleware if (process.env.NODE_ENV !== 'production') { middlewares.pus...
try { Package.describe({ summary: "Observatory: Galileo. Foundational classes for the Observatory suite (http://observatoryjs.com). Meteor-independent.", version: "0.9.9", git: "https://github.com/superstringsoftware/observatory-galileo.git" }); Package.on_use(function (api) { ...
(function () { $(function () { console.log("_AddLineItemModal.js loaded"); //still dont know what this is for? DI maybe? var _roleService = abp.services.app.lineItem; var _$modal = $('#AddLineItemModal'); var _$form = $('form[name=AddLineItemForm') // pointo f r...
'use strict'; module.exports = { PubSub: require('./lib/pubsub'), Worker: require('./lib/worker') };
/** * @fileOverview 微信小程序的入口文件 */ var event = require('./utils/event.js') var qcloud = require('./vendor/qcloud-weapp-client-sdk/index'); var config = require('./config'); var util = require('./utils/util.js') var showSuccess = text => wx.showToast({ title: text, icon: 'success' }); var showBusy = text => wx...
// via https://github.com/caiovaccaro/phonegap.facebook.inappbrowser ;(function() { FacebookInAppBrowser = { settings: { appId: '', redirectUrl: '', permissions: '' } , login: function(successCallback) { if(this.settings.appId === '' || this.sett...
var async = require('async') var should = require('should') module.exports = visitRest function visitRest(asyncMethod, url, EN, textEN, DE, textDE, responseVariable) { return it( 'should show ' + textEN + ' in EN and ' + textDE + ' in DE', function (done) { return async[asyncMethod]( [ ...
///<reference path="jasmine-1.3.1/jasmine.js"/> // http://blog.jphpsf.com/2012/08/30/drying-up-your-javascript-jasmine-tests function using(name, values, func) { for (var i = 0, count = values.length; i < count; i++) { if (Object.prototype.toString.call(values[i]) !== '[object Array]') { ...
var dgram = require('dgram'); // var async = require('async'); var Promise = require('bluebird'); var Transport = function() { this.client = dgram.createSocket('udp4'); this.port = 1281; this.ip = '192.168.1.100'; }; Transport.prototype.close = function() { this.client.close(); }; Transport.prototype.sendComman...
Package.describe({ name: "nova:base-routes", summary: "Nova routes package", <<<<<<< HEAD version: "0.26.4-nova", ======= version: "0.27.5-nova", >>>>>>> refs/remotes/TelescopeJS/master git: "https://github.com/TelescopeJS/telescope.git" }); Package.onUse(function (api) { api.versionsFrom(['METEOR@1.0']);...
define(['jquery', 'underscore', 'backbone', 'views/index'], function($, _, Backbone, IndexView){ var HomePage = _.extend({ cid : _.uniqueId(), hasInit : false, init : function(){ var page = this; if(page.hasInit) return; page.initViews(); pa...
angular.module('uixApp') .controller('RoleIndexCtrl', function ($scope, APP, $http, exMsg) { $scope.$on('uix:index-ready', function (evt, modelName, config, scope) { if (modelName !== 'Role') return; // Do something }); }); angular.module('uixApp') .controller('RoleFormCtrl', function (...
module("Core"); test("Requirements", function() { expect(2); ok(jQuery, "jQuery exists"); ok($, "$ exists"); }); test("Constructor", function() { expect(21); var $test1 = $("#testForm1").autosave(); var instance1 = $test1.data("autosave"); equal(typeof instance1, "object", "$test1 contains an autosav...
'use strict'; var LightningVisualization = require('lightning-visualization'); var _ = require('lodash'); var THREE = require('three.js'); require('three-fly-controls')(THREE); /* * Extend the base visualization object */ var Visualization = LightningVisualization.extend({ getDefaultOptions: function() { ...