Neat Little Tricks by Anup Bishnoi

Vim Search and Replace regular expression to delete bash colors from file/buffer

Ever wanted to delete bash colors from a file buffer, the ones that look like ^[[1;38m?

You don't need React to do what React does

It’s 2021, and frontend state management is still hard. But you know what, you don’t need to use React or build your entire app with React to get the benefits of top-down uni-directional state-driven UI updates.

Why I love programming and always will

I finally figured it out. What I basically love about programming is that it involves higher-order thinking as compared to going about your life.

How to choose what to do

There is an infinity of things you could possibly be doing at any given moment. Every idea can be low or high value, over a short or long term. So how do you choose?

Build an AR Drum Set that you play with body gestures

Let’s build an Augmented Reality Drum Set that lets you play drums with your full body without any musical instruments! What? Yes. Stand in front of camera 👀, bang imaginary drums with your hands 🥁, drums play for real! 📻🎶

A rant about Monorepos

Benefits of a mono-repo, based on experience from working at Netflix, Blippar, and Aurora.

React implemented in a Tweet!

Let’s implement the basic React API in a tweet, with React DOM & State management as a separate plugin in another tweet.

Fractals with JavaScript in a tweet!

Let’s implement Fractals with JavaScript, and make it fit in a tweet! 280 characters worth of code creates these amazing patterns:

Slackbot in a tweet - AskToughQuestions

First in a series, let’s write slackbots that can fit in a tweet, and see how far that can go. This one is an app with a few slash commands that answer any darn question you ask it!

Difference between setTimeout, setInterval, requestAnimationFrame

setTimeout, setInterval and requestAnimationFrame seem to be commonly misunderstood, and yet they are really simple to just tinker with thanks to browser consoles.

Simple jQuery Mobile Page Templating Pattern

jQuery Mobile has a concept of pages at its core. Top-level divs can be specified as pages and you each page becomes a mobile screen with transitions between them. The pattern shown here can be used to integrate templating into your jQuery Mobile app easily, using Underscore templates (or jQuery tmpl if you prefer).

Exposing Firebase data as REST-like ORM store in Node.js

A quick and dirty solution for the times when you want to connect to Firebase from the server, and not directly from the client browser, exposing Firebase data as simple asynchronous calls in Node.js.

What's slowing your website down?

Get a quick list of resources in your website that loaded slowly during page load, using Chrome DevTools.

Exporting Amazon RDS database using mysqldump

Getting MySQL data out from Amazon RDS databases is frustratingly hard and makes you want to kill yourself when it finally works without the port number.

Synchronous Callback Sequence in JS

Sometimes you need a sequence of callbacks to run synchronously and break out of the whole sequence as soon as one of them fails.

Colorful Console Logger in JavaScript

Logging that looks good and helps you debug faster.

Simple JavaScript assert

It’s better to fail with your own error than undefined is not a function.