Skip to content

Instantly share code, notes, and snippets.

@mmlinford
mmlinford / build-dogecoin-debian-9.5.sh
Last active August 11, 2018 22:20
build dogecoin on Debian 9.5
# install Berkeley DB 5.1
echo "deb http://security.debian.org/debian-security wheezy/updates main" >> /etc/apt/sources.list
apt-get --assume-yes update
apt-get --assume-yes install libdb5.1++-dev
# checkout dogecoin
apt-get --assume-yes install git
git clone http://github.com/dogecoin/dogecoin.git
# configure build
struct ThingA;
impl ThingA {
fn do_action_a(self) -> ThingB {
ThingB
}
}
struct ThingB;
@mmlinford
mmlinford / state_machine.rs
Last active March 22, 2018 15:42
Rust State Machine
struct ThingA;
impl ThingA {
fn do_action_a(self) -> ThingB {
ThingB
}
}
struct ThingB;
extern crate reqwest;
#[macro_use]
extern crate serde_derive;
#[derive(Debug, Deserialize)]
struct MarketGroup {
description: String,
market_group_id: u32,
name: String,