Please note: this blog has been migrated to a new location at https://jakesgordon.com. All new writing will be published over there, existing content has been left here for reference, but will no longer be updated (as of Nov 2023) I recently built a ruby gem for auto generating CSS Sprites. It’s simple and flexible, and can be used to generate sprites in either a horizontal or a vertical layout. T
![Binary Tree Bin Packing Algorithm](https://cdn-ak-scissors.b.st-hatena.com/image/square/b6c52c429d73c9ab6a02b6f84afa22c7c21b934b/height=288;version=1;width=512/https%3A%2F%2Fcodeincomplete.com%2Fimages%2Fbrand.e0292570a36e5568dcf7f87a7bb5cc72443280f97a42b68acd6b3899339da569.png)