Skip to content

Instantly share code, notes, and snippets.

View Reedbeta's full-sized avatar

Nathan Reed Reedbeta

View GitHub Profile
@Reedbeta
Reedbeta / gamuts.svg
Created December 19, 2020 19:44
Common RGB gamuts on CIE chromaticity diagram
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Reedbeta
Reedbeta / nested-lists.md
Last active April 26, 2022 13:28
Nested lists markdown
  • Item 1

  • Item 2

  • Item 3
    second line

    • Item 3a
    • Item 3b
    • Item 3c

    Item 3 continue

@Reedbeta
Reedbeta / bash-and-cmd-in-context-menu-wt.reg
Last active August 29, 2021 23:20
Windows registry edit to add Bash and Command Prompt items to Explorer context menu - version using Windows Terminal
Windows Registry Editor Version 5.00
; Get rid of existing Windows Terminal context menu item
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"{9F156763-7844-4DC4-B2B1-901F640F5155}"=""
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Bash]
@="Bash"
"Icon"=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
Windows Registry Editor Version 5.00
; Visual Studio context menu items
[-HKEY_CLASSES_ROOT\Directory\shell\AnyCode]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\AnyCode]
; Share with Skype
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"{776DBC8D-7347-478C-8D71-791E12EF49D8}"=""
// 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)