Skip to content

Instantly share code, notes, and snippets.

View SkymanOne's full-sized avatar
🎯
Focusing

Gherman SkymanOne

🎯
Focusing
View GitHub Profile
@SkymanOne
SkymanOne / merkle_tree.rs
Last active July 28, 2022 23:01
Simple Merkle Tree
//! This is minimal Merkle tree implementation with proof checking
use std::{
collections::hash_map::DefaultHasher,
hash::{Hash, Hasher},
};
fn main() {
let s = "";
let h = calculate_merkle_root("Trust me, bro!");
@SkymanOne
SkymanOne / sig.rs
Last active August 2, 2022 00:43
working signature
use std::fmt::format;
use parity_scale_codec::{ Encode, Decode};
use sp_core::{H256, H512, Pair};
use sp_core::sr25519::{Signature};
fn main() {
let print_string = generate("//Alice", Vote::Yes);
println!("Alice - Yes - {}", fm(print_string));

Keybase proof

I hereby claim:

  • I am skymanone on github.
  • I am skymanone (https://keybase.io/skymanone) on keybase.
  • I have a public key ASBQRqppoX6tTqEnj8bkHUYd4bM1KtP6RfwKw-H_J5CuIwo

To claim this, I am signing this object:

@SkymanOne
SkymanOne / Workshop.sh
Last active October 24, 2023 16:14
Eth Workshop
cast send <contract> "store(uint256 num)" "1" --unlocked --from 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
cast call <contract> "retrieve()"
@SkymanOne
SkymanOne / dictate.sh
Created February 11, 2026 15:55
Simple utility to dictate prompt and save it to clipboard for coding agents
#!/usr/bin/env bash
# Dictate: press Enter to start/stop recording, transcribes, pastes into Claude Code.
#
# Run in a separate terminal next to Claude Code.
# Press Enter to start recording, Enter again to stop.
# Transcribed text is copied to clipboard and pasted into the previous window.
#
# Usage:
# dictate # base model
# dictate small # whisper small model