Skip to content

Instantly share code, notes, and snippets.

@k-128
k-128 / ascii_hex.cpp
Created February 25, 2023 17:51
Hexadecimal values of ASCII characters
constexpr std::string_view kAsciiHexValue =
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // 000
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" // 015
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" // 031
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" // 047
// 48:0 57:9 // 0:9
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x00\x00\x00\x00\x00\x00" // 063
// 65:A 70:F // A:F
"\x00\x0A\x0B\x0C\x0D\x0E\x0F\x00\x00\x00\x00\x00\x00\x00\x00\x00" // 079
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" // 095
@k-128
k-128 / 00 - Computer Networks.md
Last active March 7, 2023 16:22
Computer Networks
#include <iostream>
#include <chrono>
#include <ratio>
// m/s - SI derived unit
struct Speed
{
long double value;
};