This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == WHAT | |
# Expand the tweets mentioned in a channel, as well as the tweets those tweets refer to. | |
# | |
# == WHO | |
# Jan Moesen, 2012 | |
# | |
# == INSTALL | |
# Place these files in `~/.irssi/scripts/`. | |
# /script load twatspam.pl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read a random word from the dictionary and try to get its definition from | |
# Merriam-Webster. | |
function word-of-the-day { | |
local file="${1:-/usr/share/dict/words}"; | |
if ! [ -r "$file" ]; then | |
echo "Cannot read from dictionary file: $file" 1>&2; | |
return 1; | |
fi; | |
local IFS=$'\n' words=($(<"$file")); | |
local num_words=${#words[@]}; |
NewerOlder