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:
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var console = require('demo-console'); | |
var Fulcrum = require('fulcrum-app'); | |
var fulcrum = new Fulcrum({api_key: window.prompt('API Key plz, thanks.')}) | |
fulcrum.forms.search({}, function (error, data) { | |
if (error) { | |
console.log(error); |
from TileStache import WSGITileServer, splitPathInfo | |
import re | |
# | |
# Decorator for the WSGITileServer that allows for custom tilestache configuration. | |
# | |
# Takes in a tilestache config file and a series of parameter names. They'll be sent to the p |
{ | |
"metadata": { | |
"comment": "Update record", | |
"app_created_by": "Spatial Networks", | |
"app_name": "Fulcrum Web", | |
"app_version": "", | |
"app_build": "", | |
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36" | |
}, | |
"min_lat": 39.5732612150347, |
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