Skip to content

Instantly share code, notes, and snippets.

dgoodwin fork for Python3 and Los Angeles downtown.

Transitland Frequency Visualization

Accompanies blog post: Transit dimensions: Transitland Schedule API

The frequency.py script:

  • Fetches all trips on a given date, between a start time and end time, inside of a bounding box
  • Calculates the number of connections between every stop
  • Uses a colormap and line width to show more frequent service

City-Scrapers Geocoding Discussions/Changelog

Likely unecessary, mainly for @bonfirefan's own sanity in dealing with multi-threaded conversations we've been having on Geocoding.

Covers:

  1. Geocoding
  2. Address Verification
  3. Testing
  4. Community Areas

Geocoding

@bonfirefan
bonfirefan / ubuntu1404python36setup.sh
Last active May 1, 2018 17:47
Codeanywhere Shell Setup Script
#!/bin/bash
sudo apt-get install python-software-properties
sudo apt update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6
sudo apt install python3.6-venv
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
@bonfirefan
bonfirefan / codeanywhere.md
Last active May 1, 2018 17:40
Environment Setup on Codeanywhere (Blank Ubuntu 14.04)

This tutorial uses Codeanywhere, which runs a Virtual Private Server with its own RAM, disk space and processing power. We'll set up a development environment in Linux and clone the project here.

  1. Get a free tier codeanywhere account at https://codeanywhere.com/signup
  2. Login to Codeanywhere.
  3. Start a new Container by going to File -> New Connections -> Container.
  4. Choose the Blank Ubuntu 14.04 container. Name it something that makes sense to you.
  5. Wait for the container to deploy, and close out of the welcome message to switch to the terminal window. (If you ever exit out of your terminal, just right click on your Container under Connections and select "SSH Terminal")
  6. In order to install Python 3.6, we will have to update our directories. Run the below (line by line):
@bonfirefan
bonfirefan / virtual-env-install.md
Last active June 4, 2018 23:28
Basic instructions for setting up a virtual environment
  1. Install virtualenv and virtualenvwrapper:

sudo pip install virtualenv

sudo pip install virtualenvwrapper

  1. Create virtual environment folder

mkdir ~/.environments

@bonfirefan
bonfirefan / .block
Created May 26, 2017 14:54 — forked from mbostock/.block
Marey’s Trains
license: gpl-3.0