I hereby claim:
- I am mcellis33 on github.
- I am mellis (https://keybase.io/mellis) on keybase.
- I have a public key whose fingerprint is C355 68F9 FA81 141A 1443 2DA6 7CEB 02D7 F513 F891
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"os" | |
"time" | |
) | |
func main() { | |
input := make(chan int) |
import ( | |
"path" | |
"runtime" | |
"strings" | |
) | |
type callInfo struct { | |
PackageName string | |
FileName string | |
FuncName string |
package numconv | |
import "math" | |
const ( | |
// The maximum float64 value that is less than math.MaxInt64. This was | |
// computed with math.Nextafter(float64(math.MaxInt64), 0)). | |
Float64MaxInt64 float64 = 9.223372036854775e+18 | |
// The minimum float64 value that is greater than math.MinInt64. This was |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { | |
for i := 0; i < 67; i++ { | |
fmt.Println(i) |
// IsMountPoint returns whether or not the file at the given path is currently | |
// being used as a mount point. If the dev number of the file is not equal to | |
// that of its parent, then the file is a mount point. | |
func IsMountPoint(path string) (bool, error) { | |
fileInfo, err := os.Stat(path) | |
if err != nil { | |
if os.IsNotExist(err) { | |
return false, nil | |
} | |
return false, err |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
try0() | |
try1() |
func stack(all bool) string { | |
stackbuf := make([]byte, 8192) | |
for { | |
length := runtime.Stack(stackbuf, all) | |
if length < len(stackbuf) { | |
return string(stackbuf[:length]) | |
} | |
stackbuf = make([]byte, 2*len(stackbuf)) | |
} | |
} |
[Unit] | |
Description=Docker Registry | |
Documentation=https://github.com/docker/docker-registry/tree/0.8 | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
ExecStart=/usr/bin/docker run \ | |
-e MIRROR_SOURCE=https://registry-1.docker.io \ | |
-e MIRROR_SOURCE_INDEX=https://index.docker.io \ |
import ( | |
cryptorand "crypto/rand" | |
"math/big" | |
mathrand "math/rand" | |
) | |
// This exposes the convenience methods of the math/rand package, | |
// but with the cryptographic randomness of the crypto/rand package. | |
var crand = NewCryptoRand() |