code copied from http://jsfiddle.net/jrdiaz/kbsMW/ Copyright 2011 José Ramón Díaz - jrdiazweb@gmail.com
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height: 700 | |
scrolling: yes | |
license: mit |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
as defined in https://bit.ly/gtfs-fares
currently published in SF Bay Area Regional GTFS Feed: https://api.511.org/transit/datafeeds?operator_id=RG&api_key=xxx
fare_container_id,fare_container_name,amount,minimum_initial_purchase,currency
clipper,Clipper,3,,USD
munimobile,SFMTA MuniMobile,0,,USD
OlderNewer