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
CREATE TABLE payment_types ( | |
payment_type UInt8, | |
description String | |
) | |
ENGINE = MergeTree | |
ORDER BY payment_type; | |
INSERT INTO payment_types(payment_type, description) VALUES | |
(1, 'credit card'), | |
(2, 'cash'), |
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
// This gist contains JavaScript functions and tests for: | |
// - conversion from gamma-corrected (or gamma-compressed) sRGB to linear RGB, to Oklab | |
// - interpolation through Oklab | |
// - conversion back to linear RGB, then sRGB | |
// To use these tests, install nodejs, save this file locally, and run with: | |
// node OklabExperiments.js | |
// No other dependencies are required to use this. | |
// Thanks to some helpful folks in the generative art community for helping me better understand what's happening with this. | |
// My toddler smacked the keyboard with a piece of cardboard and made me accidentally type: |
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
/* | |
Copyright (c) 2024 Orson Peters <[email protected]> | |
This software is provided 'as-is', without any express or implied warranty. In no event will the | |
authors be held liable for any damages arising from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, including commercial | |
applications, and to alter it and redistribute it freely, subject to the following restrictions: | |
1. The origin of this software must not be misrepresented; you must not claim that you wrote the |
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
#include <string.h> | |
void *__memcpy_glibc_2_2_5(void *, const void *, size_t); | |
asm(".symver __memcpy_glibc_2_2_5, memcpy@GLIBC_2.2.5"); | |
void *__wrap_memcpy(void *dest, const void *src, size_t n) | |
{ | |
return __memcpy_glibc_2_2_5(dest, src, n); | |
} |