Skip to content

Instantly share code, notes, and snippets.

@kersny
kersny / async.js
Created June 1, 2011 01:47 — forked from amaltson/async.js
Trying to figure out async in node
function testWithCallback(callback) {
process.nextTick(function() {
var result;
for (var i = 0; i < 1000000000000; i++ ) {
result += i;
}
callback(result);
});
}
@kersny
kersny / BasicReq.cs
Created March 11, 2011 01:12 — forked from ruel/BasicReq.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
namespace BasicReq
{
/// <summary>