Skip to content

Instantly share code, notes, and snippets.

View bentruyman's full-sized avatar
🕺

Ben Truyman bentruyman

🕺
View GitHub Profile
// Proto-classical Inheritence?? AMIDOINITRITE
function extend (clazz, superclass) {
clazz.prototype = new superclass;
clazz.superclass = superclass;
}
// So...looks like this is a stripped down version of YUI's Y.extend
var bodyContents = htmlCodez.match(/(?:(?:\s|\S)*<body[^>]*>)((?:\s|\S)*)(?:<\s*\/\s*body\s*\>(?:\s|\S)+)/)[1];