Skip to content

Instantly share code, notes, and snippets.

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# The MIT License (MIT)
#
# Copyright 2015 Adam Pritchard
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@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 / OmniFocus_Ad_Hoc.scpt
Created September 5, 2015 21:12
Applescript to create a new task to log ad hoc request to document task for any follow up during weekly review.
-- Copyright (c) 2015 Jason Verly
-- Original script by Dan Byler (bylr.net)
-- Permission is hereby granted, free of charge,
-- to any person obtaining a copy of this software
-- and associated documentation files (the "Software"),
-- to deal in the Software without restriction,
-- including without limitation the rights to use, copy,
-- modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Software, and to permit persons
#Import into Omnifocus a list of task from the clipboard
import clipboard
import re
import webbrowser
import urllib
import console
base = 'omnifocus:///add?name='
text = clipboard.get()
@mygeekdaddy
mygeekdaddy / custom.css
Created July 3, 2015 22:08
Custom CSS file from Marked to generated graph lines in PDF files
/*
This document has been created with Marked.app <http://markedapp.com>, Copyright 2011 Brett Terpstra
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Title: custom.css
Author: Jason Verly (@mygeekdaddy)
Description: Custom CSS file to generate 'graph paper' on rendered MD to PDF
*/
@mygeekdaddy
mygeekdaddy / custom_graph.ss
Created July 3, 2015 18:27
Marked Custom.css with graph marks
/*
This document has been created with Marked.app <http://markedapp.com>, Copyright 2011 Brett Terpstra
Please leave this notice in place, along with any additional credits below.
---------------------------------------------------------------
Title: Theme title
Author: Your name and optional url
Description: Basic description of the theme.
*/
body
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2014-01-13 : 00:12
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@mygeekdaddy
mygeekdaddy / sidebar_example.html
Created November 6, 2014 16:28
Example of sidebar.html Pelican template with DDG search
<aside class="sidebar">
{% if SIDEBAR_IMAGE %}
<section>
<img src="{{ SITEURL }}/{{ SIDEBAR_IMAGE }}" alt="{{ SIDEBAR_IMAGE_ALT}}" width="{{SIDEBAR_IMAGE_WIDTH}}"/>
</section>
{% endif %}
<section>
<h1>Search</h1>
<form method="get" id="search" action="http://duckduckgo.com/">
@mygeekdaddy
mygeekdaddy / sitemap.html
Created November 6, 2014 15:47
Pelican sitemap.xml templat for Pelican
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for article in articles %}
<url>
<loc>{{ SITEURL }}/{{ article.url }}</loc>
<priority>0.8</priority>
</url>
{% for translation in article.translations %}
@mygeekdaddy
mygeekdaddy / universal_image_merge.py
Created October 14, 2014 04:08
Pythonista script to merge two images together
# ** Universal iOS screenshot merge **
# Script will take two images of same orientation and merge them together.
#
# By: Jason Verly (@mygeekdaddy)
# Date: 2014-10-13
# Ver: 1.02
import clipboard
import Image
import console