Hello! As a precursor to writing a Ruby profiler I wanted to do a survey of how existing Ruby &
Python profilers work. This also helps answer a question a lot of folks have been asking me, which
is “How do you write a profiler?”... (more…)
Read more »
2to3 is a Python program that reads Python 2.x source code and applies a series
of fixers to transform it into valid Python 3.x code. The standard library
contains a rich set of fixers that will handle almost all code. 2to3 supporting
library lib2to3 is...
Read more »
Welcome to “Fun with Python”, part 1. In this part, we will automate maze creation, utilizing Prim’s randomized algorithm. (more…)
Read more »
Learn to build a Boba Tea Shop finder using Python, the Google Maps API and the GeoJSON library. (more…)
Read more »
Let’s say that you have a binary tree and we needed to know it’s maximum depth. Binary tree input data [3,9,20,null,null,15,7] could be visualised as follows: In the above example, the depth would be 3. As there are 3 levels. How would we write some Pytho... (more…)
Read more »