Skip to content

Instantly share code, notes, and snippets.

@moyhig
Created November 6, 2012 05:44
Show Gist options
  • Save moyhig/4022832 to your computer and use it in GitHub Desktop.
Save moyhig/4022832 to your computer and use it in GitHub Desktop.
2012/11/06
var sys = require('sys'),
jsdom = require('jsdom');
var document = jsdom.jsdom("<html><head></head><body></body></html>");
var window = document.createWindow();
jsdom.jQueryify(window, "http://code.jquery.com/jquery-1.8.2.js", function(window,$) {
$.getJSON("https://api.github.com/gists/3985489?callback=?",
function(data) {
sys.print(JSON.stringify(data, null, 4) + "\n");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment