Skip to content

Instantly share code, notes, and snippets.

Wim Vander Schelden wvdschel

Block or report user

Report or block wvdschel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Spotify song recorder. Records songs played back with Spotify to ~/Music, as MP3 files with correct-ish ID3 tags.
# Songs are organized by album, one directory per album.
# Only works on Linux with pulseaudio.
# For Ubuntu users: apt install sox libsox-fmt-mp3 id3
# TODO: record into playlist directory instead of album

(THREAD) The more one researches the Trump-Flynn nexus, the more it's clear Trump promised Flynn a pardon in an illegal phone call in April.

  1. (1) Flynn met Trump in summer 2015. They were supposed to meet for 30 minutes—they met for 90 minutes. (NB: echoes of the Trump-Putin chat.)
  2. (2) Flynn told the Post that they spent the entire time talking about foreign policy, and that Flynn was very impressed with Trump's views.
  3. (3) Flynn's began advising Trump thereafter. At the time his views on Russia were very clear—he wanted America to seek a detente with Putin.
  4. (4) During Fall 2015 Trump expressed the same view, saying in October he'd get along well with Putin and he'd improve U.S.-Russia relations.
  5. (5) At the time, Flynn was receiving unreported income from Russian sources, per later media reports. Whether Trump knew this is unclear.
  6. (6) What's clear is that Putin believed Flynn to be acting as a Trump emissary when he invited him to a December 10th, 2015 RT celebration.
  7. (7) This is
wvdschel / Dockerfile
Last active Oct 3, 2018
Rustup/wasm32 dockerfile
View Dockerfile
FROM opensuse:tumbleweed
RUN zypper -n -q install bash tar curl clang llvm python git
ENV SHELL /bin/bash
RUN curl -sSf | bash -s -- -y
RUN echo "export PATH=~/.cargo/bin:$PATH" >> ~/.bashrc
RUN source ~/.bashrc
import urllib.request
from html.parser import HTMLParser
class DilbertParser(HTMLParser):
def handle_starttag(self, tag, attrs):
if tag == "img":
comic = False
src = None
for attr in attrs:
name, value = attr
wvdschel / limited.dylan
Created Apr 21, 2016
Some limited dylan snippet code.
View limited.dylan
module: limited
define class <some-thing> (<object>)
slot foo :: <integer>, init-keyword: foo:;
end class;
define method limited-instance? (obj :: <some-thing>, limited-type :: subclass(limited(<some-thing>)))
=> (result :: <boolean>)
format-out("limited-instance?(%=, %=)\n", obj, limited-type);
wvdschel / Promoted_tweet_blocker.user.js
Created Aug 25, 2015
Hide promoted tweets greasemonkeyscript
View Promoted_tweet_blocker.user.js
// ==UserScript==
// @name Promoted tweet blocker
// @namespace org.fixnum.tweetblock
// @include
// @version 1
// @grant none
// ==/UserScript==
var tweets = document.getElementsByClassName("tweet");
for(tweetIdx = 0; tweetIdx < tweets.length; tweetIdx++) {
wvdschel / minimum-int.dylan
Created Feb 13, 2015
Minimum integer bug
View minimum-int.dylan
module: main
define function main() => ()
format-out("In main()\n");
let val :: <integer> = floor/($minimum-integer + 1, 10);
format-out("(min+1)/10: ");
View .vimrc
set tabpagemax=12
set showtabline=2
map <F1> <ESC>:tabn 1<CR>
map <F2> <ESC>:tabn 2<CR>
map <F3> <ESC>:tabn 3<CR>
map <F4> <ESC>:tabn 4<CR>
map <F5> <ESC>:tabn 5<CR>
map <F6> <ESC>:tabn 6<CR>
map <F7> <ESC>:tabn 7<CR>
wvdschel / if_cascade.c
Created Jun 20, 2013
If-cascade I saw on HN. A, B and C can be bulky expressions, such as method calls or several conditions grouped together with ||. The second example has a number of advantages: (A) It offers a clearer split between conditions, so you don't have to squint your eyes and match parentheses. (B) It allows you to debug with much more ease: if somethin…
View if_cascade.c
if( A && B && C )
if( A )
if( B )
if( C )
wvdschel /
Created Jan 21, 2013
Crashes on line 31, EGL_BAD_ALLOC
private boolean initGL(SurfaceHolder surfaceHolder) {
mEgl = (EGL10) EGLContext.getEGL();
mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (mEglDisplay == EGL_NO_DISPLAY) {
throw new RuntimeException("eglGetDisplay failed " +
int[] version = new int[2];
You can’t perform that action at this time.