Skip to content

Instantly share code, notes, and snippets.

View derek's full-sized avatar

Derek Gathright derek

View GitHub Profile
@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
@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 / 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: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 / gist:5835076
Last active December 18, 2015 19:48
SELECT REGEXP_EXTRACT(url, r'(yui|jquery|dojo|angular|prototype|backbone|emberjs|sencha|scriptaculous).*\.js') type, count(distinct(pageid)) count,
FROM [httparchive:runs.2013_06_01_requests]
WHERE REGEXP_MATCH(url, r'yui|jquery|dojo|angular|prototype|backbone|emberjs|sencha|scriptaculous.*\.js')
GROUP BY type
ORDER BY count DESC
SELECT pages.pageid, url, cnt, libs, pages.rank rank FROM [httparchive:runs.2013_06_01_pages] as pages JOIN (
SELECT pageid, count(distinct(type)) cnt, GROUP_CONCAT(type) libs FROM (
SELECT REGEXP_EXTRACT(url,
@derek
derek / gist:5777819
Last active December 18, 2015 11:48
YUI Open Roundtable for June 13th, 2013
Y.Model: Instantiate a bare model
┌──────────┬────────────────────────────┬─────────────────────────────┐
│ │ Firefox │ Chrome │
├──────────┼────────────────────────────┼─────────────────────────────┤
│ v3.8.0 │ 3971.37 ±2.80% (-87%) │ 11258.29 ±4.26% (-163%) │
│ v3.9.0 │ 3596.12 ±5.37% (-107%) │ 11661.04 ±3.15% (-154%) │
│ WIP │ 7444.50 ±3.80% (Fastest) │ 29661.83 ±3.30% (Fastest) │
└──────────┴────────────────────────────┴─────────────────────────────┘
Y.Model: Subclass and instantiate a bare model
@derek
derek / gist:5273783
Last active December 15, 2015 14:19
YUI Weekly for March 29th, 2013

Welcome to YUI Weekly, the weekly roundup of news and announcements from the YUI team and community. If you have any interesting demos or links you’d like to share, feel free to leave a comment below.

  • This week saw the release of [YUI 3.9.1][1], a patch release that includes bug fixes and enhancements for [Handlebars][2], [LazyModelList][3] Fixes, and [Y.Tree][4]. Details of all changes can be found in the [YUI 3.9.1 History Rollup][5].

  • With the 3.9 release out the door, planning for the next release of YUI is underway! While it's too early to predict exactly what will be included, something we're hoping to include in a upcoming preview release (hopefully next week) is work from Satyen Desai on Base performance improvements. By including [these updates][6], we're seeing a 2-5x improvements in the [base-benchmark][7] perf tests in Chrome/OSX. Improvements in Base will affect anything extending it, which includes many parts of the library. Stay tuned!

  • For those anxious to get started with t

@derek
derek / gist:5272048
Created March 29, 2013 16:51
Y.Promises documentation

Promises are a tool to help write asynchronous code in a more readable style that looks more like synchronous code.

In short, promises allow you to interact with a value that may or may not be available yet.

@derek
derek / gist:5174220
Last active December 15, 2015 00:38
YUI Weekly for March 15th, 2013

Welcome to YUI Weekly, the weekly roundup of news and announcements from the YUI team and community. If you have any interesting demos or links you’d like to share, leave a comment below.

  • As you've probably seen, 3.9.0 is out! Thanks for your patience while we double-triple checked everything was stable for this feature-filled release. We've compiled a blog post containing all the goodies included in this release. FYI, the next release window is tentatively scheduled for April 16th, but we'll let you know when something is formalized and posted on our Development Schedule wiki.

  • Jeff Burtoft (@boyofgreen) contributed a great blog post explaining how he converted the duck shooter example from yuilibrary.com, and turned it into a fully functional Windows 8 app! Check it out @ [W