Skip to content

Instantly share code, notes, and snippets.

View hampelm's full-sized avatar

Matt Hampel hampelm

View GitHub Profile
from fpdf import FPDF
import Image
import os
# http://pyfpdf.readthedocs.org/en/latest/
PAGE_SIZE = (7, 9) # size of the page in inches (height, width)
COLS = 12
ROWS = 7
@hampelm
hampelm / map.geojson
Last active August 29, 2015 14:22 — forked from prashtx/map.geojson
Central Market/ Tenderloin Payroll Tax Exclusion Areas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
pluto.setSQL("SELECT pluto.the_geom_webmercator,pluto.cartodb_id,pluto.sbs_s,sum(schools.grade_code) * " + indicator1 + " as score FROM pluto as pluto JOIN schools ON ST_INTERSECTS(pluto.the_geom_webmercator,schools.the_geom_webmercator) GROUP BY pluto.cartodb_id")
Alex Hill Comments
OP:
hey foundation types
you want to innovate and measure some impact?
give some money to people that don't already have it
and watch what happens.
--
{java.runtime.name=OpenJDK Runtime Environment, sun.boot.library.path=/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64, java.vm.version=20.0-b12, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=:, java.vm.name=OpenJDK 64-Bit Server VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD, user.country=US, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/ubuntu, java.runtime.version=1.6.0_24-b24, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/endorsed, os.arch=amd64, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:
2015-04-30 21:02:46,112 INFO [BlockStopTimeIndicesFactory.java:161] : groups processed: 14000/15272
2015-04-30 21:02:46,132 INFO [BlockStopTimeIndicesFactory.java:161] : groups processed: 15000/15272
2015-04-30 21:02:46,210 INFO [BlockStopTimeIndicesFactory.java:99] : grouping block stop times by key
2015-04-30 21:02:46,218 INFO [BlockStopTimeIndicesFactory.java:130] : groups found: 0 out of stopTimes: 0
2015-04-30 21:02:47,442 INFO [BlockGeospatialServiceImpl.java:311] : loading shape point geospatial index...
2015-04-30 21:02:47,458 INFO [BlockGeospatialServiceImpl.java:315] : block shape geospatial nodes: 1227
2015-04-30 21:02:47,683 INFO [MBeanExporter.java:886] : Bean with name 'blockLocationServiceImpl' has been autodetected for JMX exposure
2015-04-30 21:02:47,970 INFO [ServiceAlertsServiceImpl.java:461] : Loading service alerts from bundle
2015-04-30 21:02:48,018 INFO [MBeanExporter.java:886] : Bean with name 'arrivalsAndDeparturesBeanServiceImpl' has been autodetected for JMX exposure
2015-0
Apr 29 15:01:48 localdata-beta-tiles app/web.1: module.js:340
Apr 29 15:01:48 localdata-beta-tiles app/web.1: throw err;
Apr 29 15:01:48 localdata-beta-tiles app/web.1: ^
Apr 29 15:01:48 localdata-beta-tiles app/web.1: Error: Cannot find module 'lodash/object/assign'
Apr 29 15:01:48 localdata-beta-tiles app/web.1: at Function.Module._resolveFilename (module.js:338:15)
Apr 29 15:01:48 localdata-beta-tiles app/web.1: at Function.Module._load (module.js:280:25)
Apr 29 15:01:48 localdata-beta-tiles app/web.1: at Function.cls_wrapMethod [as _load] (/app/node_modules/newrelic/lib/shimmer.js:208:38)
Apr 29 15:01:48 localdata-beta-tiles app/web.1: at Module.require (module.js:364:17)
Apr 29 15:01:48 localdata-beta-tiles app/web.1: at require (module.js:380:17)
Apr 29 15:01:48 localdata-beta-tiles app/web.1: at Object.<anonymous> (/app/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js:5:12)
@hampelm
hampelm / index.html
Created April 23, 2015 15:17
Display tiles from features table
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/app.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
@hampelm
hampelm / gist:9515859dd84079c70015
Created April 16, 2015 15:32
Areas without unemployment data
Alamo
Alum Rock
Angwin
Ashland
Bay Point
Bayview-Montalvin
Belvedere
Bethel Island
Black Point-Green Point
Blackhawk-Camino Tassajara