Skip to content

Instantly share code, notes, and snippets.

@angeldm
angeldm / main.go
Created April 27, 2012 16:33
Worker
package main
import (
"fmt"
"time"
)
var work = 5
type Request struct {
fn func() int
@angeldm
angeldm / balancer.go
Created April 19, 2012 14:13
Rob Pike balancer for go
package main
import (
"container/heap"
"fmt"
"math/rand"
"time"
)
const nRequester = 100
@angeldm
angeldm / Remove remote branch
Created May 31, 2011 14:43
Howto delete a remote branch
git remote prune REMOTENAME :BRANCHNAME
@angeldm
angeldm / Remote Branch
Created May 31, 2011 14:18
Howto create a remote branch.
cd
cd Repositories/
ls
mkdir GoCode
cd GoCode/
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:angeldm/GoCode.git