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
| /* | |
| ------------------------------------------------------------------------------ | |
| 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
| /* 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) |
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
| #define typeof_unqual(x) __typeof__(((void)1, *(__typeof__(x) *)(void *)0)) | |
| int main(void) { | |
| const int ci = 1; | |
| typeof_unqual(ci) i1 = ci; | |
| typeof_unqual(const int) i2 = ci; | |
| i1 = 0; | |
| i2 = 0; | |
| return i1 + i2; | |
| } |
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
| /****************************************************************************** | |
| debounce.c | |
| written by Kenneth A. Kuhn | |
| version 1.00 | |
| This is an algorithm that debounces or removes random or spurious | |
| transistions of a digital signal read as an input by a computer. This is | |
| particularly applicable when the input is from a mechanical contact. An | |
| integrator is used to perform a time hysterisis so that the signal must | |
| persistantly be in a logical state (0 or 1) in order for the output to change |
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 <stdlib.h> | |
| #include <string.h> | |
| #define CAPACITY 100000 | |
| typedef struct Entry { | |
| char* key; | |
| void* value; | |
| struct Entry* next; | |
| } Entry; |
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
| /** | |
| * Copyright (c) 2025 Chris Baker <mail.chris.baker@gmail.com> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to | |
| * deal in the Software without restriction, including without limitation the | |
| * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
| * sell copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |
NewerOlder