Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeroen van Wijgerden jeroenvanwijgerden

View GitHub Profile
@jeroenvanwijgerden
jeroenvanwijgerden / somtoday-allen-afwezig.js
Created October 30, 2022 05:36
In een Somtoday lesregistratie, zet alle lln afwezig.
View somtoday-allen-afwezig.js
// ==UserScript==
// @name Somtoday Allen Afwezig
// @namespace http://tampermonkey.net/
// @version 1.0
// @description In een Somtoday lesregistratie, zet alle lln afwezig.
// @author Jeroen van Wijgerden
// @match https://docent.somtoday.nl/rooster/les/*/registratie
// @grant none
// ==/UserScript==
@jeroenvanwijgerden
jeroenvanwijgerden / tampermonkey-slidedeck.js
Created October 30, 2022 04:55
Tampermonkey script to create a slide deck of the images on a page.
View tampermonkey-slidedeck.js
// ==UserScript==
// @name SlideDeck
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Creates a slide deck of images on page. Arrow keys to navigate.
// @author Jeroen van Wijgerden
// @match *://*/*
// @grant none
// ==/UserScript==
@jeroenvanwijgerden
jeroenvanwijgerden / cyoa.js
Last active March 26, 2022 12:06
small Choose Your Own Adventure program in JavaScript
View cyoa.js
const states = {
1 : ["You are in a dark dungeon. In front of you a heavy oaken door stands ajar. Behind you is a hole from which foul odors rise.",
[[2, "Go through the door.", "You go through the door."],
[3, "Go down the hole.", "As you carefully clamber down the hole, your grip slips and you plummet into the darkness."]]],
2 : ["You are in a narrow, dimly lit corridor. To your left is more darkness, to your right is light.",
[[3, "Go left.", "As you walk, your foot lands of a pressure plate. With the low rumble of stone against stone, the floor opens and you fall down."],
[4, "Go right.", "You walk along the corridor."]]],
3 : ["After a monstrous splash you emerge, gasping, from filth-laden water. In the distance you see the edge of the sewage canal. Below the surface you feel that you're standing on some sort of log.",
[[5, "Swim to the edge.", "After many strokes through the murky water you hoist yourself onto the edge."],
[6, "Dive to