Skip to content

Instantly share code, notes, and snippets.

Jason Verly mygeekdaddy

Block or report user

Report or block mygeekdaddy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ImportToOF.py
#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 Mar 19, 2014
Python script to scrape webpage for weather widget area
View weather.py
#!/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
View clipboard_check.py
#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:
View Clipboard_to_MD.py
import markdown
import clipboard
input_file = clipboard.get()
s = input_file
md = markdown.Markdown()
View CliptoDrafts.py
#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
View DumpToOF.py
# 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
View get_ipaddr.py
import socket
import console
console.clear()
fqdn = socket.getfqdn() + '.local'
ip_addr = socket.gethostbyname(fqdn)
print ip_addr
View ImageResize.py
import photos
import Image
choose = photos.pick_image()
final = choose.resize((800,600),Image.ANTIALIAS)
saveit = photos.save_image(final)
if saveit is True:
View ImgResize.py
import Image, ImageOps, ImageFilter
import photos
import console
import clipboard
import datetime
img = photos.pick_image()
today = datetime.datetime.now()
View ImportToOF.py
#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
You can’t perform that action at this time.