code
stringlengths
2
1.05M
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-array'), require('d3-axis'), require('d3-collection'), require('d3-dispatch'), require('d3-format'), require('d3-scale'), require('d3-selection'), require('d3-shape'), require('d3-time-format')) : ...
import Ember from 'ember'; export default Ember.Controller.extend({ actions: { new() { this.transitionToRoute('images.new'); } } });
var vsf = require('./lib/vsf'); module.exports = vsf;
(function(externals){ var me = {}; function createEmptyMap(width, height){ var map = []; for (var i = 0; i < height; i++) { map.push([]); for (var j = 0; j < width; j++){ map[i].push(0); } } return map; } function centerInMap(obj, map){ if (!obj) return map; var vCenterOfMap = Math.floo...
// 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...
{ objectNestedInArrayDoc: { typeFilter: simpleTypeFilter, channels: { write: 'write' }, propertyValidators: { elementList: { type: 'array', arrayElementsValidator: { type: 'object', propertyValidators: { id: { type: 'string', ...
import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; import {Link} from 'react-router'; import {login} from '../../actions/account'; import './login.css'; class Login extends Component { constructor(props) { super(props); this.state = { username: ''...
let ActionType = require('./action-type'); module.exports = { ActionType: ActionType.default };
// Define module using Universal Module Definition pattern // https://github.com/umdjs/umd/blob/master/returnExports.js (function (root, factory) { if (typeof define === 'function' && define.amd) { // Support AMD. Register as an anonymous module. define([], factory); } else if (typeof exports === 'object'...
import 'antd-mobile/lib/nav-bar/style/css';
export default { forward: 'Encaminhar', cancel: 'Cancelar', customNumber: 'Número personalizado' }; // @key: @#@"forward"@#@ @source: @#@"Forward"@#@ // @key: @#@"cancel"@#@ @source: @#@"Cancel"@#@ // @key: @#@"customNumber"@#@ @source: @#@"Custom number"@#@
// VIEW IS ... // any html or plain text content // or if src= // an optional <loading> element // and/or an optional <error> element 'use strict'; // STUBS ... var selectAll = selectAll || function() {}; var toArray = toArray || function() {}; // MAIN ... var registerViewElements = function (root) { var view...
Ember.Handlebars.registerBoundHelper('date', function(date) { if(arguments.length == 1) { date = new Date(); } return moment(date).format('MMMM Do YYYY, h:mm a'); }); Ember.Handlebars.registerBoundHelper('date_ago', function(date) { return moment(date).fromNow(); }); Ember.Handlebars.registerBoundHelper('se...
Mind.fn.Canvas.fn.extend({ line : function(points, style) { style = style || {}; style.width = style.width || 2, style.color = style.color || '#000'; this.context.strokeStyle = style.color; this.context.lineWidth = style.width; this.context.beginPath(); if (!$.isArray(points[0])) {//说明是点集合 p...
var datasource = exports; var juggler = require('jugglingdb'); var all = require('./datasource/all'), checkUniqueKey = require('./datasource/checkUniqueKey'), create = require('./datasource/create'), destroy = require('./datasource/destroy'), findOne = require('./datasource/findOne'), find = require('./datasource/fin...
var searchData= [ ['mycashflow',['MyCashFlow',['../namespaceMyCashFlow.html',1,'']]], ['myoption',['MyOption',['../namespaceMyOption.html',1,'']]], ['mytrinomialtree',['MyTrinomialTree',['../namespaceMyTrinomialTree.html',1,'']]] ];
'use strict'; /** * Unit tests for packagers/yarn */ const BbPromise = require('bluebird'); const chai = require('chai'); const sinon = require('sinon'); const Utils = require('../../lib/utils'); chai.use(require('chai-as-promised')); chai.use(require('sinon-chai')); const expect = chai.expect; describe('yarn', (...
/* eslint no-console: 0 */ const path = require('path'); const express = require('express'); const webpack = require('webpack'); const webpackMiddleware = require('webpack-dev-middleware'); const webpackHotMiddleware = require('webpack-hot-middleware'); const config = require('./webpack.config.js'); var favicon = req...
const async = require('async'); const crypto = require('crypto'); const nodemailer = require('nodemailer'); const passport = require('passport'); const User = require('../models/user'); /** * GET /login * Login page. */ exports.getLogin = (req, res) => { User.find({ admin: true }).limit(1).exec(function (err, use...
angular.module('adExtreme') .controller('homeController', function ($scope, $rootScope, User) { $rootScope.loggedIn = false; $rootScope.currentUser = {}; });
var distance = require('turf-distance'); var point = require('turf-helpers').point; var bearing = require('turf-bearing'); var destination = require('turf-destination'); /** * Takes a {@link LineString|line} and returns a {@link Point|point} at a specified distance along the line. * * @name along * @category measu...
import THREE from 'three' import events from 'dom-events' const glslify = require('glslify') const noop = () => {} module.exports = function(app, cb) { cb = cb || noop const video = document.createElement('video') video.setAttribute('loop', true) video.setAttribute('muted', 'muted') addSource('video/mp4', ...
const expect = require('expect') const handler = require('./handler') let lambdaResponse handler.hello(null, null, (body, response) => { lambdaResponse = JSON.parse(response.body).message }) expect(lambdaResponse).toEqual( 'Go Serverless v1.0! Your function executed successfully!' ) console.log('all tests passed s...
'use strict'; var _ = R; var get = _.curry(function(x, obj) { return obj[x]; }); /****************************************** C O M P O S I T I O N E X A M P L E ******************************************/ // Curried functions are easy to compose. // Using _.map, _.size, and _.split we can // make a function ...
export default class DeleteController { constructor($scope, $window, $state, $q, $translate, WriteQueries, Configuration, notification, params, view, entry) { this.$scope = $scope; this.$window = $window; this.$state = $state; this.$translate = $translate; this.WriteQueries =...
"use strict"; /** * Module dependencies. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; var OrderSchema = new Schema({ id: {type: Number}, user_id: {type: Number}, type: {type: String, default: 'normal'}, status: {type: Number, default: 0}, status_list: {type: Array, default: [...
/* eslint standard/no-callback-literal: 0 */ import Vott from 'vott' import express from 'express' import bodyParser from 'body-parser' import request from 'request-promise-native' export class MessengerBot extends Vott { constructor (config) { super(config) this.platform = 'Messenger' this.config.endpo...
/** * Created by debayan on 7/24/16. */ Module.register("internet-monitor",{ defaults : { }, payload: [], downloadBarState: 'not_started', updating: false, start : function(){ console.log("Internet-monitor module started!"); this.sendSocketNotification('Start',this.config);...
(function () { 'use strict'; var mainApp = angular.module('myApp', [ // lib // 'ngPrettyJson', 'ui.router' ]); // mainApp.directive('snippet', ['$timeout', '$interpolate', function ($timeout, $interpolate) { // "use strict"; // return { // restrict: 'E', // ...
'use strict'; /* jshint indent: 2 */ var sequelize = require('../../config/sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('subject', { subjectID: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true }, title: { type: DataTypes.T...
/** * @class backImg * @memberOf lapps.lappsDirectives * @description This directive works similar to ng-src on background-image urls */ (function() { angular.module('lappsDirectives').directive('backImg', function() { return function(scope, element, attrs) { attrs.$observe('backImg', function(value) ...
/* * * Wijmo Library 0.6.1 * http://wijmo.com/ * * Copyright(c) ComponentOne, LLC. All rights reserved. * * Dual licensed under the MIT or GPL Version 2 licenses. * licensing@wijmo.com * http://www.wijmo.com/license * * * Wijmo Tabs widget. * * Depends: * jquery-1.4.2.js * jquery.ui.core.js * jquery.u...
import config from '../config' function requestContacts() { return { type: 'FETCH_CONTACTS', } } function receiveContacts(contacts=[], status='success', partial=false) { return { type: 'FETCH_CONTACTS', receivedAt: !partial && Date.now(), contacts, status, } } function receiveContact(con...
/*Copyright (C) 2013 David Orchard 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 restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
if (process.platform === 'darwin') { // this uses the binaries brought by npm package imagemagick-darwin-static const imagemagickPath = __dirname + "/../../node_modules/imagemagick-darwin-static/bin/osx/imagemagick/7.0.5-5"; process.env['MAGICK_HOME'] = imagemagickPath; process.env['PATH'] = imagemagickPath + ...
var _ = require('lodash'), assert = require('chai').assert, Picture = require('../client/picture'), Shape = require('../client/shape'), Arc = require('../client/shape/arc'), Polyline = require('../client/shape/polyline'), arcify = require('../client/suggest/arcify'), MockPaper = require('./m...
const assert = require("assert") describe("white algo", function () { const white = require("./white") it("", function () { const result = white([ [false, true, false], [true, true, false] ]) assert.deepEqual(result, [ {command: "PAINT_LINE", args: [0, 0, 0, 2]}, {command: "PAI...
'use strict'; export default function routes($routeProvider) { 'ngInject'; $routeProvider .when('/courses/:id/sections/create', { template: require('./create/newsection.html'), controller: 'NewSectionCtrl', authenticate: 'instructor' }) .when('/courses/:id/sections/:sectionId/edit', ...
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } /* hash functions: https://github.com/darkskyapp/string-hash | 18 lines (13 sloc) 408 Bytes https://github.com/srijs...
/** * 定义公共参数 * 设置回调函数定义名称 * 定义返回错误码 */ export const commonParams = { g_tk: 5381, inCharset: 'utf-8', outCharset: 'utf-8', notice: 0, format: 'jsonp' } export const options = { param: 'jsonpCallback' } export const ERR_OK = 0
angular.module('app.controllers', []) .controller('vagasDeEmpregoEmAtibaiaCtrl', ['$scope', '$stateParams', // The following is the constructor function for this page's controller. See https://docs.angularjs.org/guide/controller // You can include any angular dependencies as parameters for this function // TIP: Acce...
const { getInstanceWithoutData } = require('../parse/objects').default import moment from 'moment'; import Posts from "../lib/posts"; import Topics from "../lib/topics"; /** * The states were interested in */ const { PARSE_POSTS, } = require('../lib/constants').default export default class PostsParameters { ...
var tape = require("tape") var clone = require("../lib/clone") tape("clone", function(test){ var array = [1,2,3,4,5] var object = (function(){ function K(){ this.constructor = "foo" this.foo = "bar" } K.prototype.bar = "baz" return new K() })() var clonedArray = clone(array) var ...
/* Promise library used only for supporting PhantomJS */ (function(global){ // // Check for native Promise and it has correct interface // var NativePromise = global['Promise']; var nativePromiseSupported = NativePromise && // Some of these methods are missing from // Firefox/Chrome experimental im...
'use stirct'; module.exports = { Compiler: require('./Compiler') };
var tape = require("tape"), Queue = require(".."); tape("Queue: should enqueue callbacks and call all in order when notifyAll() is called", function(assert) { var queue = Queue.getPooled(), called0 = false, called1 = false; queue.enqueue(function() { called0 = true; }); q...
module.exports = function preg_grep (pattern, input, flags) { // http://kevin.vanzonneveld.net // + original by: Brett Zamir (http://brett-zamir.me) // % note 1: If pass pattern as string, must escape backslashes, even for single quotes // % note 2: The regular expression itself must be expr...
var restify = require('restify'); var cb = require('./bin/Bots/BotConnectorBot') var nursebot = new cb.NurseBot(); var server = restify.createServer(); server.get('/', (req, res, next) => { res.send({ nurse: "remedi is live!", isCommandMode: nursebot.isCommandMode }); next(); }); server.post('/api/m...
var isFunction = function(obj) { return (obj && typeof obj === 'function'); } var isSemigroup = function(obj){ return isFunction(obj.empty) || isFunction(obj.constructor.empty); } var isMonoid = function(obj){ return isSemigroup(obj) && isFunction(obj.concat); } var isFunctor = function(obj){ re...
/** * Module dependencies. */ var fs = require('fs'); var express = require('express'); exports.boot = function(app){ bootApplication(app); bootControllers(app); }; // App settings and middleware function bootApplication(app) { app.configure('development', function(){ app.use(express.errorHandler({ dump...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), CostingSheet = mongoose.model('CostingSheet'), agent = request.agent(app); /** * Globals */ var credentials, user, costingSheet; /** * C...
/* * Copyright 2013 Jive Software * * 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 l...
module.exports = function () { return { release: { options: { version: '<%= pkg.version %>', changelog: 'CHANGELOG.md' } } }; };
try{ var mongodb = require('mongodb'); }catch(e){ console.log('MongoDB is NOT installed, please "npm install mongodb" to use this module'); throw e; } var MongoClient = mongodb.MongoClient; var ObjectId = mongodb.ObjectID; var config = require('../../lib/config.js').section('store', { connectionString: 'mongo...
(function () { 'use strict'; angular .module('colleges') .run(menuConfig); menuConfig.$inject = ['menuService']; function menuConfig(menuService) { menuService.addMenuItem('topbar', { title: 'تسجيل الكليات', state: 'colleges', type: 'dropdown', roles: ['*'] }); //...
export const CHANGE = 'change'; export const CLICK = 'click'; export var viewEventTypes = [CHANGE, CLICK].join(' ');
import React from "react"; import cn from "classnames"; import { Link } from "react-router"; export const NewsViewSidebar = ({ articleSources, onSourceSelect, }) => ( <aside className="NewsViewSidebar"> <div className="NewsViewSidebar__inner"> <header className="NewsViewSidebar__header"> <h1 cl...
/**************************************************************************** Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docume...
var buildify = require('buildify'); buildify() .load('src/impress.js') .concat(['src/lib/gc.js']) .concat(['src/plugins/autoplay/autoplay.js', 'src/plugins/blackout/blackout.js', 'src/plugins/extras/extras.js', 'src/plugins/form/form.js', 'src/plugins/goto/...
//main server code that sends everything out to other code paths //is launched by the Procfile locally 'use strict' const express = require('express'); const bodyParser = require('body-parser'); var mongoose = require('mongoose'); const app = express(); const fb= require('./fb.js'); const db= require('./db.js'); const...
/*globals describe, it, beforeEach, afterEach */ var assert = require("assert"), path = require("path"), describeReporting = require("./helpers.js").describeReporting; describeReporting(path.join(__dirname, "../"), ["html", "templates"], function (reporter) { describe('reporter', function () { ...
'use strict'; module.exports = function (N, apiPath) { N.validate(apiPath, { settings: { type: 'object', required: true } }); N.wire.on(apiPath, async function global_settings_update(env) { let settings = {}; for (let [ name, value ] of Object.entries(env.params.settings)) { settings[name] ...
version https://git-lfs.github.com/spec/v1 oid sha256:9a834fdc93d5b0edf085e932a5c907818cc83d28443f2b73bf13b898693f574b size 142
'use strict'; const gulp = require('gulp'); const connect = require('gulp-connect'); const open = require('gulp-open'); const browserify = require('browserify'); const reactify = require('reactify'); const source = require('vinyl-source-stream'); const babelify = require("babelify"); const config = { port: 9005, de...
var Method = require('aeolus').Method; var hello = new Method(); hello.handle(function(request, response) { var object = { message: "Performed PUT on /hello", data: request.getBody() || "No body on the request." }; response.respondJSON(object); }); module.exports = hello;
var hue = require("node-hue-api"), async = require('async'), dash_button = require('node-dash-button'), HueApi = hue.HueApi, lightState = hue.lightState; var host = "192.168.1.1", username = "354ccffd2126c1475d855b923845163", api = new HueApi(host, username), of...
import { useContext } from 'react' import Context from './Context' export { default as withStorage } from './with.js' export { default } from './Provider.js' export function useStorage() { return useContext(Context) }
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { Setting, Star, Forward, Back, Reload } from '../icons' import Input from './input' import { load } from '../../actions' import './navigator.css' const handleSubmit = dispatch => event => { event.preventDefault()...
'use strict'; module.exports = { url:"http://readly.io", db: process.env.MONGOHQ_URL, app: { name: "Readly.io" }, embedlyKey: process.env.EMBEDLY_KEY, redis: process.env.REDISTOGO_URL, mail: { service: "SendGrid", auth: { user: process.env.SENDGRID_USERNA...
// Routes.js - Used to var Pokedex = require('./models/pokedex'); module.exports = function(app) { // All functionality for API routing e.g. app.get()... };
var Man = function() { var pub = this; pub.x = 30; pub.y = 50; var element; var health = 100; pub.name = 'Man'; pub.create = function() { element = $("<img>").attr("src", "img/running-man.jpg").attr('width', '30').appendTo("#container"); }; pub.render = function() { console.log('w: ' ...
/** * Templates/Extensions manager. Powered by MEAN stack * * @link http://github.com/nghuuphuoc/templatemanager * @author http://twitter.com/nghuuphuoc */ var // Environment env = process.env.NODE_ENV || 'development', express = require('express'), app = express(), server = requ...
({ // FIXME: move to netzke netzkeShowMessageBox( title, msg, additionalAttrs = {}, replaceNewlinesWithBr = true ) { const message = replaceNewlinesWithBr ? msg.replace(/(?:\r\n|\r|\n)/g, "<br>") : msg; Ext.MessageBox.show( Object.assign( { title, ...
Template.chapterList.events({ 'submit form': function (event) { event.preventDefault(); var chapterTitle = event.target.chaptertitle.value; Chapters.insert({title: chapterTitle}); }, 'click .list-group-item': function() { Bender.go('chapterQuestions', { chapterId: this._id }, { animation: 'slideLeft' })...
/** * @file salt命令 * @author r2space@gmail.com * @module light.core.remote.salt * @version 1.0.0 */ "use strict"; var exec = require("child_process").exec , util = require("util") , fs = require("fs") , async = require("async"); // TODO Epel源改为自己的源,然后从定向到Epel var REPOS = "http://ftp.linux.ncsu.edu/p...
/* globals obis, store */ // // HSBC UK plugin entry-point // import { actions } from '@/obis/actions' import { LEAVE_UNCHANGED } from '@/obis/store' import { generateIdForTransaction } from '@/obis/generators' import { fetchAccounts } from './api/accounts' import { fetchStatementsList } from './api/statements' impo...
'use strict'; // From https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md // Test via a getter in the options object to see if the passive property is accessed var opts; var supportsPassive = false; try { opts = Object.defineProperty({}, 'passive', { get: function () { supportsPassive ...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { dist: { src: ['dist'] } }, copy: { dist: { files: [ { expand: tru...
import { uuid } from 'utils/utils'; export function remoteToState(remote = []) { return remote.reduce((acc, redirection) => { const { Description: label, Expression: condition, IfTrue: cible } = redirection; const id = redirection.id || uuid(); return { ...acc, [id]: { ...
// Pull in fractal const fractal = require('./fractal.js'); const logger = fractal.cli.console; // Gulpy gulp const gulp = require('gulp'); const autoprefixer = require('gulp-autoprefixer'); const babel = require('gulp-babel'); const buffer = require('vinyl-buffer'); const browser...
var framework = require('./../../../framework'); var GeneratorService = module.exports = function GeneratorService() { }; framework.inheritService(GeneratorService); GeneratorService.prototype.postRegister = function() { var self = this; setInterval(function() { self.rpc('valueGenerated', {value...
////////////////////////////// // Sass Lint // - A Gulp Plugin // // Lints Sass files ////////////////////////////// 'use strict'; ////////////////////////////// // Variables ////////////////////////////// var through = require('through2'), gutil = require('gulp-util'), lint = require('sass-lint'), path =...
(function() { $.simpleWeather({ location: 'Berlin, Germany', woeid: '', unit: 'c', success: function(weather) { var temp = '<h2 class="title">' + weather.temp + '&deg;' + weather.units.temp + '</h2>', weat = '<i class="icon icon-' + weather.code + '">' + '</i>', ...
import React, { Component, Fragment, useEffect, useState, useRef } from 'react'; import dracula from 'prism-react-renderer/themes/dracula'; import CountUp, { useCountUp } from 'react-countup'; import { description, repository } from 'react-countup/package'; import { RotateCw } from 'react-feather'; import GithubCorner ...
(function () { 'use strict'; var scripts = document.getElementsByTagName("script"); var currentScriptPath = scripts[scripts.length - 1].src; angular.module('acdesarrollos.contacto', ['ngRoute']) .controller('ContactoController', ContactoController); /* .constant('googleAdsContact'...
version https://git-lfs.github.com/spec/v1 oid sha256:82a37be7acd892f10114c12d01e95c7830cb9b8f18f531a1c6625c03996b6da9 size 53696
(function (angular) { var theModule = angular.module('notesView', ['ui.bootstrap']); theModule.controller('notesViewController', ['$scope', '$window','$http', function ($scope, $window, $http) { $scope.notes = []; $scope.newNote = createBlankNote(); // get the category name var urlParts = windo...
//L systems. based on Daniel Shiffmans code //Paul Smith //this is a basic L system start file. the DOM elements need //to be uncomented in the index.html file. var axiom = "A"; var sentence = axiom; var rule1 = { a: "A", b: "AB" } var rule2 = { a: "B", b: "A" } function generate(){ var nextSentence = ""...
const DateTimeZone = Jymfony.Component.DateTime.DateTimeZone; if (':UTC' === process.env.TZ) { delete process.env.TZ; } const NullTimeZone = DateTimeZone.get(0); const DEFAULT_TZ = process.env.TZ || 'Etc/UTC'; const daysPerMonth = [ [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ], [ 31, 29, 31, 30, 31,...
"use strict"; //////////////////////////////////////////////////////////////////////////////// // アカウント //////////////////////////////////////////////////////////////////////////////// Contents.account = function( cp ) { var p = $( '#' + cp.id ); var cont = p.find( 'div.contents' ); var scrollPos = null; let reqTo...
/* eslint camelcase: 0 */ // Dynamically set the webpack public path at runtime below // This magic global is used by webpack to set the public path at runtime. // The public path is set dynamically to avoid the following issues: // 1. https://github.com/coryhouse/react-slingshot/issues/205 // 2. https://github.com/co...
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
var React = require('react'); var StoresStore = require('../stores/storeStore'); var DataFlowExplorer = require('./dataFlowExplorer'); var ObjectSidebarPane = require('./objectSidebarPane'); var DEFAULT_SIDEBAR_WIDTH = 325; var DEFAULT_SIDEBAR_HEIGHT = 325; var MINIMUM_CONTENT_WIDTH_PERCENT = 0.34; var MINIMUM_CONTENT...
import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; class Privacy extends Component { render() { return ( <h1 className="text-center"><FormattedMessage id={ 'privacy' } /></h1> ); } } export default Privacy;
/* global describe, it, before, beforeEach, after, afterEach */ var Waif = require('../'); var wrap = require('../wrap'); var should = require('should'); describe('wrap middleware', function() { var waif = null; before(function() { waif = Waif.createInstance(); this.service = waif('local') ....
/* jshint unused: false */ function getValue(selector, fn){ var value = $(selector).val(); value = value.trim(); $(selector).val(''); if(fn){ value = fn(value); } return value; } function parseUpperCase(string){ return string.toUpperCase(); } function parseLowerCase(string){ return string.toLow...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const __1 = require("../"); const ioc = require(".."); const chai = require("chai"); let should = chai.should(); describe('Lazy', function () { describe('inject lazy fn', function () { let injector...
/** * Created by Serge Balykov (ua9msn@mail.ru) on 2/12/17. */ 'use strict'; describe('Night suite', function(){ let $input, plug; const format = { hour12: true, hour: '2-digit', minute: '2-digit', second: '2-digit', weekday: 'long', year: ...
// @flow import lonlat from '@conveyal/lonlat' import {Map, MouseEvent} from 'leaflet' import PropTypes from 'prop-types' import React, {Component} from 'react' import colors from '../../constants/colors' import type {Grid} from '../../types' import Gridualizer from './gridualizer' const NO_DATA = -Math.pow(2, 30) ...
/*! * Nodeunit * This reporter performs a single test exection of a given test, and stores the result in a formatted * 'result' object that has the following form: { name: *testName*, duration: *in milliseconds*, state: *true|false*, assertions: [{ metho...