Skip to content

Instantly share code, notes, and snippets.

alias ext='cd ~/projects/metamask-extension'
alias mobile='cd ~/projects/metamask-mobile'
# lock the screen
alias afk='xdg-screensaver lock'
alias away=afk
# copy paste lifted from OSX
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
@rickycodes
rickycodes / main.rs
Created December 1, 2022 17:24
sudoku
use std::collections::HashSet;
struct Quad(Vec<Vec<Cell>>);
struct Row(Vec<Cell>);
struct Cell(u8);
impl Quad {
fn is_valid(&self) -> bool {
let mut values = HashSet::new();