Skip to content

Instantly share code, notes, and snippets.

View tarmstrong's full-sized avatar

Tavish Armstrong tarmstrong

View GitHub Profile
@tarmstrong
tarmstrong / myconcordia-refresh.user.js
Created February 3, 2014 18:29
Chrome user script for refreshing myconcordia every five minutes so you don't get logged out of your portal or Moodle while you're working.
// ==UserScript==
// @match https://my.concordia.ca/*
// ==/UserScript==
// Prevent MyConcordia from logging you out every X minutes UGHGHGHGHGH
// by refreshing the page every five minutes.
setTimeout(function () {
location.href = location.href;
}, 1000 * 60 * 5);
@tarmstrong
tarmstrong / test_modified.py
Last active August 29, 2015 13:56
very rough tests for check_modified
# some test data
cell1 = {
"cell_type": "code",
"collapsed": False,
"input": [
"x",
"x",
"x",
"x",