Skip to content

Instantly share code, notes, and snippets.

@pjaspers
pjaspers / movies.yml
Created August 29, 2016 09:04
The 100 greatest films of the 21th century according to the BBC. http://www.bbc.com/culture/story/20160819-the-21st-centurys-100-greatest-films. Presented in a handy Yaml format. `Yaml.load_file("movies.yml")`
---
- !ruby/struct:Movie
order: 100
name: Toni Erdmann
director: Maren Ade
year: 2016
- !ruby/struct:Movie
order: 100
name: Requiem for a Dream
director: Darren Aronofsky
@pjaspers
pjaspers / the-taxes-are-just-too-damn-high.md
Last active February 23, 2020 21:16
List of Apple services not available in Belgium
@pjaspers
pjaspers / text-subsitutions.plist
Last active May 8, 2020 14:20
Although not entirely obvious it is possible to export and import text substitutions, just drag this file into System Preferences > Keyboard > Text.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>phrase</key>
<string>↑</string>
<key>shortcut</key>
<string>,,^</string>
</dict>
#! /usr/bin/env ruby
#
# Either `chmod +x` me or run me as `ruby ruby-signals`
total = 1000000000
index = 0
start_time = Time.now
sleep_for = 0.1
wat = <<WAT
Hi there, this shows how to instrument a long running CLI process so you

You broke the . popup.

I was wondering why it didn't work and I thought it was a permissions thing (because as we all know Jira works in mysterious ways that sometimes involve sacrificing your firstborn), it was only when I accidentally clicked on the 'Show old issue view' that I found out the popup still worked there.

The popup is the one redeeming thing about having to use Jira*

  • I think Jira does a lot of stuff, and when in the hands of someone who knows what they're doing it can be setup just fine. Unfortunately, I think that person stopped setting up jira's a long time ago.
Participants:	4,235,181
Books Pledged:	259,817,439
Books Finished:	56,102,660
Avg. Books Pledged:	61
Challenges Completed:	696,889
VLAAMSE REGERING 2019-2024
REGEERAKKOORD
1
SAMENVATTING
Vlaanderen staat sterk. De werkloosheid is laag, de productiviteit hoog, en dankzij onze ambitie, onze veerkracht en onze creativiteit scheren we hoge toppen. Cultureel, maatschappelijk en economisch stralen we. Toch is er ook onbehagen. Samenleven in diversiteit stelt ons voor uitdagingen. En te veel mensen hebben het moeilijk om rond te komen, ook als ze aan het werk zijn. Het gevoel leeft dat de lasten en lusten niet altijd evenredig verdeeld zijn.
Naar een samenleving in topvorm
De Vlaamse Regering zet alle zeilen bij om te bouwen aan een harmonieuze samenleving, waarin iedereen kansen krijgt om vooruit te gaan. De Regering doet een warme oproep aan alle Vlamingen om samen aan dit wervende verhaal te schrijven. Er staan ons de volgende jaren bovenmaatse uitdagingen te wachten. We hebben het engagement van iedereen nodig om daar een succes van te maken.
Het is onze ambitie dat Vlaanderen een onbetwiste referentie wordt in het Europa van de jaren twin
require "csv"
require "time"
CITIES = [
"Leuven",
"Hamont-Achel",
"Kortrijk",
"De Panne",
"Herentals",
"Antwerpen",

Where is this data coming from?

Each day I pull down the files from https://epistat.wiv-isp.be/covid/, to be more specific, I pull down the 'COVID19BE_CASES_MUNI_CUM' file.

Which contain for each municipality the

Cumulative number of confirmed cases (combinations with zero cases are not shown

I then run some code to count what the actual delta is from the day before, and that gets filled out in the data.

@pjaspers
pjaspers / pjaspers.plist
Created October 28, 2020 12:27
mailmate-keybindings-gmail-mutt-and-me.plist
{
// Based on the gmail keybindings, and some mutt, and some me.
"@\U000A" = "send:"; // ⌘+return
"@\U000D" = "send:"; // ⌘+enter
"c" = "newMessage:";
"/" = "searchAllMessages:";
"n" = "nextMessage:";
"p" = "previousMessage:";
"j" = "nextThread:";