Gary's Notebook

Statistics: P-value Explained

Informal Definition: The probability of getting the same distribution if the null hypothesis were true. Example: you have a web page, and…





Adding Images to Gatsby Blog in Markdown

Ok I spent the past 3 hours trying to find out this annoying little thing. Spoiler alert: You DON'T NEED any Gatsby plugins. Stop reading…





DeepDream Explained Clearly

DeepDream is one of the coolest applications of machine learning - it started out at Google as an effort to gain more insights into the…





Making Sense of AI on Blockchain: Part 2

In the first article of this series, I introduced the lifecycle of AI (which consists of training and inference) and discussed blockchain…





Making Sense of AI on Blockchain: Part 1

Any projects that involve both AI and Blockchain are bound to raise some eyebrows — after all, putting together two hottest buzzwords of the…





Binary Tree Level Order Traversal Python Solution

This problem can be better solved iteratively rather than recusively. The essential idea is that you can get all the next level nodes from…





Maximum Subarray - Kadane's Algorithm Explained

I was inspired to write this post after completing the Leetcode challenge and coming across the Kadane algorithm. It's a very interesting…





The Case for Investing in Cryptocurrencies: A More Rational Analysis

Two great investors, Charlie Munger and Warren Buffet have completely dismissed the value of investing in cryptocurrencies. “I think the…





How to Run a Python Script in Your Node Backend

While javascript is awesome, you're not obligated to use it throughout your entire stack. There will come a time where it is more…





How to Use Google Translate in Your Node App in 3 Steps

The official documentation on this leaves quite a few gaps and took a while to figure out so I'm sharing a quick tutorial here. Note: If you…





Add Syntax Highlighting to Your Gatsby Blog in 2 Minutes

This is a quick tutorial on how to add syntax highlighting for your Gatsby blog in 4 steps. First, run Second, go to your file, find the…





How to Use Materialize with React: The Easier Way

Before npm installing any package, or use Material-UI or react-materialize, let me tell you that there is a more straightforward way of…





How to Add External Javascript Script Tag in Gatsby

This is a tricky topic and there are few good resources out there that teach how to do it. After a few hours of flapping around I finally…





How to Fix Detached Head in Git

You did something and ended up in the detach head branch. You don’t know how you ended up here but you did. But you want to keep everything…





Git Cheatsheet: Commands That Actually Work

This is a constantly updating notebook on git commands that actually work for me. First, some vocabulary to help you read the docs and my…