Skip to content

Instantly share code, notes, and snippets.

View sheodox's full-sized avatar

sheodox

View GitHub Profile
// ==UserScript==
// @name Jisho Hotkeys
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Hotkeys for some actions on jisho.org
// @author sheodox
// @match http://jisho.org/*
// @grant none
// ==/UserScript==
@sheodox
sheodox / memrise-edit-enhancements.user.js
Last active May 24, 2017 01:29
Memrise Editor Enhancements
// ==UserScript==
// @name Memrise Editor Enhancements
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Some convenience improvements for editing Memrise courses.
// @author sheodox
// @match https://www.memrise.com/course/*/edit/*
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
@sheodox
sheodox / memrise-add-wizard.user.js
Last active May 25, 2017 02:55
Memrise Add Wizard
// ==UserScript==
// @name Memrise Add Wizard
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Wizard for adding words to a course
// @author sheodox
// @match https://www.memrise.com/course/*/edit/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
@sheodox
sheodox / infinite-number.ts
Last active November 26, 2021 00:44
An incrementable integer with infinite digits stored as an array of single digit integers because why not
import assert from 'assert';
class Digit {
// a number 0-9
value: number;
constructor(value: number) {
if (value > 9 || value < 0) {
throw new Error(`Digit value must be between 0 and 9, got ${value}`);
}
if (Math.round(value) !== value) {