- Reduce
PER_PAGE
from 1000 to 500 to get around API gateway timeout errors - Remove call to
meta['total']
which is no longer part of the API response JSON - Update date to August 2016
Accompanies blog post: Transit dimensions: Transitland Schedule API
PER_PAGE
from 1000 to 500 to get around API gateway timeout errorsmeta['total']
which is no longer part of the API response JSONAccompanies blog post: Transit dimensions: Transitland Schedule API
Ruby script to convert stops.txt
and shapes.txt
to GeoJSON.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Local Dates: | |
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt | |
# ISO Dates: | |
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt |
# LICENSE: public domain | |
def calculate_initial_compass_bearing(pointA, pointB): | |
""" | |
Calculates the bearing between two points. | |
The formulae used is the following: | |
θ = atan2(sin(Δlong).cos(lat2), | |
cos(lat1).sin(lat2) − sin(lat1).cos(lat2).cos(Δlong)) |
------ Slide 8 ------ | |
sudo su - | |
yum install -y gcc make pkgconfig pcre-devel ncurses-devel | |
cd /usr/src | |
wget http://repo.varnish-cache.org/source/varnish-3.0.2.tar.gz -O - | tar xz | |
cd varnish-3.0.2 | |
./configure | |
make && make install | |
exit |
# Try generating RTTY WAV files in Python | |
import fileinput | |
import wave | |
import numpy | |
string = ''.join(line for line in fileinput.input()) | |
baud = 50.0 | |
tone_duration = 1.0/50.0 |