Skip to content

Instantly share code, notes, and snippets.

View chrisnorris's full-sized avatar

chris norris chrisnorris

View GitHub Profile
chrisnorris /
Last active October 8, 2019 04:40 — forked from rumpelsepp/
Fuzzy cd for fish shell using fzf
function fcd --description "Fuzzy change directory"
if set -q argv[1]
set searchdir $argv[1]
set searchdir $HOME
set -l tmpfile (mktemp)
find $searchdir \( ! -regex '.*/\..*' \) ! -name __pycache__ -type d | fzf > $tmpfile
chrisnorris / extractDirectoryNames.hs
Last active September 11, 2019 10:53
haskell script to recursively save directory names to file
{-# LANGUAGE OverloadedStrings #-}
import Data.ByteString as B hiding (filter)
import Data.Set (fromList, member)
import Data.Text as T hiding (filter)
import Data.Text.Encoding
import System.Directory
import System.FilePath.Windows
-- work around encoding problems
main = recursiveDirectoryNames "."
chrisnorris / asciify.hs
Created September 11, 2019 10:04
haskell script to asciify image, scaling is next step
#!/usr/bin/env stack
{- stack
--resolver lts-14.5
exec ghci
--package JuicyPixels
--package lens
--package split
{-# LANGUAGE ScopedTypeVariables #-}