Skip to content

Instantly share code, notes, and snippets.

View GrinlexGH's full-sized avatar
🟣
Purple

Max GrinlexGH

🟣
Purple
View GitHub Profile
@GrinlexGH
GrinlexGH / cmake-tools-kits.json
Last active July 14, 2025 19:06
My cmake tools vscode toolkits
[
{
"name": "Clang 20.1.5 x86_64-w64-windows-gnu (ucrt64)",
"compilers": {
"C": "D:\\programs\\msys2\\ucrt64\\bin\\clang.exe",
"CXX": "D:\\programs\\msys2\\ucrt64\\bin\\clang++.exe"
},
"isTrusted": true,
"environmentVariables": {
"CMT_MINGW_PATH": "D:\\programs\\msys2\\ucrt64\\bin",
@GrinlexGH
GrinlexGH / diophantine-equation.c
Created June 16, 2025 18:21
Computes GCD and solves the linear Diophantine equation ax + by = c with Bézout coefficients.
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
int iabs(int a) { return (a < 0) ? -a : a; }
int eu_mod(int a, int b) {
int r;
assert(b != 0);
r = a % b;