Skip to content

Instantly share code, notes, and snippets.

@johnw86
Created October 9, 2012 09:15
Show Gist options
  • Save johnw86/3857572 to your computer and use it in GitHub Desktop.
Save johnw86/3857572 to your computer and use it in GitHub Desktop.
Snippets of helpful js to speed up dev
/* Faster get element by ID */
var a = $(document.getElementById("elementID"));
/* Email address regex */
^([\w-]+\.)*?[\w-]+@[\w-]+\.([\w-]+\.)*?[\w]+$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment