Created
July 14, 2017 13:48
-
-
Save pudquick/a52b036424bd9975d719f224ca8cc8d5 to your computer and use it in GitHub Desktop.
Search my gists ;p
This file contains hidden or 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
#!/usr/bin/python | |
from Foundation import NSWorkspace, NSURL | |
import urllib | |
def show_gists(): | |
NSWorkspace.sharedWorkspace().openURL_(NSURL.URLWithString_('https://gist.github.com/search?q=%40pudquick&ref=searchresults')) | |
def search_gists(search_string): | |
NSWorkspace.sharedWorkspace().openURL_(NSURL.URLWithString_('https://gist.github.com/search?q=%%40pudquick+%s&ref=searchresults' % search_string)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The imports are wrong. Should be: