Skip to content

Instantly share code, notes, and snippets.

View Kielan's full-sized avatar
💻
Java Rust Go Swift C# Typescript React Graphql C C++ Python

Kielan Kielan

💻
Java Rust Go Swift C# Typescript React Graphql C C++ Python
View GitHub Profile
@Kielan
Kielan / actor_attrs_plugin.rs
Created October 5, 2025 22:06
Attributes config file
pub struct ActorAttrs {
pub strength: u32,
pub agility: u32,
pub intelligence: u32,
pub charisma: u32,
}
@Kielan
Kielan / Sample ChatGPT Response 1
Last active September 11, 2025 23:10
ARMv1 Visual SIM Playground.
What’s Going On With c1c2s in nodes?
In your debug logs, nodes appears as an array of objects where one of the properties is c1c2s, and it's currently an empty array (Array(0)). While I couldn’t load the exact file content, based on naming conventions in these transistor-level simulation projects, c1c2s almost certainly refers to the two "clock phases" or control lines used in CMOS transistor circuits—commonly known as C1 and C2.
Context in Visual-ULA / Visual-ARM Systems:
The original Visual 6502 project reconstructs transistor-level behavior from silicon imagery to simulate how the 6502 chip functions visualizing every transistor, gate, and clock phase controlling them
visual6502.org
visual6502.org
.
@Kielan
Kielan / LSPRustTestModuleRelationShipsDoc.rs
Last active August 14, 2025 18:54
Rust Composition and Inheritance comparison in Language Server Protocol Text Modules Architectures Context https://www.youtube.com/watch?v=X_weppAAQBs
/*
let htlm = HtmlRichText(path="index.html")
html.load
let mutableRichText = MutableRichText(richText)
mutableRichText.append("Hello, ")
mutableRichTextInheritance
RichText
└── MutableRichText
└── FileRichText
/*
let htlm = HtmlRichText(path="index.html")
html.load
let mutableRichText = MutableRichText(richText)
mutableRichText.append("Hello, ")
mutableRichTextInheritance
RichText
└── MutableRichText
└── FileRichText
/*
let htlm = HtmlRichText(path="index.html")
html.load
let mutableRichText = MutableRichText(richText)
mutableRichText.append("Hello, ")
mutableRichTextInheritance
RichText
└── MutableRichText
└── FileRichText
@Kielan
Kielan / main.rs
Created August 14, 2025 18:17
Example Impl of FF7/BOTW Inventory in Rust
#[derive(Debug)]
struct Player {
state: State,
}
impl Player {
fn new() -> Self {
Self { state: PlayerCharacterInstance }
}
fn collect(&mut self, ability: Transition) {
@Kielan
Kielan / Notes.rs
Last active January 17, 2025 15:04
Where the Click Capturing Interaces with Codebase File List
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/event.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/app_handle.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/pointer.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/src/app_delegate.rs
https://github.com/lapce/floem/blob/3e25a60645cab6f0f837fdba488782d5d0a5ea7d/examples/layout/src/right_sidebar.rs
@Kielan
Kielan / Mouse_To_View_Comparator_Method.rs
Last active January 17, 2025 13:27
Get World Position from Cursor OnClick Event
//https://github.com/StarArawn/bevy_ecs_tilemap/blob/de8d005331dde7d9ebb8c4fe1b36769b84e44be5/examples/mouse_to_tile.rs#L291-L306
//from bevy_ecs_tilemap/examples/mouse_to_tile.rs
pub fn cursor_pos_in_world(
windows: &Windows,
cursor_pos: Vec2,
cam_t: &Transform,
cam: &Camera,
) -> Vec3 {
let window = windows.primary();
@Kielan
Kielan / gametest.py
Created December 12, 2024 06:04
Basketball pseudo code from Anthony on github
## Anthony Dike started: 3/8/18
##
## This is VERSION 3 of a program that
## will simulate basketball games like NBA 2k.
##
## In this version I will add
## 1) More Overtime and Sportcasting (announcers and stuff)
## 2) Notifier that says when team is blown out or a close game
## 3) Win Counter
##
@Kielan
Kielan / install_cmake.md
Created November 2, 2024 10:56 — forked from fscm/install_cmake.md
[macOS] Install CMake

[macOS] Install CMake

Instructions on how to install the CMake tool on macOS.

Uninstall

First step should be to unsinstall any previous CMake installation. This step can be skipped if no CMake version was previously installed.

To uninstall any previous CMake installations use the following commands: