Skip to content

Instantly share code, notes, and snippets.

View MyrionPhoenixmoon's full-sized avatar

Mark Z MyrionPhoenixmoon

View GitHub Profile
@MyrionPhoenixmoon
MyrionPhoenixmoon / footnotes.js
Created September 21, 2016 08:12
JavaScript to improve footnotes by showing them in context
// this script requires jQuery
$(document).ready(function() {
Footnotes.setup();
});
var Footnotes = {
currentFootnote: null,
useTouch: false,
setup: function() {
// Find all footnote links that are already on the page
@MyrionPhoenixmoon
MyrionPhoenixmoon / pre-commit
Created December 10, 2015 21:03
Git pre-commit hook to checkstyle python code with flake8 and run all PyUnit tests
#!/usr/bin/env python3
#
# A pre-commit hook to verify PEP8 conformity using flake8
# and to run all available unit tests
import subprocess
import sys
import os
import glob