Skip to content

Instantly share code, notes, and snippets.

Jing Xiao notajingoist

Block or report user

Report or block notajingoist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@notajingoist
notajingoist / recursivepromises.js
Last active Dec 20, 2015
Recursion + Promises by the brilliant @nhunzaker
View recursivepromises.js
function harvest(id, parent) {
var promise = $.Deferred();
var post;
request({
url: "...",
json: true,
timeout: 30000
}, function(error, response, body) {
You can’t perform that action at this time.