Skip to content

Instantly share code, notes, and snippets.

@patperu
patperu / upgrade-r.sh
Created August 12, 2019 13:59
Upgrade R
#!/bin/bash
# Remove existing R installation.
#
sudo apt-get purge -y r-base-core
# Add keys.
#
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
@patperu
patperu / install-osrm.sh
Last active August 12, 2019 14:07 — forked from datawookie/install-osrm.sh
Install OSRM
#!/bin/bash
# see blog post: https://datawookie.netlify.com/blog/2017/09/building-a-local-osrm-instance/
sudo apt update
sudo apt install -y git \
cmake \
build-essential \
jq \
liblua5.2-dev \
libboost-all-dev \
@patperu
patperu / README.md
Last active December 15, 2015 11:49 — forked from mbostock/.block
d3-Calendar view of Traffic Injury Data from Berlin

This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.

Edited to play with Traffic Injury Data from Berlin for the period 2008-01-01 - 2013-01-31 Source for the csv: Amt für Statistik Berlin Brandenburg