Skip to content

Instantly share code, notes, and snippets.

View wrightmikea's full-sized avatar
💭
rusting away

Mike Wright wrightmikea

💭
rusting away
  • San Francisco Bay Area
View GitHub Profile
@wrightmikea
wrightmikea / main.rs
Created February 18, 2020 08:10
mutating a hashmap in a struct
use std::collections::HashMap;
#[derive(Debug)]
pub struct Element {
pub a: u8,
}
#[derive(Debug)]
pub struct HSS {
pub store: HashMap<u32, Vec<Element>>,
}
fn main() {
@wrightmikea
wrightmikea / Install-Docker-on-Linux-Mint.sh
Created January 31, 2016 18:31 — forked from sethbergman/Install-Docker-on-Linux-Mint.sh
Install Docker on Linux Mint 17.3
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
sudo apt-get update
sudo apt-get install -y apt-transport-https
fi
# Add the repository to your APT sources
sudo echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list
# Then import the repository key

A comparison of the src directory for three versions of d3. Also see d3 src tree.