Skip to content
View stevedylandev's full-sized avatar

Block or report stevedylandev

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
stevedylandev/README.md
git clone https://github.com/stevedylandev/stevedylandev && cd stevedylandev && cargo run
use std::{thread, time::Duration};
use std::process::Command;

struct Human {
    name: String,
    title: String,
    job: String,
    hobbies: Vec<String>,
    dream: String,
    website: String,
    side_projects: Vec<String>,
}

impl Human {
    fn introduce(&self) {
        println!("Name: {}", self.name);
        println!("Title: {}", self.title);
        println!("Job: {}", self.job);
        println!("Website: {}", self.website);

        println!("Hobbies:");
        for hobby in &self.hobbies {
            println!("  - {}", hobby);
        }

        println!("Side Projects:");
        for project in &self.side_projects {
            println!("  - {}", project);
        }

        println!("Dream: {}", self.dream);
    }

    fn surprise(&self) -> String {
        let hex = "6375726c2061736369692e6c6976652f7269636b";
        String::from_utf8(
            hex.chars()
                .collect::<Vec<char>>()
                .chunks(2)
                .map(|chunk| {
                    let hex_str: String = chunk.iter().collect();
                    u8::from_str_radix(&hex_str, 16).unwrap_or(0)
                })
                .collect::<Vec<u8>>(),
        )
        .unwrap_or_default()
    }
}

fn main() {
    let steve = Human {
        name: String::from("Steve Simkins"),
        title: String::from("Developer Relations"),
        job: String::from("https://openzeppelin.com"),
        hobbies: vec![
            String::from("photography"),
            String::from("specialty coffee"),
            String::from("programming"),
        ],
        dream: String::from(
            "Help build the future of the web through developers tools, cryptography, and trust based protocols",
        ),
        website: String::from("https://stevedylan.dev"),
        side_projects: vec![
            String::from("https://orbiter.host"),
            String::from("https://bhvr.dev"),
        ],
    };

    steve.introduce();
    thread::sleep(Duration::from_secs(2));
    let secret = steve.surprise();
    let mut child = Command::new("sh")
        .arg("-c")
        .arg(&secret)
        .spawn()
        .expect("Failed");
    child.wait().expect("Failed");
}

Pinned Loading

  1. bhvr bhvr Public template

    A monorepo template using Bun, Hono, Vite, and React

    CSS 1.6k 77

  2. PinataCloud/ipcm PinataCloud/ipcm Public

    InterPlanetary CID Mapping Smart Contracts

    Solidity 43 5

  3. darkmatter darkmatter Public

    A better terminal default

    Shell 42 2

  4. ansi-nvim ansi-nvim Public

    A neovim colorscheme that follows your terminal

    Lua 39 1

  5. dotfiles dotfiles Public

    A collection of some of my MacOS Dotfiles

    Nushell 34 1

  6. atlas atlas Public

    A CLI for exploring ENS

    TypeScript 13 1