go test $(go list ./... | grep -v /vendor/)
This file contains hidden or 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 ( | |
"log" | |
"fmt" | |
) | |
//go:generate go-bindata data/ | |
func main () { |
This file contains hidden or 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
[{"author":"Pete Hunt","text":"Hey there!"}] |
This file contains hidden or 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
checkout: | |
post: | |
- rm -rf $HOME/.go_workspace/src/github.com/kyokomi/* | |
- mkdir -p $HOME/.go_workspace/src/github.com/kyokomi | |
- ln -snf $HOME/$CIRCLE_PROJECT_REPONAME $HOME/.go_workspace/src/github.com/kyokomi |
This file contains hidden or 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
init: | |
go get github.com/tools/godep | |
go get golang.org/x/tools/cmd/goimports | |
save: | |
go list ./... | grep -v '/vendor/' | xargs godep save | |
test: | |
go list ./... | grep -v '/vendor/' | xargs go test | |
vet: |
This file contains hidden or 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
import android.graphics.Bitmap; | |
import com.squareup.picasso.Transformation; | |
public class ScaleTransformation implements Transformation { | |
private final int baseSize; | |
/** | |
* @param baseSize px | |
*/ |
This file contains hidden or 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
color_scheme 2 | |
time-format %T | |
date-format %d/%b/%Y | |
log-format host:%h\tuser:%^\ttime:%d:%t %^\treq:%r\tstatus:%s\tsize:%b\treferer:%R\tua:%u\tforwardedfor:%^\treqtime:%T\tapptime:%^ |
This file contains hidden or 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 ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"io/ioutil" | |
"mime/multipart" |
This file contains hidden or 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: github.com/kyokomi/wercker_private_glide | |
import: | |
- package: github.com/kyokomi/private_hoge | |
repo: [email protected]:kyokomi/private_hoge.git | |
vcs: git | |
This file contains hidden or 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
var quotationsReplacer = strings.NewReplacer("'", "", `"`, "") | |
func quotationOrSpaceFields(s string) []string { | |
lastQuote := rune(0) | |
f := func(c rune) bool { | |
switch { | |
case c == lastQuote: | |
lastQuote = rune(0) | |
return false | |
case lastQuote != rune(0): |