Instantly share code, notes, and snippets.

Embed
What would you like to do?
In case you occasionally forget to flatMap that shit
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
@tomasherman

This comment has been minimized.

Show comment
Hide comment
@tomasherman

tomasherman Mar 5, 2013

this is cute :D

tomasherman commented Mar 5, 2013

this is cute :D

@LIttleAncientForestKami

This comment has been minimized.

Show comment
Hide comment
@LIttleAncientForestKami

LIttleAncientForestKami Aug 27, 2016

Just today this inspired me to play around with system notifications in GNU/Linux. 😀 Thanks to that, I both learned how they work and had fun. 🙇

LIttleAncientForestKami commented Aug 27, 2016

Just today this inspired me to play around with system notifications in GNU/Linux. 😀 Thanks to that, I both learned how they work and had fun. 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment