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 / jupiter_opposition.rs
Last active June 3, 2026 22:29 — forked from rust-play/playground.rs
jupiter_opposition.rs
// Required dependencies in Cargo.toml:
// [dependencies]
// chrono = "0.4"
use chrono::{TimeZone, Utc};
fn main() {
// Jupiter Opposition 2011-10-29 01:34:00 UTC
let datetime = Utc.with_ymd_and_hms(2011, 10, 29, 1, 34, 0).unwrap();
let unix_timestamp = datetime.timestamp();
@RandyMcMillan
RandyMcMillan / perfect_ip.rs
Last active May 31, 2026 19:32 — forked from rust-play/playground.rs
perfect_ip.rs
#[derive(Debug, Clone)]
struct Header {
seq_num: u32,
total_packets: u32,
}
#[derive(Debug, Clone)]
struct ProtocolSlice {
id: String,
header: Header,
@RandyMcMillan
RandyMcMillan / iso-A-series.rs
Last active May 31, 2026 17:30 — forked from rust-play/playground.rs
iso-A-series.rs
#[derive(Debug, Clone)]
struct Rect {
name: String,
x: f64,
y: f64,
width: f64,
height: f64,
}
fn subdivide_paper(rect: Rect, level: u32, max_level: u32) {
@RandyMcMillan
RandyMcMillan / UzumakiPoint.rs
Last active May 18, 2026 11:21 — forked from rust-play/playground.rs
UzumakiPoint.rs
#[allow(unused_imports)]
use std::f64::consts::PI;
/// Represents the output of the Uzumaki function F(n, t)
#[derive(Debug)]
pub struct UzumakiPoint {
pub radial_scale: f64,
pub oscillation: f64,
pub rotation: f64,
}
@RandyMcMillan
RandyMcMillan / HighlightStego.rs
Last active May 17, 2026 12:01 — forked from rust-play/playground.rs
HighlightStego.rs
use std::fs::File;
use std::io::Write;
/// Replicates the 'Highlight' steganography style.
/// Data is hidden in the filter coefficients rather than coordinates.
pub struct HighlightStego {
pub color: String, // #A112ED
}
impl HighlightStego {
@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).