I hereby claim:
- I am 1mentat on github.
- I am 1mentat (https://keybase.io/1mentat) on keybase.
- I have a public key whose fingerprint is 6298 B1E4 7C32 41EC 16B4 826C 9B5F CD1D E812 ABB8
To claim this, I am signing this object:
| # Accept the Go version for the image to be set as a build argument. | |
| # Default to Go 1.13 | |
| ARG GO_VERSION=1.13 | |
| # First stage: build the executable. | |
| FROM golang:${GO_VERSION}-alpine AS builder | |
| # Create the user and group files that will be used in the running container to | |
| # run the process as an unprivileged user. | |
| RUN mkdir /user && \ |
I hereby claim:
To claim this, I am signing this object:
| def hammingdistance(s1,s2): | |
| distance = 0 | |
| for c1,c2 in zip(s1,s2): | |
| xchar = c1 ^ c2 | |
| distance += bin(xchar).count('1') | |
| return distance |
| #include <stdint.h> | |
| #include <stdio.h> | |
| int | |
| main() | |
| { | |
| uint64_t item = 0x00a5a5a5a5a5a5a5; | |
| uint64_t mask_upper = 0x00fffffff0000000; | |
| uint64_t mask_lower = 0x000000000fffffff; | |
| uint64_t mask_bits = 0x0000000010000001; |