Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
mygeekdaddy / ImportToOF.py
Created February 7, 2013 20:04
ImportToOF
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-04
#Rev Note: Added Page Title & URL to clipped txt
import webbrowser
import clipboard
import urllib
import console
import sys
@mygeekdaddy
mygeekdaddy / weather.py
Created March 19, 2014 02:23
Python script to scrape webpage for weather widget area
#!/usr/bin/env python
# use selenium to take webpage screen shot based on stackoverflow from Corey Goldberg
# http://stackoverflow.com/questions/3422262/take-a-screenshot-with-selenium-webdriver/6282203#6282203
# http://stackoverflow.com/questions/3422262/take-a-screenshot-with-selenium-webdriver
from selenium import webdriver
from PIL import Image
import PIL.ImageOps
import time
@mygeekdaddy
mygeekdaddy / clipboard_check.py
Created April 8, 2014 17:44
clipboard_check
#Convert clipboard to uppercase/lowercase
import clipboard
text = clipboard.get()
if text == '':
print 'No text in clipboard'
else:
uppercase = text.upper()
if uppercase != text:
new_clip = uppercase
else:
@mygeekdaddy
mygeekdaddy / Clipboard_to_MD.py
Created April 8, 2014 17:45
Clipboard_to_MD
import markdown
import clipboard
input_file = clipboard.get()
s = input_file
md = markdown.Markdown()
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-04
#Rev Note: Added Page Title & URL to clipped txt
import webbrowser
import clipboard
import urllib
import console
import sys
# More information: http://n8henrie.com/2013/03/send-multiple-tasks-to-omnifocus-at-once-with-drafts-and-pythonista
# Script name: MultiLineOmniFocus
# Drafts "URL Action": pythonista://MultiLineOmniFocus?action=run&argv=[[draft]]
# Modified from email script by OMZ: https://gist.github.com/omz/4073599
import smtplib
from email.mime.multipart import MIMEMultipart
from email import encoders
import sys
import socket
import console
console.clear()
fqdn = socket.getfqdn() + '.local'
ip_addr = socket.gethostbyname(fqdn)
print ip_addr
import photos
import Image
choose = photos.pick_image()
final = choose.resize((800,600),Image.ANTIALIAS)
saveit = photos.save_image(final)
if saveit is True:
import Image, ImageOps, ImageFilter
import photos
import console
import clipboard
import datetime
img = photos.pick_image()
today = datetime.datetime.now()
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-04
#Rev Note: Added Page Title & URL to clipped txt
import webbrowser
import clipboard
import urllib
import console
import sys