Skip to content

Instantly share code, notes, and snippets.

Avatar

Niels Kristian Hansen Skovmand skovmand

  • Physical Code
  • Denmark
View GitHub Profile
View api-requestlog.txt
// 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
@skovmand
skovmand / coding-music.md
Last active Apr 15, 2022
Music I like to code to
View coding-music.md

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 / stream-enum-any-bench.txt
Last active Aug 13, 2019
Comparison of Stream.filter, Enum.filter and Enum.filter+Enum.any? for filtering a list of tracks
View stream-enum-any-bench.txt
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
View keybase.md

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: