This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
The standard code style linter is a great tool by Feross - check it out!
Remove trailing semicolons:
find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;
Ensure space between function and opening bracket:
| (function() { | |
| function hashchange() { | |
| if (!location.hash) { | |
| return; | |
| } | |
| // Don't do anything if the current target exists. | |
| if (document.querySelector(":target")) { | |
| return; | |
| } | |
| var name = "user-content-" + decodeURIComponent(location.hash.slice(1)); |
| /**package | |
| {"name":"just-a-gist-package-nbd-whatevs","version":"1.2.3", | |
| "description":"showoff", | |
| "repository":"https://gist.github.com/2e776d98951973c8b857.git"} | |
| **/ | |
| module.exports = "just a gist pkg nbd whatevs" |
| npm () { | |
| if [ "$1" = "publish" ]; then | |
| dependency-check . && $(which npm) "$@" | |
| else | |
| $(which npm) "$@" | |
| fi | |
| } |
What zoom level is equivalent to a given altitude? In other words, if I’m looking at a map at ZL n, how high off the ground would I be to make out the same features?
This is from a question from Eric Fischer; my algebra and arithmetic are extremely rusty, so please check everything! Major assumptions:
We’re at the equator.
We’re looking straight down (which you can’t realistically do out a plane window, for example).
We have 20/20 vision (which is not as good as median corrected vision).
| $gutter: 10px; | |
| $grid-unit: 60px; | |
| %clearfix { | |
| *zoom: 1; | |
| &:after { | |
| content: "\0020"; | |
| display: block; | |
| height: 0; | |
| clear: both; |
bundle install.heroku create --stack=cedar.cinch: bundle exec ./bot.rbheroku scale web=0 cinch=1. This
also sets up your deployments to restart the bot.