Skip to content

Instantly share code, notes, and snippets.

View ChewingPencils's full-sized avatar

Sean Korzdorfer ChewingPencils

View GitHub Profile
@ChewingPencils
ChewingPencils / drafts_bookmarklets
Created May 2, 2012 19:02
Bookmarklets for Drafts App
/*
Drafts App Bookmarklets (http://agiletortoise.com/drafts)
Author: Sean Korzdorfer
Date: 14:01:43 Wed May 02 2012
Nota Bene: It's probably best to have the bookmarklet create a script tag that includes an external JS.
See: https://gist.github.com/2777049
Sends the current Mobile Safari Tab to Drafts app as Markdown link with date and time stamps
@ChewingPencils
ChewingPencils / md-url_to_day-one
Created May 2, 2012 21:04
Send front safari tab to Day One app formatted as Markdown link
javascript:window.location='dayone://post?entry=%5B'+encodeURIComponent(document.title)+'%5D('+encodeURIComponent(document.location.href)+')'
@ChewingPencils
ChewingPencils / gist:2777049
Created May 23, 2012 18:52
External Drafts Bookmarklet js file.
/*
Drafts App Bookmarklets (http://agiletortoise.com/drafts)
Author: Sean Korzdorfer
Date: 13:51:29 Wed May 23 2012
Re: https://gist.github.com/gists/2579288
Most of the Date functions used snippets I created from:
http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_and_date_using_javascript.php3
*/
@ChewingPencils
ChewingPencils / qoutebook-sel.js
Created August 8, 2012 13:30
Bookmarklet to add the selected text Safari Mobile (iPad) to QuoteBook app.
/*
Author: Sean Korzdorfer
Date: 2012-07-31_140805
Call using :
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://source-url.foo';})();
*/
@ChewingPencils
ChewingPencils / pinbook.js
Created October 15, 2012 00:42
Pinbook Bookmarklet
javascript:window.location='pinbook:///add?url='%20+%20encodeURIComponent(document.location.href)%20+%20'&title='%20+%20encodeURIComponent(document.title);
@ChewingPencils
ChewingPencils / of2nv.scpt
Created October 21, 2012 22:39
Creates an NVAlT note from an OmniFocus Task
--
-- Created by: Sean Korzdorfer
-- Created on: 06/08/12 17:05:27
-- This script incudes code from an example posted by Rob Trew
-- String Library can be obtained at:
-- http://applescript.bratis-lover.net/library/string/
-- Any line which contains a path needs to be edited for the users environment
-- NB: this could easily be edited to append.
@ChewingPencils
ChewingPencils / voodoo_log_header.py
Created November 9, 2012 02:10
voodoo_log_header #pythonista
import urllib2
import json
import pprint
import datetime
pp = pprint.PrettyPrinter(indent=4)
# Get Date
@ChewingPencils
ChewingPencils / mentalcase-flash_card.txt
Created November 10, 2012 02:27
Mental Case - New Flash Card #launch-center-pro
mentalcase:///addnote?pboard=MCExportPBoard&newfacet&text=[prompt]&canbeprompt=1&newfacet&text=[prompt]
@ChewingPencils
ChewingPencils / inbox_list.py
Created November 12, 2012 19:03
checkvist_inbox.py Send Task to Checkvist (Fork of MacDrifter) #macdrifter #python #pythonista #api
#!/usr/bin/env python
#
# checkvist_inbox.py
# Sean Korzdorfer
# Mon Nov 12 2012
#
# A Modified version of Gabe Weatherhead's pyhton script which uses checkvist's
# import api parameter.
# http://www.macdrifter.com/2012/11/the-checkvist-inbox-and-some-api-scripts.html
#
@ChewingPencils
ChewingPencils / checkvist.py
Last active February 14, 2019 21:11
Python Wrapper for Checkvist. Used for a Drafts app action #python #pythonista #url_scheme
#!/usr/bin/env python
# Title: Checkvist API Wrapper
# Author: Sean Korzdorfer
# Date: Tue Nov 20 2012
#
# All documentation found here involves this wrapper. For complete API docs, please see
# https://checkvist.com/auth/api
#
# This wrapper was designed to be simple enough for use with the Pythonista app:
# https://itunes.apple.com/us/app/pythonista/id528579881?mt=8