Category Archives for javascript

Testing for unused functions with Grunt

I’m relatively new to Grunt. I had used it before in several projects but it was already set up and working fine, to I didn’t really look into it. Besides, the sheer amount of options/plugins available put me off a bit. That and time being money. But in between projects I have a bit of [...]

Also posted in code, jquery | Tagged , , , , | Leave a comment

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.

Also posted in actionscript, code, java | Leave a comment

Migrating a subversion repository from Google Code to Github

Recently I migrated TinySort from Google Code to Github. I’m a real Git noob so I expected a full history migration to be a real pain in the ass. Plus I also wanted to move both the open and closed issues (since they correspond to the regression tests). Luckily it turned out to be a [...]

Also posted in code, jquery, python | Tagged , , , , , , | Leave a comment

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…

Also posted in code, html | Leave a comment

LESS variables to Javascript

LESS CSS is great and all but what if you want to use the same LESS variables in Javascript.

Also posted in css, director | Leave a comment

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.

Also posted in code, nature | Tagged , | Leave a comment

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.

Also posted in code, php, wordpress | Tagged , , , , , | Leave a comment

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 [...]

Also posted in code, link | Tagged , , , , , | Leave a comment


I saw something on Zite about the js1k competition. Now I’ve never really been into competitions (the last time I even won something was for a drawing contest when I was 13). And these programming things always look like you have to be some kind of l33t demo haxor or something.

Also posted in code | Tagged , , | Leave a comment

Unit testing private functions in Javascript

For some time now I’ve been unit testing my Javascript with qUnit. Not only good practice, it also saves you an incredible amount of time when it comes to crossbrowser testing your scripts. The only problem I was testing private functions that are hidden within closures.

Also posted in code, jquery | Tagged , | Leave a comment