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
| struct as{template<class T>operator T(){throw;};template<class T>struct x{T x;template<class U>constexpr decltype(static_cast<U>((T)x))operator->*(U(as::*)())noexcept(noexcept(static_cast<U>((T)x))){return static_cast<U>((T)x);}};template<class T>friend constexpr x<T&&>operator->*(T&&x,as)noexcept{return{(T&&)x};}}; | |
| #define as ->*::as()->*&::as::operator |
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
| /** | |
| * Atomics & threads complement library | |
| * Matthew Reiner, 2026 | |
| * Available under the GPL 3.0 license | |
| * Targeting: Windows, Linux, FreeBSD, NetBSD, OpenBSD, MacOS | |
| * Implements the following: | |
| * - Wait/Notify functionality for simple types up to 64 bit | |
| * - Arbitrary condition wait | |
| * - Fine-grained memory ordering | |
| * - Thread management |
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
| CC ?= clang | |
| CFLAGS = -std=c23 -Wall -Werror | |
| run: clean abuse | |
| @./abuse | |
| abuse: | |
| @$(CC) $(CFLAGS) -I. -o abuse abuse.c | |
| clean: |
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
| // clang-format off | |
| // cubic bezier curves thingy in raylib | |
| // gcc -Og -std=c11 -o bezier ./bezier.c -lraylib -lm -lpthread -ldl -lX11 -lGL -lrt | |
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include <raylib.h> | |
| // clang-format on | |
| #define global static |
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
| #if !__STDC__ || __STDC_VERSION__ < +202311L | |
| # error "This code is written in standard C23." | |
| #else | |
| static bool ψ = true; | |
| static bool non_independent( void ) { return ψ; } | |
| static void non_effectless( register const bool ζ ) { ψ = ζ; return; } | |
| static bool non_stateless( register const bool ζ ) { static bool φ = true; return φ = φ && ζ; } | |
| static void non_idempotent( register bool ξ[ const restrict static sizeof "" ] ) { *ξ = !*ξ; return; } |
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
| /* | |
| * ISAAC CSPRNG v4.0 — Full Architecture Rewrite | |
| * License: Public Domain (following original ISAAC license) | |
| * | |
| * Euman = integral(optimization/time) delta performance | |
| * | |
| * Based on Bob Jenkins' ISAAC (1993) — Public Domain algorithm. | |
| * This implementation: Proprietary optimizations, C23, Euman IFP. | |
| * | |
| * ======================================================================= |
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 | |
| /* | |
| * Hall Effect Utilities for QMK | |
| * | |
| * DISCLAIMER: | |
| * This code was written by Boris Testov for personal use on K6 HE keyboard. | |
| * You are free to use, modify, and distribute this code for any purpose, including | |
| * commercial use. However, this code is provided "AS IS" without any warranty of | |
| * any kind, express or implied. The author makes no guarantees about its |
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
| /* | |
| ------------------------------------------------------------------------------ | |
| Licensing information can be found at the end of the file. | |
| ------------------------------------------------------------------------------ | |
| bass_and_treble.h - v1.0 - Simple audio filter to boost bass and treble. | |
| Do this: | |
| #define BASS_AND_TREBLE_IMPLEMENTATION | |
| before you include this file in *one* C/C++ file to create the implementation. |
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
| /* | |
| * Creator: Naman Dixit | |
| * Notice: © Copyright 2024 Naman Dixit | |
| * License: BSD Zero Clause License | |
| * SPDX: 0BSD (https://spdx.org/licenses/0BSD.html) | |
| */ | |
| #if !defined(STD_H_INCLUDE_GUARD) | |
| /* Compiler **************************************************************************/ |
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
| bl_info = {"name": "Zoetrope", "category": "Animation"} | |
| import bpy | |
| class Zoetrope(bpy.types.Operator): | |
| bl_idname = "anim.zoetrope" | |
| bl_label = "Zoetrope" | |
| def execute(self, context): |
NewerOlder