Skip to content

Instantly share code, notes, and snippets.

@dfsnow
dfsnow / gtfs_map_generator.R
Created Mar 4, 2021
Generate animated transit maps using GTFS feeds
View gtfs_map_generator.R
##### Setup #####
# Load the necessary libraries
library(tidytransit) # Parse GTFS feeds
library(dplyr)
library(tidyr)
library(lubridate)
library(sf)
library(ggplot2)
library(gganimate) # Animate the ggplot + tween between frames
@dfsnow
dfsnow / matconv.py
Last active Mar 29, 2019
Tiny script for converting between wide and long distance matricies
View matconv.py
import csv
import itertools
import os
import operator
import shutil
import bz2
import numpy as np
import pandas as pd
import multiprocessing as mp
import argparse
@dfsnow
dfsnow / hourly-weather.R
Last active Oct 27, 2017 — forked from yeedle/hourly-weather.R
Yeedle's temperature plot changed for Chicago O'Hare
View hourly-weather.R
library(tidyverse)
library(R.utils)
library(glue)
library(magrittr)
library(weathermetrics)
library(padr)
library(ggExtra)
library(lubridate)
library(scales)
library(hrbrthemes)