Skip to content

Instantly share code, notes, and snippets.

Tony Hirst psychemedia

View GitHub Profile
@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.
@psychemedia
psychemedia / jp-proxy-widget_Wavesurfer_Sonogram.ipynb
Last active Jan 11, 2020
jp-proxy-widget Wavesurfer Sonogram
View jp-proxy-widget_Wavesurfer_Sonogram.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / dakar_rules.ipynb
Last active Jan 7, 2020
Example of generating text from pandas dataframe using a python rules engine ( durable_rules )
View dakar_rules.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / simple_nb_viz.py
Last active Jan 21, 2020
Simple visualisation of cell structure (md and code cells) for a Jupyter notebook. For more context, see https://blog.ouseful.info/2019/12/16/fragment-visualising-jupyter-notebook-structure/
View simple_nb_viz.py
# # Simple Notebook Visualiser
#
# Simple notebook visualiser for one or more Jupyter notebooks.
#
# Visualises markdown and code cells, with block size determined by code cell line count and estimated screen line count for markdown cells.
# +
import math
import matplotlib.pyplot as plt
You can’t perform that action at this time.