Skip to content

Instantly share code, notes, and snippets.

View skovmand's full-sized avatar

Niels Kristian Skovmand skovmand

  • Aarhus, Denmark
  • 12:12 (UTC +01:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am skovmand on github.
  • I am skovmand (https://keybase.io/skovmand) on keybase.
  • I have a public key whose fingerprint is EB7D DCF1 1A91 BAC6 DEBC 5208 C58E F6BE CB16 5BCE

To claim this, I am signing this object:

@skovmand
skovmand / stream-enum-any-bench.txt
Last active August 13, 2019 07:41
Comparison of Stream.filter, Enum.filter and Enum.filter+Enum.any? for filtering a list of tracks
Comparison of Stream.filter, Enum.filter and Enum.filter+Enum.any? for filtering a list of tracks
----------------------------------------------
Using 2680 tracks:
Name ips average deviation median 99th %
Enum.filter 466.59 2.14 ms ±24.75% 2.00 ms 3.13 ms
Stream.filter 440.91 2.27 ms ±24.00% 2.20 ms 3.18 ms
Enum.filter + Enum.any? 407.53 2.45 ms ±26.21% 2.32 ms 3.45 ms
@skovmand
skovmand / coding-music.md
Last active April 15, 2022 20:19
Music I like to code to

Music I like to code to

In no particular order. Mostly whole albums. Last update: 2022-04-15

Deep focus, emergence, coding as gardening

Rumpistol - Isola [Spotify]

William Basinski - The Disintegration Loops IV (Remastered)

@skovmand
skovmand / api-requestlog.txt
Created December 17, 2021 06:16
Entangled Parsers
// Entangled API Request Parser
// Ref: https://library.humio.com/stable/docs/parsers/creating-a-parser/
// Example inputs
// Dec 16 17:43:34 xerecation node[698]: [info] [1.2.3.4] GET /tags [status: 200] [4.1 ms]
// Dec 16 17:46:15 xerecation node[698]: [info] [1.2.3.4] GET /tracks/activity/running?page=1&orderBy=popularity&direction=desc&limit=10 [status: 200] [12.6 ms]
// Nov 15 08:52:38 xerecation node[708]: [info] [1.2.3.4] POST /tracks/store [status: 201] [168.1 ms]
// Nov 15 20:39:35 xerecation node[708]: [info] [1.2.3.4] POST /tracks/suggest-tags [status: 200] [218.1 ms]
// Redact the origin of the request from rawstring to show 1.2.3.4