Bash commands:
typings init
typings install -S bluebird
npm install -S bluebird
tsc
browserify app.js -o bundle.js| const chooseSpawn = (roleCount) => { | |
| const priorityQueue = [ | |
| 'harvester', | |
| 'miner', | |
| 'transporter', | |
| ] | |
| let nextSpawn | |
| _.reduce(priorityQueue, (expectedRoleCount, role) => { | |
| if (!expectedRoleCount[role]) expectedRoleCount[role] = 0 | |
| expectedRoleCount[role] += 1 |
| 'use strict'; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.default = configureStore; | |
| var _redux = require('redux'); | |
| function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } |
| export const FIRST = 1 | |
| export const SECOND = 2 |
Bash commands:
typings init
typings install -S bluebird
npm install -S bluebird
tsc
browserify app.js -o bundle.jsBash commands:
typings init
typings install -S bluebird
npm install -S bluebird
tsc
node app.js| test |
| import { Session } from 'express' | |
| let theSession: Session | |
| theSession.user.login |
| // Generated by typings | |
| // Source: submodule.d.ts | |
| declare module '~my-main-module/submodule' { | |
| export interface submoduleInterface { | |
| someProp: number | |
| } | |
| } | |
| declare module 'my-main-module/submodule' { | |
| export * from '~my-main-module/submodule'; | |
| } |
| <snippet> | |
| <content><![CDATA[ | |
| binding.pry | |
| ]]></content> | |
| <tabTrigger>binding</tabTrigger> | |
| <description>binding.pry</description> | |
| <scope>source.ruby</scope> | |
| </snippet> |
| <snippet> | |
| <content><![CDATA[ | |
| do | |
| ${1:code} | |
| end | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>do</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <scope>source.ruby</scope> |