public

In case you occasionally forget to flatMap that shit

  • Download Gist
install_flatmap_reminder.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14
brew install growlnotify
 
cat >> ~/.bashrc <<EOF
 
#flatMapThatShit reminder
if [ -f /tmp/flatMapThatShit ]; then
kill \`cat /tmp/flatMapThatShit\`
fi
 
while true; do if [[ \$RANDOM%12 -eq 0 ]]; then growlnotify -a TextEdit "Is that scala?" -m "flatMap that shit"; fi; sleep 300; done &
echo "\$!" > /tmp/flatMapThatShit
 
#/flatMapThatShit reminder
EOF

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.