digraph G {
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
"[email protected]" -> "[email protected]"
This file contains hidden or 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
Take | |
unlock 0 | |
lock 0 | |
Take | |
Take | |
Take | |
Take | |
Take | |
Take | |
Take |
This file contains hidden or 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
take | |
maintainer calculates sessionsToKeep: 0 | |
(for loop) shrinking down to: 0 | |
take | |
take | |
take | |
take | |
take | |
take | |
take |
This file contains hidden or 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 TestTakeWriteSessionFromIdleList_Better(t *testing.T) { | |
ctx := context.Background() | |
sessionsToCreate := 10 | |
idleSessions := 20 | |
// Make sure maintainer keeps the idle sessions. | |
_, sp, mock, cleanup := serverClientMock(t, SessionPoolConfig{MaxIdle: uint64(idleSessions)}) | |
defer cleanup() |
This file contains hidden or 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" | |
"os" | |
"path/filepath" | |
"github.com/pierrre/archivefile/zip" | |
) |
This file contains hidden or 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
| | With .protos | Without .protos | | |
|--------------------------------------------------|-----------------------------------------------------------------------------------|-----------------| | |
| Classes/structs/objects (in google-cloud-common) | Generated by .proto, or interpreted. | Hand written. | | |
| Test file creation (in google-cloud-common) | .json files generated by a (very) thin generator program in google-cloud-common. | Hand written. | | |
| Test file reading (in libraries) | JSON parser. | JSON parser. | |
This file contains hidden or 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
deklerk at deklerk in ~ | |
$ docker run -it golang:1.11 /bin/bash | |
root@a831b595a7c0:/go# go get -u -v cloud.google.com/go/vision/apiv1 | |
Fetching https://cloud.google.com/go/vision/apiv1?go-get=1 | |
Parsing meta tags from https://cloud.google.com/go/vision/apiv1?go-get=1 (status code 200) | |
get "cloud.google.com/go/vision/apiv1": found meta tag get.metaImport{Prefix:"cloud.google.com/go", VCS:"git", RepoRoot:"https://code.googlesource.com/gocloud"} at https://cloud.google.com/go/vision/apiv1?go-get=1 | |
get "cloud.google.com/go/vision/apiv1": verifying non-authoritative meta tag | |
Fetching https://cloud.google.com/go?go-get=1 | |
Parsing meta tags from https://cloud.google.com/go?go-get=1 (status code 200) | |
cloud.google.com/go (download) |
This file contains hidden or 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
FROM ruby:2.5.0-alpine3.7 | |
RUN apk update | |
RUN apk add gcc musl-dev cmake alpine-sdk linux-headers | |
RUN apk add ca-certificates # adds ca-certificates, which suddenly makes google libraries work! | |
ADD cacert.pem /tmp/cacert/pem | |
ENV SSL_CERT_FILE=/tmp/cacert.pem | |
ADD creds.json /tmp/creds.json | |
ENV GOOGLE_APPLICATION_CREDENTIALS /tmp/creds.json |
This file contains hidden or 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 ( | |
"context" | |
"dummy/spanner-utility" | |
"fmt" | |
"cloud.google.com/go/spanner" | |
"cloud.google.com/go/spanner/admin/database/apiv1" | |
"google.golang.org/api/iterator" |
This file contains hidden or 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 MyCallers() []string { | |
// we get the callers as uintptrs | |
fpcs := make([]uintptr, 1024) | |
n := runtime.Callers(-1, fpcs) | |
if n == 0 { | |
return []string{"I don't know your caller! What the heck.."} | |
} | |
var callers []string |