- Use the Present Tense ("Add feature" not "Added feature").
- Use the Imperative Mood ("Move cursor to..." not "Moves cursor to...").
- Limit the subject line to 50 characters
- Wrap the body at 72 characters
- Reference issues and pull requests
- When only changing documentation, include
[ci skip]
in the commit description - Be creative with emojies
- 🎉
:tada:
Initial commit
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
/** | |
* use this helper function to convert captured html element attributes | |
* (or whatever) to a title cased string. | |
* | |
* @date 2017-08-22 | |
* @author mattbontrager | |
* @param {String} string [the string to be converted to CamelCase] | |
* @return {String} [the CamelCased string] | |
*/ | |
function titleCaseWithSymbols(string) { |
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
function flatten(arr) { | |
return arr.reduce((flat, toFlatten) => { | |
return flat.concat(Array.isArray(toFlatten) ? flatten(toFlatten) : toFlatten); | |
}, []); | |
} | |
// usage: | |
flatten([[1, 2, 3], [4, 5]]); // [1, 2, 3, 4, 5] | |
flatten([[[1, [1.1]], 2, 3], [4, 5]]); // [1, 1.1, 2, 3, 4, 5] |
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
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done | |
git fetch --all | |
git pull --all | |
# credit to Wookie88 and Shadowfax @ http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches | |
# saving this for quick reference and easy insertion. |
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
[user] | |
name=namegoeshere | |
email=emailgoeshere | |
[credential] | |
# helper = osxkeychain | |
[color] | |
ui=auto | |
interactive=auto | |
[color "branch"] | |
current=yellow reverse |
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
var App = (function() { | |
/** | |
* a development flag to easily silence console.logging | |
* @type {Boolean} | |
*/ | |
var development = true, | |
self; | |
return { | |
init: function init() { |
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
Show hidden characters
{ | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" | |
], |
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
brew update | |
brew link yasm | |
brew link x264 | |
brew link lame | |
brew link xvid | |
brew install ffmpeg | |
ffmpeg wiki: | |
https://trac.ffmpeg.org/wiki/Encode/MP3 |
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
## Git Commit Messages | |
# - Use the Present Tense ("Add feature" not "Added feature"). | |
# - Use the Imperative Mood ("Move cursor to..." not "Moves cursor to..."). | |
# - Limit the subject line to 50 characters | |
# - Wrap the body at 72 characters | |
# - Reference issues and pull requests | |
# - When only changing documentation, include `[ci skip]` in the commit description | |
# - Be creative with emojies |
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
{ | |
"always_show_minimap_viewport": false, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", | |
"selector": "text.html" | |
}, | |
{ | |
"characters": "bs3", |