Skip to content

Instantly share code, notes, and snippets.

@mscroggs
mscroggs / lecture8.ipynb
Created December 9, 2022 11:15
lecture8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscroggs
mscroggs / lecture7.ipynb
Created December 2, 2022 14:12
lecture7.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscroggs
mscroggs / lecture5.ipynb
Created November 4, 2022 13:56
lecture5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscroggs
mscroggs / lecture4.ipynb
Created October 28, 2022 10:31
lecture4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscroggs
mscroggs / lecture3.ipynb
Created October 21, 2022 09:47
lecture3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscroggs
mscroggs / lecture1.ipynb
Created October 14, 2022 10:36
lecture1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mscroggs
mscroggs / lecture2.ipynb
Created October 14, 2022 10:36
lecture2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import json
import urllib2
sched = json.load(urllib2.urlopen("https://www.emfcamp.org/schedule.json"))
sorted_sched = {day:{} for day in ["05","06","07"]}
for item in sched:
day = item["start_date"].split()[0].split("-")[2]
if item["venue"] not in sorted_sched[day]: