Created
August 20, 2015 01:58
-
-
Save jpf/62e2f796e0d324a8c015 to your computer and use it in GitHub Desktop.
The code I used for my welcome message at the sfpython "Project Night at Okta" event
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
import os | |
import time | |
import okta | |
# Get your very own Okta organization at: http://developer.okta.com | |
client = okta.AuthClient("https://example.okta.com", | |
"your-api-token") | |
def _large_text(input): | |
template = ("osascript -e " | |
"'tell application \"Quicksilver\" to " | |
"show large type \"{}\"'") | |
cmd = template.format(input) | |
os.system(cmd) | |
if __name__ == '__main__': | |
_large_text("Hello!") | |
def greet(): | |
_large_text("Welcome to Okta!") | |
time.sleep(2) | |
_large_text("What is Okta? Let me show you:") | |
def thanks(): | |
_large_text("Thanks!") | |
time.sleep(1) | |
_large_text("@jf") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment