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
View main.rs
// https://github.com/rust-lang/rust/issues/49733
// https://doc.rust-lang.org/1.7.0/book/box-syntax-and-patterns.html
#![feature(box_syntax)]
#[derive(Debug)]
struct Bix(u8);
impl Bix {
pub fn new(x: u8) -> Self {
Bix(*box x) // for demo only, box serves no practical purpose here
@wrightmikea
wrightmikea / main.rs
Created Feb 18, 2020
mutating a hashmap in a struct
View main.rs
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() {
View Install-Docker-on-Linux-Mint.sh
# 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
View README.md

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.