This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global YUI*/ | |
/** | |
* Adds expressInstall functionality to SWF | |
* | |
* @module swf-expressinstall | |
* @requires swf | |
*/ | |
YUI.add("swf-expressinstall", function (Y) { | |
"use strict"; | |
var handles = {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global YUI*/ | |
/** | |
* Twitter entity processing made easy. | |
* @module twitter-processentities | |
*/ | |
YUI.add("twitter-processentities", function (Y) { | |
"use strict"; | |
var yArrayEach = Y.Array.each, | |
yLangSub = Y.Lang.sub, | |
startIndexSort = function (a, b) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global YUI*/ | |
/** | |
* Converts an integer into a its proper ordinal ("1st", "2nd", "3rd", "4th") | |
* @module number-to-ord | |
*/ | |
YUI.add("number-to-ord", function (Y) { | |
"use strict"; | |
/** | |
* Converts an integer into a its proper ordinal ("1st", "2nd", "3rd", "4th") | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loader Test</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Ryan Cannon"> | |
<script src="http://www.nfl.com/yui/3.4.1/build/yui/yui-min.js"></script> | |
<script> | |
var YUI_config = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global YUI*/ | |
/** | |
* Adds common array-extras methods to a class that also mixes ArrayList | |
* | |
* Example usage: | |
* | |
* var MyClass = Y.Base.create("myclass", Y.Base, [Y.ArrayList, Y.ArrayListExtras]), | |
* mc = new MyClass(); | |
* | |
* mc.add("hi"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add("twitter-intents",function(a){var g=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,b=550,h=420,i="scrollbars=yes,resizable=yes,toolbar=no,location=yes,width={w},height={h},top={t},left={l}",e=a.config.win,f=e.screen.width,d=e.screen.height,c=function(k){var j=k.currentTarget.get("href");if(g.test(j)){k.halt();e.open(j,"intent",a.Lang.sub(i,{l:Math.round((f/2)-(b/2)),t:d>h?Math.round((d/2)-(h/2)):0,w:b,h:h}))}};a.namespace("Twitter").handleIntents=function(j){return a.one(j).delegate("click",c,"a")}},"3.4.1",{requires:["event-delegate","node-base"]}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add("facebook", function (Y) { | |
"use strict"; | |
var isFunction = Y.Lang.isFunction, | |
queue = [], | |
win = Y.config.win, | |
FB; | |
function queueInArray(callback) { | |
queue.push(callback); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin h5bp-normalize( | |
$selection-color: #FFF, | |
$selection-bg: #FE57A1, | |
$text-color: #222, | |
$link-color: #00e, | |
$link-visited-color: #551a8b, | |
$link-hover-color: #06e, | |
$mark-bg: #ff0, | |
$mark-color: #000, | |
$ins-color: #000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
input = STDIN.read | |
match = /^\s*rgba?\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,[\d\.]+)?\s*\)(\s*;?)/.match(input) | |
if !match.nil? # RGB -> Hex | |
res = "#" | |
short_safe = true | |
matches = [match[1], match[2], match[3]].map do |m| | |
h = m.to_i.to_s(16) | |
if h.length == 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YUI.add("widget-node-builder", function (Y) { | |
/** | |
* Extension enabling a Widget to easily build DOM. | |
* | |
* @module widget-node-builder | |
*/ | |
var yNodeCreate = Y.Node.create, | |
yObjectEach = Y.Object.each, |