Skip to content

Instantly share code, notes, and snippets.

View bkendzior's full-sized avatar
🪨
beats ✂️ loses to 🧻

Brian Kendzior bkendzior

🪨
beats ✂️ loses to 🧻
  • RIOS Intelligent Machines
  • Tahoe, CA
View GitHub Profile
@bkendzior
bkendzior / cookie_viewer.js
Created February 22, 2012 18:43
Javascript for viewing cookie:value pairs - great for mobile
@bkendzior
bkendzior / .cowsayfortune
Created January 9, 2013 02:41
Have a random cow tell you fortunes
# Have a random cow tell you fortunes
function cowsayfortune {
NUMOFCOWS=`cowsay -l | tail -n +2 | wc -w`
WHICHCOW=$((RANDOM%$NUMOFCOWS))
THISCOW=`cowsay -l | tail -n +2 | sed -e 's/\ /\'$'\n/g' | sed $WHICHCOW'q;d'`
#echo "Selected cow: ${THISCOW}, from ${WHICHCOW}"
fortune | cowsay -f $THISCOW -W 100
}