RandomWits

life is too short for a diary



Posts Tagged: javascript

Adding Clap Controlled Dark Mode With TensorFlow.js

I added a small experiment to this site: click a clap listener button, allow the microphone, clap your hands, and the site toggles dark mode. The interesting part is not the dark mode itself. The interesting part is how a static Jekyll site can run a small machine learning model in the browser without a backend server...

Continue reading → javascript tensorflowjs ml jekyll dark-mode



Daily Logs for May 24, 2026

Dear Vishi, dear logs for today...

Continue reading → letters javascript async promises



Understanding Object References in JavaScript

When working with JavaScript, it's important to understand that objects are reference types. This means that when you assign an object to a new variable, you're not creating a new copy of the object—instead, both variables reference the same object in memory. This can lead to some unexpected behavior if you're not careful...

Continue reading → javascript