- 各種SNSをcatatsuyでやっている
- かたついと呼ばれることが多い
- ピクシブ株式会社で技術基盤チームと広告チームの兼任
- pixivの技術的な改善が主な業務
- 単著『pixivエンジニアが教えるプログラミング入門(星海社新書)
- ピクシブ社内の非エンジニア向けのプログラミング研修の書籍化
- pixiv社内ISUCONやISUCON6本選の問題作成
- 今回YAPC::Fukuoka参加のために福岡に来ました!
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 ( | |
"flag" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" | |
) |
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
func TestMain(m *testing.M) { | |
d, err := ioutil.TempDir("", "fortest") | |
if err != nil { | |
log.Fatal(err) | |
} | |
setup(d) | |
code := m.Run() | |
clean(d) | |
os.Exit(code) | |
} |
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
vagrant@stretch% sudo nginx -V | |
nginx version: nginx/1.12.0 | |
built by gcc 6.3.0 20170205 (Debian 6.3.0-6) | |
built with OpenSSL 1.1.0e 16 Feb 2017 | |
Tls SNI support enabled | |
configure arguments: | |
--prefix=/etc/nginx | |
--sbin-path=/usr/sbin/nginx | |
--modules-path=/usr/lib/nginx/modules | |
--conf-path=/etc/nginx/nginx.conf |
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 ( | |
"fmt" | |
"net" | |
"os" | |
) | |
func main() { | |
host := os.Args[1] |
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
[]*Entry{ | |
&Entry{ | |
Author: "catatsuy", | |
Title: "ポエム", | |
Basename: "poem", | |
Status: "Publish", | |
AllowComments: 1, | |
AllowPings: 1, | |
ConvertBreaks: "0", | |
Date: time.Date(2017, time.April, 22, 20, 41, 58, 0, time.UTC), |
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 ( | |
"sync" | |
"time" | |
) | |
type clothes struct { | |
Price int | |
Folded bool |
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 ( | |
"fmt" | |
"io/ioutil" | |
"regexp" | |
) | |
var digitRegexp = regexp.MustCompile("[0-9]+") |
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 ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
var quitLock sync.RWMutex |