Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rwaldin on github.
  • I am raywaldin (https://keybase.io/raywaldin) on keybase.
  • I have a public key ASDFrsEOXmP3sGDfJ2OU7p4K-bZkaiAaXv4Jezl3kPD_mgo

To claim this, I am signing this object:

{
"manifest_version": 2,
"name": "User styles",
"version": "0.1",
"content_scripts": [{
"matches": ["*://*/*"],
"all_frames": true,
"css": ["style.css"]
}]
}

EpoxyJS strict mode caller bug

Calling getBinding() on a Backbone.Epoxy.View from a strict mode caller results in TypeError on Safari

A Pen by Ray Waldin on CodePen.

@rwaldin
rwaldin / README.md
Created August 15, 2013 21:25 — forked from mbostock/.block

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

/*
* This product includes color specifications and designs developed by Cynthia
* Brewer (http://colorbrewer.org/).
*/
.YlGn .q0-3{fill:rgb(247,252,185)}
.YlGn .q1-3{fill:rgb(173,221,142)}
.YlGn .q2-3{fill:rgb(49,163,84)}
.YlGn .q0-4{fill:rgb(255,255,204)}
.YlGn .q1-4{fill:rgb(194,230,153)}
.YlGn .q2-4{fill:rgb(120,198,121)}
// render the HTML elements of a page on load using phantomjs:
// > phantomjs renderHTML.js {url} [{selector}]
var page = require('webpage').create(),
args = require('system').args,
url = args[1],
selector = args[2] || ':root';
page.onConsoleMessage = function (msg) {
console.log(msg);