Cat
Sahil's Moon.
section header hero

Blog

There is dark side of the moon and sometimes it's not all dark.

Welcome to the Blog! I write random stuff out here. Generally posts can be about the things I've learned so far, Code Snippets I want to refer later, something I feel to share with the world or maybe when creativity within is resurrected.

Bitwise Operators: With an usecase (Bitmasking)

Squeezing Bytes to store permissions.

Bitwise operators usecase (Bitmasking)

Method Chaining in Javascript

Keep it flowing with Method Chaining

How to chain methods in javascript?

Convert Normal Strings to template literals in JavaScript

Access variables from plain js strings.

Convert plain JS strings to template literals

Dependency Injection

Injecting dependencies in js.

Be ready for changes.

Linked List with Javascript Generators and Iterators

Accessing linked list with JS Generators

Linked list with JS generators & iterators

The Strategy Pattern: Replacing if/else with lookup tables

No More Ifs

The strategy Pattern.

Snippets

View more
Command to download file using curl.

Download file using curL

Command to download file using curl.

Expose WSL Port to other adapter interfaces

Expose WSL Port

Expose WSL Port to other adapter interfaces

Clear git cache to improve performance

Improve git command performance.

Clear git cache to improve performance

The dark, smooth areas on the Moon are called maria, which are ancient lava flows.