Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@RandyMcMillan
RandyMcMillan / bft_clock_simple.rs
Last active May 11, 2026 17:35 — forked from rust-play/playground.rs
bft_clock_simple.rs
// p2p/src/time_sync.rs
// A verbose example of BFT-influenced time synchronization
// conceptually bridging Gnostr gossip and Bitcoin recalibration logic.
use std::time::{SystemTime, UNIX_EPOCH};
use std::collections::VecDeque;
#[derive(Debug)]
pub struct BFTClock {
local_offset: i64, // Offset in milliseconds from system clock
@RandyMcMillan
RandyMcMillan / svg_stego.rs
Last active May 9, 2026 00:01 — forked from rust-play/playground.rs
svg_stego.rs
use std::fs::File;
use std::io::{Read, Write};
use std::path::Path;
/// A sovereign SVG steganography tool using zero external dependencies.
pub struct SvgStego {
pub width: u32,
pub height: u32,
}
@RandyMcMillan
RandyMcMillan / std_stego.rs
Last active May 8, 2026 18:42 — forked from rust-play/playground.rs
std_stego.rs
use std::fs::File;
use std::io::{Read, Write, BufWriter, BufReader};
use std::path::Path;
pub struct StdStego {
pub pixels: Vec<u8>, // Raw RGB data
pub width: u32,
pub height: u32,
}
@RandyMcMillan
RandyMcMillan / byz_cascading_quorum_v3.rs
Last active May 6, 2026 14:33 — forked from rust-play/playground.rs
byz_cascading_quorum_v3.rs
#![allow(deprecated)]
use chrono::{DateTime, Duration, /*Local, */Timelike, Utc};
use num_bigint::BigUint;
use rand_0_8_6::{thread_rng as rng_legacy, Rng as RngLegacy};
use rand_0_9_4::{thread_rng as rng_latest, Rng as RngLatest};
use sha2::{Digest, Sha256};
// --- GIT-COMPLIANT SHA-1 ENGINE ---
fn git_sha1(data: &[u8]) -> String {
@RandyMcMillan
RandyMcMillan / arxiv-2511-04021.rs
Last active April 21, 2026 12:59 — forked from rust-play/playground.rs
arxiv-2511-04021.rs
//! # Harmonic Convergence Payment Channel Engine (Synchronized Build)
//!
//! BRIDGE: arXiv:2511.04021 (OTS-PC) & 13:20 Harmonic Matrix.
//!
//! REPOSITORY STATE:
//! 1. 13:20 Matrix with Hex Fingerprint Commitments.
//! 2. State Revelation Logic (Active Row Revealed, others <LOCKED>).
//! 3. Full 9-Underworld Fractal Analytics (Cycle, Stage, Phase, Progress, Day).
//! 4. Specific High-Frequency Wave Reports (Planetary, Galactic, Universal).
//! 5. Evolutionary Channel State Examples (Proposed, Settled, Forward Commitment).
@RandyMcMillan
RandyMcMillan / arxiv-2511-04021.rs
Last active April 21, 2026 12:22 — forked from rust-play/playground.rs
arxiv-2511-04021.rs
use chrono::{DateTime, Utc, NaiveDate};
/** * --- COSMIC SOURCE OF TRUTH ---
* The 20 Solar Seals serve as the Archetypal 'State Row' in the 13:20 Matrix.
* In a Lerner-Futoransky OTS-PC model, these represent the rotational
* entropy of the sequence identifiers.
*/
const SEALS: [&str; 20] = [
"Red Dragon", "White Wind", "Blue Night", "Yellow Seed",
"Red Serpent", "White Worldbridger", "Blue Hand", "Yellow Star",
@RandyMcMillan
RandyMcMillan / harmonic_timestamp.rs
Last active April 19, 2026 20:05 — forked from rust-play/playground.rs
harmonic_timestamp.rs
use chrono::{DateTime, Utc, NaiveDate};
/// The 20 Solar Seals (Rows of the 13:20 Matrix)
const SEALS: [&str; 20] = [
"Red Dragon", "White Wind", "Blue Night", "Yellow Seed",
"Red Serpent", "White Worldbridger", "Blue Hand", "Yellow Star",
"Red Moon", "White Dog", "Blue Monkey", "Yellow Human",
"Red Skywalker", "White Wizard", "Blue Eagle", "Yellow Warrior",
"Red Earth", "White Mirror", "Blue Storm", "Yellow Sun"
];
@RandyMcMillan
RandyMcMillan / cycle_count.rs
Last active April 19, 2026 19:36 — forked from rust-play/playground.rs
cycle_count.rs
use chrono::{NaiveDate, DateTime, Utc};
const SEALS: [&str; 20] = [
"Red Dragon", "White Wind", "Blue Night", "Yellow Seed",
"Red Serpent", "White Worldbridger", "Blue Hand", "Yellow Star",
"Red Moon", "White Dog", "Blue Monkey", "Yellow Human",
"Red Skywalker", "White Wizard", "Blue Eagle", "Yellow Warrior",
"Red Earth", "White Mirror", "Blue Storm", "Yellow Sun"
];
@RandyMcMillan
RandyMcMillan / spectral_lines.rs
Last active April 13, 2026 12:00 — forked from rust-play/playground.rs
spectral_lines.rs
// Cargo.toml dependencies:
// serde = { version = "1.0", features = ["derive"] }
// chrono = "0.4"
// rand_0_8_5 = { package = "rand", version = "0.8.5" }
use serde::Serialize;
use std::collections::HashMap;
/// Speed of light (c) in m/s
const C: f64 = 299_792_458.0;
@RandyMcMillan
RandyMcMillan / titanium.rs
Last active April 13, 2026 11:55 — forked from rust-play/playground.rs
titanium.rs
// Cargo.toml dependencies:
// serde = { version = "1.0", features = ["derive"] }
// chrono = "0.4"
// rand_0_8_5 = { package = "rand", version = "0.8.5" }
use serde::Serialize;
use chrono::Utc;
use rand_0_8_5::{thread_rng as rng_legacy, Rng as RngLegacy};
/// Speed of light in vacuum (m/s)