What's inside a git commit?

Git is a version control system that helps track progress of a repository over time. One of the essential parts of using git is learning the commit system. However, when someone learns git and the commit system for the first time they are told to ✨memorize the magic commands✨, without knowing what’s happening under the hood. So the goal of this post is to dig deeper and understand: How commits are stored What information is inside a commit How commit ids are generated This post will not teach you how to use git....

Q-learning traffic lights

A Q-learning agent written in Python that learns the most optimal switching mechanism at a traffic intersection to reduce the delay of cars waiting at the intersection....

Make 10

Have you ever sat down on a train to have your friend poke you, point to the train’s carriage number and ask, “Can you make 10?” This project tells you how to make 10, given the 4 numbers in your train’s carriage. It’s extensible enough find a solution to any sequence of 4 numbers and a goal number. Demo See: https://make10.sanjayn.com/ Motivation I wanted to create a web app so anyone could check answers on the train from their phone....