Skip to content

Instantly share code, notes, and snippets.

@dhoss
Forked from okuryu/yui.coffee
Created December 29, 2012 18:49
Show Gist options
  • Save dhoss/4408650 to your computer and use it in GitHub Desktop.
Save dhoss/4408650 to your computer and use it in GitHub Desktop.
$ node yui.js
info: (yui): Modules missing: io, 1
info: (yui): Fetching loader: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/loader/loader-debug.js
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/loader/loader-debug.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/loader/loader-debug.js
info: (yui): Modules missing: oop,parallel,event-custom-base,nodejs-dom,event-base,dom,node-base,dom-style-ie,node-style,queue-promote,datatype-xml,io,io-nodejs, 13
info: (yui): Using Loader
info: (loader): attempting to load oop, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/oop/oop-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/oop/oop-min.js
info: (loader): attempting to load parallel, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3/0.5.31/package/lib/yui3-parallel.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3/0.5.31/package/lib/yui3-parallel.js
info: (loader): attempting to load event-custom-base, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/event-custom/event-custom-base-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/event-custom/event-custom-base-min.js
info: (loader): attempting to load nodejs-dom, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3/0.5.31/package/lib/yui3-dom.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3/0.5.31/package/lib/yui3-dom.js
info: (loader): attempting to load event-base, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/event/event-base-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/event/event-base-min.js
info: (loader): attempting to load dom, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/dom/dom-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/dom/dom-min.js
info: (loader): attempting to load node-base, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/node/node-base-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/node/node-base-min.js
info: (loader): attempting to load dom-style-ie, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/dom/dom-style-ie-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/dom/dom-style-ie-min.js
info: (loader): attempting to load node-style, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/node/node-style-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/node/node-style-min.js
info: (loader): attempting to load queue-promote, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/queue-promote/queue-promote-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/queue-promote/queue-promote-min.js
info: (loader): attempting to load datatype-xml, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/datatype/datatype-xml-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/datatype/datatype-xml-min.js
info: (loader): attempting to load io, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/io/io-min.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/io/io-min.js
info: (loader): attempting to load io-nodejs, /usr/local/lib/node/.npm/yui3-core/3.3.0/package/build/
info: (get): URL: /usr/local/lib/node/.npm/yui3/0.5.31/package/lib/yui3-io.js
info: (get): Loaded: /usr/local/lib/node/.npm/yui3/0.5.31/package/lib/yui3-io.js
info: (loader): loader finishing: success, yui_3_3_0_1_13002014392681, yui-base,oop,parallel,event-custom-base,nodejs-dom,event-base,dom,node-base,dom-style-ie,node-style,queue-promote,datatype-xml,io,io-nodejs
info: (yui): Attaching available dependencies: yui-base,oop,parallel,event-custom-base,nodejs-dom,event-base,dom,node-base,dom-style-ie,node-style,queue-promote,datatype-xml,io,io-nodejs
info: (yui): Nested use callback: yui-base,oop,parallel,event-custom-base,nodejs-dom,event-base,dom,node-base,dom-style-ie,node-style,queue-promote,datatype-xml,io,io-nodejs
info: (yui): caching request: io
info: (nodeio): Requesting (GET): feeds.yuiblog.com
info: (nodeio): Using new 0.4.0 http.request
info: (nodeio): URL: /YahooUserInterfaceBlog
info: YUI: Open Hours Thurs March 17th
info: YUI 2.9.0 Preview Release Is Now Available
info: CSS Border Tricks with Collapsed Boxes
info: Filtering the Data Displayed by YUI 3 DataTable
info: YUI: Open Hours Wed March 2nd
info: YUI: Open Hours Thurs Feb 24th
info: YUI: Open Hours Thurs Feb 17th
info: Announcing Atlanta Meetup: “YUI 3: An Introduction”, presented by YUI Contributor Anthony Pipkin
info: YUI: Open Hours Thurs Feb 3rd
info: Treeble with YUI 3 DataTable
YUI = require("yui3").YUI
xml2js = require("xml2js-expat")
YUI().use "io", (Y) ->
Y.io "http://feeds.yuiblog.com/YahooUserInterfaceBlog", {
xdr: {
use: "nodejs"
},
on: {
success: (io, o) ->
parser = new xml2js.Parser()
if parser.parse o.responseText
for item in parser.resultObject.channel.item
Y.log item.title
}
}
(function() {
var YUI, xml2js;
YUI = require("yui3").YUI;
xml2js = require("xml2js-expat");
YUI().use("io", function(Y) {
return Y.io("http://feeds.yuiblog.com/YahooUserInterfaceBlog", {
xdr: {
use: "nodejs"
},
on: {
success: function(io, o) {
var item, parser, _i, _len, _ref, _results;
parser = new xml2js.Parser();
if (parser.parse(o.responseText)) {
_ref = parser.resultObject.channel.item;
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
item = _ref[_i];
_results.push(Y.log(item.title));
}
return _results;
}
}
}
});
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment