Check out my latest project: Code Dumper

Archive for the "Code" Tag

Query String to Object via regex

Just sharing a nice little code snippet that makes use of regular expressions instead of loops for converting.

Pronounceablely Random

If you work in a secure(ish) environment then you'll be changing passwords on a regular basis. An old colleague and I came up with a script that would generate a password based on fictional words from a dictionary lookup. Then we/he realised that this could actually be generated on the fly, be completely random and still [...]

Code Highlighting

Since I'm always posting code snippets, it made sense to apply some syntax highlighting. There's a few different ways to achieve this depending on your preference.

del.icio.us-like Text Grow jQuery Plugin

If you're familiar with the del.icio.us tag search box, then you'll know it will grow with the length of the content you enter. This is particularly useful for search boxes or tagging entry boxes, though the only downfall (I think) of del.icio.us's entry box is that it can grow to become wider than the entire page [...]

Auto input grow with CSS (but is it a bug?)

I've been looking at the del.icio.us auto text grow functionality recently, and noticed you can achieve a similar effect in CSS, but only for IE. I originally thought this was a bug since it didn't work in Firefox or Safari.