Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am apokalyptik on github.
  • I am apokalyptik (https://keybase.io/apokalyptik) on keybase.
  • I have a public key whose fingerprint is 8832 E456 A26F 1E55 CBD7 32BD ED63 D6A0 9A85 639A

To claim this, I am signing this object:

@apokalyptik
apokalyptik / sockchat.go
Created June 18, 2014 19:11
Simple chat server in go
package main
import (
"log"
"net/http"
"code.google.com/p/go.net/websocket"
)
type register struct {
@apokalyptik
apokalyptik / test.go
Created June 18, 2014 18:36
Patricia VS Quicktrie
package main
import (
"crypto/rand"
"log"
"net/http"
_ "net/http/pprof"
"github.com/apokalyptik/quicktrie"
"gopkg.in/tchap/go-patricia.v1/patricia"
#!/bin/bash
#
# Please note: This script is likely very brittle...
#
ORIGIN=$1
OUT_DIR=$2
if [ "$2" == "" ] || [ "$1" == "" ]; then echo "Please specify origin requirements file and output directory"; exit 4; fi