code
stringlengths
2
1.05M
import { create } from './fiber'; export const getFiberizedChildren = (fiber) => { let children = []; const prevChildren = fiber.previous.tree?.children || []; const nextChildren = fiber.next.tree?.children || []; const length = Math.max(prevChildren.length, nextChildren.length); if (fiber.previous.element ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Background from './Background'; import Header from './Header'; import Title from './Title'; import Nav from './Nav'; import Excerpt from './Excerpt'; import Scroll from './Scroll'; import workContent from '../../content/work'; im...
import 'babel-polyfill' import { expect } from 'chai' import { concat } from '../' import Immutable from 'immutable' describe('concat', function() { it('concats to mutable empty array', function() { const array = [] const result = concat(array, ['test1']) expect(result).not.to.equal(array) //expect new ...
'use strict'; const mongoose = require('mongoose'); module.exports= mongoose.model('Notes', mongoose.Schema({ title: String, text: String, category: { type:mongoose.Schema.Types.ObjectId, ref: 'Category' } }));
import React from 'react' import propTypes from 'prop-types' import { axiosInstance as axios, md } from '../../config' import Header from './header' const htmlContent = content => ({ __html: md.render(content || '') }) // const MarkdownPreview = ({ content }) => (<div dangerouslySetInnerHTML={htmlContent(content)} />)...
import React from 'react'; import PropTypes from 'prop-types'; import formatMoney from 'extensions/formatMoney'; import * as styles from './styles'; /** * The Money component renders a monetary value with a color and sign to indicate positive or negative. * It formats decimal values and adds a $ to the beginning, so...
version https://git-lfs.github.com/spec/v1 oid sha256:0d7101bb69db933d208a1ea6d60b1ca4cf90c2d4a32481446f6e91af61b1bf63 size 31626
include( "module3_dep.js" ); init = function() { test04a_module3_initialized = "yes"; } uninit = function() { test04a_module3_uninitialized = "yes"; }
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-contr...
// List of tasks that should be started when running reindex from ACP // 'use strict'; module.exports = function (/*N, apiPath*/) { // nothing to do here, the list is filled in elsewhere (e.g. in forum hooks) };
/* eslint linebreak-style: ["error", "windows"]*/ import React, { PropTypes } from 'react'; import { Link } from 'react-router'; const CooperationList = ({ cooperation }) => ( <div> <div className="media well"> <div className="media-body"> <h4 className="media-heading"> <strong> ...
'use strict'; var HumanEntity = new Class( function ( bukkitObject ) { Object.defineProperty( this, 'bukkit', { 'enumerable' : false, 'value' : bukkitObject } ); } ); HumanEntity.extends( require( './Entity.js' ) ); HumanEntity.prototype.getEnderChest = function () { return this.bukkit.ge...
var Environment, builtins, chai, compile, compileExp, compileExpNoOptimize, compileNoOptimize, compiler, expect, extend, idescribe, iit, initEnv, lib, ndescribe, nit, rootModule, textizerOptions, transform, _ref, _ref1; chai = require("chai"); expect = chai.expect; iit = it.only; idescribe = describe.only; nit = n...
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; ...
var pathLib = require('path'), util = require('utility.js'); exports.createConfig=function(config,packageJSON){ var envr=(typeof packageJSON != 'object' || typeof packageJSON.environment==='undefined' || packageJSON.environment ==""?"development":packageJSON.environment); var con...
import React from 'react'; import PropTypes from 'prop-types'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { NavigationView } from '../../src/core'; import compose from 'ramda/src/compose'; const ItemView = ({ children, next, prev }) => ( <div> ...
'use strict'; angular.module('main') .controller('InfoCtrl', function ($scope, $state, $window, $http, Guidelineservice) { $scope.index = $state.params.index; $scope.title = $state.params.title; /** * Get a JSON file for the information view. Selected by the language key. */ var getJSON = ...
'use strict'; var chai = require('chai'), expect = chai.expect, sinon = require('sinon'), integrity = require('../integrity'); chai.use(require('sinon-chai')); describe('integrity', function () { var sandbox; beforeEach(function () { integrity.resetAll(); sandbox = sinon.sandbox.create('integrity...
//(function () { // 'use strict'; //// Creates the gservice factory. This will be the primary means by which we interact with Google Maps // angular.module('tutors.services') // .factory('gservice', function ($rootScope, $http) { // // // Initialize Variables // // ---------------------------------------...
var mongoose = require('mongoose'); // var assert = require('assert'); var Dishes = require('./models/dishes-1'); // Connection URL var url = 'mongodb://localhost:27017/conFusion'; mongoose.connect(url, {useMongoClient: true}); var db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error...
'use strict'; /* * HTMLPart */ module.exports = function(stream, payload) { stream.util[payload.mode || 'replace'](payload.id, payload.html); };
Ext.ns('Ext.ux'); Ext.ux.MessageBox = function(){ var msgCt; function createBox(config){ return [ '<div class="flash">', '<table class="box ' + config.type + '" cellspacing="0" cellpadding="0" style="width:' + config.width + '">', '<tr><td class="lt"></td><td class="ct"></td><t...
// Data attribute switch var toggleState = function (elem, one, two) { var elem = document.querySelector(elem); elem.setAttribute('data-state', elem.getAttribute('data-state') === one ? two : one); }; // Mobile navigation toggle selector var navtoggle = document.querySelector('.toggle-button'); // Aside navigati...
'use strict'; const fs = require('fs'); const appVersion = require('./package.json').version; const electronVersion = require('./package.json').devDependencies.electron.replace('^', ''); const releaseUrl = require('./package.json').releaseUrl; const certPassword = require('../CodeSigningPassword.json').password; const...
//----------------------------------------------------- // // Author: Daeren // Site: 666.io // //----------------------------------------------------- /*jshint expr: true*/ "use strict"; //----------------------------------------------------- const rChai = require("chai"); const expect = rChai.expect; con...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:root', 'Unit | Route | root', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { var route = this.subject(); assert.ok(route); });
/** * Created by jack on 14-2-18. */ Ext.define('Webdesktop.model.duty.MissionManager', { extend: 'Ext.data.Model', fields: [ { name: 'missionname', type:'string' }, { name: 'missionlabel', type:'string' }, { n...
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'filetools', 'de', { loadError: 'Während des Lesens der Datei ist ein Fehler aufgetreten.', networkError:...
/** * User: Liu Juguang(materliu@tencent.com) * Date: 5/8/14 * Time: 7:41 PM */ ;(function() { "use strict"; function Rect(minx, miny, maxx, maxy) { this.minx = minx; this.miny = miny; this.maxx = maxx; this.maxy = maxy; } function max(a, b) { if (a >= b) {...
var Backbone = require('backbone'); var _ = require('underscore'); module.exports = Backbone.View.extend({ id: 'e' });
'use strict';var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var __decorate = (this && this.__decorate) || function (decorators, targe...
var segMinErr = minErr('segment'); function segmentProvider(){ var $provider = this; var segMap = { '1': 6, '2': 91, '3': 79, '4': 102, '5': 109, '6': 125, '7': 39, '8': 127, '9': 111, '0': 63, '-': 64, '_': 8,...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things map: { // our app is within ...
import React from 'react'; import PropTypes from 'prop-types'; /** * @function Input * @description An input in a field. */ const Input = (props) => { const handleChange = e => props.onChange(e.target.value); return ( <span className="form-field-input"> {props.type === 'textarea' ? ( <textare...
var util = require('util'); var EventEmitter = require('events').EventEmitter; var ST_INITED = 0; var ST_CLOSED = 1; /** * Socket class that wraps socket.io socket to provide unified interface for up level. * 封装了 socket.io 的 socket 操作,为连接器提供一个统一的 socket 操作接口 */ var Socket = function(id, socket) { EventEmitter.ca...
/** * This component shows the loading screen. It does so by removing any classes it * has, which will revert it back to it's default state, which is visible. */ import React from 'react'; import PropTypes from 'prop-types'; export default class ShowLoadingScreen extends React.Component { /* * This componen...
'use strict'; var ReactPDF = require('./react-pdf'); require('pdfjs-dist'); require('pdfjs-dist/web/compatibility'); module.exports = ReactPDF;
// This file need to be append to the build in order to work with browserify // Shamelessly stolen here: https://github.com/fabiosantoscode/require-emscripten/blob/master/post-js.postjs module.exports = Module; // Do not recurse into module and waste all day Module.inspect = function () { return '[Module]'; };
(function() { 'use strict'; angular.module('starter.services-utils') .service('translationService', translationService); translationService.$inject = ['$translate']; function translationService($translate) { var service = this; service.getTranslationLangList = getTranslationLangList; ...
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global'],function(q){"use strict";var F={};F.render=function(r,c){var a=r;var f=(c.getVisibleIte...
// React Reducer import {$DISPATCHES$} from "./actions"; const initialState = { }; export default function $COMPONENT$(state = initialState, action) { switch (action.type) { case $DISPATCH$: return Object.assign({}, state, { }); default: return state; } }
'use strict'; angular.module('globersMoodApp').factory('dispatchService', ['$http', 'logger', 'configuration', function($http, logger, configuration) { return { remind : function(campaignId, userId, successCallback, errorCallback) { var request = $http({ method : 'P...
module.exports = { development: { db: process.env.MONGODB || 'mongodb://localhost:27017/development', sessionSecret: process.env.SESSION_SECRET || 'mary had a little lamb, little lamb, little lamb', facebook: { clientID: process.env.FACEBOOK_ID || '888236434526836', clientSecret: pro...
/** * Kontrolleri huolehtii kayttajan tilan pyytamisesta * sivulle tulon yhteydessa, sekä sitä kutsuessa. */ angular.module('chatApp') .controller('userCtrl', ['$scope','$http', 'userStateService', 'heartBeatService', function ($scope, $http, userStateService) { $scope.pro = false; ...
var babelRegister = require('babel-core/register'); var gulp = require('gulp'); var babel = require('gulp-babel'); var mocha = require('gulp-mocha'); var gutil = require('gulp-util'); var beautify = require('gulp-jsbeautify'); var del = require('del'); var webpack = require('webpack'); var webpackConfig = require('./we...
/** * Test data for querytextindex action. */ 'use strict'; var U = require('../utils') var ASTests = require('../action-schema-tests-utils') var _ = require('lodash') var should = require('should') var T = require('../../lib/transform') var action = 'querytextindex' var alias = 'query' var filePath = __dirname +...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
'use strict'; var CONNECT_PORT = 9090; var CONNECT_PORT_TEST = 9091; var LIVERELOAD_PORT = 35742; module.exports = function (grunt) { require('load-grunt-tasks')(grunt); var alarm = { app: 'app', src: 'src', livereloadPort: LIVERELOAD_PORT, connectPort: CONNECT_PORT, ...
// { body } exports.BlockStatement = (node, nodePath, generator) => { generator.advance("{"); node.body.forEach(bodyNode => { generator.generate(bodyNode, nodePath); }); generator.advance("}"); }; // expression; exports.ExpressionStatement = (node, nodePath, generator) => { generator.mark(node.loc); ge...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @constructor */ WebInspector.DocumentationURLProvider = function() { this._gapFromIndex = 0; this._gapFrom = WebInspector.DocumentationURL...
/** * @author Zail * @email zzzzail@163.com * @date 2017/7/30 * @description 导航 * */ const mongoose = require('mongoose') const Schema = mongoose.Schema let navigationSchema = new Schema({ name: { // 导航名称 type: String, required: true }, url: { // 导航链接 type: String, trim: true, requir...
const transportType = require('./masterdata/transportType'); const messages = { 'de': { translation: { [transportType.TRANSPORT_SBAHN]: 'S-Bahn', [transportType.TRANSPORT_UBAHN]: 'U-Bahn', [transportType.TRANSPORT_BUS]: 'Bus', [transportType.TRANSPORT_TRAM]: ...
'use strict'; module.exports = function(City) { //not expose crud methods City.disableRemoteMethod('create', true) City.disableRemoteMethod('upsert', true) City.disableRemoteMethod('deleteById', true) City.disableRemoteMethod('updateById', true) City.disableRemoteMethod('updateAll', true) City.disableRemoteMeth...
'use strict'; import gulp from 'gulp'; import stylesheets from './mail/stylesheets'; import templates from './mail/templates'; import clean from './mail/clean'; const mail = gulp.series(clean, stylesheets, templates); export default mail;
var $scope = {}; $scope.test = 'Yo!'; $scope.remaining = function() { return 1; }; $scope.todos = [{ text: 'first', done: true }, { text: 'second', done: false }, { text: 'third', done: false }]; describe("MagJS Template", function() { it("is defined", function() { expect(mag.render).toBeDefined(); ...
//Insertion Sort var normaltest = false function resetarr(norm) { return norm ? [3, 2, 1, 45, 6, -7, 54, 9, 90, 5] : [-1, 0, 24, 1, 3, 5, 8, 2, 5, 4, 6, 76, 45, , 3, 23, 45, 56, 7, 8, , 9, 7, 6, 56, 5, 5, 3, , 2, 12, 1, 3, 4, 6, 7, 8, 9, 0, , 45, 4, 4, 4, 3, 3, 2, 2, 1, 1, 2, 4, 5, 6, 76, 5, , 4, 4, 3, 6, , 8, 9, ...
/** * This creates a simple package that can be exported * @namespace OfficeBotSDK.Index */ let SDK = (function(Promise) { let Settings = require('./src/settings.js'); Settings.setPromiseLib(Promise); let exports = { API : require('./src/api-config.class'), Cache : require('./sr...
var searchData= [ ['button',['button',['../class_button.html#aa552275b84734a66578ab684e51ab64a',1,'Button']]] ];
import to, { is } from 'to-js' import { regex, list, escape } from '../utils' /// @name @markup /// @page annotations /// @alias @code, @example, @output, @outputs /// @description /// Example code on how to use the documented block. /// /// - `id` is a way for a `@state` annotation to specify which `@markup` annotat...
import PropTypes from 'prop-types'; import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import ModalMessage from './rh-ModalMessage'; import Spinner from './rh-Spinner'; import Status from './rh-Status'; import { HForm, FormHGroupRow, FormHGroup, HInputDecorator }...
'use strict'; const assert = require('assert'); class MSqrt { constructor(attribs, children) { this.attribs = attribs; assert(children.length === 1); this.body = children[0]; } getFontLevel() { return this.body.getFontLevel(); } measure(fontSize) { const bodyDimensions = this.body.measur...
/** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
/*jshint node:true*/ module.exports = { scenarios: [ { name: 'default', dependencies: { } }, { name: 'ember-release', dependencies: { 'ember': 'components/ember#release' }, resolutions: { 'ember': 'release' } }, { name: 'ember-beta', ...
"use strict"; var browserify = require("browserify"); var gulp = require("gulp"); var source = require("vinyl-source-stream"); gulp.task("update-commander", function() { var b = browserify({ entries: "./node_modules/commander/index.js", standalone: "commander", transform: "phantomjsify", ...
var BaseService=require('../core/BaseService'); var AttributeType=require('../../models/goods/AttributeType'); var async=require("async"); var logger=require("../../lib/log4js"); var util=require('util'); function AttributeTypeService() { } AttributeTypeService.prototype=new BaseService(AttributeType,"gds_attr_type_s...
alert('hoe')
const WIDTH = 800; const HEIGHT = 600; let GLOBAL_RANDOM_POINT = [Math.random() * WIDTH, Math.random() * HEIGHT]; lineExampleSetup = function() { GLOBAL_RANDOM_POINT = [Math.random() * WIDTH, Math.random() * HEIGHT]; setInterval(function() { GLOBAL_RANDOM_POINT = [Math.random() * WIDTH, Math.random() * HEIGHT]...
var express = require('express'), app = express(), config = require('./config/config'), logger = require('./util/logger'), passport = require('passport'), userRouter = require('./api/user/routes'), bookmarkRouter = require('./api/bookmark/routes'), tagRouter = require('./api/tag/routes'); r...
var Mongoose = require( 'mongoose' ) /* Modelos Necesarios*/ const models = { 'history' : require( './histories' ) } /* Definicion de Esquemas de la DB*/ const activitySchema = new Mongoose.Schema( { /* date : Fecha en la cual se debe completo la actividad*/ 'date' : { 'type' : Date }, /* dateDetail : Detalle de ...
var assert = require('assert'); getDoc = function (query) { coll._collection.findOne(query, function(err, data) { emit('return', data); }); } suite('Server Public Methods', function() { test('insert', function(done, server) { var error = server.evalSync(function() { coll = new Meteor.SmartCollecti...
var gulp = require('gulp'), gutil = require('gulp-util'), concat = require('gulp-concat'), rename = require('gulp-rename'), uglify = require('gulp-uglify'), sass = require('gulp-sass'), sourcemaps = require('gulp-sourcemaps'), prefix = require('gulp-autoprefixer'), filter = require('gulp-filter'), b...
function tryParseJSON (jsonString){ try { var o = JSON.parse(jsonString); if (o && typeof o === "object" && o !== null) return o; } catch (e) { console.log('Failed parsing JSON, original string is: ',jsonString,' Error: ',e); } return jsonString; }; // function NWS(ws, cleanup) {...
"use strict"; (function (LogicalOperator) { LogicalOperator[LogicalOperator["And"] = 0] = "And"; LogicalOperator[LogicalOperator["Or"] = 1] = "Or"; })(exports.LogicalOperator || (exports.LogicalOperator = {})); var LogicalOperator = exports.LogicalOperator;
export var BeaconTelemetryClass; (function (BeaconTelemetryClass) { class EddystoneTelemetry { constructor(name, url, nid, bid, voltage, temperature, rssi) { this._name = name; this._url = url; this._nid = nid; this._bid = bid; this._voltage = volt...
'use strict'; var express = require('express'); var bodyParser = require('body-parser'); var controller = require('./lib/controller'); var app = express(); var BUTTONS = { 'BACK': 'BACK', 'UP': 'UP', 'SELECT': 'SELECT', 'DOWN': 'DOWN' }; app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended:...
'use strict'; module.exports = function (grunt) { require('jit-grunt')(grunt); var config = { src: 'src', dist: 'dist' }; grunt.initConfig({ config: config, clean: { dist: { files: [{ dot: true, src: [ '<%= config.dist %>/*', '!<%= ...
var res = { backgroundJ_img: "res/BG/bg.jpg", backgroundM_img: "res/BG/bg1.jpg", backgroundPlanet_img: "res/BG/planet.png", bossBody_img: "res/Boss/Body.png", bossGenOff_img: "res/Boss/FieldGen.png", bossGenOn_img: "res/Boss/FieldGenEnergy.png", bossShield_img: "res/Boss/ForceField.png"...
/** * Created by jim on 5/13/15. */ 'use strict'; var parser = require('./parsers'); var util = require('util'); var EventEmitter = require('events').EventEmitter; var SerialPort = require('serialport').SerialPort; function MindMirror3Factory() { var factory = this; var that = this; var _options = { portId:...
beachesApp.factory('Image', function($resource){ var Image = $resource('/api/v1/beaches/:beach_id/images', {beach_id: '@beach_id'}, {'update': { method: 'PUT' } }); return Image; })
<<<<<<< HEAD <<<<<<< HEAD module.exports = exports = configure /** * Module dependencies. */ var fs = require('graceful-fs') , path = require('path') , glob = require('glob') , log = require('npmlog') , osenv = require('osenv') , which = require('which') , semver = require('semver') , mkdirp = require...
var utils = require('./utils') var webpack = require('webpack') var config = require('../config') var merge = require('webpack-merge') var baseWebpackConfig = require('./webpack.base.conf') var HtmlWebpackPlugin = require('html-webpack-plugin') var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') // ad...
// Underscore.js 1.8.3 // http://underscorejs.org // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. (function() { // Baseline setup // -------------- // Establish the root object, `window` i...
m.ModelsDataPageLayoutView = m.LayoutView.extend({ rendered: function(){ for(var i in m.models){ var $el = $("<a class='span3'>").attr({ "data-route":"/data/model/"+i, "href":"/admin/data/model/"+i, }); $("<div class='item-wrap'>").append("<span>"+i+"</span>").appendTo($el); this.$(".row#items")....
var webduino = webduino || { version: '0.6.0' }; if (typeof exports !== 'undefined') { module.exports = webduino; }
'use strict'; const serverEvents = require('./index'); const expect = require('chai').expect; const sinon = require('sinon'); describe('server-events', ()=> { it('should notify listeners of server startup', ()=> { let listener = sinon.stub(); serverEvents.onStartup(listener); serverEvents.notifyStartup...
// Buyings service used to communicate Buyings REST endpoints (function() { 'use strict'; angular .module('buyings') .factory('BuyingsService', BuyingsService); BuyingsService.$inject = ['$resource']; function BuyingsService($resource) { return $resource('/api/buyings/:buyingId', { buyingId...
define([ "app", "models/suggest-term", "views/wast" ], function (app, SuggestTerm) { "use strict"; var //BACKSPACE_KEY = 8, TAB_KEY = 9, ENTER_KEY = 13, ESCAPE_KEY = 27, //SPACE_KEY = 32, ARROW_UP_KEY = 38, ARROW_DOWN_KEY = 40; //NUMBERS_START_KEY = 48, //NUMBE...
/* * CKFinder * ======== * http://cksource.com/ckfinder * Copyright (C) 2007-2014, CKSource - Frederico Knabben. All rights reserved. * * The software, this file, and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying, or distribut...
var expect = require('expect.js'); var teFlow = require('te-flow'); var addOne = function () { var args = [].slice.call(arguments); //add one args = args.map(function (val) { return val + 1; }); //techincally will reset the stream to but //it is reseting it to the input val. return args; }; var one...
'use strict'; let expect = require('chai').expect; let JSONTransport = require('../../lib/transports/json'); describe('JSONTransport', function() { it('should accept split chunks from external', function(done) { let expecting = 2; let transport = new JSONTransport(); let sampleData = []; for (le...
import React from 'react' import { connect } from 'react-redux' import { getOMDBDetails } from './actionCreators' import Header from './Header' const { shape, string, func } = React.PropTypes const Details = React.createClass({ propTypes: { show: shape({ title: string, year: string, poster: st...
import { spawn } from 'child_process'; export function startProcess(command, args) { const child = spawn(command, args, { // silent: true, stdio: 'pipe', }); child.stdout.on('data', data => process.stdout.write(data.toString())); child.stderr.on('data', data => process.stderr.write(data.toString()));...
// Copyright (c) 2015-2018 Robert Rypuła - https://audio-network.rypula.pl 'use strict'; var PhysicalLayerBuilder = AudioNetwork.Rewrite.PhysicalLayer.PhysicalLayerBuilder; var physicalLayerBuilder, physicalLayer; function init() { physicalLayerBuilder = new PhysicalLayerBuilder(); physicalLayer = ph...
module.exports = function(grunt){ grunt.initConfig({ // Clean clean: ['public', 'govuk_modules', '.tmp'], // Builds Sass sass: { dev: { options: { style: "expanded", sourcemap: true, includePaths: [ 'govuk_modules/govuk_template/assets/styleshee...
/** * @module models/Nutrient */ var mongoose = require('mongoose'), Schema = mongoose.Schema, mongoosePlugins = require('../lib/mongoose-plugins'), useTimestamps = mongoosePlugins.useTimestamps, ObjectIdSchema = Schema.ObjectId, ObjectId = mongoose.Types.ObjectId, async = require('async'), requirejs =...
/********************************************************************* * #### Twitter Post Fetcher v10.0 #### * Coded by Jason Mayes 2013. A present to all the developers out there. * www.jasonmayes.com * Please keep this disclaimer with my code if you use it. Thanks. :-) * Got feedback or questions, ask here...
var mat4 = require('gl-mat4') var style = require('dom-css') var stringify = require('matrix-to-css') var tweenr = require('tweenr')() var Interpolator = require('./') require('domready')(function() { var div = createBox() var start = mat4.create() var end = mat4.create() var out = mat4.create() ...
export default { NAME: "descriptions", };
/** * Created by kribh03 on 17-Jun-16. */ (function (angular) { 'use strict'; angular.module('components').directive('caSpinner', caSpinnerDirective); caSpinnerDirective.$inject = ['catalog.formRenderHelper', '$compile']; function caSpinnerDirective (formRenderHelper, $compile) { return { ...