code
stringlengths
2
1.05M
GPUTracer = function () { this.canvas = null; this.context = null; this.size = null; this.traceShader = null; this.renderShader = null; this.texturePingPong = null; this.camera = null; this.iteration = null; this.maxIteration = null; this.callbacks = null; this.previewMode = null; this.previewTimeout = null...
'use strict'; angular.module('myApp').factory('appGroupsApi', function($resource) { return $resource('/api/scm.config/1.0/app_groups', {}, { 'query': { method: 'GET', isArray: true , responseType: 'json', transformResponse: function (data) { var wrapped = angular.fromJson...
_imap.thirdtoolsinformation=''; _imap.thirdtoolsinformation=_imap.thirdtoolsinformation+'<a target=_blank href="http://leafletjs.com">Leaflet</a>'; _imap.thirdtoolsinformation=_imap.thirdtoolsinformation+'<br><a target=_blank href="https://github.com/shramov/leaflet-plugins">Leaflet plugins</a>'; _imap.thirdtoolsinform...
(function() { var callWithJQuery, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }, slice = [].slice, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, hasProp = {}.hasOwn...
var express = require('express'), wrap = require('../index'), should = require('should'), request = require('supertest'); function asyncText(err, text, cb) { setImmediate(function() { cb(err, text); }); } function thunk(err, text) { return function(cb) { asyncText(err, text, cb); }; } des...
import d3 from 'd3'; import {rebindAll} from '../../util/rebind'; import minimum from '../../util/minimum'; import {allWithCollisions, totalCollisionArea} from './collision'; import containerUtils from './container'; import {getAllPlacements} from './placement'; import {randomItem, randomIndex, cloneAndReplace} from '....
var nodeGeocoder = require('node-geocoder'); var RateLimiter = require('limiter').RateLimiter; var async = require('async'); module.exports = function(options) { return new Geocoder(options); }; function Geocoder(options) { var self = this; self._nodeGeocoder = nodeGeocoder(options || {}); // Google's standar...
import request from 'superagent' export default function (url, data, callback) { request .post(url) .send(data) .end(function(err, res) { callback(err, res) }) }
/*! aruco-marker 1.0.0 2014-06-19 - MIT Licensed, see http://github.com/bhollis/aruco-marker */ !function(a,b){"function"==typeof define&&define.amd?define([],function(){return a.ArucoMarker=b()}):"object"==typeof exports?module.exports=b():a.ArucoMarker=b()}(this,function(){function a(a){if(0>a||a>1023)throw new Range...
// Import React import React from 'react'; import Rx, { Observable } from 'rxjs'; import * as Recompose from 'recompose'; import Counter from '-!babel-loader!raw-loader!../assets/counter.js'; import Autocomplete from '../assets/autocomplete.js'; import DragDrop from '../assets/drag-drop.js'; import Console from '-!bab...
/* * __ __ _ __ __ _ _ ____ ___ * \ \ / /__| |__ | \/ | __ _| |_ ___ / \ | _ \_ _| * \ \ /\ / / _ \ '_ \| |\/| |/ _` | __/ _ \ / _ \ | |_) | | * \ V V / __/ |_) | | | | (_| | || __/ / ___ \| __/| | * \_/\_/ \___|_.__/|_| |_|\__,_|\__\___| /_/ \_\_| |...
var obj = { x: 123, getX: function(z = this){ return z.x; } }; obj.getX(); // 123 function add(x = 0, y = 0) { return x + y; } add(); // 0 add(1); // 1 add(1, 1); // 2 var fn = function(x, y = { x: 2 }) { return y.x || x; }; fn(1, {}); // 1 fn(1); // 2 fn(1, { x: 3 }); // 3
var size = 64; function colorOverhead () { var pixArr = []; for (var x = 0; x < 32; x++) { pixArr.push(new Array()); for (var y = 0; y < 32; y++) { var color = { r: SwatchField[Swatch[x][y][0]][3].r, g: SwatchField[Swatch[x][y][0]][3].g, b: SwatchField[Swatch[x][y][0]][3].b } pixArr[x]...
/* |--------------------------------------------------------------------------------- |Initing Assignments Grid System |--------------------------------------------------------------------------------- */ App.Views.initAssignment = Backbone.View.extend({ initialize : function(){ vent.on('assignment:edit', this....
"use strict"; // Development specific settings overriding the global settings var config = require("./config.global"); module.exports = config;
var darling = require('darlingjs'); /** * DOM component */ darling.c('domView', { //color of DOM element color: null, //element for temporary storing element: null }); /** * Get Vendor Prefix. Based on CraftyJS <http://craftyjs.com> * @returns {*} */ function getVendorPrefix() { var ua = navigator.use...
// Check if we have a tab in the page selected onload // This might occur if someone wiht no pushState support // sends a link to someone if (window.location.hash.substring(1, 2) === '!') { // If not just a #! hash if (window.location.hash.length > 2) { // Build the url to what it would be if pushState supported ...
require("sugar"); var async = require("async"), uuid = require("node-uuid"), bcrypt = require('bcrypt-nodejs'); module.exports = { name: "Logins", key: { id: "text", timestamp: "number" }, indices: { ByUser: { columns: { user: "text", timestamp: "number" }, project...
const async = require('async'); const fs = require('fs'); const gitRev = require('git-rev'); const config = require('../config'); const utils = require('./utils'); const execCommand = utils.execCommand; const GITHUB_TOKEN = process.env.GITHUB_TOKEN; const CDN = 'https://cdn.jsdelivr.net/gh/aframevr/aframe@'; const ...
const Service = require('../../service'); module.exports = async function postUserPlaceConquest({ userId, placeId }) { const createdConquest = await Service.RelationUserPlaceConquest.create({ userId, placeId }); return createdConquest; };
/** * Test case for knFooter. * Runs with mocha. */ "use strict"; const knFooter = require('../lib/kn_footer.js'), assert = require('assert'); describe('kn-footer', () => { before((done) => { done(); }); after((done) => { done(); }); it('Kn footer', (done) => { d...
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "ms", likelySubtags: { ms: "ms-Latn-MY" }, identity: { language: "ms" }, territory: "MY", numbers: { currencies: { ADP: { displayName: "ADP", symbol: "A...
// to be run using nodejs var json2yaml = require('../src/json2yaml').json2yaml; function test(obj) { console.log('TESTING:'); console.log(obj); console.log('OUTPUT:'); console.log(json2yaml(obj)); console.log('------------------------'); } test([ 'hello', 'world' ]); test({ hello: 'world' }); test({ hello: ...
var bgMobile = { initData: function() { var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire") var browser = navigator.userAgent.toLowerCase() var isMobile = false var sn = b...
import { createEpicMiddleware, combineEpics } from './redux-promise-epic'; import getSyncEpic from './sync'; import getCacheEpic from './cache'; import { postEpic, deleteEpic } from './mutate'; // DEPRECATED // export specific values of internal modules export { API_REQ, API_RESP_SUCCESS, API_RESP_COMPLETE, API_R...
'use-strict'; var strategy = require('./strategy'); var _monitor = require('./../monitoring/monitoring'); //Settings var castlingRate = 40; var checkRate = 100; //var checkMateRate = 200000; //var staleMateRate = 150000; //var movabilityRate = 5; /** * Evaluate the current position for the current player (turn). *...
define(function(require,exports,module){ // 天空的构造函数 function Sky(img, x) { this.img = img; this.x = x; this.speed = -0.03; } Sky.prototype.update = function (dt) { // 如果天空飞出了屏幕范围,则“回收再利用”,让它右移到最右 if (this.x < -800) { // 因为有可能此时this.x已经小于-800,而是-80x了 // 所以要把这个误差算出来,再移到最右时加回来 ...
'use strict'; angular.module('sudokuSolver.version.interpolate-filter', []) .filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); }; }]);
export default { props: { visible: false }, html: ` <div></div> `, test({ assert, component, target, raf }) { component.visible = true; const p = target.querySelector('p'); assert.equal(p.foo, 0); raf.tick(50); assert.equal(p.foo, 0.5); component.visible = false; raf.tick(75); assert.equal...
"use strict"; exports.__esModule = true; var Pepe = /** @class */ (function () { function Pepe(x) { console.log(x); } return Pepe; }()); exports["default"] = Pepe; exports.soy = "modulo Pepe";
export default (sample, expected) => { return sample.constructor === expected; };
process.env.NODE_ENV=process.env.NODE_ENV || 'test'; process.env.base_path=process.env.base_path || 'test/fixtures/build' const chai = require('chai'), chaiHttp = require('chai-http'), sinonChai = require("sinon-chai"), chaiFS = require('chai-fs'); chai.should(); chai.use(chaiHttp); chai.use(sinonChai); ...
var React = require('react'); import PropTypes from 'prop-types'; export default class BooleanWidget extends React.Component { static propTypes = { componentname: PropTypes.string.isRequired, entity: PropTypes.object, name: PropTypes.string.isRequired, onChange: PropTypes.func, value: PropTypes.b...
version https://git-lfs.github.com/spec/v1 oid sha256:49f2e8aac4088950e36ef20a4a948230f63ea949db0d40dfcd2341ef8e939f8f size 5251
// app/components/login/loginCtrl.js (function () { 'use strict'; angular .module('fantasticEngine') .controller('LoginController', LoginController); function LoginController(authService) { const scope = this; scope.authService = authService; } })();
import * as React from 'react' import ChannelMemberQuery from 'desktop/apps/article/queries/channelMember' import PropTypes from 'prop-types' import { positronql as _positronql } from 'desktop/lib/positronql' import styled from 'styled-components' import { data as _sd } from 'sharify' import { pluck, contains } from 'u...
(function() { return { name: 'fy', weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), monthsShort: 'jan._feb._mrt._apr._mai_jun._jul._aug._s...
/** * A simple test case that determines if elements, specified by a selector, * exist or not. * * The test fails for elements that are found and a case is created for each * one. The test passes is the selector finds no matching elements. */ quail.domOrderMatchesVisualOrder = function (quail, test, Case, options...
export default { html: ` <div>Hello World</div> <div>Hello World</div> `, async test({ assert, component, target }) { await component.update_value('Hi Svelte'); assert.htmlEqual(target.innerHTML, ` <div>Hi Svelte</div> <div>Hi Svelte</div> `); } };
var Chain = require('../chain.js'); console.time('chain use time'); var chain = Chain(function (chain, msg) { console.log('Chain initialize'); // save param chain.data('chain:param', msg); // console.log(msg); //Hello world chain.next({message: 'Next step'}); }); ...
/** * Command parser * Pokemon Showdown - http://pokemonshowdown.com/ * * This is the command parser. Call it with CommandParser.parse * (scroll down to its definition for details) * * Individual commands are put in: * commands.js - "core" commands that shouldn't be modified * config/commands.js - other co...
/** * This file is part of the JsFormValidationBundle. * * (c) Abhoryo <abhoryo@free.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ var jsfv = new function () { function getComputeMessage(key, placeholders, number) { ...
var express = require('express'); var router = express.Router(); var passport = require('passport'); /* GET home page. */ router.get('/google', passport.authenticate('google', { scope: ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'] })); router.get(...
const jsreport = require('$moduleName$')() if (process.env.JSREPORT_CLI) { // export jsreport instance to make it possible to use jsreport-cli module.exports = jsreport } else { jsreport.init().then(() => { // running }).catch((e) => { // error during startup console.error(e.stack) p...
(function() { 'use strict'; angular.module('todo-app.controllers', []); })();
console.log(a = b);
const sharp = require('sharp'); const fs = require('fs') const dir = process.argv[2] const path = dir + '/*' const type = !process.argv[3] ? 'paper' : process.argv[3] const files = fs.readdirSync(dir) console.log(files) console.log(type) let i = 1 for (let file of files) { let id = i < 10 ? '0' + i.toString(): i.toS...
jui.define("chart.brush.rangebar", [], function() { /** * @class chart.brush.rangebar * @extends chart.brush.core */ var RangeBarBrush = function(chart, axis, brush) { var g, height, half_height, barHeight; var outerPadding, innerPadding; var borderColor, borderWidth, borderOpacity; this....
(function () { if (typeof Game === "undefined") { window.Game = {}; } var Board = Game.Board = function (dim) { this.dim = dim; this.snake = new Game.Snake(this); this.apple = new Game.Apple(this); }; Board.prototype.validPosition = function (coord) { return (coord.i >= 0) && ...
'use strict' /** * Dependencies * @ignore */ const { JWA } = require('@trust/jwa') const crypto = require('@trust/webcrypto') const fetch = require('node-fetch') const sift = require('sift') const fs = require('fs') /** * Module Dependencies * @ignore */ const JWK = require('./JWK') const { DataError, Operation...
var _ = require('../util').lodash, ItemGroup = require('./item-group').ItemGroup, VariableList = require('./variable-list').VariableList, Version = require('./version').Version, Collection, // constructor SCHEMA_URL = 'https://schema.getpostman.com/json/collection/v2.1.0/collection.json'; /** * ...
/** * abstract class with logic that several collections share */ //window.themingStore.collections.AbstractCollection = Backbone.Collection.extend({ window.themingStore.collections.AbstractCollection = Backbone.Collection.extend({ /** * Searches the rest layer for matches to the input arriving inside the params...
'use strict'; const {toLuma} = require('./color.js'); module.exports = function grey(image) { if (!image) return (image) => grey(image); const filter = ([r, g, b, a]) => { const l = toLuma(r, g, b); return [l, l, l, a]; }; return image.mapColor(filter); }
/*--------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------*/ 'use strict'; var goMode_1 = require('./go...
var cheerio = require("cheerio"); var fs = require("fs"); var optimizr = require("../optimizr.js").optimizr; var task = optimizr.newTask(); task.name("HTML scripts location"); task.debug("Checking if HTML files contain scripts before body tags"); task.explanation("When a browser encounters a script element, it delays ...
"use strict"; var RunQuery = require('./runquery'); var Guid = require('./guid'); var StoryController = (function () { function StoryController() { } StoryController.getStories = function (username) { return RunQuery.runQuery("SELECT (SELECT COUNT(1) FROM cycles WHERE story = stories.id) AS cyclecou...
// config/auth.js module.exports = { 'development': { facebook: { consumerKey: '764312370371679', consumerSecret: '750736e7b547b6ceb01503807dd4606f', callbackUrl: 'http://socialauthenticator.com:8000/auth/facebook/callback' }, twitter: { consumerKey: '0zQX8MEUs0CrzkdZBUIGuT...
import { PropTypes, } from 'react'; import { Text, } from 'react-native'; export default function Icon() { return ( null ); } Icon.propTypes = { size: PropTypes.number, name: PropTypes.string, color: PropTypes.string, style: Text.propTypes.style, };
(function (t) { // da t.add("An authentication exception occurred.", "En fejl indtraf ved godkendelse.", "security", "da"); t.add("Authentication credentials could not be found.", "Loginoplysninger kan findes.", "security", "da"); t.add("Authentication request could not be processed due to a system problem.", "Godkende...
// This optional code is used to register a service worker. // register() is not called by default. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on subsequent visits to a p...
'use strict'; /** * @module team */ const apiRoute = require('./api/route'); const viewRoute = require('./route'); /** * Registers the Team plugin * @param {Object} server - Hapi Server object * @returns {Null} nothing */ function team (server) { server.route(apiRoute); server.route(viewRoute); } expo...
// Conversor 5V é composto de uma parte principal, uma saída para cabos e uma saída para usb conversor_5v = (function() { var dim = { principal: { x: 51.5, y: 34, z: 25 }, folga: .2, parede: 1, altura_saidas: 19, cabos: { x0: 30, x1: 10, y: 15 }, tam...
//This file is automatically rebuilt by the Cesium build process. /*global define*/ define(function() { 'use strict'; return "varying vec3 v_positionEC;\n\ varying vec3 v_normalEC;\n\ void main()\n\ {\n\ vec3 positionToEyeEC = -v_positionEC;\n\ vec3 normalEC = normalize(v_normalEC);\n\ #ifdef FACE_FORWARD\n\ no...
'use strict' const EventEmitter = require('events') const Big = require('bignumber.js') const MovingAverage = require('moving-average') class Stats extends EventEmitter { constructor (initialCounters, options) { super() this._options = options this._queue = [] this._stats = {} this._frequencyL...
import {sleepUntilReactAvailable} from "test/e2e/utils/index.js"; const {maxTimeout, originUrl} = browser.params; // Private variables const dom = Symbol("dom"); class FlexboxPageObject { static location = `${originUrl}/flexbox-example`; _dom = { container: $("#flexbox"), link: $("#flexbox-l...
import diff from './main'; // eslint-disable-next-line no-undef self.addEventListener('message', e => { const instructions = diff.apply(null, e.data); // eslint-disable-next-line no-undef self.postMessage(instructions); });
class Fireball extends Phaser.Sprite { constructor(game, player, x, y, asset) { super(game, x, y, asset, 1); game.physics.arcade.enable(this); this.body.velocity.x = -450; this.body.acceleration.x = -10; this.body.gravity.y = 100; game.stage.addChil...
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), less: { default: { files: { "dist/Default/styleguide.css": "src/Default/styleguide.less" } } }, autoprefixe...
;/** * Created by ronaldronson on 4/3/14. */ (function (global, Cl, undefined) { "use strict"; global.onload = function () { Cl.init(); // do no forget to fire! }; }(this, this.Cl));
var es = require('event-stream'), Lintspaces = require('lintspaces'), PluginError = require('plugin-error'), path = require('path'), appRoot = require('app-root-path'), colors = require('colors/safe'), logSymbols = require('log-symbols') ; module.exports = function(options) { var lintspaces = new Lints...
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); var handleArrayContainerDefaults = require('../../plots/array_container_defaults...
const webpack = require('webpack'); const path = require('path'); const webpackConfig = { resolve: { extensions: ['', '.js', '.jsx'] }, entry: [ './app/client.js' ], output: { path: path.resolve('./app/public/js'), publicPath: '/app/public/js/', filename: 'ma...
/** * * Header * */ import React from 'react'; import { Link, browserHistory } from 'react-router'; import localforage from 'localforage'; import styles from './styles.css'; import logo from './img/logo@2x.png'; import goBack from './img/goback.png'; class Header extends React.Component { static propTypes = { ...
'use strict'; (function() { // Devicetypes Controller Spec describe('Devicetypes Controller Tests', function() { // Initialize global variables var DevicetypesController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and d...
/* * Copyright (c) 2015 TechnologyAdvice */ // Deps 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); // Import router var _router = require('./router'); var _util = require('./util'); /** * Allows overriding default runner script * @param {String} runnerPath Path to the runner mo...
var voices = new Array(); var audioContext = null; var isMobile = false; // we have to disable the convolver on mobile for performance reasons. // This is the "initial patch" var currentModWaveform = 0; // SINE var currentModFrequency = 2.1; // Hz * 10 = 2.1 var currentModOsc1 = 15; var currentModOsc2 = 17; var curre...
/** * lodash 4.1.0 (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Rep...
version https://git-lfs.github.com/spec/v1 oid sha256:e22879e40f54628d9609583055b90706b428c8f3054b2f71a755a75b54bbe33f size 8910
/* global R */ var _extend = require('./internal/_extend'); /** * Expose the functions from ramda as properties of another object. * If the provided object is the global object then the ramda * functions become global functions. * Warning: This function *will* mutate the object provided. * * @func * @memberOf...
const protagonist = require('./helpers/protagonist'); const path = require('path'); const fs = require('fs'); const valid_fixture = fs.readFileSync(path.join(__dirname, 'fixtures', 'valid.apib'), 'utf8'); const expect = require('chai').expect; const assert = require('chai').assert; describe('Protagonist option vulera...
export const ADD_HUNDRED_TODOS = 'ADD_HUNDRED_TODOS'; export const ADD_TODO = 'ADD_TODO'; export const CLEAR_ALL = 'CLEAR_ALL'; export const DELETE_TODO = 'DELETE_TODO'; export const SET_NEW_TODO_FIELD = 'SET_NEW_TODO_FIELD'; const MAX_TODO_TITLE_LENGTH = 42; export function setNewTodoField({target: {name, value}}) {...
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. 'use strict'; module.exports = function(tests) { return { filtered: tests.filter(t => t.indexOf('foo') !== -1).map(test => ({test})), }; }; module.exports.setup = function() { return new Promise((resolve, reject) => { setTimeout((...
/* global require, describe, it */ 'use strict'; // MODULES // var chai = require( 'chai' ), Stream = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'flow-join', function tests() { it( 'should export a function', function test() { expect( Strea...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('parameters-parameter', 'Unit | Serializer | Parameters_Parameter', { needs: [ 'serializer:parameters-parameter', 'model:element', 'model:extension', 'model:backbone-element', 'model:narrative', 'model:annotation', 'model:...
var bunyan = require('bunyan'), packageJson = require('../../package.json'); module.exports = bunyan.createLogger({ name: packageJson.name, streams: [ { stream: process.stdout } ], serializers: bunyan.stdSerializers });
/** * holiday-watchdog-api * * This file was automatically generated for Holiday Watchdog by APIMATIC v2.0 ( https://apimatic.io ) on 01/16/2017 */ var BaseModel = require("./BaseModel"); /** * Creates an instance of UserHwd * * @constructor */ UserHwd = function (obj) { if(!obj) { th...
/* CUSTOM MODEL If exporting an object, protos will use it instead of the native protos models. */ var ob = { method: function() { return 'Custom Model Data'; }, } module.exports = ob;
/* * Copyright 2016 Grzegorz Sebastian Korkosz. * * 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 ...
// refer to https://material.io/devices/ export const DEFAULT_DEVICE = 'iPhone 7'; export const SCREEN_RESOULTION_DEFINE = { 'iPhone 5': [320, 568], 'iPhone 7': [375, 667], 'iPhone 7 plus': [414, 736], 'Google Pixel': [411, 731], 'Samsung Galaxy Note 4': [480, 853], 'Samsung Galaxy S7': [360, 640], 'Sams...
// libs import React from 'react'; // components import Loader from 'components/dumb/Loader'; // other import styles from './index.css'; export default function PageLoader() { return (<div className={styles.pageLoader}> <Loader size={1.5} /> </div>); }
/** * Gives an object containing the appropriate find * and options arguments for the subscriptions's Posts.find() * @param {Object} terms */ Posts.getSubParams = function (terms) { var maxLimit = 200; // console.log(terms) // note: using jquery's extend() with "deep" parameter set to true instead of shall...
(function() { 'use strict'; angular .module('permitmeApp') .controller('SessionsController', SessionsController); SessionsController.$inject = ['Sessions', 'Principal']; function SessionsController (Sessions, Principal) { var vm = this; vm.account = null; vm.e...
const { Command } = require('discord-akairo') const Embed = require('../../structures/HakuEmbed') const { Guild } = require('../../db') class GuildInfoCommand extends Command { constructor () { super('guild', { aliases: ['guild', 'guild-info', 'server', 'server-info'], description: 'Get information a...
// ua $(document).ready(function() { // ua detection if ($.browser.mozilla) { $('body').addClass('ff'); } else if ($.browser.webkit) { $('body').addClass('webkit'); } else if ($.browser.msie) { $('body').addClass('ie'); if ($.browser.version == "7.0") { $('body').addClass('ie7'); } ...
'use strict'; goog.provide('Grok.Blockly.JavaScript'); goog.require('Blockly.JavaScript'); Blockly.JavaScript.addReservedWords('await,of,arguments'); Blockly.JavaScript.finish_ = Blockly.JavaScript.finish; // Override finish() to strip leading whitespace that result from an empty definitions section. Blockly.JavaS...
/** * Larapush JavaScript Library v0.1.1 * * A client-side js library for Larapush * WebSocket Push Server for Laravel 4 * * Copyright 2014, Fabio Fumis - f.fumis@gmail.com * Released under the MIT licence. */ ;(function() { function Larapush(ConnectionUri) { var self = this; self.connection = new Lara...
describe('$flash', function() { var messages; beforeEach(module('ngFlash')); beforeEach(inject(function($rootScope) { messages = function(scope) { scope = scope || $rootScope; return scope._flash.messages; } })); it('adds messages', inject(function($flash) { $flash('Hello World'); ...
'use strict'; /*! * Collection * https://github.com/kobezzza/Collection * * Released under the MIT license * https://github.com/kobezzza/Collection/blob/master/LICENSE */ import { Collection } from '../core'; import { isArray, isFunction, isPromise, isPositive } from '../helpers/types'; import { any } from '.....
import React, { Component, PropTypes } from 'react'; import { Dialog, FlatButton, FontIcon, Tab, Tabs, TextField } from 'material-ui'; import ActionAssignment from 'material-ui/svg-icons/action/assignment'; import ActionBook from 'material-ui/svg-icons/action/book'; import ActionDashboard from 'material-ui/svg-icons/ac...
/* eslint no-console: "off" */ var faker = require('faker'); var config = require('../config'); module.exports = async (db, verbose) => { for (var i = 1; i < 50; i++) { if (verbose) { console.log(`Seeding household ${i}`); } await db.household.create({ 'nominatorId...