地味に毎回やってるから自動化してサクッと開発を始めたい。
martini-heroku-init.goみたいなの作ってもいいかも?
※templateかな?
package main
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 |
https://github.com/go-xorm/xorm
$ go get github.com/go-xorm/xorm
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> |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"io/ioutil" | |
"mime/multipart" |
I hereby claim:
To claim this, I am signing this object:
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): |
package: github.com/kyokomi/wercker_private_glide | |
import: | |
- package: github.com/kyokomi/private_hoge | |
repo: git@github.com:kyokomi/private_hoge.git | |
vcs: git | |
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:%^ |
import android.graphics.Bitmap; | |
import com.squareup.picasso.Transformation; | |
public class ScaleTransformation implements Transformation { | |
private final int baseSize; | |
/** | |
* @param baseSize px | |
*/ |