This trick was inspired by Brian Suda who I saw speak at Whisky Web. Take a string, any string. Hash it using MD5. Substring the hash to get a 6-digit hex code. Take a look at what colour that hex code represents. A really simple, really cool way of generating seemingly random colours, that can […]
So you have some data. Let’s say it’s a record of the number of instances of some things. Let’s say it’s the number of movies you own, grouped by the year they were released. Let’s say you have those data in the form of a dictionary in Python, like so: The following loop will print […]