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
*.mmdb | |
*.ndjson | |
.vscode | |
__pycache__ |
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
/.vscode | |
/data |
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
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <limits.h> | |
#include <sys/stat.h> | |
#include <unistd.h> |
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
FROM golang:1.16 AS build | |
WORKDIR /app | |
COPY . . | |
RUN env CGO_ENABLED=0 go build -o summer-host-storage main.go | |
FROM scratch | |
COPY --from=build /app/summer-host-storage /summer-host-storage | |
ENTRYPOINT ["/summer-host-storage"] | |
CMD ["-listen=:8000"] |
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
*.mmdb | |
*.ndjson | |
.vscode | |
__pycache__ |
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
*.mmdb | |
*.ndjson | |
.vscode | |
__pycache__ |
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
Bv0CTgcxCANuZG4IA2VkdQgEdWNsYQgIMjAyNDEwMzEIAkNBCARJTkZPNggAAAGS5ZQIfzIBABQL | |
GQQANu6AGgMyAQAV/QF8gRwHGggDbmRuCANlZHUIBHVjbGEICDIwMjQxMDMxgwCLBAB2pwCJ/QFS | |
Bv0BTgc8CANuZG4IA2VkdQgEdWNsYQgIMjAyNDEwMzEIA0tFWTgIAAYl0MBi9UAIB05ETkNFUlQ2 | |
CAAAAZLlk4QVFAkYAQIZBAA27oAVWzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJPjOaf41nHp | |
uBzDlZdSguJ5aQqhTvF74PFxv+uIfignWY9WNs/B+mo1r2O/d1F3nZem3pUuR+s7jaZWwX/lEWQW | |
XhsBAxwvBy0IA25kbggDZWR1CAR1Y2xhCANLRVkICC8NI3gD5f9DCAJOQTYIAAABj1otjBr9AP0m | |
/QD+DzIwMjQxMTAxVDAyMzQyOP0A/w8yMDI1MDEzMFQwMjM0MjgXRjBEAiAg8rOewoVDdnllwEuT | |
D4bbSiKHurEgpeGEN9W+ZALBowIgXa5bAZKSVNLsw4cTXay5PwOlFHvHWsCtST791bOtrIAWQxsB | |
Axw+BzwIA25kbggDZWR1CAR1Y2xhCAgyMDI0MTAzMQgDS0VZOAgABiXQwGL1QAgHTkROQ0VSVDYI | |
AAABkuWThBUXRzBFAiA5mK4qzo3wn8gC0hiVQAKTLrazx7sGcrQ2S2zwA9mwfQIhAJTySKwh4P2m |
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
b = 0 | |
m_bits = 5 | |
m_max = (1<<m_bits) | |
for i in range(0,256): | |
e = i >> m_bits | |
m = i & ((1<<m_bits) - 1) | |
if e == 0: | |
x = (0 + m / m_max) * pow(2, 1 + 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
// Type definitions for @root/asn1 1.0 | |
// Project: https://git.coolaj86.com/coolaj86/asn1.js | |
// Definitions by: Junxiao Shi <https://github.com/yoursunny> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// Minimum TypeScript Version: 3.7 | |
export {}; | |
interface Element<V extends string|Uint8Array> { | |
type: number; |
NewerOlder