code
stringlengths
2
1.05M
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_open_in_new = exports.ic_open_in_new = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.4...
var instanceURL = gs.getProperty("glide.servlet.uri"); var overrideURL = gs.getProperty("glide.email.override.url"); if (overrideURL){ instanceURL = overrideURL; } else{ instanceURL = instanceURL; } var url = instanceURL + 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=299dbe0b0a0a3c4501c8951df102a2ae&manage...
var Settings = { TileSize: 32, DebugCollision: false, DebugSkipBootLogo: false, MatchmakingUri: 'http://burningtomato.com:2013' };
'use strict'; angular.module('core',['Repos']);
/** * controllers/signin.js */ var bcrypt = require('bcryptjs'); var request = require('request'); var jwt = require('jwt-simple'); module.exports = function( app, auth, config, User ) { // Sign in with Email app.post('/auth/login', function( req, res ) { User.findOne({ email: req.body.email }, '+passw...
var express = require('express'); var app = express(); app.use('/', express.static('../')); app.listen(9999);
import React, { Component } from 'react' import axios from 'axios' import Form from "react-jsonschema-form"; import VerbalsList from '../components/verbals-form' import {root_url} from './config' class VerbalsComponent extends Component { constructor (props) { super(props) this.state = { s...
/*eslint no-cond-assign: "error"*/ if (user.jobTitle = 'manager') { // user.jobTitle is now incorrect } /*eslint valid-typeof: "error"*/ typeof foo === 'fucntion' // The typo in the 'function' word. /*eslint no-self-compare: "error"*/ if (x === x) { x = 20; } /*eslint no-sparse-arrays: "error"*/ var colors =...
/* * Scenes are Dealers of Cards. Scenes must support a setStage() and a strikeStage() method, * when any Cards they contain get dealt and/or removed/replaced. * We make a distinction between Scene Cards and game Widgets, in that Scene Cards don't necessarily * persist through the whole Game and don't need to inter...
import reducer from './credentials.reducer' export default reducer export * from './credentials.actions' export * from './credentials.selectors'
'use strict'; ApplicationConfiguration.registerModule('ero-timesheet-template');
define([ "Praxigento_Core/js/grid/column/link" ], function (Column) { "use strict"; return Column.extend({ defaults: { /* see \Praxigento\BonusHybrid\Ui\DataProvider\Downline\Grid\A\Repo\Query\Grid::A_PARENT_MLM_ID */ idAttrName: "parentMlmId", route: "/customer/...
'use strict'; /** * Module dependencies. */ var passport = require('passport'), url = require('url'), LinkedInStrategy = require('passport-linkedin').Strategy, config = require('../config'), users = require('../../server/controllers/users'); module.exports = function() { // Use linkedin strategy passport.use(...
// # Demo Filters 017 // Filter parameters: displace // [Run code](../../demo/filters-017.html) import * as scrawl from '../source/scrawl.js'; import { reportSpeed, addImageDragAndDrop } from './utilities.js'; // Get Scrawl-canvas to recognise and act on device pixel ratios greater than 1 scrawl.setIgnorePixelRatio...
import React from 'react'; import _ from 'lodash'; import staticApi from '../static/api'; import ChampionIcon from './ChampionIcon'; import Picker from './Picker'; import setChampion from '../actions/setChampion'; class ChampionPicker extends React.Component { constructor(props) { super(props); this.state = ...
var stackedy = require('../'); var test = require('tap').test; var fs = require('fs'); var src = fs.readFileSync(__dirname + '/sources/deep.js', 'utf8'); test('nestDelay', function (t) { t.plan(2); var stack = stackedy(src).run({ process : process }); stack.on('error', function (err, c) { sta...
import {fixPlusMinus} from '../../src/lib/symbols/plus-minus' import assert from 'assert' import Locale from '../../src/locale/locale' describe('Fix plus-minus symbol ±\n', () => { let testCase = { '+-': '±', '-+': '±', } Object.keys(testCase).forEach((key) => { it('', () => { assert.equal(fix...
(function () { var Ext = window.Ext4 || window.Ext; var appIDMap = { milestone: -200004, iteration: -200013, release: -200012 }; Ext.define('Rally.apps.timeboxes.TimeboxesApp', { extend: 'Rally.app.GridBoardApp', requires: [ 'Deft.Deferred', ...
var class_max_flow = [ [ "MaxFlow", "class_max_flow.html#ace10d45cfe4765a66c77c20f8f9b79ab", null ], [ "~MaxFlow", "class_max_flow.html#a010a238596368ba8dcf2d79dbd16c126", null ], [ "MaxFlow", "class_max_flow.html#ace10d45cfe4765a66c77c20f8f9b79ab", null ], [ "~MaxFlow", "class_max_flow.html#a010a238596...
(function() { 'use strict'; angular .module('app.account') .factory('RegisterDialog', RegisterDialog); RegisterDialog.$inject = ['$uibModal']; function RegisterDialog($uibModal) { var service = { open: open }; var modalInstance = null; return service; function open() { if (modalInstance !=...
!function($, wysi) { "use strict"; var tpl = { "font-styles": function(locale, options) { var size = (options && options.size) ? ' btn-'+options.size : ''; return "<li class='dropdown'>" + "<a class='btn btn-default dropdown-toggle" + size + "' data-toggle='dropdow...
var assert = require('assert') var request = require('supertest') var app = require('../app') var req = request(app) describe('app', function () { function eq(a, b) { assert.strictEqual(a, b) } it('has index', function (done) { req .get('') .expect('content-type', 'tex...
var express = require('express'); var router = express.Router(); var path = require('path'); var viewDir = '/Users/Kirsti/Documents/Koodi/helmet/views'; /* GET home page. */ router.get('/', function(req, res) { //res.render('index', { title: 'Express' }); res.render('index', {title: 'Alkusivu'}); }); router.get(...
(function () { 'use strict'; }()); /* * @author WMXPY * @version 1.1.17 * This method is no longer recommended */ var Cs$ = { } var Cp$ = { /** * * @param {object} init * @returns */ animate: function (init) { return setTimeout(next, init.duration); function next...
var express = require('express'), app = express(), cons = require('consolidate'), server = require('http').createServer(app), io = require('socket.io').listen(server) server.listen(3000) app.engine('hbs', cons.handlebars) app.set('view engine', 'hbs') app.set('views', __dirname + '/views') app.get('/'...
var express = require('express'); var app = express(); var fs = require('fs'); var port = process.env.PORT || 30025; var fileName = 'person.json'; app.get('/', function(req, res) { var html = fs.readFileSync('public/index.html'); res.writeHeader(200, {"Content-Type": "text/html"}); res.end(html); }); app.get('/...
/** * @file tworowslayout.js * @brief Two rows layout * @author Frédéric SCHERMA (INRA UMR1095) * @date 2016-12-10 * @copyright Copyright (c) 2016 INRA/CIRAD * @license MIT (see LICENSE file) * @details */ let Marionette = require('backbone.marionette'); let TwoRowsLayout = Marionette.View.extend({ templ...
console.log("Loaded joinGame.js"); app.controller("joinGameController", function($scope){ console.log("In joinGame controller"); $scope.gameList = [{gameName: "Test Game!"}]; $scope.rowClickedHandler = function(game){ console.log("In rowClickedHandler"); console.log(game); if(game.h...
"use strict"; var platform_browser_dynamic_1 = require('@angular/platform-browser-dynamic'); var app_components_1 = require('./components/app/app.components'); var app_routes_1 = require('./components/routes/app.routes'); var core_1 = require('@angular/core'); if (_root.globals.enviroment != "development") { core_1...
var ClearModelObjectBufferCommand = function() { this.Extends = ClearObjectBufferCommand; this.execute = function(note) { //alert("ClearModelObjectBufferCommand"); try { var mediator = this.facade.retrieveMediator(ModelObjectsListMediator.ID); this.parent(note); mediator.list.setRootCommand(null); ...
QUnit.test('Math.log1p', assert => { const { log1p } = Math; assert.isFunction(log1p); assert.name(log1p, 'log1p'); assert.arity(log1p, 1); assert.looksNative(log1p); assert.nonEnumerable(Math, 'log1p'); assert.same(log1p(''), log1p(0)); assert.same(log1p(NaN), NaN); assert.same(log1p(-2), NaN); ass...
import React, { Component } from 'react' import { connect } from 'react-redux' import * as actions from './actions' import Arcade from './Arcade' class ArcadeContainer extends Component { constructor(props) { super(props) this.state = {time:0, timer: null, startTime: 0} } componentDidM...
describe('Form directive tests', () => { let $scope, compiledElement; beforeEach(angular.mock.module(require('app/application').name)); beforeEach(() => { angular.mock.inject(($rootScope, $compile) => { $scope = $rootScope.$new(); $scope.submitSpy = function submitSpy(data...
/* Copyright 2013, KISSY UI Library v1.40dev MIT Licensed build time: Jul 3 13:58 */ /* Combined processedModules by KISSY Module Compiler: swf/ua swf */ /** * @ignore * Flash UA 探测 * @author oicuicu@gmail.com */ KISSY.add('swf/ua', function (S, undefined) { var fpvCached, firstRun = true, ...
// Basic Loop with pre update expression /* var a = 0, b = 5; for (var i = 0; i < 5; ++i) { a = a + 1; } var c = a + 5; */ var a = 0, b = 5; for(var i = 0; i < 5; ++i) { a = a + 1; } var c = a + b;
module.exports = create; create.usage = "\trappidjs create lib <libName> [<dir>] - Creates a rappidjs lib directory structure" + "\n\trappidjs create app <AppName> [<dir>] - Creates empty rappidjs application"; var fs = require("fs"), path = require("path"), flow = require("flow.js").flow, ejs = requi...
exports.SAMPLER = 'Sampler'; exports.OSC = 'Osc'; exports.GAIN = 'Gain'; exports.FILTER = 'Filter'; exports.ENVELOPE = 'Envelope'; exports.EFFECT = 'Effect'; exports.DATA = 'Data'; exports.CONTROL = 'Control'; exports.IN_OUT = 'In/Out'; // exports.OTHER = 'misc';
console.info("overview"); var x = 5; var y; var z = x + 5; var o1; var o2; var o3; var a1; var a2; var a3; var f1; var f2; f2 = function (n) { return 5; }; console.log(f2()); var A = (function () { function A() { this.init = function (n) { }; } A.prototype.foo = function () { this.init2 = fu...
module.exports = { eslint: require('./eslint'), npm: require('./npm'), objectToSpawnArgs: function(object) { function option(prop, value) { var params = []; if (prop.length === 1) { params.push('-' + prop); if (value !== true) { ...
var inherits = require('util').inherits; var EventEmitter = require('events').EventEmitter; var extend = require('extend'); var taxaprisma = require('taxaprisma'); inherits(SearchResult, EventEmitter); function SearchResult(settings) { if (!(this instanceof SearchResult)) { return new SearchResult(settings); } ...
// Regular expression that matches all symbols in the `Zs` category as per Unicode v2.0.14: /[\x20\xA0\u2000-\u200B\u3000]/;
// --------------------------------------------------------------------------------------------------------------------- // Input Manager // // @module inputman.js // --------------------------------------------------------------------------------------------------------------------- function InputManagerFactory($root...
angular.module("rt.iso8601",[]).factory("iso8601",function(){function a(a){return parseInt(a,10)}var b="substring",c="indexOf",d="length";return{parse:function(e){var f,g,h,i,j,k,l=0;if(i=j=k=0,!e||!e[d])return null;if(e[d]>=10){var m=e[b](0,10).split("-");f=a(m[0]),g=a(m[1])-1,h=a(m[2])}if(e[d]>=11){for(var n=e[b](11)...
var net = require('net'); var util = require('util'); var events = require('events'); var proto = require('./protocol'); module.exports = Device; function Device(conf) { events.EventEmitter.call(this, conf); var self = this; this.backlog = []; this.device_id = conf.device_id; this.device_ip = conf.device_ip; ...
import { default as Dungeon } from '../../../src/client/js/app/dungeons/Dungeon'; import { default as Tiles } from '../../../src/client/js/app/tiles/Tiles'; import { default as DashAttack } from '../../../src/client/js/app/abilities/DashAttack'; import { default as Dagger } from '../../../src/client/js/app/entities/wea...
class Foo { *[Symbol.iterator]() {} } let f = new Foo(); console.log(f[Symbol.iterator]()); // Generator {<suspended>}
/*****************************************************************************/ /* PagesShow: Event Handlers and Helpersss .js*/ /*****************************************************************************/ Template.PagesShow.events({ 'click #new-paragraph-action': function (e) { e.preventDefault(); Sessio...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2016 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * The Phaser.Game object is the main controller for the entire Phaser game. It is responsible * for handling the...
(function () { 'use strict'; describe('Firewalls List Controller Tests', function () { // Initialize global variables var FirewallsListController, $scope, $httpBackend, $state, Authentication, FirewallsService, mockFirewall; // The $resource service augments the res...
'use strict' import Vue from 'vue' import VueRouter from 'vue-router' import routes from './routes' // Container Component import Full from '../containers/Full' Vue.use(VueRouter) export default new VueRouter({ mode: 'history', base: '/admin', linkActiveClass: 'open active', scrollBehavior: () => ({ y: 0 })...
// Enable source map support // import 'source-map-support/register' // Module Dependencies import path from 'path' import async from 'async' import { Utils as UtilsClass } from './satellites/utils' // FIXME: this is a temporary workaround, we must make this more professional const Utils = new UtilsClass() // This s...
var expect = require("expect.js"); var properties = require(__filename.replace(/test/, "src").replace(/-test.js$/, ".js")); describe("properties", function () { it("getProperties should be empty for non-existing properties", function () { var theProperties = properties.getProperties("NonExisting.propertie...
let db; let idb_helper; module.exports = idb_helper = { set_graphene_db: database => { db = database; }, trx_readwrite: object_stores => { return db.transaction( [object_stores], "readwrite" ); }, on_request_end: (request) => { //return request => { ...
define(["knockout"], function(ko){ var vm = function(){ this.testBind = ko.observable('2016-04-08'); this.show = ko.pureComputed(function(){ return 'You just picked : '+ this.testBind(); }); }; return vm; })
var classHelix_1_1Logic_1_1admin_1_1Row = [ [ "Row", "classHelix_1_1Logic_1_1admin_1_1Row.html#a5cca50abc389396e26ec68cbd3fb6596", null ], [ "Row", "classHelix_1_1Logic_1_1admin_1_1Row.html#a9dbe8548daa0a4887688199e00c25ebe", null ], [ "~Row", "classHelix_1_1Logic_1_1admin_1_1Row.html#a8cc0869c91dc94ee59506...
version https://git-lfs.github.com/spec/v1 oid sha256:136260763fa9e047fbd5342fdf7ea53cd2ef2b4e3fe7f26cd65770dd25614bec size 29831
// Load modules var Crypto = require('crypto'); var Url = require('url'); var Utils = require('./utils'); // Declare internals var internals = {}; // MAC normalization format version exports.headerVersion = '1'; // Prevent comparison of mac values generated with different normalized string...
// Ionic Starter App // angular.module is a global place for creating, registering and retrieving Angular modules // 'starter' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'starter.services' is found in services.js // 'start...
{ data: (function() { var ro = {}; ro.partname = 'Boozembly 2016 - intro'; ro.prewarm = true; ro.partlength = 13965; ro.cameras = { 'makkaracam': new THREE.PerspectiveCamera(45, global_engine.getAspectRatio(), 0.1, 8000), 'logocam': new THREE.PerspectiveCamera(45, global_engine.getAspectRatio(), 0.1, ...
import request from 'request' import { remote } from '../../../src' import { ELEMENT_KEY } from '../../../src/constants' import * as utils from '../../../src/utils' describe('selectByIndex test', () => { const getElementFromResponseSpy = jest.spyOn(utils, 'getElementFromResponse') let browser let elem ...
Template.registerHelper('tweetToUser', function(twitterScreenName){ var urls = [ "text=Hello @"+twitterScreenName+" ! We shared an orbit on", "url=http://www.friendsinspace.org", "hashtags=friendsinspace" ]; return "https://twitter.com/intent/tweet?"+urls.join("&")+"&"; }); Templa...
export function isNullOrWhitespace ( str ) { if (typeof str === 'undefined' || str == null) return true; return str.replace(/\s/g, '').length < 1; } export function intersperse(array, something) { if (array.length < 2) { return array } var result = [], i = 0, l = array.length if (typeof something ...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const Inte...
import React from 'react'; import PropTypes from 'prop-types'; import { connect} from 'react-redux'; import UmsgContainer from '../containers/UmsgContainer'; import Sidebar from '../components/Sidebar' import Item from '../components/Item' import { fetchCategory, searchItems } from '../store/actions/items' class Prod...
var auth = require('./lib/index.js'); var config = require('config'); const USERNAME = (process.env.USERNAME) ? process.env.USERNAME : config.get('icarus.username'); const PASSWORD = (process.env.PASSWORD) ? (process.env.PASSWORD) : config.get('icarus.password'); if (!(USERNAME && PASSWORD)) { thr...
function SpeechBubbleObject(masta) { GameObject.call(this); this.font = "18px Arial"; this.text = ""; this.master = masta; this.position = new Vector2(0,0); this.size = new Vector2(0,0); this.depth = 90; this.displayTimeLimit = 0; this.display = false; this.displayTimer = 0; this.setText = function(tex...
import { EventEmitter } from 'events'; import Constants from './Constants'; // searchers import YoutubeSearcher from 'kaku-core/modules/searcher/YoutubeSearcher'; import VimeoSearcher from 'kaku-core/modules/searcher/VimeoSearcher'; import SoundCloudSearcher from 'kaku-core/modules/searcher/SoundCloudSearcher'; import...
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', [ 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version', 'ngMdIcons' ]). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!')...
define([ 'utils/isEqual', 'shared/get/_get' ], function ( isEqual, get ) { 'use strict'; var options = { evaluateWrapped: true }; return function updateMustache () { var value = get( this.root, this.keypath, options ); if ( !isEqual( value, this.value ) ) { this.render( value ); this.value = value;...
const _ = require('lodash'); let defaults = { PORT: 3000, METADATA_CRON_SCHEDULE: '0 0 * * Monday', // update file from gprofiler etc. (Monday at midnight) PC_URL: 'https://www.pathwaycommons.org/', XREF_SERVICE_URL: 'https://biopax.baderlab.org/', DOWNLOADS_FOLDER_NAME: 'downloads', GPROFILER_URL: "https:...
var AppDispatcher = require('../dispatcher/AppDispatcher'), Constants = require('../Constants'); module.exports = { awardUsers: function (users, awardId, reason) { AppDispatcher.dispatch({ actionType: Constants.EVENT_AWARD_USERS, users : users, award : aw...
module.exports = { extends: ["prettier"], };
var React = require('React'); var Card = require('./Card'); var Parent = React.createClass({ render: function() { return ( <div> Parent component. <Card /> </div> ); } }); module.exports = Parent;
/** * da-events is included in starter-kit * it's a simple event listener that can register and trigger callbacks * based on events that are triggered through its methods */ module.exports = ngModule => { function daEvents($rootScope, $q, $log, SAMPLE_APP) { // central place for documenting app events con...
(function() { 'use strict'; angular .module('yobi.editor') .controller('yobiEditorCtrl', ['yobiEditorSvc', yobiEditorCtrl]) function yobiEditorCtrl(yobiEditorSvc) { /* jshint validthis: true */ var vm = this; vm.mention = { users: yobiEditorSvc.users(), ...
function reverseSentences(sentences) { for (var i=0; i<sentences.length; i++) { sentences.splice(i, 1, sentences[i].split(' ').reverse().join(' ')); } return sentences; } console.log(reverseSentences(["Hello World", "Hello CodeEval"]));
/** * Created by dt on 2016/10/18. */ var utils = require('../tinyTool/utils.js'); var date = require('../tinyTool/date.js'); var http = require('http'); var urlParse = require('url').parse; var querystring = require('querystring'); var interfaceTestData = { data_URL : [], data_UserId : [], d...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { firebaseConnect, isLoaded, isEmpty, dataToJS } from 'react-redux-firebase'; import LoadingSpinner from '../../../../../Components/LoadingSpinner'; import classes from './ProjectC...
exports.getPromptConfig = async (options) => { let { message } = options; if (typeof options.message === 'function') { message = message(); } return { validate: () => true, ...options, message: await message, }; };
const assert = require('assert'); const rewire = require('rewire'); const Player = rewire('../lib/player'); const { getClient } = require('./lib/mongo'); const mock = require('./lib/mock'); const getPlayerClient = function () { return getClient(Player); }; const getCollection = function () { return getPlayerC...
require('./dist/jk-rating-stars.js'); module.exports = 'angular-jk-rating-stars';
var combineAllArrays = (arr1, ...arr2) => { return arr1.concat(...arr2); }; var arr1 = [1, "peter", 5]; var arr2 = [1, 2, "45"]; var hege = ["Cecilie", "Lone"]; var stale = ["Emil", "Tobias", "Linus"]; console.log(combineAllArrays(arr1, arr2, hege, stale));
$(document).ready(function() { // Better performance in replacing js in any browsers. http://jsperf.com/encode-html-entities function htmlEscape(str) { return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/ /g, '&nbsp'); } function userReplace(str) { re...
/********************************************************************* Component.js This file is part of Heliwidgets library for Helios framework. __Copying:___________________________________________________________ Copyright 2008, 2009 Dmitry Prokashev Heliwidgets is free software: you can red...
version https://git-lfs.github.com/spec/v1 oid sha256:76e07e15b3c4e8cf9879359445eb1d5ed7004acfec2b05ab10b1ebc317dcccca size 1566591
/** * Test dependencies. */ var Asana = require('asana-client') , request = require('superagent'); describe('Asana client', function() { var ctx = {}, asana; before(function() { asana = new Asana(ctx, '/'); }); afterEach(function() { request.restore(); }); describe('addWorkspaces', functio...
/** * Created by Administrator on 2015/12/26. * 一些变量 $.fn.extend({ // 通过一定的条件,删选自身 find 查找子节点, 调用的是jQuery.find == Sizzle, jQuery.unique == Sizzle.unique ; has 指子元素有没有,返回自身的。。 not filter 指自身有没有,返回自身的。。 is 返回true or false closest 找满足条件的最近父节点(包括自身) index 返回元素在兄弟节点中的索引值 add addBack }); function sibling(...
// NEED TO TEST THIS! var Navigation = { moveUp: function(startingGridIndex, placeHolder){ var destination = new Point(0, 0); destination.x = startingGridIndex.x; destination.y = startingGridIndex.y - 1; return destination; }, moveDown: function(startingGridIndex, p...
version https://git-lfs.github.com/spec/v1 oid sha256:e9ce49ab0d60ac1c1a2cc7d1d5363316866f0437e37dd7fc16e31b5e58559ba7 size 3993
import THREE from 'three'; const simplex = new(require('simplex-noise')) const random = require('random-float') const randomInt = require('random-int') import NewtonParticle from '../Helpers/NewtonParticle' const NUM_PARTICLES = 30 const MAX_HEIGHT = 4 /** * CubeGeometry class */ class RainGeometry extends THREE.B...
module.exports = { "rules": { "no-console": 0 }, }
/** * @author Phuluong * December 27, 2015 */ /** Exports **/ module.exports = new SocketIOConnection(); /** Imports **/ var event = require(__dir + "/core/app/event"); /** Classes **/ function SocketIOConnection() { this.messageListeners = []; this.connectionListeners = []; this.io = require("socket.io...
var assert = require('assert'); var largestOfFour = require('../basic/largestOfFour').largestOfFour; describe('largestOfFour', function() { it('should return [27,5,39,1001] when arr is [[13, 27, 18, 26], [4, 5, 1, 3], [32, 35, 37, 39], [1000, 1001, 857, 1]]', function() { assert.deepEqual([27,5,39,1001], l...
(function (angular) { angular.module('shiverview') .controller('progressCtrl', ['$scope', 'ngProgressFactory', function ($scope, ngProgressFactory) { $scope.bar = ngProgressFactory.createInstance(); $scope.bar.setColor('#0091bf'); $scope.$on('$routeChangeStart', function (e) { $scope.bar.reset(); $scope.b...
'use strict' // Require const fs = require( 'fs' ) const path = require( 'path' ) const { isDirectory, isFile, isExternal } = require( './is' ) /** * Check all blocks and read jsons & deps then sort levels and write map. * * @param {Object} task * * @return {undefined} */ module.exports = function ( task )...
//function returning an object. let getData = (num) => ({id : num}); //arrow function in map let result = [1, 2, 3, 4].map(item => item * 2);
(function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.rowEdit * @description * * # ui.grid.rowEdit * * <div class="alert alert-success" role="alert"><strong>Stable</strong> This feature is stable. There should no longer be breaking api changes without a deprecation warning.</div> ...
import CodeMirror from 'codemirror'; import Ember from 'ember'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('ivy-codemirror', { unit: true }); test('should update value property when CodeMirror changes', function(assert) { var component = this.subject(); this.render(); var code...
version https://git-lfs.github.com/spec/v1 oid sha256:c12a4b6c29c5070050e0f8d3493a3af24d2f3c745620e2073fbef5e79a540534 size 3968
/* global Document */ 'use strict'; const test = require('./../helper.js'); const _ = require('lodash'); let Doc; describe('Document model', () => { before(test.cleanDb); before(() => { Doc = _.partial(test.createModel, Document); }); describe('isValid', () => { it('should be able ...