Skip to content

Instantly share code, notes, and snippets.

@danlshields
danlshields / .dotfiles
Last active November 27, 2022 05:06
.dotfiles
#!/bin/zsh
git clone --bare git@github.com:danlshields/.dotfiles.git $HOME/.dotfiles
function dotfiles {
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
dotfiles checkout
if [ $? = 0 ]; then
echo "Checked out config."
@danlshields
danlshields / hangman.hs
Last active October 26, 2015 16:55
Hangman in Haskell
import Control.Monad
import Data.Bifunctor
import Data.Function
import Data.Char
import Data.List
import Data.Maybe
import System.Random (randomRIO)
import System.IO
-- Each character and whether that character is visible, and the set of mistakes
@danlshields
danlshields / keybase.md
Last active April 27, 2018 10:54
Keybase Verification

Keybase proof

I hereby claim:

  • I am danlshields on github.
  • I am vedosity (https://keybase.io/vedosity) on keybase.
  • I have a public key whose fingerprint is BDF2 B9D2 59DF 9D91 6B65 AA73 FDFA 1A51 8AE9 99C8

To claim this, I am signing this object: