PHP Lint syntax checker as a vim plugin

I recently worked on a vim plugin that allows me to check the current PHP file I am editing for syntax errors. If no errors are found it will print a status message on the screen. Otherwise, the vim quickfix window will popup allowing you to view all syntax erros and jump to that syntax error.

Read more

Git pre-commit hook for PHP projects

When working on PHP projects -- well on any project for that matter -- I always like to commit code that does not contain embarrassing mistakes. I created a simple git pre commit hook that I always install locally on my git repositories.

Read more

jQuery Tocreator Plugin

Minified version less then 1 kb!


jquery-tocreator is a simple jquery plugin allowing you to create a table of contents on the fly based on a given css style selector.

Read more

Quicksave for later Bookmarklet

This bookmarklet for Google Bookmarks allows you to quickly save a webpage without opening a popup.

This is especially handy when working on the iPad where clicking on the default Google bookmarklet opens up a new tab where you have to fill in a form, hit submit, wait for the tab to auto close and then continue browsing. With all the animations that take place, this can take up 30 seconds of your time.

Read more

A page filling slideshow html and javascript only

A while ago I started working on a idea to create a html only website with window filling photos on the background that change just like a slideshow does. Just like the kind of sites you usually see that are made in Flash or Flex.

I looked around for possible solutions on Google and figured that I had to do it myself. Now, based on the code of Scott Robin's Backstretch plugin I created a small one-line-of-code jquery plugin that does just this.

You can download the plugin from github here.

Preferably the plugin should work on all tablets as well.

Read more