Skip to content

Instantly share code, notes, and snippets.

View cocoademon's full-sized avatar

Cameron Foale cocoademon

View GitHub Profile
// ==UserScript==
// @name Cam's Moodle Grading Fix
// @version 1
// @grant none
// @include https://moodle.federation.edu.au/mod/*
// ==/UserScript==
let s = `
.path-mod-assign [data-region="review-panel"].collapsed + [data-region="grade-panel"] [data-region="grade"],
import timeit
import random
import itertools
import numpy as np, numpy.random as rnd
num_states = 200000
num_actions = 10
@cocoademon
cocoademon / Shake.js
Last active December 27, 2015 05:39
Simple "Shake" plugin for Phaser 1.1.3 with postUpdate
/* Simple "Shake" plugin */
/* Use it like: */
var shake = new Phaser.Plugin.Shake(game);
game.plugins.add(shake);
shake.shake(40); // 40 pixels max displacement
/*