I hereby claim:
- I am claylevering on github.
- I am claylevering (https://keybase.io/claylevering) on keybase.
- I have a public key ASDTcYMAnmKfHPB8pSzPPakSY-Sy9R_Sm9pZNEkluJuUAwo
To claim this, I am signing this object:
| # modified API url to align with changes to bit.ly requirements - @claylevering | |
| # find the .alfredextension here: http://cl.ly/EEUK | |
| declare -r API='https://api-ssl.bitly.com/v3/shorten' | |
| declare -r LOGIN='yourlogin' | |
| declare -r API_KEY='yourapi' | |
| # add http scheme to URL if none is provided | |
| longURL=$(printf "{query}" | sed -E -e 's|^.|http://&|' -e 's|^http://([a-zA-Z\-\.\+]+://)|\1|') | |
| # applescript by @claylevering - more info here: http://claylevering.com/?p=16 | |
| # download .alfredextension here - http://cl.ly/2h393j3s2Z3x03423U04 | |
| on alfred_script(q) | |
| set q to q as text | |
| if (q is equal to "") then | |
| log "no parameter" | |
| set alfredInput to "Other" | |
| set q to "Other" | |
| else |
| [email protected]?subject=Jennifer%20Borrego%20with%20Whimsy%20%26%20Wood&body=I%20cast%20my%20vote%20for%20Jennifer%20Borrego%20with%20Whimsy%20%26%20Wood! | |
| copy and paste that above if you're using an "Insert link" function I'm an email client. if you want to post on your website: | |
| <a href="mailto:[email protected]?subject=Jennifer%20Borrego%20with%20Whimsy%20%26%20Wood&body=I%20cast%20my%20vote%20for%20Jennifer%20Borrego%20with%20Whimsy%20%26%20Wood!">Click here to vote for Whimsy & Wood</a> |
I hereby claim:
To claim this, I am signing this object: