Skip to content

Instantly share code, notes, and snippets.

@jpf
Created August 20, 2015 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpf/62e2f796e0d324a8c015 to your computer and use it in GitHub Desktop.
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
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