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
type Compose = { | |
<A, B>( | |
fn1: (x: A) => B | |
): (arg: A) => B; | |
<A, B, C>( | |
fn1: (x: A) => B, | |
fn2: (x: B) => C | |
): (arg: A) => C; | |
<A, B, C, D>( | |
fn1: (x: A) => B, |
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
#!/bin/bash | |
# Turn off all monitors other than DP0 | |
xrandr --output DisplayPort-0 --auto --primary --output DisplayPort-1 --off --output DisplayPort-2 --off --output HDMI-A-0 --off | |
# Check if the command argument is provided | |
if [ $# -eq 0 ]; then | |
exit 0 | |
fi |
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
#!/bin/bash | |
hours=$(date +"%-H") | |
minutes=$(date +"%-M") | |
if [ ${#minutes} -eq 1 ]; then | |
minutes="o$minutes" | |
fi | |
spd-say "$hours $minutes" |
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 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== |
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 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== |
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
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 |