Skip to content

Instantly share code, notes, and snippets.

View BastianBlokland's full-sized avatar
⌨️
Probably building something...

Bastian Blokland BastianBlokland

⌨️
Probably building something...
View GitHub Profile
@BastianBlokland
BastianBlokland / writeint-benchmark.md
Last active September 10, 2021 12:31
Perf difference of different ways of serializing a integer in dotnet.

Perf difference of different binary serialization methods

Quick benchmark to see the performance difference between the different ways of 'serializing' data to a binary blob in dotnet. For simplicity this only deals with writing 32 bit integers.

Methods this compares:

  • Shifting and assigning the four bytes that make up the integer.
  • Using MemoryMarshal to write the memory.
  • Directly assigning a reference.
  • Directly assigning a pointer.
@BastianBlokland
BastianBlokland / qmk-config-nyquist.md
Last active September 23, 2021 07:21
Configuration for nyquist keyboard

Nyquist Keyboard mapping

Preview image Preview image

Hardware

  • Board: Nyquist rev3
  • Switches: Zealios 62g v2
  • Caps: DSA blanks
  • Case: KPrepublic SP50 case
@BastianBlokland
BastianBlokland / TypedTree-Editor-Launcher.md
Last active August 31, 2023 12:19
Tiny electron wrapper for the TypedTree-Editor

TypedTree-Editor electron wrapper

Tiny electron wrapper around the typedtree-editor (repo).

Advantage is that it allows local filesystem access so it can write changes back to the original file. Atleast untill native-file-system api has become mainstream in browsers.

Usage

On unix systems execute run.sh, on others run npm install and npm start.