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
#curl https://gist.githubusercontent.com/tyrsius/7324aaa515ade384cb1c/raw/927e4cd87d54a64c7a4ffc3b14739e5437346c35/node-and-npm-in-30-seconds.sh | sh | |
#echo 'export PATH=$PATH:$HOME/bin/node/bin' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir bin -p | |
cd ~/bin | |
mkdir node -p | |
rm -rf install-node | |
mkdir install-node -p | |
cd install-node | |
curl https://nodejs.org/dist/v4.2.0/node-v4.2.0.tar.gz | tar xz --strip-components=1 |
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
/** @constructor */ | |
function JsonServiceClient(baseUri) { | |
this.baseSyncReplyUri = Path.combine(baseUri, "Json/SyncReply"); | |
this.baseAsyncOneWayUri = Path.combine(baseUri, "Json/AsyncOneWay"); | |
} | |
JsonServiceClient.prototype.send = function(webMethod, request, onSuccess, onError, ajaxOptions) { | |
var startCallTime = new Date(); | |
var requestUrl = Path.combine(this.baseSyncReplyUri, webMethod); | |
var id = JsonServiceClient.id++; |