- dockerでやるのが、環境構築コストが下がってよい
- https://qiita.com/kshigeru/items/ea174d6bcacc474f2a51 JupyterのDockerイメージまとめ
- によると、...そもそもpysparkが何なのかわからないが、とりあえず datascience-notebook を使えば良い...と思う
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" | |
"time" | |
"github.com/golang/protobuf/ptypes" | |
"github.com/golang/protobuf/ptypes/duration" | |
"github.com/golang/protobuf/ptypes/timestamp" | |
) |
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
=== RUN TestPropertyLoadSaverLoadAndSave | |
== original goon == | |
&{5629499534213120 foo Zm9v} | |
&{5629499534213120 foo Zm9v} | |
&{5629499534213120 foo Zm9v} | |
&{5629499534213120 Zm9v} // => bad | |
== pullrequest 69 goon == | |
&{5066549580791808 foo Zm9v} | |
&{5066549580791808 foo Zm9v} | |
&{5066549580791808 foo Zm9v} |
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
% go test ./... -bench . -benchmem | |
goos: darwin | |
goarch: amd64 | |
BenchmarkLoadByUnmarshal-4 2 507854026 ns/op 33357464 B/op 650037 allocs/op | |
BenchmarkLoadByNewDecoder-4 2 502302509 ns/op 51238448 B/op 650051 allocs/op | |
PASS |
- Startup Science 2018 完全版のまとめである
- 読んだスライドを要約し、後から有効に使えるようにすること
- なるべく短めにまとめること
- とはいえ現状写経になっているのは否めない...
- 名言系は、これは確実に使えそう、という厳選したもののみとすること
- 作ったもの: https://yokohamarb-slackin.herokuapp.com/
- https://github.com/rauchg/slackin の Herokuを押せばよい
- 昔はdeploy to herokuがあったぽいけど、いつの間にかnowというやつがイチオシになっている
- Slack API Tokenは、legacy tokenでなければならない
- https://api.slack.com/custom-integrations/legacy-tokens から作ることができる
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 crypto | |
import ( | |
"testing" | |
"golang.org/x/crypto/bcrypt" | |
"golang.org/x/crypto/scrypt" | |
) | |
func BenchmarkBcryptHashCost10(b *testing.B) { |
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
// rubyで言う | |
// (0..42).select(&:even?).each_slice(3).to_a | |
// # => [[0, 2, 4], [6, 8, 10], [12, 14, 16], [18, 20, 22], [24, 26, 28], [30, 32, 34], [36, 38, 40], [42]] | |
// がしたい!! | |
package main | |
import "fmt" | |
func main() { |
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
// Raceで失敗するようなやつ | |
func TestExampleDataStore3(t *testing.T) { | |
testWithAEInstance(t, true, func(inst *aetest.Instance) { | |
req, err := (*inst).NewRequest("GET", "/", nil) | |
require.Nil(t, err) | |
ctx := appengine.NewContext(req) | |
// 1. Point入れる | |
stringID := "this_is_point_key" |