paul's snippets

Get more space for your text in gVim, add it to your .vimrc !

set guioptions-=m  "remove menu bar
set guioptions-=T  "remove toolbar
set guioptions-=r  "remove right-hand scroll bar
set guioptions-=M

Saves you quite a bunch of time ! Run xmodmap on a file with the following content.

remove Lock = Caps_Lock                                                 
keysym Caps_Lock = Escape

Ajout d'une méthode pour valider des expressions régulières pour jQuery validation.

$.validator.addMethod(
    "regexp",
    function(value, element, regexp) {
       var re = new RegExp(regexp);
       return this.optional(element) || re.test(value);
    },
    "Please check your input."
);