Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Chorley martinjc

View GitHub Profile
@martinjc
martinjc / rk.py
Created May 29, 2019
Code to pull activity data out of Runkeeper API
View rk.py
import os
import json
import time
import requests
from urllib.parse import urlencode, quote
from _credentials import client_id, client_secret, access_token
DATA_DIR = os.path.join(os.getcwd(), "data")
View tags_time.csv
tag day start end
Admin 0 9.0 11.0
Email 0 9.0 11.0
Admin 0 11.0 12.0
Email 0 11.0 12.0
Admin 0 12.0 13.0
Email 0 12.0 13.0
Preparation 0 13.0 14.0
Discussion 0 14.0 15.0
Meeting 0 14.0 15.0
@martinjc
martinjc / .block
Last active Mar 20, 2018
Multi-line graph with non-overlapping labels and voronoi hover interaction
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Last active Apr 23, 2018
Multi-line graph
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Last active Jun 3, 2017
Animating with d3.timer - multiple circles, simple collision detection
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Last active Jun 3, 2017
Animating with d3.timer() - multiple circles
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Last active Jun 3, 2017
Animating with d3.timer()
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Created Mar 27, 2017
D3 Line chart with multiple lines (Data: UK Unemployment Rate)
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Last active Mar 27, 2017
D3 - Line chart, slider to choose year (Data: UK Unemployment rate)
View .block
license: MIT
border: no
@martinjc
martinjc / .block
Last active Dec 10, 2018
D3 - Bar chart, multiple datasets, using slider (Data: Number of roadside breath tests in UK per month)
View .block
border: no
license: MIT