Skip to content

Instantly share code, notes, and snippets.

View wphicks's full-sized avatar

William Hicks wphicks

  • NVIDIA
  • Gainesville, FL
View GitHub Profile
@wphicks
wphicks / notes.bash
Created May 14, 2018 11:42
Convenient note-taking functions with fzf
function ff() {
if [ -z $1 ]
then
search_dir="."
else
search_dir="$1"
fi
ag --nobreak --noheading . $search_dir | \
fzf --preview='cat "$(echo {} | cut -d: -f1)"' --preview-window=right
}
@wphicks
wphicks / odt_word_count.py
Created July 10, 2017 20:06
A basic command line tool for determining word count of Open Document Text (.odt and .fodt) files
#!/usr/bin/env python3
import os
import sys
import argparse
import zipfile
import shutil
import tempfile
import xml.etree.ElementTree as ET