How to export Chrome CSS code coverage

Google Chrome allows you to export the code coverage as JSON but not as the file. At least not that I could find how to do it. It was easier, however, to find how to generate a new CSS file based on the JSON export. Use this small PHP script to output the used CSS […]

PHP Random Password Generator

How to create a random password generator with PHP. The code basically uses predefined characters to create a string. You can set the length and the strength.

How to calculate relative time PHP

Do you remember the post I wrote about How to calculate relative time like facebook? The code was a little bit messy so today i’ll show you a short snippet.