This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ActionCreator } from 'redux' | |
import { ThunkAction } from 'redux-thunk' | |
import { WebService } from 'app/services/WebService' | |
// Create this reusable type that can be imported into your redux action files | |
export type ThunkResult<R> = ThunkAction<R, RootState, Services, RootAction> | |
// Services are only necesarry because we are using | |
// `reduxThunk.withExtraArgument({ webService }))` when we are creating our store. | |
export type Services = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ES6 PROMISE CHAIN // | |
exports.seed = (knex) => | |
knex('user_role').del() | |
.then(() => knex.insert(data.user_roles).into('user_role')) | |
.then(() => knex('user_address').del()) | |
.then(() => knex.insert(data.user_addresses).into('user_address')) | |
.then(() => knex('user').del()) | |
.then(() => knex.insert(data.users).into('user')); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " required | |
filetype off " required | |
" Enable syntax highlighting | |
set number | |
" Allow backspacing in insert mode | |
set backspace=2 | |
" Highlight all search results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!.gitignore | |
!wp-content/ | |
# Ignore those unneeded sass-cache + node_modules files. | |
.sass-cache | |
.sass-cache/* | |
node_modules/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Undo previous commit | |
`git revert HEAD^` | |
Modify previous commit message | |
`git commit --amend` | |
Temporarily stash changes | |
`git stash` | |
Restore changes from stash |