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
| 01100001 11000011 10100011 11101001 10100110 10011001 11110000 10011111 10100100 10010100 |
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
| Number of bytes | Bits for code point | Byte 1 | Byte 2 | Byte 3 | Byte 4 | |
|---|---|---|---|---|---|---|
| 1 | 7 | 0xxxxxxx | ||||
| 2 | 11 | 110xxxxx | 10xxxxxx | |||
| 3 | 16 | 1110xxxx | 10xxxxxx | 10xxxxxx | ||
| 4 | 21 | 11110xxx | 10xxxxxx | 10xxxxxx | 10xxxxxx |
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" | |
| "k8s.io/kubectl/pkg/framework/resource" | |
| "flag" | |
| "path/filepath" | |
| "sync" |
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
| type Deck struct { | |
| DeckID bson.ObjectId `json:"id" bson:"_id,omitempty"` | |
| LastShownIndex int `json:"lastshownindex" bson:"lastshownindex"` | |
| Cards []Card `json:"cards" bson:"cards"` | |
| } | |
| type Card struct { | |
| Suit string `json:"suit" bson:"suit"` | |
| Number string `json:"number" bson:"number"` | |
| } |
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
| import ( | |
| "github.com/ellenkorbes/memdec/db" | |
| "github.com/ellenkorbes/memdec/models" | |
| mgo "gopkg.in/mgo.v2" | |
| "gopkg.in/mgo.v2/bson" | |
| ) |
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 golang:1.11.9-alpine3.9 | |
| WORKDIR /go/src/app | |
| RUN apk add - no-cache entr git gcc musl-dev | |
| ENV GO111MODULE=on | |
| ENTRYPOINT ["/bin/sh", "-c"] | |
| CMD ["./app"] | |
| EXPOSE 8080 | |
| COPY go.mod hotreload.sh ./ | |
| RUN go mod vendor | |
| COPY *.go ./ |
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 golang:1.11.9-alpine3.9 | |
| WORKDIR /go/src/app | |
| RUN apk add --no-cache entr git gcc musl-dev | |
| ENV GO111MODULE=on | |
| ENTRYPOINT ["/bin/sh", "-c"] | |
| CMD ["./app"] | |
| ONBUILD COPY go.mod ./ | |
| ONBUILD COPY *.go ./ | |
| ONBUILD RUN go build . |
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
| project: | |
| name: go3dprint | |
| environments: | |
| - name: local | |
| providers: | |
| - name: local-kubernetes | |
| defaultHostname: garden.local |
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
| project: | |
| name: go3dprint | |
| environments: | |
| - name: local | |
| providers: | |
| - name: local-kubernetes | |
| defaultHostname: garden.local |
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
| project: | |
| name: go3dprint | |
| environments: | |
| - name: local | |
| providers: | |
| - name: local-kubernetes | |
| defaultHostname: garden.local |