This file contains 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
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
This file contains 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
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
This file contains 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
/* Tiny web server in Golang for sharing a folder | |
Copyright (c) 2010 Alexis ROBERT <alexis.robert@gmail.com> | |
Contains some code from Golang's http.ServeFile method, and | |
uses lighttpd's directory listing HTML template. */ | |
package main | |
import ( | |
"compress/gzip" |
This file contains 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
// Steve Phillips / elimisteve | |
// 2013.01.03 | |
// Programming Challenge: Launch 4 threads, goroutines, coroutines, or whatever your language uses for concurrency, | |
// in addition to the main thread. In the first 3, add numbers together (see sample code below) and pass the results | |
// to the 4th thread. That 4th thread should receive the 3 results, add the numbers together, format the results as | |
// a string (see sample code), and pass the result back to `main` to be printed. | |
// | |
// Do this as succinctly and readably as possible. _Go!_ #golang #programming #concurrency #challenge | |
package main |
This file contains 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
// Steve Phillips / elimisteve | |
// 2013.01.03 | |
package main | |
import "fmt" | |
// intDoubler doubles the given int, then sends it through the given channel | |
func intDoubler(ch chan int, n int) { | |
ch <- n*2 |
This file contains 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
#!/bin/bash | |
# This is a simple build script and will be executed on your CI system if | |
# available. Otherwise it will execute while your application is stopped | |
# before the deploy step. This script gets executed directly, so it | |
# could be python, php, ruby, etc. | |
tarball="https://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz" | |
# Set GOROOT since we don't use GOROOT_FINAL | |
mkdir -p $OPENSHIFT_HOMEDIR/app-root/data/go |
This file contains 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
[Source: | |
https://plus.google.com/112678702228711889851/posts/eVeouesvaVX] | |
Stevey's Google Platforms Rant | |
I was at Amazon for about six and a half years, and now I've been at | |
Google for that long. One thing that struck me immediately about the | |
two companies -- an impression that has been reinforced almost daily | |
-- is that Amazon does everything wrong, and Google does everything | |
right. Sure, it's a sweeping generalization, but a surprisingly |
This file contains 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
Pygments==1.4 | |
argparse==1.2.1 | |
django-classy-tags==0.3.4.1 | |
django-sekizai==0.5 | |
pymongo==2.1.1 | |
wsgiref==0.1.2 | |
hg+https://bitbucket.org/wkornewald/django-nonrel | |
hg+https://bitbucket.org/wkornewald/djangotoolbox | |
git+https://fhahn@github.com/django-nonrel/django-permission-backend-nonrel.git | |
django-mongodb-engine==0.4.0 |
This file contains 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
run: clean example | |
./example | |
include $(GOROOT)/src/Make.inc | |
TARG=example | |
GOFILES=\ | |
main.go\ | |
hub.go\ | |
conn.go |
This file contains 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
run: clean example | |
./example | |
include $(GOROOT)/src/Make.inc | |
TARG=example | |
GOFILES=\ | |
main.go\ | |
hub.go\ | |
conn.go |