code
stringlengths
2
1.05M
'use strict'; // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app) // They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware). const ansiHTML = require('ansi-html'); const Entities = requi...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'format', 'th', { label: 'รูปแบบ', panelTitle: 'รูปแบบ', tag_address: 'Address', tag_div: 'Paragraph (DIV)', tag_h1: 'Heading 1', tag_h2: 'Headi...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
var _ = require('lodash'), config = require('../../../config/index'), // private doRawAndFlatten, // public getTables, getIndexes, getColumns, checkPostTable; doRawAndFlatten = function doRaw(query, flattenFn) { return config.database.knex.raw(query).then(funct...
const webpack = require('webpack'); const WebpackDevServer = require('webpack-dev-server'); const config = require('../webpack.config'); const host = '0.0.0.0'; // allows connection from external devices const portNum = 3000; new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true,...
/** * @license Angulartics v0.17.2 * (c) 2014 Luis Farzati http://luisfarzati.github.io/angulartics * Localytics plugin contributed by http://github.com/joehalliwell * License: MIT */ (function(angular) { 'use strict'; /** * @ngdoc overview * @name angulartics.localytics * Enables analytics support for Localyt...
loadIonicon('<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M96 96v320h79V274.2L416 416V96L175 237.8V96H96z"/></svg>','ios-skip-backward');
var tape = require('tape'); var levelup = require('levelup'); var memdown = require('memdown'); var blobs = function() { return require('../')(levelup('mem', {db:memdown})); }; tape('write + read', function(t) { var bl = blobs(); bl.write('test', 'hello world', function(err) { t.ok(!err); bl.read('test', func...
Clazz.declarePackage ("javajs.awt"); Clazz.load (null, "javajs.awt.Component", ["JU.CU"], function () { c$ = Clazz.decorateAsClass (function () { this.visible = false; this.enabled = true; this.text = null; this.name = null; this.width = 0; this.height = 0; this.id = null; this.parent = null; this.mouseListe...
/** * @ngdoc directive * @function * @name umbraco.directives.directive:umbEditor * @requires formController * @restrict E **/ angular.module("umbraco.directives") .directive('umbEditor', function (umbPropEditorHelper) { return { scope: { model: "=", ...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
/*globals svgEditor */ svgEditor.readLang({ lang: "sv", dir : "ltr", common: { "ok": "Spara", "cancel": "Avbryt", "key_backspace": "backspace", "key_del": "delete", "key_down": "down", "key_up": "up", "more_opts": "More Options", "url": "URL", "width": "Width", "height": "Height" }, misc: {...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * Facebook,...
var EOF = 0; // https://drafts.csswg.org/css-syntax-3/ // § 4.2. Definitions // digit // A code point between U+0030 DIGIT ZERO (0) and U+0039 DIGIT NINE (9). function isDigit(code) { return code >= 0x0030 && code <= 0x0039; } // hex digit // A digit, or a code point between U+0041 LATIN CAPITAL LETTER A (A) and...
/*global process */ var fs = require('fs'); var envfile = require('envfile'); module.exports = function(grunt) { var pkg = grunt.file.readJSON('package.json'); if (pkg.devDependencies) { Object.keys(pkg.devDependencies).filter(function(pkgname) { if (pkgname.indexOf('grunt-') === 0) { grunt.load...
/*! * sweetalert2 v4.1.2 * Released under the MIT License. */ 'use strict'; var swalPrefix = 'swal2-'; var prefix = function(items) { var result = {}; for (var i in items) { result[items[i]] = swalPrefix + items[i]; } return result; }; var swalClasses = prefix([ 'container', 'modal', 'overlay', ...
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * * Software distr...
(function(window,undefined){var Globalize;if(typeof require!=="undefined"&&typeof exports!=="undefined"&&typeof module!=="undefined"){Globalize=require("globalize")}else{Globalize=window.Globalize}Globalize.addCultureInfo("fil-PH","default",{name:"fil-PH",englishName:"Filipino (Philippines)",nativeName:"Filipino (Pilip...
/* jshint ignore:start */ require('{{MODULE_PREFIX}}/tests/test-helper'); EmberENV.TESTS_FILE_LOADED = true; /* jshint ignore:end */
/*! /support/test/css/boxshadow 1.0.2 | http://nucleus.qoopido.com | (c) 2015 Dirk Lueth */ !function(){"use strict";function e(e,r){var d=e.defer(),o=r("box-shadow");return o?d.resolve(o):d.reject(),d.pledge}provide(["/demand/pledge","../../css/property"],e)}(); //# sourceMappingURL=boxshadow.js.map
module.exports = { prefix: 'fab', iconName: 'gofore', icon: [400, 512, [], "f3a7", "M324 319.8h-13.2v34.7c-24.5 23.1-56.3 35.8-89.9 35.8-73.2 0-132.4-60.2-132.4-134.4 0-74.1 59.2-134.4 132.4-134.4 35.3 0 68.6 14 93.6 39.4l62.3-63.3C335 55.3 279.7 32 220.7 32 98 32 0 132.6 0 256c0 122.5 97 224 220.7 224 63.2 0 124.5-26....
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
/*! * angular-datatables - v0.5.2 * https://github.com/l-lin/angular-datatables * License: MIT */ if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) { module.exports = 'datatables.fixedcolumns'; } (function (window, document, $, angular) { 'use strict'; // See ht...
export default function _asyncIterator(iterable) { var method; if (typeof Symbol !== "undefined") { if (Symbol.asyncIterator) { method = iterable[Symbol.asyncIterator]; if (method != null) return method.call(iterable); } if (Symbol.iterator) { method = iterable[Symbol.iterator]; ...
!function(t){t.datepick.regional.uk={monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],dayNames:["неділя","понеділок","вівторок","середа","четвер","...
/** @module ember @submodule ember-htmlbars */ import Stream from 'ember-metal/streams/stream'; import ProxyStream from 'ember-metal/streams/proxy-stream'; export default function bindLocal(env, scope, key, value) { var isExisting = scope.locals.hasOwnProperty(key); if (isExisting) { var existing = scope.loca...
/* * jQuery throttle / debounce - v1.0 - 3/6/2010 * http://benalman.com/projects/jquery-throttle-debounce-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=...
this is file 385
/** * Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences or Promises produces an element. * * @example * 1 - obs = Rx.Observable.combineLatest(obs1, obs2, obs3, function (o1, o2, o3) { return o1 + o2 + o3; }); *...
CKEDITOR.plugins.setLang("print","mn",{toolbar:"Хэвлэх"});
/*! * # Semantic UI 2.2.6 - Checkbox * http://github.com/semantic-org/semantic-ui/ * * * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { "use strict"; window = (typeof window != 'undefined' && window.Math == Math) ? window : (typeof s...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
Plotly.register({moduleType:"locale",name:"gl",dictionary:{},format:{days:["Domingo","Luns","Martes","M\xe9rcores","Xoves","Venres","S\xe1bado"],shortDays:["Dom","Lun","Mar","M\xe9r","Xov","Ven","S\xe1b"],months:["Xaneiro","Febreiro","Marzo","Abril","Maio","Xu\xf1o","Xullo","Agosto","Setembro","Outubro","Novembro","Dec...
/** * @license Highcharts JS v4.0.0 (2014-04-22) * Exporting module * * (c) 2010-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, Math, setTimeout */ (function (Highcharts) { // encapsulate // create shortcuts var Chart = Highcharts.Chart...
YUI.add("lang/datatype-date-format_ro-RO",function(e){e.Intl.add("datatype-date-format","ro-RO",{a:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],A:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"],b:["ian.","feb.","mar.","apr.","mai","iun.","iul.","aug.","sept.","oct.","nov.","dec."],B:["ianuarie","februarie","mar...
/*! * jQuery Lazy - v0.3.6 * http://jquery.eisbehr.de/lazy/ * http://eisbehr.de * * Copyright 2014, Daniel 'Eisbehr' Kern * * Dual licensed under the MIT and GPL-2.0 licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl-2.0.html * * jQuery("img.lazy").lazy(); */ (...
require('./angular-locale_en-bb'); module.exports = 'ngLocale';
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
/*! * jQuery UI Datepicker 1.9.2 * http://jqueryui.com * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/datepicker/ * * Depends: * jquery.ui.core.js */ (function( $, undefined ) { $.extend($.ui, { datepicke...
require({cache:{ 'sbt/connections/BlogService':function(){ /* * © Copyright IBM Corp. 2013 * * 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/LICEN...
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('node-style', function (Y, NAME) { (function(Y) { /** * Extended Node interface for managing node styles. * @module node * @submodule node-style */ Y.mix(Y.Node....
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('editor-para', function (Y, NAME) { /** * Plugin for Editor to paragraph auto wrapping and correction. * @class Plugin.EditorPara * @extends Plugi...
'use strict'; const http = require('http') const createHandler = require('github-webhook-handler') const handler = createHandler({ path: '/webhook', secret: 'myhashsecret' }) const port = process.env.PORT || 7777 const r = require('rethinkdb'); let connection = null; r.connect({ db: 'popcubex' }, function(err, co...
'use strict'; var shell = require('shelljs'); var fs = require('fs'); var _ = require('lodash'); function Fetcher(exclusions) { this._exclusions = exclusions; } Fetcher.prototype.get = function(onSuccess) { var self = this; if (fs.existsSync('./bower.json')) { var child = shell.exec('bower list --json', {...
var template = require('../templates/poll.hbs'), modal = require('./modal.js'), $ = require('jquery'), Promise = require('bluebird'), _ = require('underscore'); var PollView = { init: function(cfg) { // configuration parameters this.config = cfg; this.initEvents(); ...
'use strict' import Fact from './fact' import { UndefinedFactError } from './errors' import debug from './debug' import { JSONPath } from 'jsonpath-plus' import isObjectLike from 'lodash.isobjectlike' function defaultPathResolver (value, path) { return JSONPath({ path, json: value, wrap: false }) } /** * Fact re...
// Generated by CoffeeScript 1.9.3 (function() { var assert, curry, deepEqual, describe, ref, ref1; ref = require("./core"), curry = ref.curry, deepEqual = ref.deepEqual; ref1 = require("./helpers"), describe = ref1.describe, assert = ref1.assert; describe("Type functions", function(context) { var Genera...
var URI = require('urijs'); var runner = require('../runner'); require('../keychain'); var _ = require('lodash'); runner(function(param, directory){ suite(`account login page - ${directory}`, function() { var login_url, providers = []; suiteSetup(function *(){ login_url = yield browser .url(p...
// ==UserScript== // @id iitc-plugin-done-links@jonatkins // @name IITC plugin: done links // @category 圖層 // @version 0.0.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOAD...
import mod1570 from './mod1570'; var value=mod1570+1; export default value;
import { event as d3_event, select as d3_select } from 'd3-selection'; import { geoVecLength } from '../geo'; import { prefs } from '../core/preferences'; import { modeBrowse } from '../modes/browse'; import { modeSelect } from '../modes/select'; import { modeSelectData } from '../modes/select_data'; import { modeSele...
'use strict'; var BaseClient = require('./BaseClient'); var util = require('util'); // # Client([options]) // Generic HTTP client with helper methods to make requests. Extends // [`BaseClient`](./BaseClient.js.html). function Client(options) { BaseClient.call(this, options); } util.inherits(Client, BaseClient); ...
// constants.js // Constants used in Redux actions module.exports = { SET_CONNECTION_STATUS: 'SET_CONNECTION_STATUS', SET_GRAPHVIEW_DIMENSIONS: 'SET_GRAPHVIEW_DIMENSIONS', SET_BCI_ACTION: 'SET_BCI_ACTION', SET_OFFLINE_MODE: 'SET_OFFLINE_MODE', SET_MENU: 'SET_MENU', SET_MUSE_INFO: 'SET_MUSE_INFO', SET_AVAILABLE...
SystemJS.config({ paths: { "@ignavia/earl/": "src/" }, devConfig: { "map": { "babel-plugin-transform-export-extensions": "npm:babel-plugin-transform-export-extensions@6.8.0", "plugin-babel": "npm:systemjs-plugin-babel@0.0.8" }, "packages": { ...
var React = require('react'); var Iframe = require('../index'); var g = React.render( <Iframe url ='http://cnn.com' width={"100%"} height={"100%"}/> , document.body );
"use strict"; const debug = require("debug")("bot-express:messenger"); const fs = require("fs"); const clone = require("rfdc/default") /** * Messenger abstraction. *Context free * @class */ class Messenger { /** * @constructor * @param {Object} options * @param {String} messenger_type - line |...
export const genericCardData = [ { title: 'Brand Manual', description: 'Visual Brand Identity Manual.' }, { title: 'Logos and Posters', description: 'Official Franciscan University Logos and Poster Resources.' }, { title: 'Letterhead', description: 'Franciscan University approved...
import Rx from 'rx' import view from './page2-view' const Page2 = (sources) => { const props$ = sources.Props; const $view = view(props$); return { DOM: Rx.Observable.just($view), Props: props$, } }; export default Page2
// Generated by CoffeeScript 1.6.2 'use strict'; var App, CONFIG_TEMPLATE, CoffeeScript, DEFAULT_FILENAME, Inotify, MiniLog, RE_ENV, VERSION, app, args, deploy, fs, inotify, log, logBackend, minimatch, path; CONFIG_TEMPLATE = "'.':\n\t'*': 'echo %% was just modified!'\n"; DEFAULT_FILENAME = '.hawkeye'; RE_ENV = /\$(...
exports.utils = { toIncludesList: function(includes) { const list = [] if (!includes) return list if (!Array.isArray(includes)) includes = [includes] includes.forEach(function(item) { if (typeof item === 'string') { list.push({ relation: item, children: [], ...
import prefix0 from '../prefix0' it('should be prefixed 0 if length < 2', () => { expect(prefix0(1)).toBe('01') expect(prefix0('2')).toBe('02') }) it('donnot prefix', () => { expect(prefix0(87)).toBe('87') expect(prefix0(8.7)).toBe('8.7') expect(prefix0(.7)).toBe('0.7') })
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; // Import Style import styles from './App.css'; // Import Components import Helmet from 'react-helmet'; import DevTools from './components/DevTools'; import Header from './components/Header/Header'; import Footer from './compo...
/** * jsPsych plugin for showing animations and recording keyboard responses * Josh de Leeuw * * documentation: docs.jspsych.org */ import { jsPsych } from "jspsych-react"; var plugin = (function() { var plugin = {}; jsPsych.pluginAPI.registerPreload("animation", "stimuli", "image"); plugin.info = { n...
(function() { 'use strict'; // Create the 'chat' controller angular.module('chat').controller('ChatController', ['$scope', '$window', 'Authentication', 'Socket', function($scope, $window, Authentication, Socket) { var vm = this; vm.messages = []; vm.messageText = ''; vm.sendMessage = sendMessage; ...
const express = require('express'); const server = express(); const port = 8080; server.use(express.static(__dirname + '/public')); server.get('/rerecounter', (req, res) => { res.sendFile('/public/html/index.html', {root: __dirname}); }); server.listen(port, () => { console.log('Server listening on', port); });
/**************************************************************************** The MIT License (MIT) Copyright (c) 2013 Apigee Corporation 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 with...
/*globals describe, it */ var should = require('should'), JGL = require('../../'); describe('JGL.segmentKeys()', function () { it('should expand ranges', function () { var result = JGL.segmentKeys({from: 0, to: 5}); result.should.eql([0, 1, 2, 3, 4, 5]); }); it('should leave integers ...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import withFB from 'common/withFB'; import Header from '../../../components/Layout/Header'; import { login, getLoginStatus, getMe } from '../../../actions/auth'; const mapStateToProps = state => ({ auth: state.auth, }); const mapD...
module.exports = { rules: { strict: [2, 'never'] } };
import App from './App'; document.addEventListener('DOMContentLoaded', () => { let canvas = document.getElementById('screen'); let context = canvas.getContext('2d'); let width = document.body.clientWidth; let height = document.body.clientHeight; let swarmSize = 300; let runner = new App(canvas, context, wi...
var React = require('react-native'); var { StyleSheet, Text, View, ListView, TouchableHighlight, Image, ActivityIndicatorIOS } = React; var styles = require('./styles'); var redditApi = require('../../api/reddit'); var moment = require('moment'); var he = require('he'); var ParseHTML = require('../../...
import DS from 'ember-data'; import AjaxRequestMixin from 'ember-ajax/mixins/ajax-request'; import Service, { inject as service } from '@ember/service'; import { assert } from '@ember/debug'; import { get } from '@ember/object'; import { createQueryParams } from '../utils/url-helpers'; const { Model } = DS; const JSON...
/* eslint-disable no-console */ "use strict"; const { ServiceBroker } = require("moleculer"); const ApiService = require("../../index"); // Create broker const broker = new ServiceBroker({ logger: console, logLevel: "warn" }); broker.createService({ name: "test", actions: { hello() { return "Hello"; }...
import express from 'express'; import morgan from 'morgan'; import jwt from 'jwt-simple'; import bodyParser from 'body-parser'; import passport from 'passport'; import { Strategy } from 'passport-local'; import mongoose from 'mongoose'; mongoose.connect('mongodb://user:pass@ds037005.mongolab.com:37005/toomastahvesdb'...
'use strict'; let interval; let count; let t; module.exports = function (nodecg) { const gameTime = nodecg.Replicant('gameTime'); function countdown() { if (gameTime.value === 0) { console.log('time is up'); clearTimeout(t); } else { gameTime.value--; t = setTimeout(countdown, 100...
'use strict'; /* * Author: Pavel Bely * Mail: poul-white@yandex.ru * * Root Controller with Directive */ import app from '../../modules/app'; import markup from './root.html'; import {add} from '../../redux/actions'; class RootController { constructor($ngRedux, $scope, saveResource) { $ngRedux.conne...
'use strict'; /** * Retrun a random int, used by `utils.uid()` * * @param {Number} min * @param {Number} max * @return {Number} * @api private */ function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } /** * Return a unique identifier with the given `len`. * * u...
var React = require('react'); require('./css/addItem.css'); var AddItem = React.createClass({ render: function() { return ( <form id="add-todo" onSubmit={this.handleSubmit}> <input type="text" required ref="newItem" /> <input type="submit" value="Hit me" /> </form> ); }, // Rend...
describe('display', function(){ var image; beforeEach(function(done){ var img = new Image(); img.src = "img/logo.png"; img.onload = function(){ image = new arc.display.Image(img); done(); }; }); describe('DisplayObject', function(){ it('should return initial property', function...
/** * Created by mpbil on 4/10/2017. */ import React, {Component} from 'react'; import * as actions from '../actions/logonFormActions'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; class LoginForm extends Component{ constructor(props){ super(props); this.passwordChanged=t...
var unauthorizedTest = require("../../../unauthorized-test-factory"); unauthorizedTest({ uri: "/finishing-printing/monitoring-specification-machine" });
/* Highlight a node and forced it visible if it is hidden. */ sigma.publicPrototype.selectNodes = function (nodes) { var sigInst = this; var node=null; sigInst.iterNodes(function (n) { // Iterate node to find the node clicked if (n.id == nodes[0]) { node = n; } }); if (node && node.hidden...
import {parseAndGetExpression} from '../../../utils'; import {expect} from 'chai'; describe('ClassExpression', () => { it('should return correct type', () => { expect(parseAndGetExpression('class {}').type).to.equal('ClassExpression'); }); it('should accept superClass', () => { var stateme...
import React from 'react' import { StyleSheet, css } from 'aphrodite' class ModalMenu extends React.Component { constructor(props) { super(props) this.state = { itemText: this.props.item.itemText, comments: this.props.item.itemComments } } handleClose(e){ this.props.close(e) } ...
export const generatePortId = (items = []) => { const id = '' + Math.random().toString(36).slice(2) if (!items.filter(item => item.id === id)[0]) { return id } return generatePortId(items) } export const getFilename = url => { return url ? url.substring(url.lastIndexOf('/') + 1) : null }
var _ = require('lodash'); var Joi = require('joi'); import CONST from '../constants'; var common = { team: Joi.number().integer().min(0), userUuid: Joi.string().regex(/^[A-Za-z0-9_-]+$/).min(1, 'utf8').max(128, 'utf8'), primaryKeyId: Joi.number().integer().min(0) }; const schemas = { common: common, actio...
// Copyright 2009 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this li...
describe("QueueRunner", function() { it("runs all the functions it's passed", function() { var calls = [], queueableFn1 = { fn: jasmine.createSpy('fn1') }, queueableFn2 = { fn: jasmine.createSpy('fn2') }, queueRunner = new jasmineUnderTest.QueueRunner({ queueableFns: [queueableFn1, queu...
const model = { filenameBase: 'stop_times', schema: [ { name: 'id', type: 'integer', primary: true, }, { name: 'trip_id', type: 'varchar(255)', required: true, index: true, }, { name: 'arrival_time', type: 'varchar(255)', }, { n...
"use strict"; // Gulp dev. var gulp = require('gulp'); var bump = require('gulp-bump'); var inject = require('gulp-inject'); var inlineNg2Template = require('gulp-inline-ng2-template'); var plumber = require('gulp-plumber'); var shell = require('gulp-shell'); var sourcemaps = require('gulp-sourcemaps'); var template =...
import React from 'react'; import snakeCase from 'lodash/snakeCase'; import './CheckboxList.css'; export default ({ id, title, list = {}, onChange = () => {} }) => ( <article styleName="checkboxList"> <fieldset> <legend>{title}</legend> {Object.keys(list).map((value, i) => ( <div key={`${id}.${...
var shared = function(config) { config.set({ basePath: '../', frameworks: ['mocha'], reporters: ['progress'], browsers: ['Chrome'], autoWatch: true, // these are default values anyway singleRun: false, colors: true, }); }; shared.files = [ 'test/mocha.conf.js', //3rd Party Cod...
require("/specs/spec_helper"); Screw.Unit(function() { describe("A failing spec", function() { it("fails", function() { expect(true).to(equal, false); }) }); });
var gulp = require('gulp'); var less = require('gulp-less'); var header = require('gulp-header'); var cleanCSS = require('gulp-clean-css'); var rename = require("gulp-rename"); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); const image = require('gulp-image'); var ngAnnotate = require('gulp-...
import {partitionObject, partitionArray} from './partition' import {_isArray} from './_internals/_isArray' export function partitionIndexed(predicate, iterable) { if (arguments.length === 1) { return listHolder => partitionIndexed(predicate, listHolder) } if (!_isArray(iterable)) return partitionObject(predi...
/** * Copyright 2012-2019, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = { moduleType: 'locale', name: 'nl', dictionary: {}, format: { days: [ ...
import clazz from './class'; import test from './test'; import { toClassName, writeFile } from './utils'; let chalk = require('chalk'); let fs = require('fs'); export default function(namespace, name) { console.log(`${chalk.red('[BETA]')} ctrl(${name})`); clazz(namespace, `${name}-ctrl`, [], 'constructor() { }');...
const _ = require('lodash'); const crypto = require('crypto'); const base32 = require('thirty-two'); const mail = require('../../email'); const models = require('../../models'); const User = models.User; const InviteCode = models.InviteCode; module.exports = { add: add, del: del, }; function updateInvite(invite...
import Page from '../components/Page' import Script from 'next/script' import * as snippet from '@segment/snippet' // This write key is associated with https://segment.com/nextjs-example/sources/nextjs. const DEFAULT_WRITE_KEY = 'NPsk1GimHq09s7egCUlv7D0tqtUAU5wa' function renderSnippet() { const opts = { apiKey...
import Regl from 'regl' import mat4 from 'gl-mat4' import vec4 from 'gl-vec4' import goatRock from '../assets/points.xyz' const regl = Regl() const drawPointCloud = ({ positions, color }) => { return regl({ vert: ` precision highp float; attribute vec3 position; uniform mat4 view, projection; ...