Adapting d3.geo.tile to show OpenStreetMap vector tiles. See also the static example.
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
irb(main):013:0> open("http://en.wikipedia.org/wiki/Steve_Jobs").read | |
OpenURI::HTTPError: 403 Forbidden | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:277:in `open_http' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in `catch' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:518:in `open' | |
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open-uri.rb:30:in `open' |
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
# Sometimes yosemite crashes with a gunicorn server up | |
# and when it comes back up there is a python process blocking port 8000 | |
# kill that process with this function | |
# http://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac | |
function killport() { | |
lsof -i TCP:$1 | grep LISTEN | awk '{print $2}' | xargs kill -9 | |
} |
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
tell application "iTerm" | |
activate | |
set projectSlug to the text returned of (display dialog "Which project?" default answer "") | |
tell the current terminal | |
activate current session | |
-- launch dailygraphics tab |
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
tell application "iTerm" | |
activate | |
tell the current terminal | |
activate current session | |
-- launch dailygraphics tab | |
launch session "Default Session" | |
tell the last session | |
set name to "1-dailygraphics" |
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
tell application "System Events" | |
set frontmostProcess to name of first item of (processes whose frontmost is true) | |
tell process frontmostProcess | |
tell window 1 | |
set oldSize to get size | |
-- change + to - for shrinking | |
-- change 100 to 5 for fine-tune mode | |
set newWidth to (item 1 of oldSize) - 5 | |
set size to {newWidth, item 2 of oldSize} | |
end tell |
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
Working Man | |
In The End | |
Bastille Day | |
2112 Overture | |
Closer To The Heart | |
The Trees | |
The Spirit Of Radio | |
YYZ | |
Subdivisions | |
Distant Early Warning |
I hereby claim:
- I am dannydb on github.
- I am dannydb (https://keybase.io/dannydb) on keybase.
- I have a public key whose fingerprint is D3FE A983 0152 C28D A6A4 CA87 234D 2E3D 8611 6734
To claim this, I am signing this object:
NewerOlder