⏱ Add delay to a request in ExpressJSNodeJS
A tiny middleware to simulate delay in response to a request. This is useful for testing and debugging.
🧙♂️ Git sorceryGit
A peculiar but not so rare use-case of git when you forget to change branch after doing a commit.
Quick intro to bookmarklets and how to create one for life hacks
🐶 Automate linting with HuskyHusky
Using Husky for a git hook to format code on commit and before push
Dealing with async-await hell to write simpler and easy to understand code
🔎 Syntax Error: Expected Name, found <EOF>Gatsby
Solving an error without Googling it first is kind of not time saving.
🧲 Using Context with a HoCReact
How to use Context Provider to avoid props drilling? Bonus, cleaning up multi-context tree hell using a Higher order Component.
Is switch statement good? Is there something better out there?
🔥 Efficient workflow with ESLint and PrettierCode formatting
How I configure ESLint and Prettier to catch style and code issues early on
📥 Sharing state in GatsbyGatsby
Exploring how to create a shared state management system in GatsbyJS using Context Provider API
🌐 Holy Grail layouts in GatsbyGatsby
Exploring how to create a shared layout system in GatsbyJS
📭 Use 'http://local.dev' instead of localhostNetworking
Configuring localhost to use a domain name to make development simpler to identify multiple apps
extracting reusable logic to a custom hook
match and matchAll can be used to match string using regex. But are they same?
🍪 Setting Cookies in Next.jsNext.js
Snippet showing how to set cookies for a given url in Next.js
🌍 How to get Local IP address on a MacMacOS
If you're on macOS and you want to get the IP address within your local network, there are a few ways of doing this.
A snippet showing how to override css-loader options in Next.js
🧟♂️ How to keep a Docker container aliveDocker
Docker containers usually do not sit around for long when a process running in it crashes. So how to keep it running even when the process crashed?
🎨 Using global class selectors in CSS ModulesTIL
Today I Learned,using global class selector with CSS Modules