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
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/ | |
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it. | |
# You may find odd result: try searching for both device categories. | |
# If you find any bug, you can find me @silouane20 on Twitter. | |
from PIL import Image | |
from StringIO import StringIO | |
import re | |
import requests | |
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
launchpro-messaging://x-callback-url/? | |
to=[[title]]& | |
body=[[body]]%0A%0A | |
{{due://x-callback-url/add?title=[[body]]}} | |
&x-success={{drafts://}} |
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
# Launcher | |
# | |
# A Simple Launcher in Notification Center | |
from scene import * | |
import webbrowser,console,notification | |
#----------Launcher Settings--------------- | |
key_names = [[['GChrome','googlechrome:'], | |
['Keeper','keeper:']], | |
[['Calculator','calculatorinfinity:']], |
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
def namedlist(typename, field_names): | |
"""Returns a new subclass of list with named fields. | |
>>> Point = namedlist('Point', ('x', 'y')) | |
>>> Point.__doc__ # docstring for the new class | |
'Point(x, y)' | |
>>> p = Point(11, y=22) # instantiate with positional args or keywords | |
>>> p[0] + p[1] # indexable like a plain list | |
33 | |
>>> x, y = p # unpack like a regular list |
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
due://x-callback-url/add? | |
title=Call%20[[title]]%20at%20[[body]]%0A | |
{{drafts://x-callback-url/create? | |
text=[[title]]& | |
action=Copy%20to%20Clipboard& | |
x-success=launchpro-dial%3A& | |
afterSuccess=Delete}}& | |
x-source=Drafts& | |
x-success={{drafts://}} |
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
due://x-callback-url/add? | |
title=[[title]]& | |
x-source=Drafts& | |
x-cancel= | |
{{drafts://x-callback-url/create? | |
text=[[body]]& | |
action=Add%20Reminders%20to%20Due& | |
allowEmpty=NO& | |
afterSuccess=Delete}} | |
&x-success= |
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
drafts://x-callback-url/create? | |
text=[[draft]]& | |
action={{Copy to Clipboard}}& | |
x-success= | |
{{launchpro-clipboard://x-callback-url/convert? | |
format=urlencode& | |
x-success=drafts%3A%2F%2F}} |
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
drafts://x-callback-url/import_action? | |
type=URL& | |
name=[[title]]& | |
url=[[body]] |
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
due://x-callback-url/add? | |
title=Mail%20about%20[[line|2]]%20at%20[[line|3]]%0A | |
{{launchpro-email://x-callback-url/? | |
to=[[line|1]]& | |
subject=[[line|2]]& | |
body=[[line|4..]]& | |
x-success=due%3A%2F%2F}}& | |
x-source=Drafts& | |
x-success={{drafts://}} |
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
# Space Invaders clone | |
# by davebang | |
from scene import * | |
from time import sleep | |
from console import * | |
import sound | |
from random import randint | |
screen_size = Size() |