Skip to content

Instantly share code, notes, and snippets.

View ChewingPencils's full-sized avatar

Sean Korzdorfer ChewingPencils

View GitHub Profile
@ChewingPencils
ChewingPencils / taskpaper_drafts_action.txt
Created February 7, 2013 14:46
Drafts action to append an indented task with an indented note
drafts://x-callback-url/import_action?type=dropbox&name=TaskPaper%20with%20Indented%20Note&path=%2FTaskPaper%2F&filenametype=2&filename=filename&ext=txt&writetype=0&template=%09-%20%5B%5Btitle%5D%5D%0A%09%09%5B%5Bbody%5D%5D
@ChewingPencils
ChewingPencils / VPPageEventScript
Created January 30, 2013 22:04
VPPageEventScript ... Prints all backlinks to a console window. Easy cut and paste for index pages. (Having to write an sort each page is way to taxing). To install, Create a new page: VPPageEventScript. Paste this in.
/*
The pageWasOpened function is called when a page is opened in a VoodooPad document for viewing.
*/
function pageWasOpened(document, page) {
// print("pageWasOpened: " + page.displayName());
//if (page.displayName() == "Category_Reading_Notes")
if (page.displayName().indexOf("Category_") !== -1)
pageList = listBacklinks(String(page.displayName()), page)
@ChewingPencils
ChewingPencils / pinbook.js
Last active December 11, 2015 21:48
Pinbook x-callback bookmarklet with selection support for iPad. (Returns back to Safari) If this doesn't work, try this code: http://f.cl.ly/items/230t0j0M2L372d3K103l/ClouDrop%20Feb%204,%202013,%207:18:13%20AM.txt
javascript:(function()%20%7Bwindow.location='pinbook://x-callback-url/add?x-source='+encodeURIComponent(window.location.hostname.replace('www.',''))+'&x-success='+encodeURIComponent(window.location)+'&title='+encodeURIComponent(document.title)+'&description='+window.getSelection()+'&url='+encodeURIComponent(window.location);%7D)();
@ChewingPencils
ChewingPencils / Drafts: Search Tweetbot (No Retweets)
Created January 24, 2013 13:29
-filter:retweet -"RT " lang:en
drafts://x-callback-url/import_action?type=URL&name=Search%20Tweetbox&url=tweetbot%3A%2F%2F%2Fsearch%3Fquery%3D%5B%5Bdraft%5D%5D%2520lang%253Aen%2520-filter%253Aretweet%2520-%2522RT%2520%2522
@ChewingPencils
ChewingPencils / current_week_textexpander.applescript
Last active December 11, 2015 10:28
Returns the current week in format: YYYY-MM-DD - YYYY-MM-DD. Start of the week is monday. End of the week is Sunday.
-- Sean Korzdorfer
-- 2013-01-21
-- Fork of benwaldie Current Week Range TextExpander snippet: https://gist.github.com/4583398
set theDate to (current date)
set theStartDate to theDate
repeat until weekday of theStartDate = Monday
set theStartDate to theStartDate - 1 * days
end repeat
set theEndDate to theDate
@ChewingPencils
ChewingPencils / rename_pinboard_tag.py
Created November 30, 2012 21:51
Rename Pinboard Tag
#!/usr/bin/env python
# A quick and dirty script to rename a pinboard.in tag.
# I'll probably update this become a proper command line app one day
import urllib2
import pinboard
pinuser = ""
pinpasswd = ""
@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
@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 / 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 / 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