code
stringlengths
2
1.05M
/* jshint ignore:start */ // test handles model for tests // values: [API | Firebase] var activeModel = 'API'; /* jshint ignore:end */
import { SET_INTERFACE_EDITOR_STYLE_SHEET_EDITOR_SELECTED_STYLE_NAME } from '../../actions/interfaceEditorStyleSheetEditorSelectedStyleName'; export const initialState = 'container'; export default function interfaceEditorStyleSheetEditorSelectedStyleName(state = initialState, action) { switch (action.type) { c...
describe("wu.chain", () => { it("should concatenate iterables", () => { assert.eqArray([1, 2, 3, 4, 5, 6], wu.chain([1, 2], [3, 4], [5, 6])); }); });
const fs = require('fs'); const path = require('path'); const frontMatter = require('front-matter'); const File = require('vinyl'); const pug = require('pug'); const replaceExt = require('replace-ext'); const transformLinks = require('transform-markdown-links'); const getPageFileName = require('./util/get-page-filename...
// @ts-check /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ /** * @typedef {import('playwright').Page} Page * @typedef {import('playwright').BrowserContext} BrowserContext */ const delay = require('del...
'use strict'; // Vegetables controller angular.module('vegetables').controller('VegetablesController', ['$scope', '$stateParams', '$location', 'Authentication', 'Vegetables', function($scope, $stateParams, $location, Authentication, Vegetables) { $scope.authentication = Authentication; // Create new Vegetable ...
'use strict'; var _ = require('underscore'), ResponseMeta = require('./ResponseMeta'); /** * Response 'data' node formatter * * It basically transforms the models nested relations into objects * with 'meta' and 'data' attributes, where the 'data' node just contains * the data, potentially truncate...
export { default } from 'ember-cli-gingerbread/components/gingerbread-modal';
// Karma configuration // Generated on Mon May 04 2015 15:14:29 GMT-0300 (BRT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
const merge = require('lodash/merge'); const omit = require('lodash/omit'); const users = require('ms-users-restify'); const BLACK_LIST = ['reconfigure', 'getTimeout', 'getRoute']; /** * Default configuration object * @type {Object} */ const config = module.exports = { users: { audience: '*.localhost', p...
var gulp = require('gulp'); var babel = require('gulp-babel'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var sourcemaps = require('gulp-sourcemaps'); var cleanCSS = require('gulp-clean-css'); var readFileSync = require('fs').readFileSync; var config = JSON.parse(readFileSync('./package.j...
'use strict'; const assert = require('assert'); const Browscap = require('../src/index.js'); suite('checking for issue 434. (1 test)', function () { test('issue-434 ["Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0"]', function () { const browscap = new Browscap(); const browser =...
function Bumper(coords, context, color) { this.minX = coords.minX; this.maxX = coords.maxX; this.minY = coords.minY; this.maxY = coords.maxY; this.context = context; this.type = coords.type; this.color = coords.color || "white" }; Bumper.prototype.draw = function() { if (this.type == "bumper") { th...
var map, pointarray, heatmap; var seattleLatLng = new google.maps.LatLng(47.6097, -122.331); var seattleLat = 47.6097; var seattleLng = -122.331; var crimeWeight = 1; var schoolWeight = 10; var amenWeight = 1; var includedAmen = ['foodbanks', 'historic', 'art', 'parks', 'pools']; var done = 0; // testData needs to con...
'use strict' const Type = require('../type') module.exports = Type({ name: 'JCB', pattern: /^35\d{14}$/, eagerPattern: /^35/ })
/** * Model that manages a table of device (serial) port configurations * */ // ID of the model as used to access it (eg from controllers). Defaults to filename less extension exports.id = 'port'; // The name of the database table accessed by this model exports.table = 'port'; // A version number exports.version...
import 'jquery' import data from 'js/data.js' import templates from 'js/templates.js' import validator from 'js/validator.js' export default { all: function (name) { templates.load('categories') .then(function(templateHtml) { $('#main').html(templateHtml); }); ...
/** * Main JS file for Casper behaviours */ /* globals jQuery, document */ (function ($, undefined) { "use strict"; var $document = $(document); $document.ready(function () { var $postContent = $(".post-content"); $postContent.fitVids(); $(".scroll-down").arctic_scroll(); ...
'use strict'; /* global PlotlyGeoAssets:false */ var d3 = require('@plotly/d3'); var geo = require('d3-geo'); var geoPath = geo.geoPath; var geoDistance = geo.geoDistance; var geoProjection = require('d3-geo-projection'); var Registry = require('../../registry'); var Lib = require('../../lib'); var strTranslate = Li...
/**! Qoopido.nucleus 3.2.6 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t){"use strict";provide(["/demand/weakmap","../emitter",t.matchMedia||"../polyfill/window/matchmedia"],(function(t,e,a){var i=new t;function n(t){var n=e.call(this),r=a(t);return i.set(n,r),r.addListener((function(){n.emit(!0===r...
Meteor.publish('cards', function() { return Cards.find({ownerId: this.userId}); });
var dir_2d1f23b58b8263e9463c4ee55a9c6070 = [ [ "src", "dir_b6883bb9e2694b611848609bfb3e442c.html", "dir_b6883bb9e2694b611848609bfb3e442c" ] ];
// @flow import React from 'react'; import { assert } from 'chai'; import { spy, stub, useFakeTimers } from 'sinon'; import css from 'dom-helpers/style'; import { createShallow, createMount, getClasses } from '../test-utils'; import Popover from './Popover'; describe('<Popover />', () => { let shallow; let mount;...
(function () { var firstNames = ["Sophie", "Isabelle", "Emily", "Olivia", "Lily", "Chloe", "Isabella", "Amelia", "Jessica", "Sophia", "Ava", "Charlotte", "Mia", "Lucy", "Grace", "Ruby", "Ella", "Evie", "Freya", "Isla", "Poppy", "Daisy", "Layla"]; var lastNames = ["Beckham", "Black", "Braxton", ...
export function add(a, b) { return a + b; } export function subtract(a, b) { return a - b; } export function multiply(a, b) { return a * b; }
import React, {Component} from 'React'; import { StyleSheet, ActivityIndicator, Button, Image, ScrollView, Text, TouchableOpacity, View } from 'react-native'; import CheckBox from 'react-native-check-box' import HTMLView from 'react-native-htmlview'; import {Course} from '../Course'; const Constants = ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/extends")); var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/jsx")); var _objectWithoutProperties2 = _inte...
/* global cordova:false */ /*! * Module dependencies. */ var exec = cordova.require('cordova/exec'); /** * NotificationHub constructor. * Initializes a new instance of the NotificationHub class. * http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.messaging.notificationhub.notificati...
export const HELLO = 'HELLO';
function urlParam(name) { var results = new RegExp('[?&]' + name + '=([^&#]*)').exec(location.href); return results === null ? null : results[1] || 0; } function selects() { if ($('#mode-select').length) { setSelect(); $('#mode-select').change(function() { var mode = this.value;...
(function () { 'use strict'; angular .module('mnTweets', ['ngMap', 'ngRoute', 'ngMaterial', 'ngAnimate']) .config(["$routeProvider", "$mdThemingProvider", function ($routeProvider, $mdThemingProvider) { // route configurations $routeProvider .when("/", { templateUrl: "js/src/w...
import { baseUniDriverFactory } from 'wix-ui-test-utils/base-driver'; export const socialPreviewDriverFactory = base => { return { ...baseUniDriverFactory(base), /** Get SocialPreview title */ getTitle: async () => base.$('[data-hook="socialPreview-title"]').text(), /** Get SocialPreview url */ ...
import React, { Component } from 'react'; import { View, Text, StyleSheet, Button } from 'react-native'; import firebase from 'firebase'; export default class App extends Component { constructor(props) { super(props); this.state = { log: null }; this.getData = this.getData.bind(this); ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" }), 'DiscFullSharp');
/** * The description of some function c. * @param {string} str The argument for this function. * @param {number} count The count. * @return {boolean} A description about what this funtion returns. */ function isEmpty(arg, count){ var myCar = arg ? false : true; return myCar; }
module.exports = { /** * Fetch all accounts * * @param {callback} callback - An optional callback * @returns {promise} */ listAccounts(callback) { return this.get('v2/accounts', {}, callback); }, /** * Fetch an account * * @param {number} accountId - Required. The account id * @pa...
{ var s = scale .scaleIdentity() .domain([new Date(1990, 0, 1), new Date(1991, 0, 1)]); test.equal(typeof s.domain()[0], "number"); test.equal(typeof s.domain()[1], "number"); test.equal(s.domain()[0], +new Date(1990, 0, 1)); test.equal(s.domain()[1], +new Date(1991, 0, 1)); test.equal(typeof s(new ...
$(document).ready(function() { if (document.querySelector('.pages.business')) { mapboxgl.accessToken = 'pk.eyJ1IjoicGFkYW1pbyIsImEiOiJjajE1MHpvaDgwMDBxMnFuNW16cjFwZXNhIn0.SrEc4qX1z94maLdY-XisZQ'; var map = new mapboxgl.Map({ container: 'map', style: 'mapbox://styles/padamio/cj15101qx002d2smfqddmvt...
// Karma Chrome configuration // Just opens Google Chrome for testing var base = require('./conf'), extend = require('lodash/extend'); module.exports = function (config) { config.set(extend(base, { // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config....
export const UPDATE_PLAYER_LOCATIONS = 'UPDATE_PLAYER_LOCATIONS'; export const ADD_PLAYER = 'ADD_PLAYER'; export const REMOVE_PLAYER = 'REMOVE_PLAYER';
const Evaluator = require('../../../../index'); const expected = require('./expected-results'); const assert = require('assert'); const assocObj = require('./associationObject'); module.exports = () => { const evaluator = new Evaluator( assocObj ); let ruleId = 'epbbFormula'; let ruleEvaluator = evaluat...
var fs = require('fs'), path = require('path'); exports.ensureDirsSync = function (pathname) { // Ensure pathname exists; that is, create dirs that don't exists. var dirs, previous, i, current, createdDirs = []; if (!fs.existsSync(pathname)) { dirs = path.resolve(pathname).split('/'); p...
function a() { 5 + eff(effb(2)) + effc(3); }
var express = require('express'); var path = require('path'); var app = express(); app.use(express.static(path.resolve(__dirname, "www"))); app.set('port', process.env.PORT || 3000); app.listen(app.get('port'), function() { console.log('listening to Port', app.get('port')); });
'use strict' const app = require('APP') , debug = require('debug')(`${app.name}:oauth`) , {STRING, JSON} = require('sequelize') module.exports = db => { const OAuth = db.define('oauths', { uid: STRING, provider: STRING, // OAuth v2 fields accessToken: STRING, refreshToken: STRING, ...
/** # Statistic Component representing statistical accounting for one concept. */ var Statistic = exports.Statistic = declare({ /** Every statistic object has a set of keys that identify the numerical value it represents. This can be as simple as one string, or an object with many values for different aspects of t...
(function() { 'use strict'; function getSize () { var sizeMatching = document.location.search.match(/size=(\d+)/); if (sizeMatching) { return parseInt(sizeMatching[1], 10); } else { return 500; } } var timing = []; var k; var current; for (k = 0; k < 11; k += 1) { current...
// System Imports var FS = require('fs'); var SanityTest = { /** * Check if directory exists at specified path * @param {[String]} directoryPath : Directory path which needs to be checked * @param {Function} cb : Call method which is invoke once there is error or check is c...
// This will fail if our code is wrapped in "use strict" this.foo = true;
import React, { PureComponent, PropTypes } from 'react' import { connect } from 'react-redux' import CopyToClipboard from 'react-copy-to-clipboard' import { loadCookie } from '../../helpers/session-id' import { Segment, Header, Grid, Icon, Button } from 'semantic-ui-react' import OptionsList from './OptionsList' import...
/** * The main application class. An instance of this class is created by app.js when it calls * Ext.application(). This is the ideal place to handle application launch and initialization * details. */ Ext.define('ExtApp.Application', { extend: 'Ext.app.Application', name: 'ExtApp', launch: functi...
function login() { var server = $('#server').val(); var port = $('#port').val(); var usr = $('#username').val(); var pwd = $('#password').val(); $('#serverUrl').html(server + ':' + port); if(server.length > 0 && usr.length > 0 && port.length > 0 && pwd.length > 0) { // Send data to server through...
import React from 'react'; import Button from './stc/Button'; import * as colors from '../colors'; import Icon from './stc/Icon'; import H2Centered from './stc/H2-Centered'; import DivCentered from './stc/DivCentered'; function ProgressIndicator(props) { const { text } = props; return ( <div className="downlo...
import {EventEmitter} from 'events'; import $ from 'jquery'; export default class InfoTextProgramFavoriteView extends EventEmitter { /** * @type {Player} */ _player; /** * @type {FavoriteProgram} */ _favoriteProgram; _$infoTextElement; _$button; constructor({player, favoriteProgram}) { s...
/* own_modules/utils */ 'use strict'; const jsonfile = require('jsonfile'); module.exports = { middleware: { CRSF: function(token) { return function(req,res,next) { if(req.method === 'POST') { if(req.body.token === token) { next(); ...
// "vote" class to ensure the data matches the intended schema function vote(data) { this.name = (String(data.name) || "Anonymous").substring(0, 20); this.choices = (data.choices || []).map(Number); } module.exports = vote;
const mongoose = require('mongoose') const encryption = require('../utilities/encryption') function getRequiredPropMsg (prop) { return `${prop} is required!` } let userSchema = mongoose.Schema({ username: { type: mongoose.Schema.Types.String, required: getRequiredPropMsg('Username'), unique: true },...
(function () { "use strict"; function CreatedController($timeout, $location, packageResource, localizationService, overlayService) { const vm = this; vm.deleteCreatedPackage = deleteCreatedPackage; vm.goToPackage = goToPackage; vm.createPackage = createPackage; functi...
(function() { var lvId, nicolive; lvId = $.nlcm.Live.getLiveId(document.URL); nicolive = new $.nlcm.Live(lvId); window.onbeforeunload = function() { return nicolive.close(); }; nicolive.getPlayerStatusXML(function() { document.title = this.live_info.stream['title']; return this.startComment(func...
export Dribbble from './Dribbble'; export Facebook from './Facebook'; export Google from './Google'; export Instagram from './Instagram'; export Odnoklassniki from './Odnoklassniki'; export Periscope from './Periscope'; export Telegram from './Telegram'; export Twitter from './Twitter'; export Vkontakte from './Vkontak...
import React from 'react'; import WidgetTypes from './types'; export default function selectionEditorWidget(props) { const SelectionWidget = WidgetTypes[props.selection ? props.selection.type : 'empty']; return <SelectionWidget {...props} />; } selectionEditorWidget.propTypes = { selection: React.PropTypes.obje...
export { default } from './components/ComboBox'; export { COMBOBOX_GRID, COMBOBOX_LIST } from './constants/combobox-types'; export { default as comboBoxCustomOptionModel } from './models/combobox-custom-option-model'; export { default as comboBoxOptionModel } from './models/combobox-option-model';
angular.module('myApp', []) .directive('myDirective', function () { var defaultString = ' defaultString="defaultString" '; if (true) { defaultString = ' modify="modifyString" '; } return { restrict: 'EA', replace: true, template: '<div>' + defaultString + '</div>', sc...
export default [ { name: '<code>$table-sticky-header-height</code>', default: '<code>300px</code>' }, { name: 'Bulma variables', default: '<a target="_blank" href="https://bulma.io/documentation/elements/table/#variables">Link</a>' } ]
// All code points in the `Hebrew` script as per Unicode v6.0.0: [ 0x591, 0x592, 0x593, 0x594, 0x595, 0x596, 0x597, 0x598, 0x599, 0x59A, 0x59B, 0x59C, 0x59D, 0x59E, 0x59F, 0x5A0, 0x5A1, 0x5A2, 0x5A3, 0x5A4, 0x5A5, 0x5A6, 0x5A7, 0x5A8, 0x5A9, 0x5AA, 0x5AB, 0x5AC, 0x5AD, 0x5AE, 0x5AF, 0x5B...
import ColorPicker from "./components/ColorPicker"; module.exports = ColorPicker;
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
/*! * ws: a node.js websocket client * Copyright(c) 2011 Einar Otto Stangvik <einaros@gmail.com> * MIT Licensed */ 'use strict'; const benchmark = require('benchmark'); const crypto = require('crypto'); const Sender = require('../').Sender; const data1 = crypto.randomBytes(64); const data2 = crypto.randomBytes(...
/*! * caiji * Copyright(c) 2015 caiji <3203317@qq.com> * MIT Licensed */ 'use strict'; var utils = require('speedt-utils'); var rest = utils.service.rest; var EventProxy = require('eventproxy'); var path = require('path'); var fs = require('fs'); var cwd = process.cwd(); var conf = require('../../settings'); var...
(function() { function onReadyStateComplete(document, callback) { function checkReadyState() { if (document.readyState === 'complete') { // TODO: the prototype code checked to see if the event exists before removing it. $(document).unbind('readystatechange', checkReadyState); callba...
'use strict'; angular.module('core').controller('HomeController', ['$scope', 'Authentication','API', function($scope, Authentication,API) { // This provides Authentication context. $scope.authentication = Authentication; console.log(API); // console.log(API.user.login) } ]);
var disqusLoaded = false, disqusShortname = 'dihh'; function loadCommentsForTrack(dig, trackFullTitle) { if (disqusLoaded) { reloadDisqus(dig._id, 'http://dihh.io/digs/' + dig.slug, trackFullTitle); } else { loadDisqus(dig._id, 'http://dihh.io/digs/' + dig.slug, trackFullTitle); } } function loadDisqu...
'use strict'; /** * The controller that gets and deletes single imposters * @module */ var url = require('url'), Q = require('q'); /** * Creates the imposter controller * @param {Object} imposters - the map of ports to imposters * @returns {{get: get, del: del}} */ function create (imposters) { funct...
import { createStore, applyMiddleware, compose } from 'redux'; import thunkMiddleWare from 'redux-thunk'; import rootReducer from '../reducers/rootReducer'; const finalCreateStore = compose( applyMiddleware(thunkMiddleWare), )(createStore); module.exports = (initialState) => ( finalCreateStore(rootReducer, initi...
// Load all required engine components Engine.include("/rendercontexts/context.canvascontext.js"); Engine.include("/resourceloaders/loader.image.js"); Engine.include("/resourceloaders/loader.sound.js"); Engine.include("/engine/engine.timers.js"); // Load the game object Game.load("/piano.js"); Engine.initO...
var Debug = { TODO: function TODO(description) { return function () { throw(new Error('IMPLEMENT ME: ' + description)); }; }, warn: function warn(string, caption, level) { if (Debug.isMessageLeveltoBeDisplayed(level)) process.stdout.write(Debug.warningString(string, caption)); }, notice: funct...
angular.module('chatApp.chat', [ 'luegg.directives', 'chatApp.emoji', 'chatApp.chat.createRoomModal', 'chatApp.chat.input' ]) .service('chat', function (socket) { var self = this; var rooms = this.rooms = []; this.messages = []; this.currentRoom =...
var Utils = {}; // Temp objects for use in calculations. This avoids a lot of unneeded allocations. var vector = new THREE.Vector3(); var vector1 = new THREE.Vector3(); var vector2 = new THREE.Vector3(); var quaternion = new THREE.Quaternion(); var quaternion1 = new THREE.Quaternion(); var quaternion2 = new THREE.Qu...
"use strict"; var evaluate = require("babel-helper-evaluate-path"); function isPureAndUndefined(rval) { var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, tdz = _ref.tdz, _ref$scope = _ref.scope, scope = _ref$scope === undefined ? { hasBinding: function hasBinding()...
import { forwardFocus } from "../core/dom.js"; import { fragmentFrom } from "../core/htmlLiterals.js"; import ReactiveElement from "../core/ReactiveElement.js"; // eslint-disable-line no-unused-vars import { transmute } from "../core/template.js"; import Button from "./Button.js"; import { defaultState, goNext, g...
/** * XadillaX created at 2016-09-23 16:01:19 With ♥ * * Copyright (c) 2018 XadillaX, all rights * reserved. */ "use strict"; const async = require("async"); const should = require("should"); const common = require("../util/common"); const hack = require("../util/hack"); const Query = require("../../lib/query");...
var numpad = {};
var Zeta = require('../../../'), conf = require('../conf.js'), m = Zeta.module('l2c', []); m.load(); conf.v = m.config('v'); conf.ns.v1 = m.config.of('ns').val('v1'); conf.ns.v2 = m.config.of('ns').val('v2'); conf.ns.ns.v1 = m.config.of('ns').of('ns').val('v1'); conf.ns.ns.v2 = m.config.of('ns').of('ns').val...
//Sliding Effect Control //head.js("/assets/js/skin-select/jquery.cookie.js"); //head.js("/assets/js/skin-select/skin-select.js"); //Showing Date // head.js("/assets/js/clock/date.js"); //Bootstrap //head.js("/assets/js/bootstrap.js"); //NEWS STICKER head.js("/assets/js/newsticker/jquery.newsTicker.js", function() {...
/** * game getQueryValue * @description: 获取query值 * author: yangweixian */ define(function(require) { var getQueryValue = function (name) { var arrHash = location.search.slice(1).split('&') , oHash = {}; for(var i = 0, ii = arrHash.length; i < ii; i++) { var arrTmp = arrHash[i].split('='); ...
var constants = require('./constants'); var domUtils = require('../domUtils'); var map = require('../../core/utils').map; var createDom = domUtils.createDom; var createDiv = domUtils.createDiv; var makeButton = domUtils.makeButton; var GRID_SIZE = constants.GRID_SIZE; //▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄...
// The contents of this file will be executed before any of // your view controllers are ever executed, including the index. // You have access to all functionality on the `Alloy` namespace. // // This is a great place to do any initialization for your app // or create any global variables/functions that you'd like to ...
/** * Created by Pranav on 30/09/2016. */ import { computed, observable, autorun } from 'mobx'; import StudentModel from '../models/StudentModel'; import { registerHELPNew, getStudent, getStudentFirebaseProfile } from '../api/student.api'; class StudentStore { @observable student = {}; constructor() { } ...
(function(scope) { /** `Polymer.CoreResizable` and `Polymer.CoreResizer` are a set of mixins that can be used in Polymer elements to coordinate the flow of resize events between "resizers" (elements that control the size or hidden state of their children) and "resizables" (elements that need to be notified w...
import http from 'http'; import express from 'express'; import cors from 'cors'; import morgan from 'morgan'; import bodyParser from 'body-parser'; import initializeDb from './db'; import middleware from './middleware'; import api from './api'; import config from './config.json'; let app = express(); app.server = http...
/*! * bindings/inputmask.binding.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2017 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 3.3.7-24 */ !function(factory) { "function" == typeof define && define.amd ? define([ "jquery", ...
var gulp = require('gulp'); var imagemin = require('gulp-imagemin'); module.exports = function() { gulp.src([ './public/images/**/*.*' ]) .pipe(imagemin()) .pipe(gulp.dest('./build/images/')); };
var fs = require("fs") , es = require("event-stream") , Q = require("q") , _ = require("lodash") , Stream = require('stream') , parse = require('csv-parse') , stringify = require("csv-stringify"); function header(spec) { return _.map(spec, function(s) { return s.field;}).join(',') + "\n"; } function h...
export function parse (path, opts = {}) { let {sensitive, end, strict} = opts let tokens = parseToken(path) let route = '' let keys = [] tokens.forEach((token, index) => { if (token.text) { route += escapeString(token.text) } else { if (token.prefix) { if (token.optional) { ...
/* Copyright (c) 2016-2017, Finnish Environment Institute SYKE All rights reserved. Redistribution and use, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following discl...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Superhero Schema */ var SuperheroSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Superhero name', trim: true }, superpower: { type: String, default: '', ...
'use strict'; const _ = require("../node_modules/lodash"); const zellers = require('../lib/zellers.js'); const {setUpMonth, setUpWeekDays, seUpDates} = require('../lib/month.js'); let Year = {}; Year.setUpYearTitle = (year) => { // Set up the year heading for the calendar const thirtySpaces = 29; const calHe...
const ClientStreamMock = require('../../tools/grpc-mock/ClientStreamMock'); const grpc_promise = require('../../../lib/index'); describe('Client Stream Request', function () { describe('With promisifyAll', function () { it('Test ok', function () { const client = {}; const makeClientStreamRequest = ...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
// @flow import React from "react"; import ReactDOM from "react-dom"; import CharacterCounter from "./forms/CharacterCounter.jsx"; import LinkList from "./forms/LinkList.jsx"; import FileUploadList from "./forms/FileUploadList.jsx"; import MainController from "./controllers/MainController.jsx"; import CreateProjectCon...