Home
Gazoche's blog
Cancel

Random Python tips #2: sorting lists into buckets with defaultdict

defaultdict is your friend You’ve probably already found yourself in the following situation: you have a list of objects and you need to sort those objects into different buckets based on some cri...

Random Python tips #1: Importing from a parent or sibling folder

The problem Suppose that you have a script script.py that imports something from another file dependency.py. The two files are at the same level in the project hierarchy. my_project/ ├── script.p...

The GANdam Project Part 2, Space Magic

Small update on the GANdam project ! If you don’t know what I’m talking about, part 1 is here. I’ll try to keep it shorter this time… Improvements I did some experimentation and here are the chan...

FPS overlays on Linux

On Linux, if you want to display a FPS counter in your application, there are several ways to do so, but they depend on your hardware and the underlying 3D API being used (Vulkan or OpenGL). This s...

The GANdam Project

The goal Generative Adversarial Networks, or GANs for short, are a pretty neat type of neural network. Train them on a large enough set of data points belonging to the same distribution, and they’...