code
stringlengths
2
1.05M
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import favicon from 'serve-favicon'; import compression from 'compression'; // import httpProxy from 'http-proxy'; import path from 'path'; import PrettyError from 'pretty-error'; import http from 'http'; import { Provide...
/*! * VisualEditor ContentEditable DivNode class. * * @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * ContentEditable div node. * * @class * @extends ve.ce.BranchNode * @constructor * @param {ve.dm.DivNode} model Model to observe ...
/* * Copyright (c) 2014. * * @author Andy Tang */ (function VersusSceneModel(angular, clazz) { 'use strict'; var app = angular.module('jsWars'); app.factory('VersusScene', ['Saber', 'SwordSoldier', 'Scene', function VersusSceneFactory(Saber, SwordSoldier) { return clazz(function V...
//= require ./root_view //= require ./label_view // When multiple panels with modal panes are shown at the same time, we need this to get them to stack on // top of each other. If they use a static z-index, all the panels would appear on top of all the modal panes. Flame._zIndexCounter = 100; // A pop-up panel, modal...
var checksCtrlr = require("bolt-internal-checks"); var express = require('express'); var uiAppsCtrlr = require('../controllers/ui-apps'); var router = express.Router(); //this endpoint runs the app with the specified name (using default options) router.get('/:name', checksCtrlr.forLoggedInUiUser, uiAppsCtrlr.getApp...
/** * Created by berton on 2016/10/20. */ module.exports = require('./blog.server.api.routes');
๏ปฟdefine(['layout/module'], function (module) { 'use strict'; module.registerController('GeneralModalDetailCtrl', function ($scope, $modalInstance, currentitem, extraObjects) { $scope.currentitem = currentitem; $scope.form = extraObjects; $scope.form.original = angular.copy($scope.curre...
var game; // panda speed, in pixels per second var pandaSpeed = 200; // panda max horizontal movement before the game scrolls var pandaXLimit = 160; // pixels range between a spike and next spike var spikeGap = [70, 200]; window.onload = function() { game = new Phaser.Game(480, 320, Phaser.AUTO, ""); game.state.add...
var fs = require('fs'); fs.open('./msg.txt','r', function (err, fd) { var buf = new Buffer(6); var buf1 = new Buffer(9); fs.read(fd,buf,0,6,3,function(err,byteRead,buffer){ console.log(byteRead); console.log(buffer.toString()); fs.read(fd,buf1,0,9,3,function(err,byteRead,buffer){ ...
import Icon from '../components/Icon.vue' Icon.register({"train":{"width":1536,"height":1792,"paths":[{"d":"M1088 0q185 0 316.5 93.5t131.5 226.5v896q0 130-125.5 222t-305.5 97l213 202q16 15 8 35t-30 20h-1056q-22 0-30-20t8-35l213-202q-180-5-305.5-97t-125.5-222v-896q0-133 131.5-226.5t316.5-93.5h640zM768 1344q80 0 136-56t...
import React from 'react'; import frontMatter from 'front-matter'; import markdownIt from 'markdown-it'; import markdownItSub from 'markdown-it-sub'; import markdownItFootnote from 'markdown-it-footnote'; import markdownItDeflist from 'markdown-it-deflist'; import markdownItAbbr from 'markdown-it-abbr'; import markdown...
import 'babel-core/register'; import 'babel-polyfill'; import 'whatwg-fetch'; import './assets/stylesheets/app.scss'; import plugins from 'app/utils/JsPlugins'; import { serverApiRecordEvent } from 'app/utils/ServerApiClient'; import Iso from 'iso'; import { clientRender } from 'shared/UniversalRender'; import * as gol...
import React, { Component } from 'react'; export default class ConnectionStatus extends Component { render() { let status = this.props.connected ? 'Connected' : 'Disconnected'; return ( <div> <strong>Status:</strong> {status} </div> ); } }
(function() { var TodoStore = { add: function(todo, callback) { db.put(todo, callback); }, all: function(callback) { db.allDocs({ include_docs: false }).then(function (result) { callback(result.rows); }); } }; window.TodoStore = TodoStore; })();
function is_same_day(date1, date2) { return date1.getYear() == date2.getYear() && date1.getMonth() == date2.getMonth() && date1.getDate() == date2.getDate(); } function is_today(date) { var now = new Date(); return is_same_day(date, now); } function get_date_name(date) { if(is_today(date)) { ...
module.exports = { server:{ local:{ port:3001, host:"0.0.0.0" } } };
'use strict'; /** * @ngdoc function * @name membershipSystemApp.controller:MainCtrl * @description * # MainCtrl * Controller of the membershipSystemApp */ angular.module('membershipSystemApp') .controller('MainCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS',...
(function () { 'use strict'; const { BigNumber } = require('@waves/bignumber'); /** * @param Base * @param {Waves} waves * @param {User} user * @param {IPollCreate} createPoll * @param {$rootScope.Scope} $scope * @return {ChangeRate} */ const controller = function (B...
/* compromise-hash 0.0.1 MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.compromiseHash = factory()); }(this, (function () { 'use strict'...
import test from 'blue-tape'; import sinon from 'sinon'; import { framesActivityInitialState } from '../../src/reducers/frames/initialState'; import framesActivity from '../../src/reducers/frames/framesActivity'; import { setCurrentFrame, removeFrameData, updateFrameGIFData, setFPS, resetFramesState } from ...
/*jshint indent: 2 */ /*global angular: false */ (function () { 'use strict'; var mainModule = angular.module('as.sortable'); /** * Helper factory for sortable. */ mainModule.factory('$helper', ['$window', function ($window) { return { /** * Get the height of an element. ...
var keystone = require('keystone'); exports = module.exports = function(req, res) { var view = new keystone.View(req, res), locals = res.locals; // locals.section is used to set the currently selected // item in the header navigation. locals.section = 'users'; view.query('users', keystone.list('User').mod...
var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3; function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writab...
//steal/js jmvc/site/scripts/compress.js load("steal/rhino/rhino.js"); steal.plugins('steal/build','steal/build/scripts','steal/build/styles',function(){ steal.build('jmvc/site/scripts/build.html',{to: 'jmvc/site'}); });
/* global CodeMirrors */ CodeMirrors = {}; import { Meteor } from 'meteor/meteor'; import { Session } from 'meteor/session'; import { Template } from 'meteor/templating'; import 'codemirror/lib/codemirror.css'; import CodeMirror from 'codemirror/lib/codemirror.js'; Template.CodeMirror.rendered = function() { const o...
var encodings = { 'af': ['windows-1252','iso-8859-1'], 'sq': ['windows-1252','iso-8859-1'], 'ar': ['iso-8859-6'], 'eu': ['windows-1252','iso-8859-1'], 'bg': ['iso-8859-5'], 'be': ['iso-8859-5'], 'ca': ['windows-1252','iso-8859-1'], 'hr': ['windows-1250','iso-8859-2'], ...
import controller from './movies.controller'; import template from './movies.html'; const MoviesComponent = { bindings: { movies: '<' }, controller, template }; export default MoviesComponent;
Accounts.emailTemplates.siteName = "Revise"; Accounts.emailTemplates.from = "Revise Admin <accounts@revise.com>"; Accounts.emailTemplates.resetPassword.subject = function (user) { return "Reset your email"; }; Accounts.emailTemplates.resetPassword.text = function (user, url) { url = url.replace('#/', '') return...
// ๅฆ‚ๆžœไธๆƒณๅ•็‹ฌ้…็ฝฎ่ฏฅๆ–‡ไปถ๏ผŒๅฏไปฅๅœจconfig.js้‡Œๅˆคๆ–ญprocess.argv.indexOf('-p')๏ผŒๅฆ‚ๆžœๅŒ…ๅซๅˆ™ๅŠ ๅ…ฅ็›ธๅบ”ๆ’ไปถ // ๅŒๆ—ถ่ฆๆŠŠmodule.exports้‡Œ้ข็š„devServer้‡Œ้ข็š„้…็ฝฎๅŽปๆމ๏ผŒๅœจpackage.json็š„script้‡Œ่ฟ›่กŒ้…็ฝฎ // "start": "start http://localhost:3456/ & webpack-dev-server --devtool eval --progress --colors --hot --inline --port 3456 --history-api-fallback" // ๅฆ‚ๆžœๅ–ๆถˆๆœฌๆ–‡ไปถ๏ผŒไธ”ไธๅˆ ้™คconfig.js้‡ŒdevServer้‡Œ...
// Generated by CoffeeScript 1.8.0 (function() { var cakedog, commands, path; path = require('path'); commands = require('./commands'); cakedog = function(options) { var output, source, _options; if (options == null) { options = {}; } output = options.output, source = options.source; ...
/** * Created by stefan on 26.06.16. */ var helper = require("../testinghelper"); describe("myprojects: when logged in", function() { this.timeout(15000); before(helper.login); it("Overview for the current user's projects", (done) => { var req = helper.get("/user/myprojects"); req.expec...
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ dbm.registerClass("dbm.flow.nodes.development.CreateCurveFromTimelineNode", "dbm.core.ExtendedEventBaseObject", function(objectFunctions, staticFunctions, ClassReferen...
/* eslint no-unused-vars: "off" */ /* eslint require-jsdoc: "off" */ "use strict" export default function(sequelize, data_types) { const operator = sequelize.define("operator", { id: { type: data_types.INTEGER, primaryKey: true, autoI...
var React = require('react'); var Photo = React.createClass({ render: function () { return <img src="/img/sample.jpg"/> } }); module.exports.Photo = Photo;
'use strict'; var parseColor = require('parse-color'), colorDiff = require('color-diff'), png = require('./png'), PNGIn = png.PNGIn, PNGOut = png.PNGOut; var JND = 2.3; //Just noticable difference //if ciede2000 >= JND then colors //difference is noticable by human eye ...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
"use strict"; function runServer() { var keys = [38, 40, 37, 39]; $(document).keydown(function (event) { if ( $.inArray( event.which, keys ) >= 0 ) { $.post('/control', { key: event.which }); } }); } $(runServer, document); function state() { var updateState = function(da...
var is = require('./is'); /** * **File:** [predicates/is-false.js](predicates/is-false.js) * * @member module:Protean.isTrue * @function * @param {*} right * @returns {Boolean} */ module.exports = is(false);
"use strict"; exports.__esModule = true; /** * Walk the input `node` and statically evaluate if it's truthy. * * Returning `true` when we're sure that the expression will evaluate to a * truthy value, `false` if we're sure that it will evaluate to a falsy * value and `undefined` if we aren't sure. Because of thi...
function init() { var json = { title: "Product Feedback Survey Example", showProgressBar: "top", pages: [ {questions: [ { type: "matrix", name: "Quality", title: "Please indicate if you agree or disagree with the following statements", columns: [{ value: 1, text: "Strongly Disagr...
import React from 'react'; import Select from 'react-select-plus-2'; var ValuesAsBooleansField = React.createClass({ displayName: 'ValuesAsBooleansField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: true, label: 'Yes' }, { value: false, label: 'No'...
/** * Block File Input * * for: b-file-input */ var Block_DynamicTextarea = new Class({ // Implements: [Options, Events], /* options: { // onClose : function(){} }, */ wrapper: false, elements : {}, initialize : function(wrapper, options){ // this.setOptions(options); this.wrapper = wrapper; t...
angular.module('TeamService', []).factory('Team', ['$http', function($http) { var getAllTeams, updateTeam, createTeam; getAllTeams = function (callback) { $http .get('/api/team') .success(function (data) { callback(null, data); }) .error(function (data) { callback(data, ...
(function() { var app = angular.module("employeeApp", ['ngRoute', 'angular-hmac-sha512', 'angular.chips', 'ui.bootstrap', 'ngFileUpload', 'infinite-scroll']); app.config(function($routeProvider) { $routeProvider .when('/', { controller: 'homeController', templ...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ProjectSchema = new mongoose.Schema({ title : { type: String, default: ""}, tasks : [{ type: Schema.ObjectId, ref: 'Task' }] }); module.exports = mongoose.model('Project', ProjectSchema);
/* eslint-env jest */ import React from 'react'; import childrenOfType from '../util/childrenOfType'; import Item from './../Component/Item'; describe('childrenOfType', () => { it('Should return an Error if the given children type is not correct', () => { const rightProps = { children: [<Item>plop</Item>,...
'use strict'; /* @flow */ require('../assets/styles/main.scss'); var Nes = require('nes'); function findMax<T>(arr:T[],compare:(a:T,b:T) => number) { var sorted = arr.sort(compare); return sorted[sorted.length - 1]; } function getMax(a,b) { return a-b; } var here = findMax([5,1,2,3,4],getMax); var client = n...
Categories = new Mongo.Collection("categories"); // db.categories.insert({ name: "Type 1" }); // See: https://github.com/peerlibrary/meteor-peerdb/issues/17 // see also: https://github.com/aldeed/meteor-collection2/issues/31 Schemas.Categories = new SimpleSchema({ name: { type: String, label: "Name", m...
import './App.css'; import { BrowserRouter as Router, Switch, Route, } from "react-router-dom"; import Home from './pages/home'; import About from './pages/about'; import Services from './pages/services'; import Footer from './components/Footer'; import Header from './components/Header'; import Imprint from '...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var util = require('util'); /* jshin...
export * from './Align'; export * from './DebugBox'; export * from './Float'; export * from './Grid'; export * from './Horizontal'; export * from './Position'; export * from './Size'; export * from './Stacked'; export * from './Visible'; export * from './helpers';
import store from './store' import { ServerUpdate, AssignRoom } from "./reducers/frontendStore" import { browserHistory } from 'react-router'; const socket = io.connect() socket.on('connect', function() { // socket.emit('giveMeARoom') }) socket.on('roomAssigned', function(myRoom) { console.log('r...
'use strict' class EmpireObservers extends kernel.process { constructor (...args) { super(...args) this.priority = PRIORITIES_EMPIRE_INTEL } main () { if (Game.rooms.sim) { return } const cities = Room.getCities() this.targets = [] for (const cityName of cities) { const c...
import React from 'react'; import ReactDOM from 'react-dom'; import Breadcrumb from '../index'; import { createTestContainer, getDOMNode, getStyle, toRGB, itChrome } from '@test/testUtils'; import '../styles/index'; describe('Breadcrumb styles', () => { itChrome('Should render correct padding', () => { const in...
import MonalisaCanvas from "./MonalisaCanvas"; export default MonalisaCanvas;
/* @flow */ import type {PluginConfig, PluginResult} from '.'; import {getPrefixedStyle} from '../prefixer'; export default function prefixPlugin( {componentName, config, style}: PluginConfig ): PluginResult { const newStyle = getPrefixedStyle( style, componentName, config.userAgent, ); return {s...
(function () { "use strict"; require.config({ baseUrl: '../js', paths: { underscore: '../bower/underscore/underscore', dom: '../bower/jquery/dist/jquery', 'lib/app': 'app', test: '../test', mocha: '../bower/mocha/mocha', chai: '../bower/chai/chai' }, shim: { underscore: { exports: ...
'use strict'; function MMError(code, msg) { return function MMError(error, message) { const err = new Error(); err.code = code; err.message = msg; if (message) { err.message += '. ' + message; } if (error) { if (error.message) { err.message += ': ' + error.message; ...
// Module dependencies. var express = require('express'); var router = express.Router(); var api = {}; // ALL api.games = function(req) { return req.store.recordCollection('Game'); }; // GET api.game = function(req) { return req.store.recordItemById('Game', req.params.id); }; // POST api.addGame = function(req) ...
export const category = 'Test Category'; export const categories = ['Test Category', 'Category 2', 'Category 3']; export const newTaskProps = () => { return { category: 'Test Category', name: 'name', description: 'description', claims: [], submissions: [], archive: ...
#!/bin/sh ':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@" // Default computer property values var x = 0; var obj = {}; obj[x] = 'hello'; console.log(obj[x]);// hello // The JavaScript proposal (needs Traceur to run) // var x = 0; // var obj = { // [x] : 'hello' // }; // console.log(obj[0]);// he...
//Dependencies. let {isEmpty, isFunction} = require('lodash/lang'); let assign = require('object-assign'); /** * Validate each field of the form. * In case of errors the state is modified. * @returns {boolean} - A boolean true if the validation is correct. */ function _fieldsValidation() { let validationMap = {}; ...
/*! * makeit-run * @license MIT */ /* * Module dependencies */ var async = require('bike.async') , path = require('bike.path') , exec = require('child_process').exec ; /** * Module exports */ module.exports = function (options, params, callback) { var pack = this ; op...
var express = require('express'), router = express.Router(), walkUtil = require('../utils/walk'), md5 = require('md5-file'), fs = require('fs'); var MemcachePlus = require('memcache-plus'); var port = process.env.MEMCACHED_PORT || 11211; var client = new MemcachePlus(); client.delete('calderia_mods_cache').th...
๏ปฟfunction setupLoginUi() { initApp(); var uiConfig = { signInOptions: [ // Leave the lines as is for the providers you want to offer your users. firebase.auth.EmailAuthProvider.PROVIDER_ID ], credentialHelper: firebaseui.auth.CredentialHelper.NONE, ...
/** * Created by hanxzi on 17/4/20. */ var express = require('express'); var webpack = require('webpack'); var webpackDevMiddleware = require('webpack-dev-middleware'); var webpackHotMiddleware = require('webpack-hot-middleware'); var config = require('./webpack.config.js'); var app = express(); var path = require('p...
webpackJsonp([0,5],{ /***/ 11: /***/ (function(module, exports) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); i...
var assert = require('assert'); var truncateString = require('../basic/truncateString').truncateString; describe('truncateString', function() { it('should return "Peter Piper..." when truncateString("Peter Piper picked a peck of pickled peppers", 14)', function() { assert.equal("Peter Piper...", truncateSt...
var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('test', function() { return gulp.src('test/user.js', {read: false}) .pipe(mocha({reporter: 'nyan'})); });
import React from 'react' import { render } from 'react-dom' import routes from './routes'; render(routes, document.getElementById('app'));
'use strict'; exports.candidateCandidate_idDELETE = function(args, res, next) { /** * parameters expected in the args: * candidate_id (Integer) * token (String) **/ // no response value expected for this operation res.end(); } exports.candidateCandidate_idGET = function(args, res, next) { /** * pa...
'use strict'; var gulp = require('gulp'), compass = require('gulp-compass'), path = require('path'), rename = require('gulp-rename'), browserSync = require('browser-sync'); gulp.task('compass', function() { // Pulls generated SASS file from cssGlobber from public/css return gulp.src([...
"use strict"; function day04(input) { var i = 0, a5, a6; while (!a5 || !a6) { var hash = md5(input + i) if (hash.substr(0, 5) === "00000" && !a5) a5 = i; if (hash.substr(0, 6) === "000000" && !a6) a6 = i; i++; } return [a5, a6]; } document.getElementById("solve").onclick = function() { var input = docume...
import vue from 'rollup-plugin-vue' import buble from 'rollup-plugin-buble' import resolve from 'rollup-plugin-node-resolve' import replace from 'rollup-plugin-replace' import commonjs from 'rollup-plugin-commonjs' import { uglify } from 'rollup-plugin-uglify' import serve from 'rollup-plugin-serve' import Vue from 'vu...
/*! * Bootstrap v3.3.4 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $...
const path = require('path'); const ENV = process.env.NODE_ENV; const HtmlWebpackPlugin = require('html-webpack-plugin'); const webpack = require('webpack'); const ROOT_DIR = path.resolve(__dirname); const SRC_DIR = path.resolve(__dirname, 'src'); const BUILD_DIR = path.resolve(__dirname, 'build'); const PLUGINS = [];...
//~ name a769 alert(a769); //~ component a770.js
/*โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€*\ โ”‚ Copyright (C) 2014 eBay Software Foundation โ”‚ โ”‚ โ”‚ โ”‚hh ,'""`. โ”‚ ...
๏ปฟ (function Component (id) {// @lock // Add the code that needs to be shared between components here function constructor (id) { // @region beginComponentDeclaration// @startlock var $comp = this; this.name = 'toponym-manager'; // @endregion// @endlock this.tCondUI = function(){ //change something in the ...
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Signup from '../../components/Signup'; import { userSignup } from '../../redux/actions'; const SignupContainer = (props) => { return <Signup {...props} /> }; const mapStateToProps = (state) => { re...
let prizes = [ {image: './bracelet.png', msg: 'ๆ™บ่ƒฝๆ‰‹็Žฏ'}, {image: './earphone.png', msg: '่€ณๆœบ'}, {image: './laptop.png', msg: '็ฌ”่ฎฐๆœฌ็”ต่„‘'}, {image: './phone.png', msg: 'ๆ™บ่ƒฝๆ‰‹ๆœบ'} ]; let turnover = new Turnover({prizes}); console.log(turnover); let button = document.querySelector('#button'); document.body.appendC...
๏ปฟ/** * @module Route table */ define(['services/constants'], function(constants) { var postBaseUrl = constants.postBaseUrl(); var routes = { // Breeze Routes. Relative to entitymanagerprovider service name saveChangesUrl: "durandalauth/savechanges", networksUrl: "durandalauth/networks", measure...
/* Copyright 2013-2015 ASIAL CORPORATION Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
// @flow /* eslint-disable no-underscore-dangle */ import React from 'react' import stream from 'stream' import { IS_BROWSER, SC_STREAM_ATTR } from '../constants' import StyleSheet from './StyleSheet' import StyleSheetManager from './StyleSheetManager' declare var __SERVER__: boolean /* this error is used for makeSt...
๏ปฟ(function () { 'use strict'; angular.module('app.roll', ['app.shared']); })();
var inherits = require('inherits') var EventEmitter = require('events/') var slice = require('sliced') module.exports = PrototypeEmitter function PrototypeEmitter(Original) { var maxListeners inherits(Base, EventEmitter) function Base() { EventEmitter.call(this) var onceEvents = Base.protot...
'use strict'; function TestConnector(){ } module.exports = TestConnector;
import React, {Component} from 'react'; import PropTypes from '../PropTypes.js'; import {getPlayingStatusClass} from '../../models/PlayerModel.js'; import {Icon, CommentIcon, PlayerLink} from '../controls.js'; export class PlayerCompetitionBadge extends Component { static propTypes = { style: PropTypes.object, ...
/*global priv_keys: false, pub_keys: false, priv_pem: false, pub_pem: false */ /*jslint node: true */ "use strict"; require('../../../test/_common.js');
'use strict'; const { config } = require('../../config'); const { ROUTES } = require('../../enums'); const httpManager = require('../../managers/http/http-manager'); const postOfficesRepository = { healthCheck: (headers) => { const urlHealthCheck = `${config.services.postOffices}/${ROUTES.NOUNS_RESOURCE...
'use strict'; import 'regenerator-runtime/runtime'; import { Identity, Payment, Monetization } from '@schibsted/account-sdk-browser'; window.Identity = Identity; // To be able to play around with it in the console... window.Payment = Payment; window.Monetization = Monetization; /** * Logout the user from merchant ...
var bigote = require('..'); var source="{{#names}}{{name}}{{/names}}"; var context= { names: [{name: "Moe"}, {name: "Larry"}, {name: "Curly"}, {name: "Shemp"}] }; var tmpl = bigote.load(source); console.log(JSON.stringify(tmpl)); var n=100; var total=0; var loops=5000; // lets benchmark 'n' times with loops for(var b...
const URL = require('url').URL; const io = require('socket.io-client'); const fetch = require('node-fetch'); const config = require('./config'); const logger = require('./logger'); const httpServer = require('./http-server'); let socket; module.exports = { async start() { await httpServer.start(); const tok...
angular.module( 'appMain', [ 'app.config', 'ui.router', 'templates-app', 'templates-common', 'appMain.home', 'appMain.about', 'appMain.map', 'appMain.mapFactory' ]) .config( function myAppConfig ( $stateProvider, $urlRouterProvider ) { $urlRouterProvider.otherwise( '/home' ); }) .run( function run () { }) ...
(function () { "use strict"; angular.module('stx.common.waiting', [ 'ui.router' ]) .controller("WaitingController", function() { }) ; }());
import Immutable from 'immutable' export const CHANGE_TEXT = 'CHANGE_TEXT' export const ADD_MARKDOWN_BLOCK = 'ADD_MARKDOWN_BLOCK' export const ADD_CODE_BLOCK = 'ADD_CODE_BLOCK' export const CHANGE_BLOCK_CONTENT = 'CHANGE_BLOCK_CONTENT' export const CHANGE_CODE_CONTENT = 'CHANGE_CODE_CONTENT' export const MOVE_BLOCK = ...
export * from './addAttr'; export * from './addCSSProp'; export * from './addDataAttr'; export * from './addNext'; export * from './addParent'; export * from './addPrev'; export * from './createHideStyleNode'; export * from './getAttrNS'; export * from './getEvent'; export * from './hide'; export * from './is'; export ...
'use strict'; var React = require('react'); var Modal = require('react-modal'); var customStyles = { content: { top: '50%', left: '50%', right: 'auto', bottom: 'auto', marginRight: '-50%', transform: 'translate(-50%, -50%)', backgroundColor: '#272525', color: '#fff' } }; var Impor...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var _ = require('lodash'); /* jshint ignore:line */ var Holodeck = require('../../../../../holodeck'); /* jshint ignore:line */ var Requ...
export default class PersistentField { constructor(prefix){ this._prefix = prefix; } register(name, defaultValue){ const key = this._prefix + '_' + name; Object.defineProperty(this, name, { set(newValue){ $gameSystem[key] = newValue; }, ...