Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
ぬるぽ

kyokomi kyokomi

🙃
ぬるぽ
View GitHub Profile
View hoge.go
gzipGroup := e.Group("", stdMiddleware.Gzip())
authV1API := gzipGroup.Group("/v1", middleware.FirebaseHandler)
{
// login
authV1API.POST("/login", ctl.PostLogin)
// user
authV1API.GET("/user/me", ctl.GetUserMe)
authV1API.PATCH("/user/me", ctl.PatchUserMe)
authV1API.DELETE("/user/me", ctl.DeleteUserMe)
// article
@kyokomi
kyokomi / circle.yml
Created Mar 20, 2018
Flutter Android CircleCI2.0
View circle.yml
version: 2
jobs:
build:
docker:
- image: circleci/android:api-27-alpha
environment:
- LANG: en_US.UTF-8
- RELEASE_APK_PATH: build/app/outputs/apk/release
- RELEASE_APK_NAME: app-release.apk
- DEPLOYGATE_USER_NAME: <DeployGate user name>
View keybase.md

Keybase proof

I hereby claim:

  • I am kyokomi on github.
  • I am kyokomi (https://keybase.io/kyokomi) on keybase.
  • I have a public key whose fingerprint is 89C2 902A 02D0 E621 C173 0C95 9042 71E6 3452 CACE

To claim this, I am signing this object:

View quotation_fields.go
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):
@kyokomi
kyokomi / glide.yaml
Last active Dec 18, 2016
Wecker.yml when treating private repository with glide (golang).
View glide.yaml
package: github.com/kyokomi/wercker_private_glide
import:
- package: github.com/kyokomi/private_hoge
repo: git@github.com:kyokomi/private_hoge.git
vcs: git
@kyokomi
kyokomi / main.go
Last active Feb 14, 2018
Authenticating Requests in Browser-Based Uploads Using POST (AWS Signature Version 2) for golang http://docs.aws.amazon.com/ja_jp/AmazonS3/latest/dev/UsingHTTPPOST.html
View main.go
package main
import (
"flag"
"fmt"
"log"
"os"
"io/ioutil"
"mime/multipart"
View nginx.ltsv
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:%^
View ScaleTransformation.java
import android.graphics.Bitmap;
import com.squareup.picasso.Transformation;
public class ScaleTransformation implements Transformation {
private final int baseSize;
/**
* @param baseSize px
*/
View golang_vendor_test.md
go test $(go list ./... | grep -v /vendor/)
@kyokomi
kyokomi / Go1.5_vendor_godep_Makefile
Last active Oct 19, 2015
Go1.5 Godep使ったvendor秘伝のMakefile
View Go1.5_vendor_godep_Makefile
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:
You can’t perform that action at this time.