Skip to content

Instantly share code, notes, and snippets.

View derek's full-sized avatar

Derek Gathright derek

View GitHub Profile
@derek
derek / index.html
Created July 19, 2012 08:00
App example - Github Contributors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example: GitHub Contributors - YUI Library</title>
<meta name="viewport" content="width=960" id="meta-viewport">
<script>
if (screen.width < 768) {
document.getElementById('meta-viewport').setAttribute('content', 'width=768');
@derek
derek / README.md
Created August 17, 2012 02:06
Loading YUI from the CDN into a Web Worker

Scenario

I want to use YUI inside of a WebWorker thread. Flickr recently wrote a post on this very topic, Web workers and YUI.

Problem

But I want to use YUI's CDN, which WebWorkers prevent because it enforces a same-origin policy with importScripts()

Solution

@derek
derek / gist:3522590
Created August 30, 2012 05:09
3.7.0pr1 ScrollView Release Notes

3.7.0pr1 ScrollView Release Notes

Y.ScrollView overview

  • Added: axis configuration property to force the axis. If unspecified, ScrollView will attempt to detect which direction to scroll (based off overflow content). ScrollView also now supports scrolling on both axes (not at the same time). axis accepts 'x', 'y', or 'xy', and maps to the scrollview.axis property (an object) after initialization. For example:

     var scrollview = new Y.ScrollView({
     	srcNode: '#myScrollview',
    

width: 400,

@derek
derek / gist:3709043
Created September 12, 2012 18:51
3.7.0pr2 ScrollView Release Notes

3.7.0pr2 ScrollView Release Notes

In addition to the new features detailed in the 3.7.0PR1 blog post (support for dual-axis, forced-axis, and RTL), the PR2 release of ScrollView also introduces a refactored _flickFrame method (ca118aa). This is notable because that method is the internal JS timer scrollview-base uses for flick animations. Previously it did up to 4 get() attribute lookups per frame, but in PR2 that has been reduced to no lookups. Because less lookups = more speed, on faster browsers (iOS5, modern desktop browsers) where those ATTR lookups were a bottleneck, you should see an even smoother animation. If you want to help test it out, compare the flick behavior in PR2 to previous versions, and let us know if you notice any quirks.

Also updated in PR2, for anyone using multiple ScrollView instances on a page, you now have the ability to a

@derek
derek / gist:3745807
Created September 18, 2012 20:51
3.7.0GA ScrollView Release Notes

3.7.0 ScrollView Release Notes

Y.ScrollView overview

  • Added: axis configuration property give it a forced axis. If unspecified, ScrollView will attempt to detect which direction to scroll (based off overflow content). Valid values for this attribute are 'x', 'y', or 'xy'.

  • Added: ScrollView now supports scrolling on both axes (though not at the same time, aka: "panning") by specifying 'xy' as the axis value. Dual-axis support should remove most use-cases when nested ScrollView instances were required to achieve X+Y scroll capabilities.

@derek
derek / gist:3760689
Created September 21, 2012 09:54
YUI Weekly - Sept 21st, 2012
  • 3.7.0 is out! This was the first release on our shorter release cycle, but there was still a lot packed into the month since 3.6.0. You'll find some nice improvements with custom events, a big update to ScrollView, new modules like event-tap, node-scroll-info, and lots more! Some quick follow up releases are also out the door with 3.7.1 and 3.7.2.

  • A big warm welcome to Andrew Wooldridge (@triptych) who joins the YUI Team as our first community engineer. Andrew is a current Yahoo and long-time member of the YU

@derek
derek / gist:3880719
Created October 12, 2012 18:34
Gallery modules needing Prettify upgrades
./src/gallery-alea/api/assets/vendor/prettify
./src/gallery-anim-morph/api/assets/vendor/prettify
./src/gallery-any-base-converter/api/assets/vendor/prettify
./src/gallery-array-iterate/api/assets/vendor/prettify
./src/gallery-array-unnest/api/assets/vendor/prettify
./src/gallery-async/api/assets/vendor/prettify
./src/gallery-async-command/api/assets/vendor/prettify
./src/gallery-async-command-clone/api/assets/vendor/prettify
./src/gallery-async-command-delay/api/assets/vendor/prettify
./src/gallery-async-command-timeout/api/assets/vendor/prettify
@derek
derek / gist:3881033
Created October 12, 2012 19:32
YUI Weekly for October 12th, 2012
  • YUIConf 2012 is quickly approaching! Tickets are now available, and we just posted some new hotel information for anyone traveling into the Bay Area. Thanks to everyone who submitted a speaker proposal. We're currently digging through those and you'll hear back from us soon!

  • Development on YUI 3.7.3 is just about complete and should be out the door next week. This minor version bump will bring improved Windows 8 and Internet Explorer 10 support to YUI, which has been the bulk of core development over the previous few weeks. As always, check out our Github wiki for more details about upcoming releases.

  • The Y.Soon pull request is getting some lively discussion, so chime on Github if you have any thoughts on it being included in YUI's core. For some backgroun

@derek
derek / gist:3920889
Created October 19, 2012 21:36
YUI Weekly for October 19th, 2012
  • Just a reminder that YUIConf 2012 is coming up in a few weeks! You can purchase tickets here, and we'll be posting a speaker lineup soon.

  • This week saw the release of YUI 3.7.3, a patch release to bring improved support for Windows 8. While the target of this release was WinJS and IE10, we still encourage everyone using YUI 3.7 to upgrade since some updates will also help out non-IE10 browsers (e.g. Y.Transition fix for Firefox 16). You can learn more about this release from the announcement as well as reviewing the history rollup. Kudos to everyone who for the assistance with testing and pull requests!

  • Earlier this week, Dav Glass (@davglass) announced that YUI Compressor has been

@derek
derek / gist:3961188
Created October 26, 2012 20:11
YUI Weekly for October 26th, 2012
  • YUIConf 2012 is just 19 days away! The speakers and sessions have been announced, and we'll be posting the schedule as soon as it is finalized. Act fast, because early-bird registration is only available for a few more days!

  • With YUI 3.7.3 out the door, we now turn our focus towards benchmarking and improving performance, as well as preparation for YUIConf. The next scheduled release is a preview release for 3.8 on November 13th, but we may also see early an preview release, as well as possible 3.7 patch releases. You can stay on top of everything going into 3.8 by following the 3.x [branch](https://github.co