I hereby claim:
- I am kamatama41 on github.
- I am kamatama41 (https://keybase.io/kamatama41) on keybase.
- I have a public key ASBNJ3xdUTa43M9kdoE3-GA-1wRn7nonL1QdSrkyv7flRgo
To claim this, I am signing this object:
func init() { | |
conf := zap.NewProductionConfig() | |
logLevel := zap.InfoLevel | |
if l, ok := os.LookupEnv("LOG_LEVEL"); ok { | |
if err := logLevel.UnmarshalText([]byte(l)); err != nil { | |
panic(err) | |
} | |
} | |
conf.Level = zap.NewAtomicLevelAt(logLevel) | |
logger, err := conf.Build() |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Spliterator; | |
import java.util.stream.Stream; | |
public class ByteArrayStreamInputStream extends InputStream { |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
public class DateParser { | |
public static void main(String[] args) { | |
System.out.println(parse("2018-06-01 12:00:00.111 JST")); | |
System.out.println(parse("2018-06-01 12:00:00 JST")); | |
} |
I hereby claim:
To claim this, I am signing this object:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
$ apt-cache policy ca-certificates
ca-certificates:
Installed: 20170717~14.04.1
new Date().format("yyyy-MM-dd", TimeZone.getTimeZone('Asia/Tokyo')) |
package main | |
import "fmt" | |
type Vertex struct { | |
X, Y int | |
} | |
func changeImmutable(v Vertex) { | |
v.X = 123 |
package main | |
import ( | |
"strings" | |
"code.google.com/p/go-tour/wc" | |
) | |
func WordCount(s string) map[string]int { | |
countMap := make(map[string]int) | |
for _, word := range strings.Fields(s) { |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net/http" | |
) | |
type String string |
package main | |
import ( | |
"bytes" | |
"io" | |
"os" | |
"strings" | |
) | |
type rot13Reader struct { |