I hereby claim:
- I am namazso on github.
- I am namazso (https://keybase.io/namazso) on keybase.
- I have a public key ASAB6RagHlmZBRr9h2lYD9mgZWpfuNbycSbRksuCeQ1SaQo
To claim this, I am signing this object:
namespace cx | |
{ | |
constexpr bool cx_strcmp_part(const char* const a, const char* const b) | |
{ | |
return *b ? (*a == *b && cx_strcmp_part(a + 1, b + 1)) : true; | |
} | |
constexpr unsigned month_str_to_int(const char* const str) | |
{ |
/* MIT License | |
* | |
* Copyright (c) namazso 2018 | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
// Public domain | |
// Based on public domain 7zip implementation by Igor Pavlov and Samuel Neves | |
#include "blake2sp.h" | |
// Set this if your processor is unaligned little endian | |
#define LITTLE_ENDIAN_UNALIGNED | |
#ifdef LITTLE_ENDIAN_UNALIGNED | |
#define GetUi32(p) (*(const uint32_t *)(const void *)(p)) |
# use https://addons.mozilla.org/en-US/firefox/addon/export-cookies-txt/ for making cookies.txt | |
# downloading as zip is broken at the time of writing, therefore per-track downloading is used. | |
# getting tracks for all releases is also broken at the time, so releases without catalog id | |
# are still downloaded as zips because you can get zips without the track ids or catalog id. | |
$format = "flac"; | |
$args = @{ | |
skip=0 | |
limit=50 |
// diskid32.cpp - display the details of hard drives in a command window | |
// | |
// Modernized version that compiles under VS2019 by namazso at 2020-01-15 | |
// Additional fixes and changes: | |
// - Rewrote MAC address part to not crash on 0 NICs and support 16+ NICs | |
// - Removed "ComputerId" and the relevant primitive hash method and parts | |
// | |
// 06/11/00 Lynn McGuire written with many contributions from others, | |
// IDE drives only under Windows NT/2K and 9X, | |
// maybe SCSI drives later |
#define _CRT_SECURE_NO_WARNINGS | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdint.h> | |
#include <stdio.h> | |
/* while these are standard C functions used properly, your platform may require additional macros or | |
* settings to enable proper handling of files larger than 2 or 4 GB */ | |
uint64_t large_getsize(FILE* fp) | |
{ | |
fseek(fp, 0, SEEK_END); |
#define _CRT_SECURE_NO_WARNINGS | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
enum { kSectorSize = 512 }; |
INT_PTR PromptText(const wchar_t* title, wchar_t* text, size_t len) | |
{ | |
__pragma(pack(push, 1)) struct alignas(DWORD) | |
{ | |
DLGTEMPLATE hdr{ | |
WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CENTER, | |
0, | |
1, | |
100, |
I hereby claim:
To claim this, I am signing this object: