-
Item 1
-
Item 2
-
Item 3
second line- Item 3a
- Item 3b
- Item 3c
Item 3 continue
// Derived from: https://github.com/Cyan4973/xxHash | |
// Specialized version of XXH64 for 64-bit inputs | |
constexpr uint64_t XXH_PRIME64_1 = 0x9E3779B185EBCA87ULL; | |
constexpr uint64_t XXH_PRIME64_2 = 0xC2B2AE3D27D4EB4FULL; | |
constexpr uint64_t XXH_PRIME64_3 = 0x165667B19E3779F9ULL; | |
constexpr uint64_t XXH_PRIME64_4 = 0x85EBCA77C2B2AE63ULL; | |
constexpr uint64_t XXH_PRIME64_5 = 0x27D4EB2F165667C5ULL; | |
inline uint64_t XXH64_round(uint64_t acc, uint64_t input) |
#pragma once | |
// String tokenizing iterator | |
// by Nathan Reed, 2020-08-06. Licensed CC0 https://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// Use it like: | |
// | |
// for (auto token : IterTokens(" Bird \t\tFish Dog Cat ")) | |
// { | |
// // token is a std::string_view pointing into the original string |
# Load the source file | |
sourcePath = r'c:\path\to\my\file.cpp' | |
sourceText = codecs.open(sourcePath, encoding='utf-8').read() | |
# Find the generated section | |
startMarker = ( | |
'''/* | |
* Generated data tables - do not edit by hand! | |
* To regenerate, run my_fancy_script.py. |
Dear Council Members,
Like so many Seattle residents, I was appalled and disgusted by George Floyd’s murder at the hands of Minneapolis police officers on May 25, and I have been further appalled and disgusted by the Seattle Police Department’s treatment of those protesting for racial justice in the days since. The SPD has repeatedly responded to peaceful protests with violence, escalating and attacking without provocation, using chemical weapons that would be banned in warfare against unarmed and peaceful Seattleites — and then attempting to cover up, deny, and evade responsibility for their conduct. And why has the SPD done this? Because citizens have dared to hold them and other police departments across the country accountable for their ongoing and deeply ingrained racism, brutality, and callous disregard for Black lives and humanity.
As a white person, I was brought up to believe the police were there to help — and that they were obviously necessary to “fight crime” and keep our cities safe. Immigrants
#pragma once | |
// Intrusive Linked List (or Internal Linked List, etc) | |
// by Nathan Reed, 2020-01-18. Licensed CC0 https://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// Use it like: | |
// | |
// class MyClass | |
// { | |
// ... |
Interesting libraries I might like to use in a project... | |
Asset loading: | |
assetsys.h - virtual filesystem with ZIP backing, overlaying, etc https://github.com/mattiasgustavsson/libs/blob/master/docs/assetsys.md | |
cute_filewatch.h - file modification watching, for runtime reloading etc https://github.com/RandyGaul/cute_headers/blob/master/cute_filewatch.h | |
flatbuffers - data serialization, zero-copy deserialization, extensible schemas https://github.com/google/flatbuffers | |
stb_image - https://github.com/nothings/stb/blob/master/stb_image.h | |
tinyexr - https://github.com/syoyo/tinyexr | |
tinygltf - https://github.com/syoyo/tinygltf | |
tinyobjloader - https://github.com/syoyo/tinyobjloader |