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, *BSD, MacOS | |
| * Implements the following: | |
| * - Wait/Notify functionality for simple types up to 64 bit | |
| * - Arbitrary condition wait | |
| * - Thread management | |
| * - Relax, yield & sleep |
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 High-Performance Implementation v2.0.0 | |
| * | |
| * Based on Bob Jenkins' ISAAC algorithm (1993) - Public Domain | |
| * | |
| * Version: 2.0.0 - H.Overman <opsec.ee@pm.me> | |
| * Date: 2025-01-13 | |
| * License: Public Domain (following original ISAAC license) | |
| */ |
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): |
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 | |
| // | |
| // Magic Ring Buffer | |
| // https://gist.github.com/mmozeiko/3b09a340f3c53e5eaed699a1aea95250 | |
| // | |
| // Sets up memory mapping so the same memory block follows itself in virtual address space: | |
| // | |
| // [abcd...xyz][abc...xyz] | |
| // |
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
| /* rgb2vga.c - converts rgb values to vga 256. */ | |
| /* Copyright (c) 2023 Al-buharie Amjari */ | |
| /* Released under MIT License */ | |
| #include <math.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #define F(x) ((float)x) |
NewerOlder