Python

Animated GIFs from Movies

I’ve often wanted to be able to make animated gifs of things. I have also been interested in simple programmatic video editing from time to time, particularly for animating a series of still frames from images rendered by my graphics architecture simulations. Today on reddit, I came across this blog post that describes a sequence of ways to use the MoviePy library to generate animated gifs. It looks like exactly the kind of solution I want since I like to use python whenever possible for simple things.

Interesting python style print in C++

I came across a really interesting piece of C++ code today hidden in this list of obscure C++ features. It includes an implementation of some of the print syntax functionality of python 2 implemented in C++. Here’s the code (copied here, but I’m not the original author):