using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
- Select a particular experience to pursue.
- Pursue that experience to completion. (Achievement unlocked!)
- Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
- Return to Step 1, this time selecting a new experience.
This gist is a fork of the gist from this blog post.
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 rebase syntax | |
git rebase <basebranch> <topicbranch> |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "Authors Haven", | |
"description": "API documentation for Authors Haven application", | |
"license" : { | |
"name" : "MIT 2.0.0", | |
"url" : "https://thor-ah-staging.herokuapp.com" | |
} |
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 all | |
* | |
# Unignore all with extensions | |
!*.* | |
# Unignore all dirs | |
!*/ | |
### Above combination will ignore all files without extension ### |
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 cask install \ | |
caskroom/fonts/font-3270-nerd-font \ | |
caskroom/fonts/font-3270-nerd-font-mono \ | |
caskroom/fonts/font-abel \ | |
caskroom/fonts/font-aboriginal-sans \ | |
caskroom/fonts/font-abril-fatface \ | |
caskroom/fonts/font-acme \ | |
caskroom/fonts/font-allura \ | |
caskroom/fonts/font-anonymouspro-nerd-font \ | |
caskroom/fonts/font-anonymouspro-nerd-font-mono \ |
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 cask install android-file-transfer | |
brew cask install | |
appcleaner | |
caffeine | |
cheatsheet | |
docker | |
doubletwist | |
flux | |
1password | |
spectacle |
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 getCurrentPosition() { | |
if (navigator.geolocation) { | |
return new Promise((resolve, reject) => { | |
navigator.geolocation.getCurrentPosition(resolve, reject); | |
}); | |
} else { | |
return Promise.reject('geolocation is not available on this device'); | |
} | |
} |
OlderNewer