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
{ | |
"color_scheme": "Packages/Dayle Rees Color Schemes/Github.tmTheme", | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Soda Light.sublime-theme" | |
} |
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
# rebase from master, deferring to master | |
git rebase master -s recursive -X theirs | |
# see diff between 2 branches | |
git diff --name.status master..branch | |
# .. or alternatively, | |
git diff --stat --color master..branch | |
# merge into a branch from another one, squashing all commits into one |
This is a work in progress - please modify and comment!
- Any HTML templates should live in separate files in the "/template" directory, rather than as inline strings
- PREREQUISITE: [ ] pre-compile and bundle templates with grunt to avoid proliferation of XHR requests
- Use minimal plugin configs (eg.
gridOptions
forng-grid
): defer to defaults where possible. Same goes for other plugins - avoid lengthy configs where possible - Use
extend
, in order to add structure to property declarations:
// before
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
egrep '"version":' ./package.json | cut -d '"' -f4 |
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
/////////// option 1 ////////////////// | |
// both turntable and the consumer can mutate this object, potentially breaking functionality: | |
$scope.params = { | |
limit: 100, | |
offset: 0, | |
searchString: '', | |
sortCriteria: 'country', | |
sortDirection: 'DESC' | |
}; |
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 fetch (id) { ... } | |
var ids = [1,2,3,4]; | |
$q | |
.all(ids.map(fetch)) | |
.then( ... ); |