Skip to content

Instantly share code, notes, and snippets.

View dancrowley303's full-sized avatar

Dan Crowley dancrowley303

View GitHub Profile
var Laws = {
drinking_age : function (fn) {
fn.call(this, this.age > 21);
}
}
/* snip */
Laws.drinking_age.call(this, function (able_to_drink) {
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#container
{
width: 900px;
overflow: hidden;
padding: 0;
background: #000;