For this next blog post in my series of Python's syntactic sugar, I'm tackling what would seem to be a very simple bit of syntax, but which actually requires diving into multiple layers to fully implement: not. On the surface, the definition of not is ver... (more…)
Read more »
Short post on using mach-nix with niv.
Background In previous posts, there was a discussion on a ground up approach to adding packages which aren’t on the core nixpkgs channels using GitHub or PyPi sources. However, this lacked a way to do so programmati... (more…)
Read more »
Using Dynamic Programming with Python solution: Let’s learn how to think about Colored Rectangles, an 1800-point codeforces problem... (more…)
Read more »
Next time you're in your IPython console and you get an error somewhere deep in your stack, run %debug. It's a post-mortem debugger, and it'll drop you in an interpreter right where the error happened. You can inspect all the variables, go up and down the... (more…)
Read more »