Skip to content

Instantly share code, notes, and snippets.

View grovesdm's full-sized avatar

Daniel Michael grovesdm

View GitHub Profile
@grovesdm
grovesdm / jquery.email-antispam.js
Created March 23, 2017 04:17 — forked from mathiasbynens/jquery.email-antispam.js
Simple spam protection for email addresses using jQuery
/* Simple spam protection for email addresses using jQuery.
* Well, the protection isn’t jQuery-based, but you get the idea.
* This snippet allows you to slightly ‘obfuscate’ email addresses to make it harder for spambots to harvest them, while still offering a readable address to your visitors.
* E.g.
* <a href="mailto:foo(at)example(dot)com">foo at example dot com</a>
* →
* <a href="mailto:foo@example.com">foo@example.com</a>
*/
$(function() {
@grovesdm
grovesdm / 0_reuse_code.js
Created April 9, 2016 13:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console