Neat Little Tricks by Anup Bishnoi

Anup Bishnoi Almanac

Values, Who I Am, How To Deal With Me

Photons Are Expensive

“Photons are expensive” in Autonomous Driving. Why?

Rearranging Equations Game - Introduction (Unity/React/Literate programming)

Here’s a new project I’m spending nights and weekends on, a math learning game that teaches how to solve equations by rearranging them.

Why is Bazel so hard to understand and use?

Essentially, Bazel is hard because it generates outputs in a parallel file system hierarchy, instead of putting outputs in the same folder as source code.

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.