Visualisations
Code behind my visualisation blog posts
Install / Use
/learn @samwho/VisualisationsREADME
Visualisation Code
This repository contains the source code behind my visualisation blog posts.
numbers- https://samwho.dev/numbersbloom-filters/- https://samwho.dev/bloom-filtersretries/- https://encore.dev/blog/retrieshashing/- https://samwho.dev/hashingmemory-allocation/- https://samwho.dev/memory-allocationload-balancing/- https://samwho.dev/load-balancingqueueing/- https://encore.dev/blog/queueingturing-machines/- https://samwho.dev/turing-machinesreservoir-sampling/- https://samwho.dev/reservoir-samplingbig-o/- https://samwho.dev/big-o
In the case of load-balancing and memory-allocation the code is vanilla
JavaScript that I include into pages with a simple <script> tag. It may
depend on other libraries that are also included into the page, and may be
difficult to run. I recommend looking at the HTML source of those posts to
figure out how to run it, if that's your goal.
For hashing and retries I began using Bun to build my code, as it's in
TypeScript, is better modularised, and depends on packages from NPM. This
code should be building with bun install && bun run build in both cases.
The output will be put into an out/ directory and including that in a page
will give you access to the custom HTML elements I use throughout those posts.
Feel free to reach out if you have any questions about the code, and thanks for showing an interest in my work!
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
