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 / index.html
Last active September 3, 2025 23:30
To convert a binary string into its corresponding character(s) in JavaScript, the following steps can be taken:
Split the binary string: If the binary string represents multiple characters (e.g., "01000001 01100010" for "Ab"), it needs to be split into individual binary representations of each character. This is typically done by splitting the string by a delimiter, usually a space.
const binaryString = "01000001 01100010"; // Binary for "Ab"
const binaryArray = binaryString.split(" ");
// binaryArray will be ["01000001", "01100010"]
@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:

export default function Widget() {
return (
<div className="bg-white p-6 rounded-lg shadow-lg max-w-4xl mx-auto">
<div className="grid grid-cols-3 gap-4">
<div className="col-span-1 bg-white p-4 rounded-lg shadow-sm">
<img className="rounded-full w-32 h-32 mx-auto" src="https://placehold.co/128x128" alt="Profile Picture">
<h2 className="text-center text-xl font-semibold mt-4">Monalisa Ashley</h2>
<p className="text-center text-zinc-500">UI/UX Designer</p>
<div className="flex justify-center gap-2 mt-4">