Skip to content

Instantly share code, notes, and snippets.

@davglass
Created April 6, 2011 19:30
Show Gist options
  • Select an option

  • Save davglass/906348 to your computer and use it in GitHub Desktop.

Select an option

Save davglass/906348 to your computer and use it in GitHub Desktop.
npm install yui-repl;
yui3;
YUI@3.3.0> .load http://yuilibrary.com/
Resetting Y to the default state [done]
Fetching URL: http://yuilibrary.com/ [done]
YUI@3.3.0> .debug
Setting debug on the Y instance to: true
YUI@3.3.0> .get https://gist.github.com/raw/906348/d8905da82e08bc55d8c5f879a4a3eb2fa5dea4d4/include.js
Fetching Script: https://gist.github.com/raw/906348/d8905da82e08bc55d8c5f879a4a3eb2fa5dea4d4/include.js [done]
YUI@3.3.0> .use davglass
Using modules: davglass [done]
YUI@3.3.0> Y.davglass();
info: This page has 90 hrefs on it.
YUI.add('davglass', function(Y) {
Y.davglass = function() {
var a = Y.all('a').size();
Y.log('This page has ' + a + ' hrefs on it.');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment