Category Archives for code
Storing multiple properties in one integer using bitwise AND
Objects with multiple properties with each their own variable can get a bit messy. Here’s a nice solution to store multiple properties in a single variable.
Creating tileable noise maps
Creating a tileable image in Photoshop is easy; crop an image, take the cropped right and bottom and stick it left and top with a fade. But creating proper tileable noise maps is a bit trickier to get your head around if you want to do it right.
Logo
I really just wanted to update my WordPress core.
Tinysort: a tiny survey
Help me decide whether to move Tinysort to Github… or not…
Android phone DOM
Cleaning up my phone the other day I found some cool stuff. Two years ago I coded some stuff while I was on vacation. This was also on it…
LESS variables to Javascript
LESS CSS is great and all but what if you want to use the same LESS variables in Javascript.
Interactive fluid dynamics in Javascript
Don’t know why, but after seeing Oliver Hunt’s fluid solver I wanted to use fluid dynamics on my site as an interactive particle flowfield.
Using WordPress media library in a plugin
I just spent a couple of hours trying to figure this one out. Here’s how to use the WordPress media library in a plugin or custom post type… the right way.
Javascript performance testing
‘All roads lead to Rome’ is a saying in Dutch that means there are multiple ways to accomplish the same thing. Very true in real life but maybe even more so in programming. You’d think the fastest code is the best, but a lot of times readability is chosen over speed (or, as in most [...]