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 feedparser | |
import time | |
import datetime | |
from dateutil import tz | |
import re | |
import httplib | |
import urllib | |
DROPBOX_PERSONAL_FEED = '' | |
DROPBOX_WORK_FEED = '' |
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 4 script step to create custom tags | |
// using the a line or a default value if that line is empty or missing | |
// split draft into an array of lines | |
var lines = draft.content.split('\n'); | |
// reusable function to define tag based on line or default string | |
function createLineTag(lineNumber,default) { | |
var tagName = "line"+(lineNumber+1).toString(); | |
if(lines[lineNumber] && lines[lineNumber].length > 0) { |
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 BeautifulSoup import BeautifulSoup as Soup | |
import urllib | |
raw_page = urllib.urlopen('http://www.sfrandonneurs.org/home.htm') | |
soup = Soup(raw_page) | |
class MarkdownTable: | |
@staticmethod |
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 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 |
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
export __CF_USER_TEXT_ENCODING=0x1F5:0x8000100:0x8000100 | |
TMPFILE=`mktemp /tmp/XXXXXX` | |
/usr/bin/pbpaste > $TMPFILE | |
echo $TMPFILE | |
~/bin/subl -w $TMPFILE:10000000:10000000 |
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-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= |
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
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 \ |
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 | |
# -*- 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': '🕢', |
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
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 |
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 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 |
OlderNewer