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 sublime, sublime_plugin | |
import re | |
import time | |
class AvailableTasksCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
today_date = time.strftime('%Y-%m-%d') | |
self.available_marker = [] |
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 sublime, sublime_plugin | |
import re | |
# For use with the TaskPaper format. Function to display list of all projects and allow jumping to one from the list. | |
class ListProjectsCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
self.markers = [] |
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 sys | |
import re | |
import urllib | |
import clipboard | |
def titleCase(s): | |
newText = re.sub(r"[A-Za-z]+('[A-Za-z]+)?",lambda mo: mo.group(0)[0].upper() + mo.group(0)[1:].lower(),s) | |
return newText | |
print "Convert to:" |
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" : [ | |
{ |
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
""" | |
Convert CSV string to fixed width text table. Supports multi-line rows, column width limits, and creates a header row automatically | |
@author Tony Landis | |
@link http://www.tonylandis.com | |
@license GPL | |
""" | |
from math import ceil | |
class CsvToTxt(): |
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
import os | |
import sys | |
import pickle | |
import console | |
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder | |
sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')] | |
import dropboxlogin # this code can be found here https://gist.github.com/4034526 | |
STATE_FILE = '.dropbox_state' |
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
https://itunes.apple.com/us/app/sql-ed/id475312085?mt=8 |
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
# get_links.py | |
# https://pythonadventures.wordpress.com/2011/03/10/extract-all-links-from-a-web-page/ | |
import re | |
import sys | |
import urllib | |
import urlparse | |
from bs4 import BeautifulSoup | |
import clipboard |
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
# encoding=utf8 | |
""" | |
formd by Seth Brown, 02-24-12 | |
modified for iOS use (Pythonista) by Brett Terpstra, 10-17-12 | |
""" | |
from sys import stdin, stdout | |
import clipboard | |
import re | |
from collections import OrderedDict |
NewerOlder