Skip to content

Instantly share code, notes, and snippets.

View TuurDutoit's full-sized avatar

Tuur Dutoit TuurDutoit

View GitHub Profile
@TuurDutoit
TuurDutoit / query.graphql
Created April 8, 2022 13:58
campusCourse query
query {
previewCourse(courseHash: "0f3a9a064ca436a0a0c17d703af3e087") {
...campusCourse
}
}
fragment campusExerciseProgress on CampusExerciseProgress {
completed
xp
exerciseId
usedHint

Keybase proof

I hereby claim:

  • I am tuurdutoit on github.
  • I am tuur (https://keybase.io/tuur) on keybase.
  • I have a public key ASDRe5s5cM7-6LGHkW1LZMFHiARxsiR2mSVY2vaMsEw_Jgo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 169y2byoi8rLBPkfrnJYZSFwSp5Pn1Gotr https://explorer.blockstack.org/address/169y2byoi8rLBPkfrnJYZSFwSp5Pn1Gotr
@TuurDutoit
TuurDutoit / export_google_music.js
Last active February 3, 2018 10:56 — forked from jmiserez/export_google_music.js
(fixed/updated 2016-05-10) Export your Google Music Library and Playlists (Google Play Music All Access) (see http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music for more)
// Copyright 2016 Jeremie Miserez <jeremie@miserez.org>
//
// MIT License
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O
Verifying my Blockstack ID is secured with the address 1C9gPZSzVbLc3V1mvqGoFZYxBAkKXV45sT https://explorer.blockstack.org/address/1C9gPZSzVbLc3V1mvqGoFZYxBAkKXV45sT
@TuurDutoit
TuurDutoit / be
Created December 11, 2016 15:10
Belgian Mac keymap for XKB
// based on a keyboard map from an 'xkb/symbols/be' file
default partial alphanumeric_keys
xkb_symbols "basic" {
include "latin"
name[Group1]="Belgian";
key <AE01> { [ ampersand, 1, bar, exclamdown ] };
%include "gt.asm"
covar
inarea: resb 70
counter: dd 0
a: resd 1
b: resd 1
i: resd 1
inleiding
openin
lees
%include "gt.asm"
covar
nums: resd 10
i: dd 10
inleiding
sub esi, esi
mov ecx, 10
input:
inv [nums + esi]
@TuurDutoit
TuurDutoit / binary-to-decimal.js
Created November 16, 2016 09:23
A (non-recursive) algorithm to convert a binary number to decimal
function binaryToDecimal(x) {
// Checks:
// - x is positief
// - x is geen kommagetal
if(x < 0 || x !== Math.floor(x)) {
return "invalid";
}
// Variabelen:
// - i: index in het cijfer:
=== modified file 'lib/Widgets/DynamicNotebook.vala'
--- lib/Widgets/DynamicNotebook.vala 2015-10-13 18:37:21 +0000
+++ lib/Widgets/DynamicNotebook.vala 2016-05-13 19:15:31 +0000
@@ -205,7 +205,7 @@
/**
* With this you can construct a Tab. It is linked to the page that is shown on focus.
- * A Tab can have a icon on the right side. You can pass null on the constructor to
+ * A Tab can have a icon on the right side. You can pass null on the constructor to
* create a tab without a icon.