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
{ | |
"auto_complete": true, | |
"auto_indent": true, | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/User/Made of Code.tmTheme", | |
"default_encoding": "UTF-8", | |
"default_line_ending": "unix", | |
"detect_indentation": true, |
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
for f in *; do sips -z 193 309 $f; done; |
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
from scene import * | |
from glob import glob | |
from time import time | |
from itertools import chain | |
import console | |
import os | |
files = glob('*') |
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 re | |
g = re.search ('\[[^\]]*\]\(.*"([^"]*)"\)','[foo](bar.com "Title")') | |
print (g.group(1)) |
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 requests | |
CLIENT_KEY="" | |
EMAIL="" | |
PASSWORD="" | |
AUTHORIZE_ENDPOINT="http://feedwrangler.net/api/v2/users/authorize?email=%s&password=%s&client_key=%s" % (EMAIL, PASSWORD, CLIENT_KEY) | |
authorize = requests.get(AUTHORIZE_ENDPOINT) | |
access_token = authorize.json()['access_token'] |
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
#!/usr/bin/env python3 | |
from os.path import expanduser | |
from urllib import request | |
from urllib import parse | |
import json | |
import sys | |
API_URL = "https://feedwrangler.net/api/v2/" |
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
# Date parsing for Things | |
# by Cormac Relf - cormacrelf.com - @cormacrelf | |
# depends on parsedatetime | |
# use the .py files extracted from v0.8.7 from here: https://gist.github.com/4583376 | |
# alternatively: | |
# download pipista; https://gist.github.com/4116558 | |
# in the plain Pythonista console, type `import pipista`, then `pipista.pypi_download("parsedatetime")` | |
# download shellista; https://gist.github.com/4139094 | |
# running shellista, enter the following commands, which have been shortened for your convenience: |
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
#!/usr/bin/python | |
import Image | |
import base64, zlib | |
# Jay Parlar convinced me to turn this data structure | |
# from a dictionary into an object. | |
class PackedImage(object): | |
def __init__(self, mode, size, data): | |
self.mode = mode |
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
{ | |
"actions" : [ | |
{ | |
"class" : "WorkflowActionRequestTextInput", | |
"parameters" : { | |
"multiLineOption" : 1, | |
"title" : "Append to Scratch" | |
} | |
}, | |
{ |
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
This gist contains a workflow for Editorial, an app for | |
writing plain text and markdown on iOS. | |
To import the workflow, copy the *entire* text of the gist, | |
then open Editorial and create a new workflow. | |
------------ BEGIN WORKFLOW ------------ | |
{ | |
"actions" : [ | |
{ |
OlderNewer