Skip to content

Instantly share code, notes, and snippets.

View azemetre's full-sized avatar
🎯
Focusing on documentation

Aaron Zemetres azemetre

🎯
Focusing on documentation
View GitHub Profile
@azemetre
azemetre / gist:8776552
Created February 2, 2014 23:19
CSS: Image Replacement
.ir {
border: 0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@azemetre
azemetre / gist:8776537
Created February 2, 2014 23:18
JavaScript: Sexy PubSub
// Works in modern browsers + IE9, but Modernizer has a polyfill baked in for function.bind.
// Hat tip Paul Irish
var o = $( {} );
$.subscribe = o.on.bind(o);
$.unsubscribe = o.off.bind(o);
$.publish = o.trigger.bind(o);
@azemetre
azemetre / gist:8776427
Created February 2, 2014 23:11
HTML: Starting Template
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>