Skip to content

Instantly share code, notes, and snippets.

View GrinlexGH's full-sized avatar
💤
Zenless zone zero

Max GrinlexGH

💤
Zenless zone zero
View GitHub Profile
@GrinlexGH
GrinlexGH / cmake-tools-kits.json
Last active November 22, 2025 11:21
My cmake tools vscode toolkits
[
{
"name": "Clang 21.1.2 x86_64-pc-windows-msvc",
"compilers": {
"C": "C:\\Program Files\\LLVM\\bin\\clang.exe",
"CXX": "C:\\Program Files\\LLVM\\bin\\clang++.exe"
},
"environmentVariables": {
"QT6_ROOT": "D:\\libraries\\Qt\\6.9.3\\msvc",
"wxWidgets_ROOT_DIR": "D:\\libraries\\wxWidgets\\msvc"
@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;