Fork of Mike Bostock's simplification demo.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Return current weather conditions via forecast.io | |
req = require 'request' | |
key = '1b21e642bf3edf6d313f3e7ef95e3d15' | |
loc = '35.2102,-85.9364' # Sewanee, TN | |
url = "https://api.forecast.io/forecast/#{key}/#{loc}" | |
req url, (err, res, body) -> | |
data = JSON.parse body | |
console.log data.currently |
Trying out example from @tmcw's GothamJS talk of component composition / event rebinding.
See also the man's post on D3 for HTML.
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
#!/usr/bin/env coffee | |
''' | |
Find coords for an address. | |
See https://developers.google.com/maps/documentation/geocoding | |
''' | |
req = require 'request' | |
argv = require('optimist').argv |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env coffee | |
''' | |
Yelp TERM in CITY and render results as geojson (or map). | |
Examples: | |
yelp tacos | |
yelp --in Louisville brewpubs | |
yelp --in Nashville "chinese takeout" | |
yelp --map --in Milwaukee "bowling alleys" # render results as map via geojson.io |