Skip to content

Instantly share code, notes, and snippets.

View lrobeson's full-sized avatar

Laura Robeson lrobeson

View GitHub Profile
@lrobeson
lrobeson / 0_reuse_code.js
Created January 28, 2014 21:20
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
@lrobeson
lrobeson / last_child.js
Created July 3, 2014 02:17 — forked from bytehead/last_child.js
Add last-child class in IE 8
// Add last-child class in IE 8
// source: https://gist.github.com/nathansmith/950767
function last_child() {
if (/msie [1-8]{1}[^0-9]/.test(navigator.userAgent.toLowerCase())) {
$('*:last-child').addClass('last-child');
}
}