Skip to content

Instantly share code, notes, and snippets.

View jamesmunns's full-sized avatar

James Munns jamesmunns

View GitHub Profile
@jamesmunns
jamesmunns / rust-ownership-examples.rs
Last active August 25, 2025 10:42 — forked from ShawnHymel/rust-ownership-examples.rs
Rust ownership and borrowing rules demonstration
// Demonstration of the major ownership and borrowing rules in Rust
// Run with `rustc rust-ownership-examples.rs && ./rust-ownership-examples`
struct SensorReading {
value: u16,
timestamp_ms: u32,
}
//------------------------------------------------------------------------------
// 1. Each value in Rust has an owner.
@jamesmunns
jamesmunns / arch-linux-install.md
Created July 28, 2018 16:04 — forked from kylemanna/arch-linux-install.md
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks