Skip to content

Instantly share code, notes, and snippets.

@deepthawtz
Created November 11, 2010 22:22
Show Gist options
  • Select an option

  • Save deepthawtz/673315 to your computer and use it in GitHub Desktop.

Select an option

Save deepthawtz/673315 to your computer and use it in GitHub Desktop.
didn't really know YQL was this awesome
// example runs in node.js
// npm install yui3
var sys = require("sys")
, YUI = require("yui3").YUI
;
YUI().use("gallery-yql", function(Y) {
var q = "select * from github.user.info where (id = 'deepthawtz')"
, o = new Y.yql(q)
;
o.on("query", function(r) {
sys.puts(sys.inspect(r));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment