Execution time measurements
Python's timeit and repeat
I sometimes want to time my code to see which version of a function I wrote runs faster.
I know that you should always profile before you optimize and that micro-benchmarking has lots of caveats (some of which I have myself fallen victim to), but still, sometimes, curiosity gets the best of me and I just have to know.
When I am writing in Python, I use the timeit module
Hugo
In a previous entry, I described how I got to using GitHub Pages.
That was one of the (if not the) first question I had to figure out when I decided to write my notes in an Internet format (ok, blog, but I don't see myself as a blogger).
The second thing I had to figure out was what to use as a writing tool.
I could simply write static HTML by hand and leave it
GitHub Pages
This is one of my first posts.
I have been toying with the idea of this blog for quite some time now.
A flaw of mine: too much searching for the best solution, not enough implementing.
I end up doing things too late.
Anyhow, I digress.
One of the relevant questions when thinking of writing a blog is of course where to publish and what tool(s) to use.
At some point, I was thinking of hosting on an
Hi.
I'm Ghys, a French Canadian living in the province of Québec, Canada.
I make a living as a medical physicist.
I like trying to get computers to do the actual data crunching for me.
I am a hobbyist programmer and this blog is mostly a way for me to write down notes and lessons about my code attempts.
I also write about random stuff.
Feel free to read or skip whatever you want!