Skip to content

Instantly share code, notes, and snippets.

View rippinrobr's full-sized avatar

Rob Rowe rippinrobr

View GitHub Profile
@RalfNorthman
RalfNorthman / gist:4204ed3afda04d2ead43ba3330e7b786
Last active September 29, 2019 17:01
Installing Elm on Antergos (ArchLinux)
sudo pacman -S npm
sudo npm install --unsafe-perm -g elm elm-test elm-oracle elm-format
sudo ln -s /usr/lib/libtinfo.so /usr/lib/libtinfo.so.5
# Add this to your .vimrc if you use Vim with Vundle:
Plugin 'ElmCast/elm-vim'
@bjorndown
bjorndown / enum_display.rs
Created February 28, 2016 13:20
Rust: Implement fmt::Display for enum
use std::fmt;
#[derive(Copy,Clone)]
enum CellState { Dead, Alive }
impl fmt::Display for CellState {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let printable = match *self {
CellState::Alive => 'x',
CellState::Dead => ' ',