Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

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:

@JasonSanford
JasonSanford / index.js
Last active August 29, 2015 14:18
requirebin sketch
// 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,

Grocery

  • Chocolate Syrup
  • Laundry Detergent

Home Depot

  • 3 Door Hooks
  • Flourescent Flood

Today

  • Panama prod push

MAP-2070

  • Fix weird vertical spacing issue
  • Shadow on top of ad
  • Accordion expand icons
  • Note in MAP-2070 that we're ready to look again
<!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