This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
import random | |
import itertools | |
import numpy as np, numpy.random as rnd | |
num_states = 200000 | |
num_actions = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Simple "Shake" plugin */ | |
/* Use it like: */ | |
var shake = new Phaser.Plugin.Shake(game); | |
game.plugins.add(shake); | |
shake.shake(40); // 40 pixels max displacement | |
/* |