_array

05 June 2008 // php. things.

_array is a (yet another) attempt to create object oriented API for php arrays.

download

more...

makrell 0.1

20 May 2008 // php. things.

First "release" of makrell

download

documentation

test file (requires testik)

TableSort: custom sort rules

05 April 2008 // javascript. things.

Meritxell asked me how to use TableSort to sort a column based on a DOM attribute (checkbox "checked" value in that case). Well, in the original version it wasn't possible, but it was very easy to add.

more...

testik, the little unit tester

02 April 2008 // php. things.

Unit testing and TDD are great and so is SimpleTest, however there's a problem: you have to write code for tests, and sometimes quite a lot. And this code is often not really readable and self-documented. testik is an attempt to make testing as simple as it could be.

more...

simple string interpolation in javascript

11 March 2008 // javascript. stuff.

two-liner that adds perl/php style string interpolation to javascript

more...

cut-and-paste technique for complex regexps

07 March 2008 // php. stuff.

It's often desired to transform some text ignoring specific parts of it. The "classical" example is to replace something in html, not touching the tags.

more...