page-header

In: Python

19
Jun

Basic Python Threading

The Python core module Threading provides a really simple way to add concurrency to any program. Concurrency is when a computer executes several instructions simultaneously. If your code waits for a function, but there are other things it could or should be doing…

18
Mar

Python Snippet: Get Terminal Width

There is a wonderful command on UNIX systems to return the width of the current terminal. Enter  tput cols and see for yourself! Tput can actually provide a lot of different info by querying the terminfo database. Really all I’ve needed though is…

14
Feb

From Ruby to Python

For a while I’ve been thinking about switching to Python, especially when I see so many programs I like to use written in it. My favorite terminal Guake comes to mind first and of course my all-time favorite editor Sublime…