Pchord Training Tool

My own project https://github.com/marcinklimek/pchords

November 29, 2023

A Batch for a New Post in Hugo

Batch file for a new post in Hugo @echo off for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set datetime=%%a set year=%datetime:~0,4% set month=%datetime:~4,2% set day=%datetime:~6,2% setlocal enabledelayedexpansion set "filename=%1" shift :concat if "%1"=="" goto end set "filename=!filename!-%1" shift goto concat :end set filename=%year%-%month%-%day%-!filename!.md hugo new -k post posts/!filename! subl "content\posts\!filename!" And the archetype for post: --- title: "{{ replace (substr .Name 11) "-" " " | title }}" date: {{ ....

November 29, 2023

Git Mounter

has anyone made a read-only FUSE filesystem for a git repository where every commit is a folder and the folder contains all the files in that commit? the idea is that you could just run cd COMMIT_ID and poke around instead of checking out the commit and maybe the branches could be symbolic links to the commit folders? Git Mounter

November 29, 2023

Designing a SIMD Algorithm from Scratch

Another explainer on a fun, esoteric topic: optimizing code with SIMD (single instruction multiple data, also sometimes called vectorization). Designing a good, fast, portable SIMD algorithm is not a simple matter and requires thinking a little bit like a circuit designer. Designing a SIMD Algorithm from Scratch

November 29, 2023

how to enable a 64 bit visual cpp toolset on the command line

x64 Native Tools Command Prompt for VS 2022 how to enable a 64 bit visual cpp toolset on the command line

November 28, 2023