code
stringlengths
2
1.05M
version https://git-lfs.github.com/spec/v1 oid sha256:61d8c61bb8bd7524336baba09577605596c2045d2a8be5baf97fd024b581d340 size 1763
version https://git-lfs.github.com/spec/v1 oid sha256:521934a911b136d41c9dbf107ce4f5883b15aa6c785c2bc54890a13de1fc0247 size 56660
/** * This file is part of Wizkers.io * * The MIT License (MIT) * Copyright (c) 2016 Edouard Lafargue, ed@wizkers.io * * 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 restric...
import {PADDING} from './constants'; import {stringToU8} from './encoding'; export function signedToUnsigned(signed) { return signed >>> 0; } export function xor(a, b) { return signedToUnsigned(a ^ b); } export function sumMod32(a, b) { return signedToUnsigned((a + b) | 0); } export function packFourByt...
(function(){ 'use strict'; angular.module('app') .factory('aboutFactory', aboutFactory); function aboutFactory(){ console.log('loaded aboutFactory'); var someValue = ''; var service = { save: save, someValue: someValue, validate: validate }; return service; func...
$(function(){ // Pageing ‚ðÝ’è‚·‚邯Ahover ‚ł̉摜ƒ|ƒbƒvƒAƒbƒv‚ª–³Œø‚ɂȂéH var listOptions = { valueNames: [ 'idx', 'name'], page: 100, plugins: [ [ 'paging', { pagingClass: "topPaging", outerWindow: 2, left: 2, right: 2 }], [ 'pagi...
// @flow import { type State as PostsState } from '~/routes/Posts/modules/posts'; import { type State as SpotsState } from '~/routes/Spots/modules/spots'; import { type State as SpotEditState } from '~/routes/Spots/modules/spotEdit'; import { type State as SpotUsersState } from '~/routes/Spots/modules/spotUsers'; impor...
import React from 'react' import {RouteHandler} from 'react-router' export default class Container extends React.Component { render () { return ( <div> <h1>Container</h1> <RouteHandler /> </div>) } }
define(['altair/facades/declare', 'altair/cartridges/extension/extensions/_Base', 'altair/Deferred', 'altair/plugins/node!path', 'altair/facades/mixin'], function (declare, _Base, Deferred, pathUtil, mixin) { return de...
/* AngularJS v1.3.3 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(T,U,t){'use strict';function v(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.3.3/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=enco...
/** * Created by pomy on 5/4/16. */ 'use strict'; let $ = require('cheerio'); exports.parseList = function (lists) { let origin = 'https://segmentfault.com'; let sgLists = lists.map((index, list) => { let titleObj = $(list).find('.title a'); let title = titleObj.text(); let originU...
import React, { PropTypes } from 'react'; import classNames from 'classnames'; import '../css/Components/SubSectionTitle'; const SubSectionTitle = ({ children, alternate, edge, italic }) => { const className = classNames({ SubSectionTitle: true, 'SubSectionTitle--alternate': alternate, 'SubSectionTitle-...
"use strict"; const util = require('util'); const EventEmitter = require('events').EventEmitter; const https = require('https'); const ens = require('ens'); const is = require('is'); class SignatureDecipherer { constructor(args) { this.args = ens.obj(args); } validateArguments(args) { return new Promis...
'use strict'; // Use Applicaion configuration module to register a new module ApplicationConfiguration.registerModule('game');
function Task(app) { this.app = app; } Task.prototype.listen = function() { var self = this; var reloadingProjectId = 0; // Change color $(document).on("click", ".color-square", function() { $(".color-square-selected").removeClass("color-square-selected"); $(this).addClass("color-s...
// // // MAIN JS // HASHBANG & COOKIEBANG if(typeof bang != 'undefined' && bang){ // cookie bang // bangs only on first load if(window.innerWidth > 1024 || document.documentElement.clientWidth > 1024){ document.cookie = 'big-screen=1; path=/'; } else{ document.cookie = 'big-screen=0; path=/'; } ...
import Ember from 'ember'; import layout from '../templates/components/total-num-widget'; export default Ember.Component.extend({ layout: layout });
var express = require('express'); var router = express.Router(); const uuid = require('node-uuid'); var monk = require('monk'); var db = monk('localhost:27017/Measurements'); /* GET form. */ router.get('/', function(req, res) { res.render('registerGroup'); }); /* POST form. */ router.post('/', function(req, res) ...
/* @flow */ import config from '../config' import { perf } from '../util/perf' import { initProxy } from './proxy' import { initState } from './state' import { initRender } from './render' import { initEvents } from './events' import { initLifecycle, callHook } from './lifecycle' import { initProvide, initInjections }...
module.exports = { spec : function() { return { name : 'appendFileWrite', desc : 'To append content into a file handler', fields : [ {type:'string',name:'name',description:'the name of the file handler to write',required:true}, {type:'string',name:'content',description:'the content message to append i...
describe('list-test-results', function () { beforeEach(function () { this.setUpHandler({ commandModule: './suite-result/list-test-results', clientMethod: 'getSuiteResultTestResults', clientMethodResponse: [ { name: 'My result', _id: '12345', passing: true }, { name: 'My other res...
var List = require('../models/List'); module.exports = function (server) { var validateRequest = require("../auth/validateRequest"); server.get("/api/v1/bucketList/data/list", function (req, res, next) { validateRequest.validate(req, res, function () { List.find({ user : req...
(function( $ ) { $.fn.limit = function( params ) { var options = $.extend( { "chars": 100, "counter": "#result", "backendValidation": true, "warning": 5 }, params); if (this.is("textarea, input")) { this.attr("maxlength", options.chars); } this.on("keyup", function(e){ var countRule = optio...
(function(module) { var Cloudflare = require('./libs/services/cloudflare'), BigQueryApi = require('./libs/services/big_query/api'); module.exports = { handler: function() { const awsFile = './config/aws.json', projectFile = './config/auth.json', awsConfig = require(awsFile),...
require("./26.js"); require("./52.js"); require("./104.js"); require("./207.js"); module.exports = 208;
/*jslint white:false plusplus:false browser:true nomen:false */ /*globals window, funcyTag*/ var div=funcyTag('div'), p=funcyTag('p'); var color = funcyTag.color; function build_example_html() { var t, c; t = div( p( { cssColor: c = color(0xFF0000) }, 'color(0xFF0000) = red = ' + c), ...
angular.module('configuration.identity.authentication', ['configuration.identity', 'configuration.state', 'ngCookies', 'ui.router']) .controller('authenticationController', function($scope, $state, $location, authenticationService) { $scope.signIn = function (username, password) { authenticat...
'use strict';var f, aa = "undefined" != typeof window && window === this ? this : "undefined" != typeof global ? global : this; function ba() { aa.Symbol || (aa.Symbol = ca); ba = function() { }; } var da = 0; function ca(a) { return "jscomp_symbol_" + a + da++; } function ea() { ba(); aa.Symbol.iterator ||...
module("traversing"); test("find(String)", function() { expect(3); equals( 'Yahoo', jQuery('#foo').find('.blogTest').text(), 'Check for find' ); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents(); equals( j.find("div").length, 0, "Check node,textnode,comme...
var kmval = {}; kmval.validationChecks = { num : /^[\-]{0,1}[0-9]+(\.[0-9]{1,12})?$/, int : /^[\-]{0,1}[0-9]+$/, bit : /^[01]$/, guid : /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i, email : /^[a-zA-Z0-9.!#$%&’*+\=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/, // W3C HTML5 spe...
/** * ### Search plugin * * Adds search functionality to jsTree. */ /*globals jQuery, define, exports, require, document */ (function (factory) { "use strict"; if (typeof define === 'function' && define.amd) { define('jstree.search', ['jquery','jstree'], factory); } else if(typeof exports === 'object') { fa...
'use strict'; module.exports = NotificationController; NotificationController.$inject = ['NotificationService', 'UsersService', '$uibModal', '$scope', 'toaster', '$state']; function NotificationController(NotificationService, UsersService, $uibModal, $scope, toaster, $state) { /*********************************...
var BASE_URL = require('../base_url'); var KEYWORDS_URL = BASE_URL + '/title/%s/keywords?ref_=tt_stry_kw'; var cheerio = require('cheerio'); var format = require('util').format; /** * Parse keywords from keywords page of a movie * @param {string} body keywords html page * @return {array} keywords */ functio...
"use strict"; var core_1 = require("@angular/core"); exports.CONFIG_INITIALIZER = new core_1.OpaqueToken('Config initializer'); function ConfigInitializer(config) { var reflect = window['Reflect']; var getOwnMetadata = reflect.getOwnMetadata; var defineMetadata = reflect.defineMetadata; return function ...
export * from "./users"; export * from "./claims"; export * from "./links"; export * from "./tokens"; //# sourceMappingURL=index.js.map
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Stockrecord = mongoose.model('Stockrecord'); /** * Globals */ var user, stockrecord; /** * Unit tests */ describe('Stockrecord Model Unit Tests:', function() { beforeEa...
import chai from 'chai'; import isUUID from 'chai-uuid'; import models from '../../models'; import modelMock from '../modelMock.json'; chai.use(isUUID); const expect = chai.expect; const Archives = models.Archives; const { validArchive, inValidArchive } = modelMock; describe('Archive Model', () => { describe('Prop...
var _msg ={ "$lang": "zh", "app.name": "马克飞象<b>专业版</b>", "app.title": "马克飞象 - 专为印象笔记打造的Markdown编辑器", "app.description": "专为印象笔记打造的Markdown编辑器", "Preparing": "加载中", "Evernote International": "Evernote International", "Link Evernote": "绑定Evernote International账号", "Save Evernote": "保存到Evernote Internation...
import test from 'ava'; import VK from '../'; const app = { clientId: 'CLIENT_ID', clientSecret: 'CLIENT_SECRET', redirectUri: 'REDIRECT_URI', scope: ['offline', 'photos'] }; test('pre-site-auth checks', t => { const vk = new VK(); return vk.performSiteAuth().catch(err => { t.ok(err, 'throws when no code pro...
import { reversePalette } from 'styled-theme/composer'; const theme = {}; theme.palette = { primary: ['#1976d2', '#2196f3', '#71bcf7', '#c2e2fb'], secondary: ['#c2185b', '#e91e63', '#f06292', '#f8bbd0'], danger: ['#d32f2f', '#f44336', '#f8877f', '#ffcdd2'], alert: ['#ffa000', '#ffc107', '#ffd761', '#ffecb3'],...
const {EventEmitter} = require('events'); const {StringDecoder} = require('string_decoder'); const defaultShell = require('default-shell'); const {getDecoratedEnv} = require('./plugins'); const {productName, version} = require('./package'); const config = require('./config'); const createNodePtyError = () => new E...
/* * Module dependencies */ var express = require('express') , stylus = require('stylus') , nib = require('nib') , morgan = require('morgan') , bootstrap = require('bootstrap-stylus') var app = express() function compile(str, path) { return stylus(str) .set('filename', path) .use(nib()) .use(bo...
(function(angular, undefined) { 'use strict'; var app = angular.module('nerdamigo.urlStateHelper', []); app.service('$urlStateHelper', [function () { var $urlStateHelperService = this; $urlStateHelperService.unregister = function (aParameter) { console.log('Unregistering ' + aParameter); }; $urlStateH...
/** * Tests the ArrayBag object */ 'use strict' const _ = require('underscore') const path = require('path') const mock = { fs: require('mock-fs'), env: require('mock-env') } const assert = require('chai').assert const mockery = require('mockery') const decache = require('decache') const errors = require('...
/** * Cross-Origin Resource Sharing (CORS) Settings * (sails.config.cors) * * CORS is like a more modern version of JSONP-- it allows your server/API * to successfully respond to requests from client-side JavaScript code * running on some other domain (e.g. google.com) * Unlike JSONP, it works with POST, PUT, an...
/* eslint-disable */ //@TODO: Add Prepend let instance = null; class TweetStorm { constructor() { if (!instance) { instance = this; } return instance.main; } main(originalText, config = {}) { let { paginationText = `($i/$n)`, ellipses = '...', ellipsesEnabled = true...
import { createAction } from 'redux-act'; export const signIn = createAction( 'sign in' ); export const signInSuccess = createAction( 'sign in success' ); export const signInFailure = createAction( 'sign in failure' ); export const reducer = { [signIn]: state => ({ ...state, signIn: { ...stat...
import {execSync} from 'child_process'; import tryCatch from 'try-catch'; import shortdate from 'shortdate'; import {readPackageUpSync} from 'read-pkg-up'; import buildCommand from './build-command.js'; export default (versionNew) => { const [error, {packageJson} = {}] = tryCatch(readPackageUpSync); if (e...
/** * Copyright reelyActive 2015-2019 * We believe in an open Internet of Things */ const Raddec = require('raddec'); /** * EmulationManager Class * Manages the emulation of wireless devices. */ class EmulationManager { /** * EmulationManager constructor * @param {Object} options The options as a JSO...
import baseClone from './base/baseClone' import baseIsEqual from './base/baseIsEqual' //import Keyed from '../protocols/Keyed' import getKey from './getKey' import hasKey from './hasKey' import isImmutable from './isImmutable' import isImmutableSeq from './isImmutableSeq' import isImmutableStack from './isImmutableStac...
'use strict'; /* global describe, it, before, beforeEach, after, afterEach */ const expect = require('expect.js'); const helpers = require('../index.js'); describe('return-methods', () => { const response = require('./response'); describe('return204', () => { it('return 204 successfully', () => { const res = ...
/* * Vide - v0.5.1 * Easy as hell jQuery plugin for video backgrounds. * http://vodkabears.github.io/vide/ * * Made by Ilya Makarov * Under MIT License */ !(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof exports =...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); /** * Next, we will create a fresh Vue application instance and attach...
function ChangeBackgroundControl(container) { FigureOperation.call(this, container); this.render('Bg'); } ChangeBackgroundControl.prototype = Object.create(FigureOperation.prototype); ChangeBackgroundControl.prototype.visit = function(figure) { FigureOperation.prototype.visit.call(this, figure); var view = fig...
var strategyRouter = express.Router(); //restful接口规范 strategyRouter.get("/admin",strategyControl.admin); strategyRouter.get("/strategy",strategyControl.strategyList); strategyRouter.get("/strategy/:sid",strategyControl.previews); strategyRouter.post("/strategy",strategyControl.strategyAdd); strategyRouter.delete("/stra...
/** * Description here: * * @author Yure Pereira * @since 26-06-2016 * @version 1.0.0 */ var modal = (function($, w, d, u) { "use strict"; var Modal = new Function(); var template = null, modalTemplate = null, path = '../js/parcial/', opend = false, _this = new Modal(); //Queue ...
/*globals module:true */ module.exports = function (grunt) { 'use strict'; grunt.config('copy', { app : { files : [ { expand : true, cwd : 'app/', src : [ '**', '!paths...
/* * Filename: system.js */ var SystemUnknown = require(__dirname+'/unknown/unknown.js'); var self = this; /** * Create a new System that let users create sub-system. * @return {System} */ function System() { self._directory = 'system'; self._document = 'system.html'; self._filename = ''; // Will be set ...
//creates new short list based upon slider value - still needs to include a mapping function. rackObj.txtinEl.value = "600 feet"; // rackObj.distanceEl.addEventListener('submit', function(e){ // e.preventDefault(); // rackObj.distance = parseInt(rackObj.sliderEl.value); // // marker.setMap(null); // console.log...
/** * Created by Sean on 3/21/2015. */ var scraper = require('./lib/scrapers/clubScraper'); //var injScraper = require('./lib/scrapers/injuryScraper'); var mongoose = require('mongoose'); var db = mongoose.connect('mongodb://localhost:27017/fcscraper'); mongoose.connection.on('error', function () { console.erro...
/** * Maximum Product Subarray * * Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has * the largest product. * * Example 1: * * Input: [2,3,-2,4] * Output: 6 * Explanation: [2,3] has the largest product 6. * * Example 2: * * Input: [-2,0,-1...
const $ = require("jquery"); const BigNumber = require('bignumber.js'); var _ = require('lodash'); const candiesRobot = function(nbOfCandies, durationInM, minusCandiesArray) { let candiesAdded = 0, currentNbInJar = nbOfCandies; const minimum = 5, replenishTo = nbOfCandies; for (let timeSpe...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'blockquote', 'ca', { toolbar: 'Bloc de cita' } );
/** * Javascript Class Helper * @author Tom Flidr | tomflidr(at)gmail(dot)com * @version 1.2 * @date 2016-07-18 * @usage var ClassName = Class({ Extend: ParentClassName, Static: { staticMethod: function () { // call parent static method with same name this.parent(param1, param2, ...); // call any ot...
/** * @module slimdom */ if (typeof define !== 'function') { var define = require('amdefine')(module); } define( [ './Node', './mutations/MutationRecord', './util' ], function( Node, MutationRecord, util, undefined) { 'use strict'; /** * The CharacterData abstract interface represents a Node...
import { IconCheckCircle, IconErrorCircle } from 'packages/icon' export default { name: 'CStep', props: { stepKey: String, title: String, description: String, status: String }, inject: { $steps: { default: null } }, computed: { currentStatus() { const { status } = this ...
new Promise(r => { console.log("A") r() }).then( async (resp) => { console.log("B") new Promise(async (resolve)=> { console.log("C1") throw new Error('xxx') }).then(r => { console.log("C2") }) return }).then( r => { console.log("D") }) new Promise(r => { ...
module.exports = { FILE_PATH : __dirname + '/uploads', ENCODE_PATH : __dirname + '/encode', HOST : 'localhost' };
'use strict'; System.config({ baseURL: '/' });
var A4Object = /** @class */ (function () { function A4Object(name, sort) { // modifiers to the shape: this.sprite_offs_x = 0; this.sprite_offs_y = 0; this.pixel_width = 0; // if these are != 0 they are used, otherwise, widht/height are calculated from the current Animation t...
import React from "react" import Matter from "matter-js" const wsClient = new WebSocket('ws://patricks-macbook-pro.local:8080') let isCalibrating = false; const config = { canvas: { width: window.outerWidth - 20, height: window.outerHeight - 100 }, walls: { color: '#aaa' }, paddles: { ...
angular.module('app', []); angular.module('app').controller('mainCtrl', function mainCtrl($scope) { }); angular.module('app').directive('emperor', function myTransclude() { return { scope: 'true', link: { pre: function (scope, element, attributes, ctrl, transclude) { ...
var GameLayer = cc.Layer.extend({ mapPanel : null, ui : null, score : 0, level : 0, steps : 0, limitStep : 0, targetScore : 0, map : null, /** * 糖果还在移动,不接受再次点击 */ moving : false, ctor: function () ...
/*global expect*/ describe('positive assertion', function() { it('assert that a number is positive', function() { expect(3, 'to be positive'); }); it('throws when the assertion fails', function() { expect( function() { expect(0, 'to be positive'); }, 'to throw exception', ...
var express = require('express') var router = express.Router() router.get('/', (req, res) => { res.redirect('/#/search') }) module.exports = router
function postGenerator(locals){ var posts = locals.posts.sort('-date').toArray(); var length = posts.length; return posts.map(function(post, i){ var layout = post.layout; var path = post.path; if (!layout || layout === 'false'){ return { path: path, data: post.content }; ...
'use strict'; const _ = require('lodash'), Promise = require('bluebird'), EventEmitter = require('events').EventEmitter, Instance = require('./instance'), ScalingError = require('../../common/error/scaling'), winston = require('winston'); module.exports = class Manager extends EventEmitter { ...
/* * The MIT License (MIT) * Copyright (c) 2016 Jim Liu * * 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 use, copy, modify...
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Icon from 'react-geomicons'; import { Overlay, Panel, PanelHeader, Text, Close, Space, Heading, Divider, ButtonCircle, } from 'rebass'; import { Flex } from 'reflexbox'; ...
$(document).ready(function(){ // update when author type is changed $('#AUTHOR-Type').on('change', function(){ reflectTypeChange($('.edit-form'), 'author', $('#AUTHOR-Type option:selected').text()); }); // make sure correct author type is filled in var selectedType = $('#AUTHOR-Type').attr('value'...
var q = require('q'), http = require('http'), fs = require('fs'); function getData(path){ var deferred = q.defer(); var url = 'data/'+path+'.json'; fs.readFile(url, 'utf8', function (err, data) { if (err) throw err; obj = JSON.parse(data); deferred.resolve(obj); }); re...
module.exports = function(client) { /** * Connected to server. * * @event connected * @params {string} address * @params {integer} port */ client.addListener('connected', function (address, port) { // Do your stuff. }); };
import { default as msgActionCreators } from './msg' import { default as displayControlActionCreator } from './displayControl' export default { ...msgActionCreators, ...displayControlActionCreator }
import { NativeModules, } from 'react-native'; const {SegmentAnalytics} = NativeModules; export default { setup: function (configKey: string) { SegmentAnalytics.setup(configKey); }, identify: function (userId: string, traits: Object) { SegmentAnalytics.identify(userId, traits); }, track: functio...
var io = require('socket.io')(8080); var userHash = {}; io.on('connection', function (socket) { console.log(socket.id + ' has connected!'); // 接続開始カスタムイベント(接続元ユーザを保存し、他ユーザへ通知) socket.on("connected", function (name) { var msg = name + "が入室しました"; console.log(msg); userHash[socket.id] = na...
/** * Keyboard completion code. */ import autocomplete from './autocomplete'; export default { completion: function (e) { var element = e.target; var doc = element.ownerDocument; var selection = doc.getSelection(); var focusNode = selection.focusNode; // if it's not an e...
import React from 'react' import styled from 'styled-components' import { Button } from '../../action/button' import { pxToRem } from '../../../helpers/utils/typography' import classNames from 'classnames' const StyledButtonGroup = styled.div` display: flex; justify-content: center; .k-ButtonGroup__button { ...
describe('material.components.expansionPanels', function () { var panel; var group; var scope; var content; var $mdUtil; var $timeout; var $animate; // disable all css transitions so test wont fail var disableAnimationStyles = ''+ '-webkit-transition: none !important;'+ '-moz-transition: non...
function fn() { return true; } for (var i = 0; fn(); i++) { }
export const iosRewindOutline = {"viewBox":"0 0 512 512","children":[{"name":"path","attribs":{"d":"M464,155v201.9L280.5,256L464,155 M240,156v77.7v27.1v95.6L64,256l176-100.2 M256,128L32,256l224,128V260.8L480,384V128\r\n\tL256,251.2V128L256,128z"},"children":[]}]};
/* PLUGIN: hideEmailAddress Converts a string into an email address: sample: <a href="mailto:test.email(a)some.domain.com">test.email<span class="hideEmail-at"></span>some.domain.com</a> => <a href="test.email@some.domain.com">test.email@some.domain.com</a> include CSS: .email-address { span.hideE...
module.exports = { loadPriority: 410, initialize: function(api, next){ api.actions = {}; api.actions.actions = {}; api.actions.versions = {}; api.actions.preProcessors = {}; api.actions.postProcessors = {}; api.actions.addPreProcessor = function(func, priority) { if(!priority) ...
// JavaScript Variables and Objects // I paired [by myself, with:] on this challenge. // __________________________________________ // Write your code below. // __________________________________________ // Test Code: Do not alter code below this line. var secretNumber = 7; var password = "just open the do...
(function () { 'use strict'; function listViewItemTemplate(itemPromise) { return itemPromise.then(function (item) { var template = document.querySelector('.artist--template'); if(template === null) return; var el = template.cloneNode(true); var artist = el.querySelector('.artis...
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
import { render } from '@testing-library/preact/pure'; import TestContainer from 'mocha-test-container-support'; import { query as domQuery, queryAll as domQueryAll } from 'min-dom'; import { insertCoreStyles, changeInput } from 'test/TestHelper'; import ReferenceSelect from 'src/entries/ReferenceSelect';...
"use strict"; var Materials = (function () { function Materials() { } return Materials; }()); exports.Materials = Materials; //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9zaGFyZWQvbWF0ZXJpYWxzL21hdGVyaWFsLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI...
version https://git-lfs.github.com/spec/v1 oid sha256:b5653dcc3f2ea224011589d238e324df81a9bfb5cb71ba008b8992d5ff49a0ed size 235056
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var expressValidator = require('express-validator'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('express-session'); var m...
import action from 'src/state/action'; import t from './types'; export const nextPlayer = () => ({ type: t.GET_NEXT_PLAYER }); export const updateCurrentPlayer = current => action(t.SET_CURRENT_PLAYER, { current }); export const playerIsBot = () => action(t.PLAYER_IS_BOT, { isBot: true }); export const playerIsHuman...