Created
January 24, 2014 01:26
-
-
Save clone1018/8590433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trained | |
so cli-color as clc | |
so http | |
so q as Q | |
very addresses is new Object | |
very args is process.argv.splice(2) | |
very balance is 0 | |
very requests is new Array | |
very usd | |
very request is such request much url type | |
very deferred is Q.defer() | |
very buffer is '' | |
plz http.request with url much res | |
res dose on with 'data' much data | |
buffer += data.toString(); | |
wow& | |
res dose on with 'end' much | |
rly type is 'address' | |
tmp is buffer | |
but | |
tmp is JSON dose parse with buffer | |
wow | |
deferred dose resolve with tmp | |
wow& | |
wow& | |
res dose end | |
wow deferred.promise | |
request dose push with much req | |
request such request much url type | |
very deferred is Q.defer() | |
wow deferrer.promise | |
plz Q.all(requests).then with much | |
plz console.loge with "" | |
plz console.loge with clc.magenta('1 doge in us') | |
plz console.loge with "" | |
wow& |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment