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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 trevorgerhardt on github.
  • I am trevorgerhardt (https://keybase.io/trevorgerhardt) on keybase.
  • I have a public key ASD1FeDX-0_Slg0BdrY6AXEN-ML8TIbya5Y8c8QKqcnfrQo

To claim this, I am signing this object:

@trevorgerhardt
trevorgerhardt / request.sh
Last active August 29, 2015 14:09
MWCOG API Example
#!/bin/sh
# Valid request
curl "http://localhost:8085/api/availableCarpools?key=SECRET&origin=-77.00591535980521,38.90512185099374&destination=-77.06398575433832,38.86583364990412&departureTime=07:00,08:00&returnTime=17:00,18:00"
# Invalid parameters
curl "http://localhost:8085/api/availableCarpools?key=SECRET&origin=asdfasdf"
# Valid request, but no API key
curl "http://localhost:8085/api/availableCarpools?origin=-77.00591535980521,38.90512185099374&destination=-77.06398575433832,38.86583364990412&departureTime=07:00,08:00&returnTime=17:00,18:00"
#!/bin/sh
# Amtrak ?
wget -O data/amtrak.zip http://www.gtfs-data-exchange.com/agency/amtrak/latest.zip
# Arlington Transit
wget -O data/art.zip http://www.gtfs-data-exchange.com/agency/arlington-transit/latest.zip
# Dash
wget -O data/dash.zip http://www.gtfs-data-exchange.com/agency/alexandria-transit-company-dash/latest.zip
@trevorgerhardt
trevorgerhardt / Readme.md
Created June 11, 2014 01:07
Map tile manual zooming on lat/lon bounds

Experiment to zoom in and out based on given lat/lon bounds. Projects and translates the bounds to figure out the new scale/translation vector to pass to the geo.tile function. Was more annoying than I thought it would be.

@trevorgerhardt
trevorgerhardt / geojson-states.json
Last active August 29, 2015 14:01
Google Trends: "JavaScript" across states
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@trevorgerhardt
trevorgerhardt / gist:40e944e63dee3ee1779f
Last active November 21, 2015 04:08
Script for Macs when file limit is hit when building large projects with component
echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf
echo 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf
echo 'ulimit -n 4096' | sudo tee -a /etc/profile