Skip to content

Instantly share code, notes, and snippets.

View stkem's full-sized avatar

Stephen Kemmerling stkem

View GitHub Profile
### Keybase proof
I hereby claim:
* I am stkem on github.
* I am sk (https://keybase.io/sk) on keybase.
* I have a public key whose fingerprint is 92A7 C608 8041 A94D 169A 892F 438D AF2B 282F AF3D
To claim this, I am signing this object:
@stkem
stkem / waitingserver.js
Created September 19, 2013 16:50
Simple web server that takes a really long time to respond to certain requests. Used to test a bug in the Chrome dev tools.
var http = require('http');
http.createServer(function (req, res) {
console.log(req.url)
if (req.url.indexOf("wait") != -1){
setTimeout(function(){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Good Morning\n');
}, 20000);
}
else {
import scala.concurrent._
import scala.concurrent.duration._
import scala.concurrent.ExecutionContext.Implicits.global
import java.util.concurrent.atomic.AtomicLong
import java.net._
object main{
package main
import (
"net"
"os"
"fmt"
"time"
"runtime"
)
package main
import (
"net"
"os"
"fmt"
"runtime"
)