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
FString MD5(FString file_name) | |
{ | |
std::ifstream file(std::string(TCHAR_TO_UTF8(*file_name)), std::ios::binary); | |
if (!file) { | |
return FString(); | |
} | |
// Compute the MD5 hash of the file contents | |
FMD5 md5; | |
char buffer[4096]; |
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
// Unicode `μ` for micro (10e-6) | |
std::wstring to_si_wstring(double number, int precision) | |
{ | |
std::wostringstream ss; | |
ss << std::setprecision(precision); | |
if (number != 0.0) | |
{ | |
static const std::array<wchar_t, 17> prefixes = { 'y', 'z', 'a', 'f', 'p', 'n', L'\u03bc', 'm', L'\u200b', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y' }; | |
static const size_t zero_degree_index = 8; |
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
import { HttpClient } from '@angular/common/http'; | |
type Response<T> = { | |
data: T; | |
success: boolean; | |
error: {code: number, errors: []}; | |
} | |
type API = { | |
name: string, | |
version: number, |