emoji extracted from: https://www.buzzfeed.com/nathanwpyle/20-emojis-every-texan-wish-existed
128x128 png: http://i.imgur.com/J7aWlvq.png
class MyClass: | |
def __init__(self, a, b, c): | |
self.value_1 = a | |
self.value_2 = b | |
self.value_3 = c | |
def __iter__(self): | |
""" enables dict(object) functionality """ | |
yield "key1", self.value_1 |
emoji extracted from: https://www.buzzfeed.com/nathanwpyle/20-emojis-every-texan-wish-existed
128x128 png: http://i.imgur.com/J7aWlvq.png
#!/usr/bin/env bash | |
: "${SLACK_API_TOKEN:?Need to set SLACK_API_TOKEN environment variable}" | |
STATUS=$(/usr/bin/osascript <<"EOF" | |
if application "Spotify" is running and application "Slack" is running then | |
tell application "Spotify" | |
set currentArtist to artist of current track as string | |
set currentSong to name of current track as string | |
return currentArtist & " - " & currentSong |