Skip to content

Instantly share code, notes, and snippets.

View natekoechley's full-sized avatar

Nate Koechley natekoechley

View GitHub Profile

Hello World

Anybody out there?

Lorem ipsum.

  • one
  • two
  • three
.gradient {background-image: -moz-linear-gradient(top, #fff, #e9eef1); /*Firefox*/
background-image: -webkit-gradient(linear, center top, center bottom, from(#fff),to(#e9eef1)); /*Safari/Chrome*/
-ms-filter: "progid:DXImageTransform.Microsoft.Gradient(StartColorStr=#fff,EndColorStr=#e9eef1)"; /*IE8*/
background-image: linear-gradient(top, #fff, #e9eef1); /*Standard*/
}
.gradient {background-image: -moz-linear-gradient(top, #fff, #e9eef1); /*Firefox*/
background-image: -webkit-gradient(linear, center top, center bottom, from(#fff),to(#e9eef1)); /*Safari/Chrome*/
-ms-filter: "progid:DXImageTransform.Microsoft.Gradient(StartColorStr=#fff,EndColorStr=#e9eef1)"; /*IE8*/
background-image: linear-gradient(top, #fff, #e9eef1); /*Standard*/
}
YUI({
yui2: '2.8.1',
'2in3': '3'
}).use('node', 'dump', 'json', 'event', 'event-custom', 'dom', 'io', 'anim', 'overlay', 'widget-anim', 'yui2-animation', 'yui2-get', 'yui2-connection', 'yui2-autocomplete', function(Y) {
var YAHOO = Y.YUI2;
if(Y.one("#page-add")) {
YAHOO.acItem = (function(){
if(nItemsToShow > 0) {
// Make sure container and helpers are ready to go
if(!this._elList || (this._elList.childNodes.length < nItemsToShow)) {
this._initListEl();
}
this._initContainerHelperEls();
var allListItemEls = this._elList.childNodes;
// Fill items with data from the bottom up
for(var i = nItemsToShow-1; i >= 0; i--) {
<!DOCTYPE html>
<html lang="en">
<head>
<script src="http://yui.yahooapis.com/combo?3.2.0pr1/build/yui/yui-min.js"></script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>DragDrop</title>
<meta name="author" content="Nate Koechley">
<style type="text/css" media="screen">
@natekoechley
natekoechley / testing for a node
Created August 12, 2010 18:02
Test for a YUI Node's presence
// Version #1. Avoid. Cumbersome.
// this syntax
if (Y.one("#myNode")) {
var node = Y.one("#myNode");
node.doStuff;
}
// Version #2 -- BEST VERSION
// is better written as
var node = Y.one('#myNode');
for (var i=0; i < aItems.length; i++) {
strip = [];
strip[0] = "<div class=\"table\">";
strip[1] = "<div class=\"tr\">";
strip[2] = "<div class=\"td img\"><div class=\"inner\"><img src=\""+STATICROOT+aItems[i].image+"_50x50.jpg\"></div></div>";
strip[3] = "<div class=\"td details\">";
strip[4] = "<h3 class=\"name\">"+aItems[i].name+"</h3>";
if (aItems[i].specs) {
strip[5] = "<p class=\"specs\">"+aItems[i].specs+"</p>";
<!DOCTYPE html>
<html lang="en">
<head>
<script src="http://yui.yahooapis.com/combo?3.2.0pr1/build/yui/yui-min.js"></script>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>lib.valuechange</title>
</head>
<body>
var anim = new Y.Anim({
node: bike,
duration: 3,
from: {
"left":"0px",
"top": "500px"
},
to: {curve: [
[bike.get('winWidth')*.5,-50],
[bike.get('winWidth')*.9,350]