Skip to content

Instantly share code, notes, and snippets.

joakimbeng / usr-share-X11-xkb-rules-evdev.xml
Last active Apr 23, 2018
Swedish Mac keyboard Layout for a PC
View usr-share-X11-xkb-rules-evdev.xml
// Find <layout> for "Swedish" and add the following into its <VariantList>:
<description>Swedish (Joakimbeng Macintosh)</description>
joakimbeng / test_runner.js
Last active Jul 12, 2020
A small and simple Javascript test runner
View test_runner.js
* A Javascript test runner in 20 lines of code
* From
(function () {
// The test queue:
var tests = [];
// Function to add tests:
this.test = function test (name, cb) {
View gist:6a724d78b699b2cf00ff
### Keybase proof
I hereby claim:
* I am joakimbeng on github.
* I am joakimbeng ( on keybase.
* I have a public key whose fingerprint is F3D9 C691 DB9D 2910 DA57 E3F9 0143 6819 1B3F 4CBE
To claim this, I am signing this object:
joakimbeng / router.html
Last active Apr 10, 2021
A really simple Javascript router
View router.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Building a router</title>
// Put John's template engine code here...
(function () {
// A hash to store our routes: