Somethinghitme

My Code, demos and ideas.

Capturing Work Git History for your github activity graph

Monday, Jul 24, 2023

A quick tip on how to capture work git history for your github activity graph

Read Article →

Recreating this blog with static generation

Thursday, Jun 15, 2023

Join me on my journey of recreating my blog using a custom static generation solution. Discover the challenges I faced with platforms like WordPress and Gatsby, and my desire for a simpler approach. I explain the code structure, including markdown parsing and metadata extraction, as well as additional parsing for code blocks and gists. Templating with EJS and hosting on GitHub Pages are also covered.

Read Article →

Demos and Deviations Project

Monday, Aug 22, 2022

Explore a personal archiving project that showcases a collection of small coding projects and demos created over the years. Discover the motivation behind the project, its current state, and the plans for future development. Take a nostalgic journey through my coding evolution.

Read Article →

Deep copying in JavaScript

Wednesday, Apr 27, 2022

Gain insights into the intricacies of deep copying or cloning in JavaScript. Learn about the differences between copying by value and copying by reference, and discover the limitations of JavaScript's natural deep copying. Explore various methods for achieving deep copying, such as spread operators and JSON.stringify, and delve into the drawbacks of each approach. Finally, uncover a recommended solution for deep copying in JavaScript

Read Article →

Floating text from cursor generative demo

Thursday, Mar 31, 2022

Be inspired by a generative demo that combines JavaScript and CSS to create a mesmerizing effect of floating text following the cursor. Discover the origin of the idea and witness how a random paragraph from Nostradamus was transformed into an engaging visual experience.

Read Article →

Simple One Element Toggle

Saturday, Oct 23, 2021

Dive into a quick toggle implementation using pure CSS and a single HTML element. Witness the magic of CSS as it brings the toggle to life with smooth transitions and dynamic styling. Explore the simplicity and versatility of this toggle design, making it a convenient choice for projects where minimalism and efficiency are paramount.

Read Article →

Extracting the subdomain with node.js

Friday, Jul 25, 2014

Discover a simple method for extracting subdomains using Node.js and Express. Follow a step-by-step guide to handle subdomains in server requests, splitting and formatting them for further use. Witness how this technique can be applied to customize user experiences based on their subdomains and gain a deeper understanding of the code implementation.

Read Article →

Rift Enabled Canvas Demo

Tuesday, Mar 18, 2014

Experience the fusion of the Oculus Rift and CSS shaders in a captivating demo. Explore the process of porting a tunnel demo to be compatible with the Oculus Rift using the Oculus Bridge project. Discover the challenges faced and the workaround used to achieve a Rift-enabled effect in the browser.

Read Article →

Game Dev Movement cheatsheet with examples

Wednesday, Nov 13, 2013

Unlock a treasure trove of helpful code snippets and examples related to movement, angles, and directions in game development. Whether you're looking for collision checks, inertia-based mouse movement, following behavior, or object rotation, this cheatsheet provides practical code solutions. Discover various techniques and gain insights into the world of game development movement.

Read Article →

Simple 2d Terrain With Midpoint Displacement

Tuesday, Nov 12, 2013

Dive into the realm of 2D terrain generation using the Diamond Square algorithm, also known as Midpoint Displacement. Explore the simplicity and versatility of this algorithm in creating realistic 2D terrain with rolling hills or jagged mountains. Learn the step-by-step process of implementing midpoint displacement, reducing the random range for terrain roughness, and achieving visually stunning terrain using JavaScript and the canvas element.

Read Article →