Skip to content

Instantly share code, notes, and snippets.

View Qix-'s full-sized avatar
💻
Making an OS @oro-os

Josh Junon Qix-

💻
Making an OS @oro-os
View GitHub Profile
use cassowary::{Constraint, Solver, Variable, WeightedRelation::*, strength::*};
use std::{
collections::HashMap,
sync::{Arc, Mutex, mpsc},
};
use thread_pool::Task;
const MIN_CLOCK: f64 = 165.0;
const CLK48_ERR: f64 = 0.001;
const MIN_PCLK1: f64 = 42.0;
@Qix-
Qix- / sudoku.js
Last active February 10, 2025 13:17
const board = `
_ _ _ _ _ _ _ 3 _
_ _ _ _ _ _ _ _ 6
_ 3 _ _ _ _ _ _ _
_ _ 1 _ _ _ _ _ _
_ _ _ _ _ _ _ _ _
_ _ _ 3 _ _ _ _ _
_ _ _ _ 1 _ _ _ _
@Qix-
Qix- / gdb.rs
Created July 22, 2024 00:32
GDB Remote Protocol Client in Rust + Tokio
//! Hi. I was going to use this to make some debug tooling for my OS
//! but I instead opted to ditch the direct connection to QEMU's GDB server
//! and instead wrap a GDB executable using the machine-readable interface.
//!
//! I didn't want to throw this away though, so if you can find some use for
//! it, by all means go for it.
//!
//! Released under CC0 or Public Domain or MIT, whatever you want.
//!
//! - Josh
@Qix-
Qix- / readme.md
Last active March 30, 2024 10:29

This is a diff between the xz-embedded repositories listed on github and at git.tukaani.org.

$ git remote -v
github  https://github.com/tukaani-project/xz-embedded (fetch)
github  https://github.com/tukaani-project/xz-embedded (push)
origin  https://git.tukaani.org/xz-embedded.git (fetch)
origin  https://git.tukaani.org/xz-embedded.git (push)
@Qix-
Qix- / FIMImporter.cs
Last active July 16, 2023 06:11
The "F**cking Import my Mesh!!!" (.FIM) format for exporting from Blender to Unity.
using UnityEngine;
using UnityEditor.AssetImporters;
using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Collections.Generic;
[ScriptedImporter(1, "fim")]
public class FIMImporter : ScriptedImporter
{
@Qix-
Qix- / fruitandveg-de.md
Last active April 3, 2023 08:09
Eclectus Foods

Von http://eclectusparrots.net/fruitandveg.html

Gemüse

  • Artischocke
  • Bete und Blätter (nährstoffreicher)
  • Bohnen (frisch, nicht getrocknet)
  • Borretsch (Art von Grünkohl)
  • Bok Choy (jede asiatische grüne Sorte)
  • Capsicum und Samen, alle Farben (rot enthält besonders viel Vitamin A, insbesondere die Samen)
@Qix-
Qix- / llvm-clang-cl-win32.cmake
Created April 10, 2022 02:38
LLVM 15 + MSVC 2021 Community Edition CMake Toolchain file
# Cross toolchain configuration for using clang-cl.
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_VERSION 10.0)
set(CMAKE_SYSTEM_PROCESSOR AMD64)
set(CMAKE_C_COMPILER "/usr/bin/clang-cl-15")
set(CMAKE_CXX_COMPILER "/usr/bin/clang-cl-15")
set(CMAKE_LINKER "/usr/bin/lld-link-15")
@Qix-
Qix- / test.h
Last active April 1, 2022 14:50
Tiny test suite for C
/*
NOTE: I'm just including this here since it was
NOTE: useful for another project. There are some
NOTE: project-specific things in here; customize
NOTE: INIT_TEST, END_TEST and TEST to suite your
NOTE: needs.
*/
#ifndef TEST_SUITE_H
#define TEST_SUITE_H
struct Bar {
enum Foo {
A = 1,
B = 2,
C = 4
};
};
using B = Bar;
@Qix-
Qix- / vox.ksy
Created November 6, 2021 09:02
Full MagickaVoxel .VOX kaitai struct definition. Should be completely conformant.
meta:
id: vox
file-extension: vox
endian: le
seq:
- id: magic
contents: ["VOX ", 0x96, 0x00, 0x00, 0x00]
- id: chunks
type: chunk
types: