Skip to content

Instantly share code, notes, and snippets.

View derek's full-sized avatar

Derek Gathright derek

View GitHub Profile
@derek
derek / gist:5835728
Last active November 22, 2016 21:11
Velocity 2013 Notes

Velocity Conference 2013

Day 1 Keynotes

What, Where, and When is Risk in System Design

@derek
derek / index.html
Last active December 18, 2015 23:19
reqYUIre.js - An experiment loading and using AMD'ish modules with YUI
<!DOCTYPE html>
<html>
<head>
<script src='http://yui.yahooapis.com/3.10.2/build/yui/yui-min.js'></script>
<script src='reqyuire.js'></script>
</head>
<body>
<script>
require.config({
paths: {
@derek
derek / gist:5873943
Created June 27, 2013 04:26
Y.Promise performance test results
Promise creation
┌──────────────┬───────────────────────────────────┬────────────────────────────────────┬────────────────────────────────┐
│ │ Chrome │ Safari │ Firefox │
├──────────────┼───────────────────────────────────┼────────────────────────────────────┼────────────────────────────────┤
│ v3.9.1 │ 8982495.01hz ±3.53% (4% slower) │ 1529537.13hz ±2.62% (11% slower) │ 369421.66hz ±3.75% (Fastest) │
│ v3.10.3 │ 9013158.14hz ±2.92% (4% slower) │ 1639490.93hz ±2.75% (3% slower) │ 342193.57hz ±5.09% (8% slower)│
│ v3.11.0pr1 │ 9330503.41hz ±1.43% (Fastest) │ 1696566.88hz ±1.51% (Fastest) │ 354362.87hz ±4.05% (4% slower)│
└──────────────┴───────────────────────────────────┴────────────────────────────────────┴────────────────────────────────┘
Single callback resolution
@derek
derek / gist:5886972
Created June 28, 2013 18:39
YUI Open RoundTable Meeting Notes June 27, 2013

YUI Open RoundTable Meeting Notes June 27, 2013

  • Participants:
    • Rashad
    • Tilo
    • Patrick
    • Eugene
    • Clarance
    • Derek
  • Topics Discussed
// Obfuscated
function (t) {
var r1365158103887,
s1365158103887,
m1365158103887 = this,
f1365158103887 = m1365158103887.fn,
i1365158103887 = m1365158103887.count,
n1365158103887 = t1365158103887.ns; // no operation performed
s1365158103887 = n1365158103887.now();
while (i1365158103887--) {
@derek
derek / README.md
Last active December 19, 2015 18:58

Walkdown

Walks a directory looking for Markdown files and converts them to HTML.

Installing

$ git clone https://gist.github.com/6002636.git
$ cd 6002636
$ sudo npm install -g
yogi [info] using [email protected] on [email protected]
yogi [info] using module: anim
yogi [info] running lint on source files
/Users/derek/src/yui/yui3/src/anim/js/anim-color.js
/Users/derek/src/yui/yui3/src/anim/js/anim-curve.js
/Users/derek/src/yui/yui3/src/anim/js/anim-easing.js
/Users/derek/src/yui/yui3/src/anim/js/anim-node-plugin.js
/Users/derek/src/yui/yui3/src/anim/js/anim-scroll.js
/Users/derek/src/yui/yui3/src/anim/js/anim-shape.js
/Users/derek/src/yui/yui3/src/anim/js/anim-xy.js
@derek
derek / 1-raw.json
Last active December 22, 2015 20:59
[
{
"unit": "Hz",
"name": "Y.Model: Instantiate a bare model",
"value": 5818.296044147161,
"stats": {
"moe": 0.0000014629321229748081,
"rme": 0.8511772183960135,
"sem": 7.463939402932695e-7,
"deviation": 0.0000061549221083002235,
@derek
derek / up-down.txt
Last active December 26, 2015 06:19
┌─ attribute-base
├─ attribute-complex
├─ attribute-core
├─ attribute-extras
├─ attribute-observable
├─ base-base
├─ base-core
├─ base-observable
├─ base-pluginhost
@derek
derek / gist:7159637
Last active December 26, 2015 13:39
var suite = new PerfSuite('pathogen prefix tree compression', {
assets: ['assets/gallery-pathogen-encoder-min.js'],
yui: {
use: ['gallery-pathogen-encoder'],
config: {
modules: {
'gallery-pathogen-encoder': 'assets/gallery-pathogen-encoder-min.js'
}
}
},