Skip to content

Instantly share code, notes, and snippets.

@drewda
drewda / readme.md
Last active February 17, 2023 20:28
SF Bay Area Regional GTFS Feed migration from fare_containers.txt to fare_payment_options.txt
@drewda
drewda / gist:754124f2a9b9996fda7775c5b3e6a908
Created July 20, 2017 17:11
converting sample speed extracts from JSON to MessagePack
wget https://speed-extracts.s3.amazonaws.com/week0_2017/0/002/415.json
# see https://github.com/ludocode/msgpack-tools
brew install https://ludocode.github.io/msgpack-tools.rb
json2msgpack -bli 415.json -o 415.mp
ls -alh
# total 974168
###
# Takes in a CSV file with headers:
# - operator_onestop_id
# - country_iso
# - state_iso
# and creates a changeset to set new country and state values.
# If country_iso or state_iso is "null", it sets value to an empty string.
###
require 'csv'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drewda
drewda / .block
Last active March 23, 2017 23:17
height: 700
scrolling: yes
license: mit
@drewda
drewda / README.md
Last active January 18, 2016 07:41
jquery.steps - Steps plugin for jQuery
@drewda
drewda / ruby_with_rbenv_playbook.yml
Created November 6, 2013 19:57
Installing ruby/rbenv with Ansible
# from http://mmoya.org/blog/2013/02/22/installing-rubyrbenv-with-ansible/
# based on https://gist.github.com/v1nc3ntlaw/1441139#file-rbenv-install-system-wide-sh
---
- hosts: all
vars:
- rbenv_root: /usr/local/rbenv
- ruby_version: 1.9.3-p385
@drewda
drewda / index.html
Created August 24, 2013 18:46 — forked from e-n-f/index.html
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
@drewda
drewda / map.geojson
Created August 21, 2013 20:52
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.