Skip to content

Instantly share code, notes, and snippets.

View ericf's full-sized avatar

Eric Ferraiuolo ericf

View GitHub Profile
@ericf
ericf / gist:4558180
Last active December 11, 2015 06:18
{
"align_indent": false,
"alignment_chars":
[
"=",
":"
],
"alignment_space_chars":
[
"="
@ericf
ericf / 3.8.0.txt
Last active December 10, 2015 00:08
Starting benchmarks.
Base x 12,721 ops/sec ±1.62% (92 runs sampled)
MyBase x 10,975 ops/sec ±4.68% (82 runs sampled)
MyBase with 10 simple value attributes x 7,674 ops/sec ±3.96% (90 runs sampled)
MyBase with 20 varied attributes x 4,157 ops/sec ±2.24% (81 runs sampled)
BaseCore x 41,917 ops/sec ±4.44% (81 runs sampled)
MyBaseCore x 44,374 ops/sec ±2.22% (90 runs sampled)
MyBaseCore with 10 simple value attributes x 15,058 ops/sec ±2.21% (91 runs sampled)
MyBaseCore with 20 varied attributes x 5,083 ops/sec ±4.71% (73 runs sampled)
Finished.
var app = new Y.App();
app.notify = function (req, res, next) {
if (!this._route_evt) {
this._route_evt = this.publish('route', {
defaultFn: function () {
next();
}
});
}
// How would we implement lazy consensus on Pull Requests?
function canMerge(pr) {
var reviews = YUI.get('reviewers');
if (reviews.whoObject().length) {
return false;
}
if (reviewers.haveSignedOff().length ||
var fs = require('fs'),
path = require('path'),
Y = require('yui/oop'),
CONFIG_FILE = 'config.json',
NODE_ENV = process.env.NODE_ENV,
PORT = process.env.PORT,
ENV = {
development: NODE_ENV !== 'production',
Y.Order = Y.Base.create('order', Y.Model, [Y.ModelSync.REST], {
root: '/orders/',
initializer: function () {
this._products = new Y.ModelList({model: 'Product'});
},
_getProducts: function () {
return this._products;
},
[15:04:57] <@rgrove> Oh yuck, Pixelmator mangles it and I don't have Photoshop anymore. :/
[15:06:17] <@eric_f> email me the PSD, and I'll sick allen on it.
[15:07:20] deryck[lunch] is now known as deryck
[15:07:36] jinsley (3ebd7081@gateway/web/freenode/ip.62.189.112.129) left IRC. (Ping timeout: 245 seconds)
[15:07:38] <@triptych> 30 day trial?
[15:07:54] <@eric_f> Not worth that just to change 1 char.
[15:08:01] MattatLamplight (56913443@gateway/web/freenode/ip.86.145.52.67) left IRC. (Ping timeout: 245 seconds)
[15:08:50] <@rgrove> Installing Acorn
[15:10:35] Kaitana (~Kaitana@209.167.10.98) left IRC. (Ping timeout: 264 seconds)
[15:10:38] PQR (~PQR@188.123.241.220) left IRC. (Remote host closed the connection)
==> [Warning] File not found: /data/yui3/build/cssbutton/button-min.css
==> [Warning] File not found: /data/yui3/build/cssbutton/button.css
==> [Warning] File not found: /data/yui3/build/cssgrids-base/grids-base-min.css
==> [Warning] File not found: /data/yui3/build/cssgrids-base/grids-base.css
==> [Warning] File not found: /data/yui3/build/cssgrids-units/grids-units-min.css
==> [Warning] File not found: /data/yui3/build/cssgrids-units/grids-units.css
==> [Warning] Unknown or missing item type: undefined
{ file: 'button/js/group.js',
line: 177,
description: 'Selector used to find buttons inside a ButtonGroup',
@ericf
ericf / iframe_create_element.txt
Created October 2, 2012 23:37
Uses of iframes in YUI's source
Searching 1219 files for "createElement\(['"]iframe" (regex, case sensitive)
/Users/eferraiuolo/Code/yui/yui3/src/test/js/Reporter.js:
115 this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
116 } catch (ex){
117: this._iframe = document.createElement("iframe");
118 this._iframe.name = "yuiTestTarget";
119 }
/Users/eferraiuolo/Code/yui/yui3/src/test/tests/unit/assets/bugs-tests.js:
Y.PullsList = Y.Base.create('pullsList', Y.ModelList, [], {
sync: function (action, options, callback) {
var url = 'https://api.github.com/repos/yui/yui3/pulls?callback={callback}';
Y.jsonp(url, function (res) {
var meta = res.meta,
data = res.data;
if (meta.status >= 200 && meta.status < 300) {
callback(null, res);