This file contains hidden or 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
| # some R code to mimic animated gifs created by Etienne Jacob | |
| # @etiennejcb | |
| # https://bleuje.github.io/tutorials/ | |
| ## load required packages | |
| library(tidyverse) | |
| theme_set(theme_void(base_size = 14)) | |
| library(gganimate) | |
| ##-- first tutorial https://bleuje.github.io/tutorial1/ |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| """ | |
| This script downloads your Social Bicycles (SoBi) routes data from the SoBi web | |
| API and saves it as a JSON file. It uses HTTP basic authentication with your SoBi | |
| username (your email address) and password. | |
| The function that requests route data executes recursively, incrementing the page | |
| parameter with each subsequent request, until there are no more results. |