Archives
All the articles I've archived.
-
Renaming Local and Remote Git Branches
How to properly rename a Git branch locally and update the remote branch to match
-
Using Ctrl+X, Ctrl+E for Better Terminal Command Editing
How to use Ctrl+X, Ctrl+E to open your default editor for editing complex terminal commands
-
Configuring the Alt Key for Command Line Navigation in iTerm2
How to fix Alt key navigation shortcuts in iTerm2 on macOS for better command line productivity
-
next lint vs next build
Difference in behavior between next lint and next build when using TypeScript.
-
Opaque String Type in TypeScript
An opaque string type in TypeScript is a way to create nominally typed strings...
-
Understanding Generator-Based Coroutines in JavaScript
Learn how generator functions can be used to implement coroutines for asynchronous programming in JavaScript
-
Handling Asynchronous Operations in MobX
A comprehensive guide to handling asynchronous operations in MobX, including patterns, best practices, and type-safe implementations
-
Understanding MobX - A Comprehensive Guide
A comprehensive guide to understanding MobX state management, including integration with Next.js and SSR support
-
Invalid character in header content ["Location"] Next.js
Handling invalid character in location header with Next.js
-
Understanding n & (n - 1)
Understanding n & (n - 1)
-
Handling negative values with remainder operator
How to handle negative values with remainder operator?
-
Bit Manipulation
Bit manipulation in javascript
-
How to list recently switched branches in git
list recently switched brances in git
-
Copy file from another branch using git checkout
copy file contents using git
-
Chrome DevTools Network Tab Filter Cheat Sheet
Chrome network tab cheat sheet for quick reference
-
Printing Page on Chrome Desktop and Android
Use window.print API to print a document on Chrome Desktop and Android, and the differences in the sequence of printing events.
-
Git Command Reference
reference of commonly used git commands including log, diff, stash, and branching operations.
-
Custom hook for data fetching
Using custom hook for data fetching
-
Adapter Design Pattern
The adapter pattern is a design pattern used to bridge two incompatible interfaces, allowing an existing class interface to be used as another. This article provides an example of using the adapter pattern.
-
Identifying cycle in directed graph
Identifying cycle in directed graph with BFS and DFS
-
Find neighbours in 2D grid
A comprehensive guide to finding neighboring cells in 2D grids using JavaScript, covering both cardinal (4-way) and diagonal (8-way) neighbors. Learn efficient algorithms with clear examples for traditional 2D arrays and optimized 1D array representations.
-
Representing 2D array as 1D array
Representing 2D array as 1D array
-
Observer Pattern
Observer Pattern with example
-
Strategy Design Pattern
Strategy Design pattern with example
-
State Management In Pure React
State management in react without using any external library
-
React custom hook for form state
Using custom react hook to maintain form's state
-
Middleware with Async Thunk
Handling async operation inside react's useReducer
-
Conditional checking of props
Eliminating invalid props combination by using typescript
-
Angular component without tag selector
Instantiate angular components with out creating tag in html
-
Identifying cycle in un-directed graph
Identifying cycle in un directed graph with BFS and DFS