code
stringlengths
2
1.05M
/* Notes: - gulp/tasks/browserify.js handles js recompiling with watchify - gulp/tasks/browserSync.js watches and reloads compiled files */ var gulp = require('gulp'); var paths = require('../config').paths; var wildcards = paths.wildcards; gulp.task('watch', ['watchify', 'browserSync'], function() { gu...
// ADD SLIDEDOWN ANIMATION TO DROPDOWN // $('.dropdown').on('show.bs.dropdown', function(e){ $(this).find('.dropdown-menu').first().stop(true, true).slideDown(500); }); // ADD SLIDEUP ANIMATION TO DROPDOWN // $('.dropdown').on('hide.bs.dropdown', function(e){ $(this).find('.dropdown-menu'...
/** * 动画主控制器 * @config target 动画对象,可以是数组,如果是数组的话会批量分发onframe等事件 * @config life(1000) 动画时长 * @config delay(0) 动画延迟时间 * @config loop(true) * @config gap(0) 循环的间隔时间 * @config onframe * @config easing(optional) * @config ondestroy(optional) * @config onrestart(optional) * * TODO pause */ module.exports = (func...
initSidebarItems({"struct":[["Encoder",""]],"type":[["EncodeResult",""]]});
var proximityTracker = require("igbtoolbox/spatial/proximity-tracker"); proximityTracker.attachTo(document);
define(function(require){ var GameObject = require('../gameObject'); var UIElement = function(parent, frame){ GameObject.call(this, parent, frame); }; UIElement.prototype = Object.create(GameObject.prototype); UIElement.prototype.constructor = UIElement; UIElement.prototype.super = UIElement.prototype;...
require('./tasks/build'); require('./tasks/test'); require('./tasks/docs');
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React, { Component } from 'react'; import PropTypes fr...
import Runner from "../../src/core/runner"; describe("unit", () => { it("todo", () => { expect.assertions(1); const runner = Runner.init(); const results = runner.listen(); const t = runner.test; t.todo("test1"); t.todo("test2", () => { /* istanbul ignore next */ expect(false)....
define(['Global'], function(G){ return Backbone.Model.extend({ defaults: { name: 'twiddle', title: 'Twiddle your thumbs', count: 0, disabled: false, unlocked: false, cost: false, income: false, description: false, cooldown: false } }); });
import { dirname } from 'path'; import getJSExports from '../util/getJSExports'; import addImports from 'jscodeshift-add-imports'; // istanbul ignore next if (process.env.NODE_ENV === 'test') { const resolve = require.resolve; require.resolve = source => resolve(source.replace(/^@material-ui\/core\/es/, '../.....
define(["dojo/_base/kernel", "dojo/_base/declare", "dojo/_base/Deferred", "dojo/on", "dojo/has", "dojo/aspect", "./List", "dojo/has!touch?./util/touch", "put-selector/put", "dojo/query", "dojo/_base/sniff"], function(kernel, declare, Deferred, on, has, aspect, List, touchUtil, put){ has.add("dom-comparedocumentpositio...
describe('Component: fallback-img', function() { var element, $scope, $compile; beforeEach(module('ngRamen.components.fallbackImg')); beforeEach(inject(function(_$compile_, _$rootScope_) { $compile = _$compile_; $scope = _$rootScope_.$new(); element = angular.element('<img ng-src="" rmn-fallback-i...
// Chosen, a Select Box Enhancer for jQuery and Protoype // by Patrick Filler for Harvest, http://getharvest.com // // Version 0.9.11 // Full source at https://github.com/harvesthq/chosen // Copyright (c) 2011 Harvest http://getharvest.com // MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md // T...
angular.module('angular-feedback-form', [ 'angular-feedback-form.templates', 'ngAnimate' ]) .directive('feedbackForm', function() { return { restrict: 'A', require: 'ngModel', scope: { //options: '&', ngModel: '=', submitFunction: '&' }, templateUrl: 'src...
const del = require('del'); const gulp = require('gulp'); const cleanCSS = require('gulp-clean-css'); const less = require('gulp-less'); const rename = require("gulp-rename"); const uglify = require('gulp-uglify'); gulp.task('clean', function clean() { return del([ 'web/css/**/*', 'web/fonts/**/*',...
/* jshint maxdepth: 5, onevar: false */ module.exports = (function () { 'use strict'; /*jslint node: true */ var mongoose = require('mongoose'), _ = require('lodash'), q = require('q'), async = require('async'), schemaNode = require('./schemas/node'), schemaContent =...
let one = (() => { var _ref = babelHelpers.asyncToGenerator(function* (a, b = 1) {}); return function one(_x) { return _ref.apply(this, arguments); }; })(); let two = (() => { var _ref2 = babelHelpers.asyncToGenerator(function* (a, b, ...c) {}); return function two(_x2, _x3) { return _ref2.apply(th...
var expect = require("chai").expect; var Bet = require('../../lib/bet'); var uniqid = require('uniqid'); describe("Running tests for bet", function() { it("should get created and saved in file system", function(done) { Bet.create("Bet:W:2:10",uniqid(), function(err, response){ expect(response).t...
"use strict"; module.exports = function(ngModule){ ngModule.controller('NoticeEditCtrl', function(NoticeService, AppConfig, ModalService, $filter, Loader, $stateParams, $state, notice, zone) { var vm = this; vm.zone = zone; vm.data = notice; console.log(notice); vm.file= { url: notice.file, name: "下载"...
function tokenizer(str) { var token = ''; var result = []; var status; str.split('').forEach((char, index) => { if (!isTargetChar(char)) { throw new Error(); } if (isNumber(char)) { if (status != 'char' && token.length > 0) { result.push(t...
import { FETCH_REQUEST, FETCH_RESPONSE, SERVER_ERROR, MESSAGE_SET } from 'constants/actionTypes' export const fetchRequestAction = () => { return { type: FETCH_REQUEST } } export const fetchResponseAction = (message, status) => { return { type: FETCH_RESPONSE, message, status } } export const...
var Auth = require('./auth'); var createAuth = function (opts) { return new Auth(opts); }; exports = module.exports = createAuth(); exports.create = createAuth;
'use strict'; const Joi = require('joi'); const Boom = require('boom'); const Chalk = require('chalk'); const Jwt = require('jsonwebtoken'); const RestHapi = require('rest-hapi'); const Bcrypt = require('bcryptjs'); const _ = require('lodash'); const Config = require('../../config'); const USER_ROLES = Config.get('/...
Ext.define('Rally.technicalservices.data.FeatureStatusModel',{ extend: 'Ext.data.Model', emptyString: '(Empty)', fields: [ {name: 'FeatureStatus' }, {name: 'FeatureRef', type:'string'}, {name: 'State', type:'string'}, // {name: 'InitiativeRef'}, ...
const Liquid = require('../../liquid') const Syntax = /((?:{{2}\s?)?[a-z0-9/\\_.-]+(?:\s?}{2})?)/i const SyntaxHelp = "Syntax Error in 'include' - Valid syntax: include [templateName]" module.exports = class Include extends Liquid.Tag { constructor (template, tagName, markup) { super(template, tagName, markup) ...
/* alldata-http-http-leveldb.js The MIT License (MIT) Copyright (c) 2013 Tristan Slominski 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 ...
'use strict'; function ConfirmModalComponent($scope, $modalInstance, title, message) { const cmc = this; cmc.message = $scope.modalMessage; cmc.title = $scope.modalTitle; cmc.solve = solve; cmc.error = error; /**************************************************************************/ function error...
/** * impress.js * * impress.js is a presentation tool based on the power of CSS3 transforms and transitions * in modern browsers and inspired by the idea behind prezi.com. * * MIT Licensed. * * Copyright 2011-2012 Bartek Szopka (@bartaz) * * ------------------------------------------------ * author: Barte...
var es = require('event-stream'); var utils = require('../services/utilities'); var securityService = require('./securityService.js'); var m; var idFieldName = '_id'; var ownerIdFieldName = '_ownerId'; var operationMiddlewares = []; var hashedPathsToResourceNames = {}; var HorizontalSecurityPolicies = { ...
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import navigationItem from './navigationItem'; const propTypes = { className: PropTypes.string, children: PropTypes.node, temporary: PropTypes.bool, }; const Navigation = ({ className, children, temporary, ...oth...
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/breeze-mongoose-example', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstr...
export const darkBlueGrey = '#1e2a37' // export const lightBlueGrey50 = '#c5d7e4' export const lightBlueGrey50 = '#d0e4f2' // export const lightBlueGrey50 = '#a9c0d1' export const lightBlueGrey100 = '#779bb7' export const lightBlueGrey200 = '#5580a1' export const lightBlueGrey300 = '#3c5b72' export const lightBlueGre...
'use strict'; define('ace/snippets/dot', ['require', 'exports', 'module'], function (require, exports, module) { exports.snippetText = ""; exports.scope = "dot"; });
import React, { Component } from 'react'; import AddTodo from './AddTodo'; import VisibleTodoList from './VisibleTodoList'; import Footer from './Footer'; class TodoApp extends Component { render() { return( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ); } }; export default To...
'use strict'; module.exports = { db: 'mongodb://localhost/mugil-dev', app: { title: 'mugil - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: { clientID: p...
var RENDERER = { INIT_CHERRY_BLOSSOM_COUNT : 30, MAX_ADDING_INTERVAL : 10, init : function(){ this.setParameters(); this.reconstructMethods(); this.createCherries(); this.render(); }, setParameters : function(){ this.$container = $('#jsi-cherry-container'); this.width = this.$container.width(); thi...
'use strict'; var app = require('../..'); import request from 'supertest'; var newData; describe('Data API:', function() { describe('GET /api/datas', function() { var datas; beforeEach(function(done) { request(app) .get('/api/datas') .expect(200) .expect('Content-Type', /json...
// GEngine // //The MIT License (MIT) // //Copyright (c) 2015 Carl Hewett // //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 ...
search_result['16']=["topic_0000000000000006.html","DataProtection Class",""];
// Will need to get challenges data in the future var data = require('../data.json'); exports.viewChallenges = function(req, res){ res.render('challenges', data); };
function hideshow(which) { if (!document.getElementById) return if (which.style.display=="block") which.style.display="none" else which.style.display="block" }
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('tab-item', 'Integration | Component | tab item', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); // Handle any ac...
app.controller('NavigationController', function ($controller, $scope, $location, $window) { angular.extend(this, $controller('AbstractController', {$scope: $scope})); $scope.$on('$routeChangeStart', function(next, current) { $scope.view = $location.$$path; }); $scope.windowWidth = 0; $scope.wind...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _c...
/** * Yet another simple and lightweight notification factory for Angularjs which depends to * the bootstrap-notify (https://github.com/nerezo/angular-lightify). * * @versionv1.0 - 2014-12-02 * @link https://github.com/nerezo/angular-lightify * @author Okan Özeren <okanozeren[at]gmail.com> * @license MIT License, ht...
window.onerror = function (e) { BAT.debug(e.toString()); }; var voicesEl = document.querySelector("#voices") for (var i = 0; i < VOICES.length; ++i) { var cVoice = VOICES[i] , op = document.createElement("option") ; op.setAttribute("value", cVoice.code) op.innerHTML = cVoice.name; vo...
(function (root, __runtime, document) { // ============================================================= // NAME: runtime // Injected dependency script for integrating Svelte.JS components // ============================================================= // =========================================================...
module.exports = { 'name': 'common', 'defaults': function(){ return { errors: [] }; }, 'onError': function (msg, trace, api) { api.setPush('errors', { type: 'instrument/error::page.onError', date: Date.now(), message: msg, ...
'use strict'; var angular = require('angular'); describe('mwlresizable directive', function() { var element, scope, $rootScope, interact, interactInstance, resizableOptions, $compile, template = '<div ' + 'mwl-resizable="resizable" ' + 'snap-grid="{y: 30}" ' + 're...
// server.js (Express 4.0) var express = require('express'), morgan = require('morgan'), bodyParser = require('body-parser'), methodOverride = require('method-override'), cors = require('cors'), app = express(); app.use(express.static(__dirname + '/public'));...
module.exports = { // Used by `gatsby-plugin-sitemap` siteMetadata: { title: 'Jordan Vincent', siteUrl: 'https://jordan-vincent.com', }, plugins: [ 'gatsby-plugin-eslint', 'gatsby-plugin-react-helmet', 'gatsby-plugin-sitemap', { resolve: 'gatsby-plugin-sass', options: { ...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListItemText'; import StarIcon from '@mat...
(function(){ 'use strict'; angular.module('users') .service('userService', ['$q', UserService]); /** * Service de données Users * Pour l'instant les données sont en dur : à remplacer avec un appel à l'API côté serveur * Le retour est asynchrone pour simuler un appel serveur * * @returns ...
import animate from './utils/animate' import clone from './utils/clone' import * as colors from './utils/colors' import debounce from './utils/debounce' import * as dom from './utils/dom' import * as event from './utils/event' import extend from './utils/extend' import filter from './utils/filter' import * as format fr...
/* * CLI Agent module * * module used for testing, does work of agent * * Copyright (C) Province of British Columbia, 2013 */ var fetch = require('request') , async = require('async') , jwt = require('./jwt') , config = require('../config') var Create = function ( options ) { options = options || {} this.er...
export AboutPage from './AboutPage/AboutPage' export App from './App/App' export Header from './Header/Header' export HomePage from './HomePage/HomePage' export CustomJob from './CustomJob/CustomJob' export JobLister from './JobLister/JobLister' export SearchResults from './SearchResults/SearchResults' export NotFoundP...
/** * vtkWebLoader JavaScript Library. * * vtkWebLoader use the vtkWeb namespace to manage JavaScript dependency and more specifically * vtkWeb dependencies. * * @class vtkWebLoader * * @singleton */ (function (GLOBAL) { var vtkWebLibs = { "core" : [ "ext/core/jquery-1.8.3.mi...
function RocksDownSmall() { var rocksDownSmall = PIXI.Texture.fromImage("resources/rock_down_small.png"); PIXI.TilingSprite.call(this, rocksDownSmall, 1024, 320); this.position.x = 0; this.position.y = 0; this.tilePosition.x = 0; this.tilePosition.y = 0; ...
System.register([], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var States; return { setters:[], execute: function() { (function (States) { States[States["PLAY"] = 0] = "PLAY"; })(States || (States =...
'use strict'; // Application main entry point. Load the app module and call main(). var App = require('./js/app.js'); App.main();
export default function clientMiddleware(client) { return ({dispatch, getState}) => { return next => action => { if (typeof action === 'function') { return action(dispatch, getState); } const { promise, types, ...rest } = action; // eslint-disable-line no-redeclare if (!promise) {...
var path = require("path"); module.exports = function ( karma ) { karma.set({ /** * From where to look for files, starting with the location of this file. */ basePath: path.join(__dirname, '..'), /** * This is the list of file patterns to load into the browser during testing. */ ...
import React, { PropTypes } from 'react' import { IndexLink } from 'react-router' import { LinkContainer } from 'react-router-bootstrap' import './Header.scss' import { Navbar, Nav, FormControl, Button, NavItem } from 'react-bootstrap' import url from '../../../utils/url' export const Header = (props) => { ...
define(function(require, exports, module) { 'use strict'; const wrapperTemplate = require('tpl-loader!orofilter/templates/filter/filter-wrapper.html'); const template = require('tpl-loader!orofilter/templates/filter/text-filter.html'); const $ = require('jquery'); const _ = require('underscore'); ...
'use strict'; var User = require('./swagger-models/user'); exports.User = User;
(function() { 'use strict'; var Deck = require('../models/deck'); var replyWithDeck = function(req, res) { var deckId = req.body.deckId; var userId = req.session.userId; Deck.findOne({_id:deckId, userId:userId}) .populate('cards') .exec(function(err, result) { return res.apiOut(err, result); }...
define("ace/snippets/apache_conf",["require","exports","module"],function(e,n,c){"use strict";n.snippetText=undefined,n.scope="apache_conf"}); //# sourceMappingURL=node_modules/ace-builds/src-min/snippets/apache_conf.js.map
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedMod...
'use strict'; const crypto = require('crypto'); const entityMap = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', '\'': '&#39;', '/': '&#x2F;' }; function escapeHTML(string) { return String(string).replace(/[&<>"'\/]/g, function (s) { return entityMap[s]; }); } function toId(text) { i...
var path = require('path'); var containerPath = path.resolve('./'); var alias = {}; module.exports = alias;
import{a as e,b as i,c as t,d as r}from"./chunk-XEG646QN.js";import"./chunk-JJR4MJC5.js";import"./chunk-SMGTENZD.js";import{a as l}from"./chunk-VWFYI5BK.js";import"./chunk-MA3AC62H.js";import"./chunk-4V4U3XDY.js";import"./chunk-VCDLAVQZ.js";import"./chunk-PUAVFQTB.js";import"./chunk-EJREXK3Y.js";function n(o){i(o,{l1:"...
// // Globals // var width = window.innerWidth; var height = window.innerHeight; // 全画面表示時にスクロールバーを表示させない var scene; var camera; var rt1, rt2; // rt: render target var uniforms1; var renderer; var stop = false; var clock; var clockSpeed = 1.0; var R = 1, T = 3, C = 3, N = false; // CCA params clock = new THREE.Cloc...
import { Map } from 'immutable'; import { tracklistActions } from 'src/core/tracklists'; import { userActions } from './actions'; import { createUser } from './user'; export const initialState = new Map({ currentUserId: null }); export function usersReducer(state = initialState, {payload, type}) { switch (type)...
const path = require('path'); const Container = require('aurelia-dependency-injection').Container; const fs = require('./file-system'); const ui = require('./ui'); const Project = require('./project').Project; const CLIOptions = require('./cli-options').CLIOptions; const LogManager = require('aurelia-logging'); const L...
// import * as d3 from 'd3'; // import {geoMercator, geoPath} from 'd3-geo'; import geoMercator from 'd3-geo/src/projection/mercator'; import geoPath from 'd3-geo/src/path/index'; import config from 'app/graphic/config'; import zrender from 'zrender/src/zrender'; import Circle from 'zrender/src/graphic/shape/Circle'; i...
import crypto from 'crypto' export default (str) => crypto.createHash('md5').update(str).digest('hex')
module.exports = function(grunt) { //load our plugins that were installed via NPM grunt.loadNpmTasks("grunt-contrib-less"); grunt.loadNpmTasks("grunt-contrib-watch"); //set our options grunt.initConfig({ less: { dev: { //compile from style.less to style.css src: "style.less", ...
const path = require('path') const config = require('../config') const utils = require('./utils') const projectRoot = path.resolve(__dirname, '../') module.exports = { entry: { app: './src/main.js' }, output: { path: config.build.assetsRoot, publicPath: config.build.assetsPublicPath, filename: '[...
(function(){ var React, Component, DOM, div, span, button, cx, Characteristic, STR, DEX, POW, CON, APP, EDU, SIZ, INT, MoveRate, Characteristics; React = require('react'), Component = React.Component, DOM = React.DOM, div = DOM.div, span = DOM.span, button = DOM.button; cx = require('./utils').cx; Characteristi...
var gutil = require('gulp-util'); var testee = require('testee'); var path = require('path'); var through2 = require('through2'); var Vinyl = require('vinyl'); var PLUGIN_NAME = 'gulp-testee'; function gulpTestee(options) { var opts = options || {}; var browsers = opts.browsers || ['phantom']; var outputFile = ...
const cluster = require('cluster'); const http = require('http'); const View = require('../src/Client/bin/lib/View') const ReactDOMServer = require('react-dom/server') const os = require('os') const coreCount = os.cpus().length; const initState = { counter: 42, someString: "Some String", someFloat: 11.11, some...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc.5-master-9082e4a */ goog.provide('ngmaterial.components.swipe'); goog.require('ngmaterial.core'); /** * @ngdoc module * @name material.components.swipe * @description Swipe module! */ /** * @ngdoc directive * @modu...
'use strict'; // lodash var isString = require('lodash/isString'); /** * A pluggable translator. * * @constructor * @param {Function} plugin - A function that translates a given key. */ function Translator(plugin) { this.plugin = plugin; } /** * Returns a key that has been translated by a plugin or just the ...
/*globals Em:true ENV */ /** @module ember @submodule ember-metal */ /** All Ember methods and functions are defined inside of this namespace. You generally should not add new properties to this namespace as it may be overwritten by future versions of Ember. You can also use the shorthand `Em` instead of `Em...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8c-1.18 0-2.34-.26-3.43-.78-.27-.13-.56-.19-.86-.19-.19 0-.38.03-.56.08l-3.2.94.94-3.2c.14-.47.1-.98-.11-1.42C4.26 14.34 4 13.18 4 12c0-4.41 3.59...
var blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers'); var setupTestHooks = blueprintHelpers.setupTestHooks; var emberNew = blueprintHelpers.emberNew; var emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy; var modifyPackages = blueprintHelpers.modifyPackages; var chai = require('ember-c...
'use strict'; angular.module('angularLeapUi') .directive('leapHover', function ($interval, NormalizePointables) { return { restrict: 'EACM', require: '^leapOverlay', link: function (scope, element, attrs, controller) { var dataArray = NormalizePointables.get(); var className = '...
import Immutable from 'immutable'; import { initialState, default as contact } from '../contact-reducer'; import { REQUEST_CONTACT, REQUEST_SAVE_CONTACT, REQUEST_CONTACT_SUCCESS, UPDATE_CONTACT_ATTRIBUTE, VALIDATE_CONTACT, VALIDATE_CONTACT_ATTRIBUTE, RESET_CONTACT, } from '../../constants/contact-actions-constants'...
/* ------------------------------------------------------------------ * node-echonet-lite - FF-00-8D.js * * Copyright (c) 2016, Futomi Hatano, All rights reserved. * Released under the MIT license * Date: 2016-08-06 * * - Class group code : FF : Super Class Group * - Class code : 00 : Device Object Super Class * ...
this.NesDb = this.NesDb || {}; NesDb[ '1693D06C9142DE5230ACF766F62FEBFF144A7370' ] = { "$": { "name": "Mito Koumon II: Sekai Manyuu Ki", "altname": "水戸黄門Ⅱ 世界漫遊記", "class": "Licensed", "subclass": "3rd-Party", "catalog": "SUN-MKII-5500", "publisher": "Sunsoft", "developer": "TOSE Software", "region": "...
import React from 'react'; import ReactDOM from 'react-dom'; import randomRune from '../../logic/random-rune.js' import store from '../../store/configure-store.js' describe('.randomRune()', () => { it('should return an error if receiving incorrect parameters', () => { expect(randomRune("random", "barbarian")).to...
/** * Copyright (c) 2015-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. * * REPO: htt...
'use strict'; exports.up = function(knex, Promise) { return knex.transaction(function(trx) { trx.insert([{ role: 1, user: 1, createdAt: new Date(), updatedAt: new Date() }]).into('user_role_users__user_user_roles').then(trx.commit); }); }; exports.down = function(knex, Promise) { ...
import styled from 'styled-components'; export const Container = styled.div` margin: auto; padding: 50px 0; width: 300px; `; export const Header = styled.div` padding: 20px; background-color: #19aa8d; color: #fff; `; export const Content = styled.div` padding: 20px; `; export const ContentContainer = ...
function log(command, expected) { var out = eval(command); if (expected == null) expected = "???"; console.log(command); console.log(" ->", out); console.log("// ->", expected); } log("'coconuts'.slice(4, 7)", "nut"); log("'coconut'.indexOf('u')", "5");
/* eslint-disable import/prefer-default-export */ import { LIKE_BUTTON_SETTINGS } from '../constants/actionTypes'; export function setSettings({ actionType, isShowLikeCount }) { return { type: LIKE_BUTTON_SETTINGS.SET, payload: { actionType, isShowLikeCount, }, }; } export function restor...
"use strict"; var less = require("../less") exports["test with both arguments"] = function(assert) { assert.ok(less(1, 2), "1 is less than 2") assert.ok(!less(2, 1), "2 is not less than 1") assert.ok(!less(1, 1), "1 is not less than 1") } exports["test currying"] = function(assert) { var actual = [ 1, 2, 3, ...
import chai, {expect} from 'chai'; import bows from 'bows'; import chatReducer from '../reducers'; var logger = bows('chat.tests.state'); describe('chat', () => { var state = [ {uid: 1, msgs: ['chat1, msg1', 'chat1, msg2']}, {uid: 2, msgs: ['chat2, msg1', 'chat2, msg2']} ]; it('sends a me...
var zlib = require('zlib'), http = require('./http'), mongo = require('./mongo'), JSONStream = require('JSONStream'), fs = require('fs'), csv = require('csv-streamify'); var streams = { mongo: mongo, fs: { createReadSteam: fs.createReadStream, createWriteStream: fs.createWriteStream }, json: ...