Skip to content

Instantly share code, notes, and snippets.

Mike Wright wrightmikea

  • San Francisco Bay Area
Block or report user

Report or block wrightmikea

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View my-init.el
;; to show visual artifact when using darkburn, dimmer, and perspective packages
;; run with:
;; # copy the my-init.el gist somewhere, e.g. ~/Downloads
;; mkdir ./target # or rm -rf ./target/*
;; cp my-init.el ./target
;; cd ./target
;; /usr/local/bin/emacs -q -l init.el --batch # ignore the ivy-switch-buffer warning
struct Bix(u8);
impl Bix {
pub fn new(x: u8) -> Self {
Bix(*box x) // for demo only, box serves no practical purpose here
wrightmikea /
Created Feb 18, 2020
mutating a hashmap in a struct
use std::collections::HashMap;
pub struct Element {
pub a: u8,
pub struct HSS {
pub store: HashMap<u32, Vec<Element>>,
fn main() {
# 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
# Add the repository to your APT sources
sudo echo deb 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.

You can’t perform that action at this time.