Skip to content

Instantly share code, notes, and snippets.

Avatar

Tony Hirst psychemedia

View GitHub Profile
@psychemedia
psychemedia / road-book-sketch.Rmd
Last active Feb 21, 2021
Initial sketch of using sfnetworks to see if we can generate a graph from which we can create a rally road book
View road-book-sketch.Rmd
```{r, cache = F, echo = F, message=F}
# Allow knitr to continue to execute even in the presence of errors
knitr::opts_chunk$set(error = TRUE)
knitr::opts_chunk$set(fig.path = "images/creating-road-book-")
knitr::opts_chunk$set(engine.path = list(python = '/usr/local/bin/python3'))
options(rgl.useNULL = TRUE,
rgl.printRglwidget = TRUE)
```
# Creating A Road Book
@psychemedia
psychemedia / sqlite_utils_magic.ipynb
Last active Oct 22, 2020
Proof of concept sqlite_utils magic
View sqlite_utils_magic.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / NetworkVisualisation.ipynb
Last active Aug 17, 2020
Example of plotting pretty networks using networkx and a force atlas layout
View NetworkVisualisation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / IPspeak.pl
Created Jun 6, 2020 — forked from andysc/IPspeak.pl
Speak the IP address of your linux machine. Perfect for Raspberry PIs or other headless servers with audio output. Just plug in a speaker or earphones and wait to be told the IP address to ssh to!
View IPspeak.pl
#!/usr/bin/perl
# IPspeak
# Andy S-C
# 18-May-13
# 15-Oct-16 - made more "human" ... ten dot nought dot one nine three dot seventeen
# this is the order we check the interfaces
@interfaces = ("eth0", "wlan0");
@psychemedia
psychemedia / Moodle quiz.ipynb
Created Apr 28, 2020
First pass at trying to parse Moodle CodeRunner quiz questions
View Moodle quiz.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / Marking models.ipynb
Last active Apr 14, 2020
Start to explore marking distributions
View Marking models.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / requirements.txt
Last active Apr 28, 2020
UK Covid-19 NHS Daily deaths
View requirements.txt
pandas
sqlite-utils
parse
dateparser
@psychemedia
psychemedia / setup.txt
Created Mar 2, 2020
Initial test file for starting to look at binder config merge
View setup.txt
mkdir -p binder binder_1 binder_2
cat > binder_1/requirements.txt << EOF
pandas
scipy
EOF
cat > binder_2/requirements.txt << EOF
ipython-sql
pandas
@psychemedia
psychemedia / fjgsdfhgasdjhgfj.ipynb
Created Feb 18, 2020
quick share - will be taken down at some point...
View fjgsdfhgasdjhgfj.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / ev3devsim_ipywidget.ipynb
Created Feb 10, 2020
Try to wrap ev3devsim as an ipywidgets using jp_proxy_widget
View ev3devsim_ipywidget.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.