I hereby claim:
- I am JasonSanford on github.
- I am jcsanford (https://keybase.io/jcsanford) on keybase.
- I have a public key whose fingerprint is D7BE 5E46 D723 9B7C 7B78 35AD ED80 645F E397 CFF2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var https = require("https"); | |
module.exports = function(method, url, token, message, callback) { | |
var json = JSON.stringify(message); | |
var request = https.request({ | |
hostname: "api.github.com", | |
port: 443, | |
path: url, | |
method: method, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet TopoJSON Example</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet-0.4.5/leaflet.css" /> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script src="//cdn.leafletjs.com/leaflet-0.4.5/leaflet.js"></script> |
A custom buildpack is used to include the GEOS binaries necessary for Shapely. To force deployment to use a custom buildpack, add the following heroku config.
heroku config:set BUILDPACK_URL=git://github.com/JasonSanford/heroku-buildpack-python-geos.git
I think this buildpack will download/unpack the GEOS binaries each time you deploy which is not ideal. We should probably conditionally download these in the future.
Additionally, the LIBRARY_PATH
must be updated so that Shapely can locate the necessary binaries.
heroku config:set LIBRARY_PATH=/app/.heroku/vendor/lib:vendor/geos/geos/lib
heroku config:set LD_LIBRARY_PATH=/app/.heroku/vendor/lib:vendor/geos/geos/lib
curl --data '{"type":"Point","coordinates":[1,2]}' http://geojsonlint.com/validate |
Bike Types | |
Mountain, Road, BMX, Frame | |
Pictures | |
Yes, No | |
No Wal-mart bikes | |
-next -mongoose -huffy -roadmaster -schwinn -landrider -magna -disney | |
No women's bikes |
import scraperwiki | |
import lxml.html | |
html = scraperwiki.scrape("http://www.greatamericanbeerfestival.com/at-the-festival/breweries-at-the-2012-festival") | |
root = lxml.html.fromstring(html) | |
i = 1 | |
for tr in root.cssselect("#brewery_table tbody tr"): | |
tds = tr.cssselect("td") | |
data = { |