code
stringlengths
2
1.05M
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import App from './containers/App'; import configureStore from './store'; import 'bootstrap/dist/css/bootstrap.css'; import './styles/index.css'; const store = configureStore(); render(( <Provider store={store}> <...
import React from 'react'; import {Clickable} from '../Clickable'; import {ReactSwap} from '../../src/Component'; export function Deep() { return ( <div data-e2e="deep"> <h2>Deep Swap</h2> <ReactSwap> <div> <h3 data-swap-handler={1} style={{marginLeft: 20, cursor: 'pointer'}}> ...
var hutia = require('../index'); var app = hutia(); app.set('logger', 'dev'); app.set('session', { secret: 'hutia-secret', cookie: { maxAge: 60 * 60 * 1000 }}); app.set('dbpath', './hutia/test/db/mydb.db'); app.root = './hutia/test/www'; app.start(function(){ console.log('server is running...'); });
const logger = require('./utils/logger'), configParser = require('./parsers/configParser'), styleParser = require('./parsers/styleParser'), filesReader = require('./utils/filesReader'), filesWriter = require('./utils/filesWriter'), dataConstructor = require('./utils/dataConstructor'), ...
/** * Copyright (c) 2015-present, Facebook, 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. * * @flow */ 'use strict'; var AnimatedWithChildren = require('./AnimatedWithChildren'); var Animated = require('...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Passes each element in the array to the given callback. * * @function Phaser.Utils.Array.Each * @s...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
var spec = function () { return jasmine.getEnv().currentSpec; }; var createDataArray = function (rows, cols) { spec().data = []; rows = rows || 100; cols = cols || 4; for (var i = 0; i < rows; i++) { var row = [i]; for (var j = 0; j < cols - 1; j++) { row.push(String.fromCharCode(65 + j % 20).t...
import React, {Component} from 'react'; class Square extends Component{ render(){ return (<button type="button" id={this.props.id} onClick={() => this.props.onClick(this.props)} className="Square"> {this.props.text} </bu...
/*! * Bootstrap v3.0.3 (http://getbootstrap.com) * Copyright 2013 Twitter, Inc. * Licensed under http://www.apache.org/licenses/LICENSE-2.0 */ if ("undefined" == typeof jQuery) throw new Error("Bootstrap requires jQuery"); + function(a) { "use strict"; function b() { var a = document.createElement(...
var Schemas = {} Mensajes = new Mongo.Collection('mensajes') Schemas.Mensaje = new SimpleSchema({ texto: { type: String, autoform: { label: false, autofocus: true } }, fecha: { type: Date, autoValue: function() { return this.value || (this.isInsert && new Date) } }, ...
/// <reference path="../typings/tsd.d.ts"/> var clone = require('clone'); var gulp = require('gulp'); var jade = require('gulp-jade'); var plumber = require('gulp-plumber'); var fileUtils = require('../src/util/fileutils'); gulp.task('jade', ['jade-root', 'jade-sub']); gulp.task('jade-release', ['jade-root-release', '...
module.exports = require('./bio')
module.exports = (function() { 'use strict'; var router = require('express').Router(), path = require('path'); router.get('*', serveApp); function serveApp(request, response) { response.sendFile(path.resolve(__dirname, '../public_html/index.html')); } return router; })();
var Sequelize = require("sequelize"); var sequelize = new Sequelize('asterisk', 'root', '1234', { host: 'localhost', port: 3306, dialect: 'mysql', define: { timestamps: false, } }); var Peer = sequelize.define('sippeers', { id: Sequelize.BIGINT, name: Sequelize.STRING }); Peer.findAll().su...
/** * Prepro.js - A JavaScript based preprocesssor language for JavaScript * * Copyright (c) 2011 - 2016 Juerg Lehni * http://scratchdisk.com/ * * Prepro.js is a simple preprocesssor for JavaScript that speaks JavaScript, * written in JavaScript, allowing preprocessing to either happen at build time * or compil...
export function random(from=null,to=null,interpolation=null){ if(from==null){ from=0; to=1; }else if(from!=null && to==null){ to=from; from=0; } const delta=to-from; if(interpolation==null){ interpolation=(n)=>{ return n; } } return from+(interpolation(Math.random())*delta);...
/** * @module JSON Object Signing and Encryption (JOSE) */ const JWK = require('./jose/JWK') const JWKSet = require('./jose/JWKSet') const JWT = require('./jose/JWT') const JWD = require('./jose/JWD') const Base64URLSchema = require('./schemas/Base64URLSchema') const JOSEHeaderSchema = require('./schemas/JOSEHeaderSc...
var OFF = 0, WARN = 1, ERROR = 2; module.exports = exports = { "env": { "node": true, "browser": true, "mocha": true, "jquery": true, "es6": true }, "extends": "eslint:recommended", // Overrides from recommended set "rules": { // Ignore...
/** * Blueprint API Configuration * (sails.config.blueprints) * * These settings are for the global configuration of blueprint routes and * request options (which impact the behavior of blueprint actions). * * You may also override any of these settings on a per-controller basis * by defining a '_config' key in...
/** * StoryController * * @description :: Server-side logic for managing stories * @help :: See http://links.sailsjs.org/docs/controllers */ module.exports = { like : function (req, res) { StoryLike .create({ story : req.param('id'), createdBy : req.user[0].id }) .ex...
/*********************************************************************************************************************** * * CONSOLE LOGGER * * this exports a functions that we can use in our app * * @type {Node.js} * **************************************************************************************...
const bunyan = require('bunyan'); const bformat = require('bunyan-format'); const path = require('path'); const formatOut = bformat({ color: true }); const pathLog = path.resolve(__dirname, '..', 'logs.json'); /** * the logger * @param {string} _name - name that will be used for log traces * @returns - the log obj...
#!/usr/bin/env node var fs = require('fs'); var path = require('path'); var util = require('util'); var stream = require('stream'); var repl = require('repl'); var argv = require('optimist').usage('Usage: dogescript <file>').argv; var parser = require('../lib/parser'); var compile = require(...
(function($, window) { 'use strict'; $.fn.sideIndex = function(opts) { var $context = this, debug = true, // Array containing a reference to all the elements in the side index. sideIndexElements = [], currentRef = null, // Structure of the...
module.exports = {"NotoSansHebrew":{"bold":"NotoSansHebrew-Bold.ttf","normal":"NotoSansHebrew-Regular.ttf","italics":"NotoSansHebrew-Regular.ttf","bolditalics":"NotoSansHebrew-Bold.ttf"}};
/**! github.com/bfontaine/shortjs -- MIT license */ (function( root, factory ) { if (typeof define == 'function' && define.amd) { define(factory); } else if (typeof exports == 'object') { module.exports = factory(); } else { root.short = factory(); } })( this, function() { "use strict"; var f...
// Modified from: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach // on 7/10/2014 /** * Apply the given function on each element in an array * @param array * @param callback called with (element, index, array) */ var forEach = function (array, callback) { var k; ...
const webpack = require('webpack'); module.exports = { entry: [ './static/js/app.js', ], output: { path: __dirname + '/static/js/build/', filename: 'bundle.min.js', }, module: { loaders: [ { test: /\.jsx?$/, loaders: ['react-hot', 'babel-loader'], exclude: /node_modules/ }, ], }, ...
const five = require('johnny-five'); const board = new five.Board(); board.on('ready', function () { const motors = new five.Motors([ { pins: { dir: 12, pwm: 11 }, invertPWM: true }, { pins: { dir: 4, pwm: 5}, invertPWM: true } ]); board.repl.inject({ motors: motors }); });
/** @jsx React.DOM */ 'use strict'; var React = require('react'); var superagent = require('superagent'); module.exports = React.createClass({ getInitialState: function() { return {data: []}; }, componentWillMount: function() { superagent.get('/stats') .end(function(res) { var data = { ...
import { call, isAuthError } from '../API' import { getToken } from './SessionStorage' export function getGroups() { return new Promise((resolve) => { chrome.storage.local.get({ 'group_items': {} }, (items) => { resolve(items.group_items) }) }) } export function addGroup(item) { return new Promise...
App.Models.Board = Backbone.Model.extend({ paramRoot: 'board', defaults: { name: null }, initialize: function (board) { this.board = board; this.initiatives = new App.Collections.Initiatives( this.board.initiatives, { board_id: this.board.id } ); this.collectio...
class CenteredSprite extends Phaser.Sprite { //initialization code in the constructor constructor(game, key) { super(game, game.world.centerX, game.world.centerY, key); game.add.existing(this); this.anchor.set(0.5); } update() {} } export default CenteredSprite;
module.exports = emitEvent; function emitEvent(object, type, event) { var onevent = "on" + type; if (object[onevent]) { object[onevent](event); } object.emitArg(type, event); }
// Put your development configuration here. // // This is useful when using a separate API // endpoint in development than in production. // // window.ENV.public_key = '123456' window.ENV.api_url = 'http://localhost:3000/api' //window.ENV.api_url = 'http://109.202.68.147:8041/api'
function Archive(command, params, item) { if (command !== 'archive' || !Match.test(params, String)) { return; } let channel = params.trim(); let room; if (channel === '') { room = RocketChat.models.Rooms.findOneById(item.rid); channel = room.name; } else { channel = channel.replace('#', ''); room = Ro...
exports.Configuration = { apiEndpoint: 'https://brookelaw.prismic.io/api', // -- Access token if the Master is not open accessToken: 'MC5VdHJBWGdFQUFENWZrQ0ZH.WO-_ve-_ve-_vX1jJe-_ve-_vTcgYA5377-977-9YO-_ve-_ve-_vUzvv73vv73vv73vv71t77-977-977-9Vu-_ve-_vQ', // OAuth clientId: 'UtrAXgEAACdfkCFF', clientS...
;(function(){ // CommonJS require() function require(p){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Error('failed to require "' + p + '"'); if (!mod.exports) { mod.exports = {}; mod.call(mod.exports, mod, mod.exports, require.relative(path)); } ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({"dijit/nls/loading":{loadingState:"\u30ed\u30fc\u30c9\u4e2d...",errorState:"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",_localized:{...
"use strict" const {T} = require(`../readFormat`) module.exports = { start: T.u16, finish: T.u16, delay: T.u16, mode: T.u16, }
import React from 'react'; import { mount } from 'enzyme'; import FontAwesome from 'react-fontawesome'; import LoadingPanel from '../index'; describe('<LoadingPanel />', () => { it('should render the LoadingPanel component', () => { const renderedComponent = mount( <LoadingPanel /> ); expect(ren...
var searchData= [ ['quantity',['Quantity',['../class_point85_1_1_caliper_1_1_unit_of_measure_1_1_quantity.html',1,'Point85.Caliper.UnitOfMeasure.Quantity'],['../class_point85_1_1_caliper_1_1_unit_of_measure_1_1_quantity.html#a258f7709c96a0a8987a567103dbfc4f0',1,'Point85.Caliper.UnitOfMeasure.Quantity.Quantity()'],['....
var Marionette = require('backbone.marionette'); module.exports = VideoDetailsView = Marionette.ItemView.extend({ template: require('../../templates/video_details.hbs'), events: { 'click a.back': 'goBack', 'click a.delete': 'deleteVideo' }, goBack: function(e) { e.preventDefaul...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { PropTypes } from 'react'; import withStyle...
Template.futureUsage.helpers({ capitalize: function (str) { return str.charAt(0).toUpperCase() + str.slice(1); } }); Template.futureUsage.events({ //add your events here }); Template.futureUsage.onCreated(function () { //add your statement here }); Template.futureUsage.onRendered(function () { }); Tem...
var maxAccuracy = 100; var watchL,watchC; var meter2feet = 3.28084; var feet2mile = 5280; $(function(){ if ("geolocation" in navigator){ function iOSversion() { if (/iP(hone|od|ad)/.test(navigator.platform)) { var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); return [parseInt(v[1], 10), pars...
(function() { 'use strict'; angular .module('uniConnectApp') .factory('Principal', Principal); Principal.$inject = ['$q', 'Account']; function Principal ($q, Account) { var _identity, _authenticated = false; var service = { authenticate: authen...
(function() { var AgileBoard = function() {}; var PlanningBoard = function() {}; PlanningBoard.prototype = { init: function(routes) { var self = this; self.routes = routes; $(function() { self.initSortable(); }); }, // If there are no changes backSortable: funct...
(function () { 'use strict'; /** * @param {typeof Base} Base * @param {$rootScope.Scope} $scope * @param {ModalManager} modalManager * @param {Waves} waves * @param {BalanceWatcher} balanceWatcher * @param {User} user * @param {app.utils} utils * @param {PromiseControl} ...
$(window).load(function () { for (var key in Frequencies.keys) { $('#key').append($('<option>').text(key)); } var musicSheet = new MusicSheet('C', 100, 100); var sheetView = new MusicSheetView(musicSheet, $('#musicSheet')); $('#playButton').click(function () { musicSheet.stop()...
const IngredientFilterInput = require('../presentational/ingredient-filter-input') const { connect } = require('react-redux') const { updateIngredientFilter } = require('../../store/actions/filters') function mapDispatchToProps (dispatch) { return { onIngredientInput (name) { dispatch(updateIngredientFilte...
// タートルを生成する var t = createTurtle(); // 屋根を書く t.rt(30);// 30度右を向く t.fd(50);// 50歩前に進む t.rt(120); t.fd(50); t.rt(120); t.fd(50); // 本体を書く t.lt(90); t.fd(50); t.lt(90); t.fd(50); t.lt(90); t.fd(50); t.lt(90); t.fd(50);
/*! Select2 4.1.0-beta.0 | https://github.com/select2/select2/blob/master/LICENSE.md */ !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/lt",[],function(){function n(n,e,i,t){return n%10==1&&(n%100<11||n%100>19)?e:n%10>=2&&n%10<=9&&(n%100<11|...
// @flow import {connect} from 'react-redux' import {goBack} from 'react-router-redux' import {deleteProject, saveToServer} from '../actions/project' import EditProject from '../components/edit-project' import * as select from '../selectors' function mapStateToProps (state, props) { const currentProject = select.cu...
this.NesDb = this.NesDb || {}; NesDb[ 'C6FEF52264372FAB620D1E5EE6A3E60E46262775' ] = { "$": { "name": "Hokuto no Ken 4: Shichisei Hakenden: Hokuto Shinken no Kanata e", "altname": "北斗の拳4 七星覇拳伝 北斗神拳の彼方へ", "class": "Licensed", "catalog": "TDF-97", "publisher": "Toei Animation", "developer": "Office Koukan",...
import React, { Component, PropTypes } from 'react'; const propTypes = { name: PropTypes.string.isRequired, age: PropTypes.number.isRequired, skills: PropTypes.array, child: PropTypes.element }; class Profile extends Component { constructor(props) { super(props); this.state = { liked: 0, skills: props....
function sort(matrix) { return matrix.sort(); }
/*********************************************************# # @@ScriptName: view.js # @@Author: Konstantinos Vaggelakos<kozze89@gmail.com> # @@Create Date: 2013-09-11 15:48:39 # @@Modify Date: 2013-09-16 19:18:01 # @@Function: #*********************************************************/ var fs = require('fs'), vector...
// Imports [persistiq.js](lib/persistiq.js.html) module.exports = require('./lib/persistiq');
/* * Paper.js - The Swiss Army Knife of Vector Graphics Scripting. * http://paperjs.org/ * * Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey * http://scratchdisk.com/ & http://jonathanpuckey.com/ * * Distributed under the MIT license. See LICENSE file for details. * * All rights reserved. */ // Base...
// https://www.reddit.com/r/dailyprogrammer/comments/q2v2k/2232012_challenge_14_easy/ "use strict"; const sequenceBlockReverse = (sequence, blockSize) => { let result = []; for (let i=0; i<sequence.length; i+=blockSize) { result = result.concat(sequence.slice(i,i+blockSize).reverse()); } return result; } ...
'use strict'; var gulp = require('gulp'), lazypipe = require('lazypipe'), karma = require('gulp-karma'), runSequence = require('run-sequence'), bump = require('gulp-bump'), tagVersion = require('gulp-tag-version'), git = require('gulp-git'), jshint = require('gulp-jshint'); function getJSHintPipe(rc) { ...
const defaults = { // Disable enabled: true, // Custom media title title: '', // Logging to console debug: false, // Auto play (if supported) autoplay: false, // Only allow one media playing at once (vimeo only) autopause: true, // Allow inline playback on iOS (this effects YouTube/Vimeo - HT...
var app = app || {}; (function(){ app.TestButton = React.createClass({displayName: "TestButton", handleClick: function() { this.props.submitTestTask(this.props.btnType); }, render: function() { return ( React.createElement("button", {onClick: this.handleClick, ...
import test from 'ava'; import mE from '../'; /* Suppress console info/warnings, we really couldn't care less about them. */ console.info = () => { }; console.warn = () => { }; test('Arrow Function Export', t => { const moduleExport = mE(module); moduleExport(() => { }); t.is(typeof module.exports, 'func...
'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...
 var tap = require('tap'); var xelement = require('../lib/xelement'); var fs = require('fs'); var xmlString = ""; var xeleCatalog; tap.test("Parsing xml", function (t) { xmlString = fs.readFileSync('./sampledata.xml', 'utf8'); try { xeleCatalog = xelement.Parse(xmlStrin...
'use strict'; var User = require('../models/User.js'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); module.exports = function(router) { router.use(bodyParser.json()); /***************************************************** //POST to /user to create a user **********************...
"use strict"; var path = require('path'), _ = require('lodash'), fs = require('fs-extra'), Pattern = require('./object_factory').Pattern, CompileState = require('./object_factory').CompileState, pph = require('./pseudopattern_hunter'), mp = require('./markdown_parser'), plutils = require('./util...
function followBoard(boardid) { if (!boardid) { return; } var data = { id: boardid }; $.ajax({ type: "POST", url: "/board/collect", data: data }).done(function (response) { if(!response.success) { return console.error("Error:", response...
import app from "./config/app" import http from "http" const port = app.get('port') http.createServer(app).listen(port, ()=>{ console.log('server is running:'+ port) })
import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; import { createStore } from 'redux'; import rootReducer from '../reducers/rootReducer'; import initialState from '../reducers/initialState'; import { Provider } from 'react-redux'; import ProductTable from './ProductTable'; // esl...
// Generated by CoffeeScript 1.4.0 /** * @package Blogs * @category modules * @author Nazar Mokrynskyi <nazar@mokrynskyi.com> * @copyright Copyright (c) 2015, Nazar Mokrynskyi * @license MIT License, see license.txt */ (function() { (function(L) { return Polymer({ publish: { comment...
var gulp = require('gulp'); var runSequence = require('run-sequence'); gulp.task('build', function() { var args = [ 'unrevAssets', ['browserify', 'sass', 'vendor', 'images', 'xmlMin'], 'html' ]; if (!global.isWatching) { args.splice(2, 0, 'revAssets'); } runSequence.apply(this, args); });
// MySQL Client // ------- const inherits = require('inherits'); const defer = require('lodash/defer'); const map = require('lodash/map'); const { promisify } = require('util'); const Client = require('../../client'); const Transaction = require('./transaction'); const QueryCompiler = require('./query/compiler'); cons...
var expect = require('chai').expect, through = require('through2'), Vinyl = require('vinyl'), fs = require('fs'), path = require('path'), concatCss = require('../'); function expected(file) { var base = path.join(process.cwd(), 'test/expected'); var filepath = path.resolve(base, file); return new Viny...
"use strict"; var mainElm; var internalReq; var internalReqFailures = 0; var currentLocation = parseLocation(); var initialLoad = false; var viewedIds = []; var moreTextUsed = []; var quotesLimit = 0; function pushId(id) { keepArrayFresh.apply(viewedIds, [id, quotesLimit * 0.9]); }; function keepArrayFresh(id, limi...
/* TimelineJS - ver. 2015-09-18-15-26-18 - 2015-09-18 Copyright (c) 2012-2015 Northwestern University a project of the Northwestern University Knight Lab, originally created by Zach Wise https://github.com/NUKnightLab/TimelineJS3 This Source Code Form is subject to the terms of the Mozilla Public Li...
module.exports = function (grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', meta: { banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " + pk...
var util = require('util'); var _ = require('lodash'); var Column = require('./column'), Marshal = require('./marshal'); var Row = module.exports = function Row(data, schema) { var row = []; row.__proto__ = Row.prototype; var defaultNameDeserializer = new Marshal(schema.default_name_type || row.name...
export default function(state = {}, action) { if (action.type === 'TAB_DEFAULT') { state[action.payload.page] = action.payload.tab return Object.assign({}, state) } return state }
"use strict"; const common = require('./common'); const {DEFAULT_ADMIN, makeDefaultUser, PROMISE_DELAY} = require('./common'); const makeTests = require('./factory'); function userGetter(userName) { return new Promise(resolve => { setTimeout(() => { resolve(userName == 'admin' ? DEFAULT_ADMIN ...
var repo = require(process.cwd()+'/repo'); var usersInfo = require(process.cwd()+'/bot/utilities/users'); var _ = require('underscore'); module.exports = function(bot, db, data) { if(!bot.getDJ()) return bot.sendChat('There is no DJ playing!'); if(data.params.length > 0){ if(_.contains(usersInfo....
require('./slider'); module.exports = 'ui.bootstrap-slider';
/** * @license Gibberish-AES * A lightweight Javascript Libray for OpenSSL compatible AES CBC encryption. * * Author: Mark Percival * Email: mark@mpercival.com * Copyright: Mark Percival - http://mpercival.com 2008 * * With thanks to: * Josh Davis - http://www.josh-davis.org/ecmaScrypt * Chris Veness - http://www.movab...
export const FAKE_AUTH_DELAY = 2000 export const FAKE_SCHEDULE_FETCHING_DELAY = 2000
search_result['619']=["topic_0000000000000146.html","PostVacancyController.VacancyService Property",""];
var path = require('path'); var fs = require('fs'); var _ = require('underscore'); var Format = require('./format'); var config = require('./config'); var Spreadsheet = function(options) { this.filename = options.filename; this.path = path.join(config.directory, this.filename); this.format = new Format(options)...
'use strict'; // SisoController angular.module('sisoweb').controller('SisoController', ['$scope', '$http', '$location', 'Sisoweb', function ($scope, $http, $location, Sisoweb) { $scope.showCheckOutDiv = false; // Create new Profile $scope.create = function (req, res) { // Create new Prof...
'use strict'; (function() { // Firme Controller Spec describe('FirmeController', function() { // Initialize global variables var FirmeController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods for updating and deleting the resource....
import assert from 'assert'; import rng from '../../src/rng.js'; import rngBrowser from '../../src/rng-browser.js'; describe('rng', () => { test('Node.js RNG', () => { const bytes = rng(); assert.equal(bytes.length, 16); for (let i = 0; i < bytes.length; ++i) { assert.equal(typeof bytes[i], 'numbe...
var mongoose = require('mongoose'); var schema = mongoose.Schema({ date: { type: Date, default: Date.now }, code: {type: String, required: true, unique: true}, humanId: {type: String, required: true, unique: true} }); module.exports = mongoose.model('QrCode', schema);
const razzleHeroku = require("razzle-heroku") const graphqlRegexp = /\.(graphql|gql)$/ const graphqlLoader = { test: graphqlRegexp, exclude: /node_modules/, loader: "graphql-tag/loader", } const isFileLoader = rule => !rule.test module.exports = { modify: (config, {target, dev}, webpack) => { config = ra...
var Story = { DEFAULT_STORY: 'LostIsland', options: { inCommandEvent: false, commandEventCallback: null, /* function */ canMove: true }, activeStory: null, playerMoves: 0, previousRoom: null, activeRoom: null, init: function (options) { this.option...
describe('My suite', function () { beforeEach(inject(function () { <selection>someService</selection> })); });
/* Rest Query Copyright (c) 2014 - 2021 Cédric Ronvel The MIT License (MIT) 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...
(function (app) { 'use strict'; app.registerModule('d3s'); })(ApplicationConfiguration);
const webpack = require('webpack'); const argv = require('yargs').argv; let webpackConfig = require('./webpack.config'); webpackConfig.devtool = '#inline-source-map'; delete webpackConfig.vue.loaders.sass; delete webpackConfig.entry; module.exports = function (config) { config.set({ browsers : ['PhantomJS...
import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; // Import Style // import styles from './Series.css'; import {fetchSeries} from '../SeriesActions'; import SeriesSectionsView from '../components/SeriesSections/SeriesSections' class Seri...