- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to change)
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
/** TS inference helper | |
* Wrap an interface in Prettify to give you all of the properites you expect by hovering. | |
* Use to debug really complicated inheritance based inference | |
*/ | |
export type Prettify<T> = { | |
[K in keyof T]: T[K] | |
} & {} | |
---------------------- |
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
install imagemagick (node) | |
https://www.npmjs.com/package/imagemagick | |
- npm -g install imagemagick | |
- brew install imagemagick | |
// in directory that contains favicon.png, run bash command: | |
convert favicon.png -alpha on -resize 256x256 \ | |
-define icon:auto-resize="256,128,96,64,48,32,16" \ | |
favicon.ico |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
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 React, { Component, PropTypes } from 'react'; | |
import {reduxForm} from 'redux-form'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import * as dataMapActions from 'redux/modules/dataMap'; | |
import {updateFieldMap} from 'redux/modules/dataMap'; | |
@connect( | |
state => ({ | |
fieldMap: state.dataMap.fieldMap, |