This file contains hidden or 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
#pragma once | |
#include <cstdint> | |
#include <intrin.h> | |
#include <string_view> | |
namespace utf8 { | |
// see: https://github.com/BobSteagall/utf_utils/blob/master/src/utf_utils.h | |
enum char_class : uint8_t { | |
ILL = 0, //- C0..C1, F5..FF ILLEGAL octets that should never appear in | |
// a UTF-8 sequence |
This file contains hidden or 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
//see: https://www.romu-random.org/romupaper.pdf | |
#include <cstdint> | |
struct romu192_random_t { | |
uint64_t xstate; | |
uint64_t ystate; | |
uint64_t zstate; | |
}; | |
constexpr uint64_t romu64_random_r(romu192_random_t *rng) { |
This file contains hidden or 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 <cstdint> | |
namespace lexer { | |
enum char_id : uint8_t { | |
c_start, | |
c_other = c_start, | |
c_zero, | |
c_one, | |
c_oct, | |
c_digit, | |
c_hex, |
This file contains hidden or 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
#pragma once | |
#if __has_include(<span>) | |
#include <span> | |
#else | |
#include "span.hpp" | |
namespace std { | |
using tcb::span; | |
} | |
#endif |
This file contains hidden or 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
#pragma once | |
#include <memory> | |
#include <functional> | |
#include <vector> | |
#include <string> | |
#include <compare> | |
#include <array> | |
#include <type_traits> | |
#include <intrin.h> | |
#include <immintrin.h> |
This file contains hidden or 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 <iostream> | |
#include <string> | |
#include <algorithm> | |
#include <deque> | |
#include <vector> | |
#include <array> | |
#include <set> | |
#include <thread> | |
#include <future> | |
#include <execution> |
This file contains hidden or 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
#pragma once | |
//requires c++17 | |
//see: https://github.com/hanickadot/compile-time-regular-expressions/blob/master/single-header/ctre.hpp | |
//specifically: https://github.com/hanickadot/compile-time-regular-expressions/blob/96de8f7a519b61abd4ef53ec37cd89565880aa50/single-header/ctre.hpp | |
#include <string_view> | |
#include "ctre.hpp" | |
namespace regex::analyzer { | |
//issues w/o unicode (regex fails to compile), these are the (?: .. etc patterns that change how a group capture functions |
This file contains hidden or 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
uniform float4x4 ViewProj; | |
uniform texture2d image; | |
uniform float elapsed_time; | |
uniform float2 uv_offset; | |
uniform float2 uv_scale; | |
uniform float2 uv_pixel_interval; | |
sampler_state textureSampler { | |
Filter = Linear; |
This file contains hidden or 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
#!/user/bin/python | |
import re, sys, getopt, os | |
def main(argv): | |
inputfile = '' | |
outputfile= '' | |
try: | |
opts, args = getopt.getopt(argv, "hi:o",["ifile=","ofile="]) | |
except getopt.GetoptError: |
This file contains hidden or 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
duniform float4x4 ViewProj; | |
uniform texture2d image; | |
uniform float elapsed_time; | |
uniform float2 uv_offset; | |
uniform float2 uv_scale; | |
uniform float2 uv_pixel_interval; | |
sampler_state textureSampler { | |
Filter = Linear; |