READY/IN DEVELOPMENT/HOLD
YES | NO
A few sentences describing the overall goals of the pull request's commits.
| const players = (state = [{ id: 1, level: 10 }], action) => { | |
| if (action.type === 'LEVEL_UP') { | |
| return state.map(player => { | |
| if(player.id !== action.id) return state; | |
| return { ...player, level: player.level + 1 } | |
| }) | |
| } else if (action.type === 'LEVEL_DOWN') { | |
| return state.map(player => { | |
| if(player.id !== action.id) return state; | |
| return { ...player, level: player.level - 1 } |
| /* Action to be dispatched */ | |
| { | |
| type: 'LEVEL_UP', | |
| id: 1, | |
| } |
| /* State Tree */ | |
| { | |
| players: [{ | |
| id: 1, | |
| level: 10 | |
| },{ | |
| id: 2, | |
| level: 20 | |
| }] | |
| } |
| version: 0.1 | |
| phases: | |
| install: | |
| commands: | |
| - printenv | |
| - npm install | |
| build: | |
| commands: | |
| - npm run build |
| "Custom vimrc file based on vim-sublime | |
| set shell=/bin/sh | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| Bundle 'tpope/vim-surround' |
| interface Callback { (data: any): void; } | |
| declare class EventSource { | |
| onmessage: Callback; | |
| addEventListener(event: string, cb: Callback): void; | |
| constructor(name: string); | |
| } |
| var EventEmitter = require('events').EventEmitter; | |
| module.exports = new EventEmitter(); | |
| exports.emitSomethingLater = function() | |
| setTimeout(function() { | |
| module.exports.emit('something'); | |
| }, 1000); | |
| } |
| const app = require('../server'); | |
| const log = require('debug')('boot:automigrate'); | |
| const path = require('path'); | |
| const env = process.env.NODE_ENV; | |
| let datasources = require(path.resolve(__dirname, '../datasources.production.json')); | |
| let models = path.resolve(__dirname, '../model-config.production.json') | |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :