Skip to content

Instantly share code, notes, and snippets.

View psychemedia's full-sized avatar

Tony Hirst psychemedia

View GitHub Profile
@psychemedia
psychemedia / DEFRA AUR Data Downloader.ipynb
Last active March 28, 2023 10:50
DEFRA AUR Data Downloader - quick hack for downloading UK air quality data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / ouxml2md.xslt
Last active August 29, 2019 15:51
Testing - ou-xml to markdown xslt
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
xmlns:str="http://exslt.org/strings" extension-element-prefixes="exsl">
<!-- xmlns:functx="http://www.functx.com" -->
<!-- Strip out any whitespace used to style layout of XML doc we're processing -->
<xsl:strip-space elements="*"/>
@psychemedia
psychemedia / MyBinder_py_client.ipynb
Last active August 17, 2019 14:55
Attempt at running code from a Python script in a MyBinder remote code execution sandbox
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / Testing examples.md
Last active December 4, 2024 08:01
Examples of things we can test for autograding and auto-feedback

Test Examples

Trying to identify testable things for use in autograders and automated code feedback tools...

Automated testing of computer code can be used to support learning in several ways.

For example, automated tests may be used to:

@psychemedia
psychemedia / Quantity Parsing.ipynb
Created August 6, 2019 13:35
Example of parsing quantities from sentences
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / .env
Last active May 10, 2019 16:29
Example of docker-compose / Digital Ocean workbench config for running Jupyter notebooks, PostgresDB and Agensgraph db
#Create a default token/password for Jupyter notebook
JUPYTER_TOKEN=letmein
@psychemedia
psychemedia / .env
Last active February 12, 2019 01:07
Adding OpenRefine to a Jupyter notebook container for proxying
REFINEVERSION=3.1
JUPYTER_TOKEN=letmein
@psychemedia
psychemedia / Dockerfile
Last active February 11, 2019 23:47
Can we use Jupyter server proxy to proxy things on named network?
FROM jupyter/minimal-notebook
RUN pip --no-cache install git+https://github.com/jupyterhub/jupyter-server-proxy
@psychemedia
psychemedia / Digital_Ocean_User_data
Last active February 4, 2020 15:50
Simple docker-compose script for running OpenRefine, Jupyter notebook and postgres
#!/bin/bash
GIST=d72b396c491fe1348bc1d9badfdcce81
git clone https://gist.github.com/$GIST.git
cd $GIST
source run.sh