Skip to content

Instantly share code, notes, and snippets.

@jpinnix
jpinnix / Pixelgrazer.taskpapertheme
Created July 8, 2010 17:59
Pixelgrazer TaskPaper Theme
<theme>
<!-- Window Style -->
<color id="foreground" red="1.0" green="0.776" blue="0.427" alpha="1.0" />
<color id="background" red="0.255" green="0.255" blue="0.255" alpha="1.0" />
<window foregroundColorID="foreground" backgroundColorID="background" shouldUseHUDScrollers="no" />
<!-- Text View Style -->
<color id="tag" red="0.800" green="0.471" blue="0.200" alpha="1.0" />
<color id="handle" extendsColorID="foreground" />
<color id="insertionPoint" red="1.0" green="1.0" blue="1.0" alpha="1.0" />
@aquarius
aquarius / gist:5823110
Last active April 5, 2019 13:10
MindNode URL Schemes

#MindNode URL Schemes

Basic

###Launch MindNode mindnode://

####Examples mindnode://

###Open Document

@hiilppp
hiilppp / list.py
Created December 10, 2013 01:11
Python script to manipulate text in Pythonista in the following manner and send the result (back) to Drafts: Sort lines, remove blank and duplicate lines, and prepend a hyphen to lines which don't start with one.
# To call script from Drafts, use the follwing URL as URL Action:
# <pythonista://list.py?action=run&argv=[[draft]]>
import os
import re
import sys
import urllib
import webbrowser
a = re.sub(r"(?m)^[*-] ", "", sys.argv[1])
@jsbain
jsbain / ZoomView.py
Created November 25, 2014 10:25
ZoomView.py
import ui
class Touch(object):
''' writable version of ui.Touch'''
def __init__(self,touch):
self.location=touch.location
self.touch_id=touch.touch_id
self.phase=touch.phase
self.prev_location=touch.prev_location
self.timestamp=touch.timestamp
@brettkelly
brettkelly / GetMessageUrl
Created November 8, 2011 21:43
Get the message:// URL of the selected message in Mail.app
tell application "Mail"
set selectedMsgs to selection
repeat with theMsg in selectedMsgs
set message_url to "message://%3c" & (the message id of theMsg) & "%3e"
tell application "Finder"
set the clipboard to message_url as text
end tell
exit repeat -- leave the repeat loop after one pass
end repeat
end tell
@drdrang
drdrang / clockface
Last active August 4, 2016 21:13
Prints Emoji clockface of the given time rounded to the nearest half-hour. Uses current time if none given. After https://github.com/RobTrew/txtquery-tools/blob/master/utilities/emotime.sh
#!/usr/bin/python
# -*- coding: utf-8 -*-
from sys import argv
from time import strftime
clocks = {'12:00': '🕛', '12:30': '🕧', '1:00': '🕐', '1:30': '🕜',
'2:00': '🕑', '2:30': '🕝', '3:00': '🕒', '3:30': '🕞',
'4:00': '🕓', '4:30': '🕟', '5:00': '🕔', '5:30': '🕠',
'6:00': '🕕', '6:30': '🕡', '7:00': '🕖', '7:30': '🕢',
docker-machine create -d virtualbox swarm-keystore
eval "$(docker-machine env swarm-keystore)"
docker run -d \
-p "8500:8500" \
-h "consul" \
progrium/consul -server -bootstrap
docker-machine create \
-d virtualbox \
@epramono
epramono / LCP2.1URLSchemes
Last active December 31, 2015 03:39
Comparing the URL Schemes supported by Launch Center Pro 2.0 and 2.1.
launchpro-light:
launch://light
launchpro-brightness://toggle?low=10&high=100
launch://brightness/toggle?low=40&high=60
launchpro-dial:
launch://dial
launchpro-clipboard://convert?format=
@waltonjones
waltonjones / ST_QuickCursor
Created December 3, 2014 05:21
Shell script for use in Keyboard Maestro macro to mimic "QuickCursor" with Sublime Text
export __CF_USER_TEXT_ENCODING=0x1F5:0x8000100:0x8000100
TMPFILE=`mktemp /tmp/XXXXXX`
/usr/bin/pbpaste > $TMPFILE
echo $TMPFILE
~/bin/subl -w $TMPFILE:10000000:10000000
@benwaldie
benwaldie / 2012-11-16-TUAW_Waldie.applescript
Created November 19, 2012 20:35
TUAW - Create Evernote Template Notebook
-- Get the path to the Evernote templates folder
set theTemplatesFolder to (path to documents folder as string) & "Evernote Templates:" as alias
-- Retrieve a list of template file names without their .enex extensions
set theTemplateNames to list folder theTemplatesFolder without invisibles
repeat with a from 1 to length of theTemplateNames
set aTemplate to item a of theTemplateNames
if aTemplate contains ".enex" then set aTemplate to text 1 thru -6 of aTemplate
set item a of theTemplateNames to aTemplate
end repeat