Last active
August 29, 2015 14:14
-
-
Save morishin/c504a6e99b03a80d1349 to your computer and use it in GitHub Desktop.
yo_me
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
function send_yo() { | |
curl -s -d "api_token=API_TOKEN" -d "username=$1" http://api.justyo.co/yo/ | |
} | |
function yome() { | |
if [ $# -gt 0 ]; then | |
for arg in $@ | |
do | |
send_yo $arg > /dev/null | |
done | |
else | |
send_yo "YOUR_USERNAME" > /dev/null | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment