Skip to content

Instantly share code, notes, and snippets.

View epramono's full-sized avatar

Eric Pramono epramono

View GitHub Profile
@epramono
epramono / YouVersion.py
Last active July 26, 2021 22:01
This action will convert the Bible verse into a YouVersion's Bible app. Four output modes are available, requiring Day One, 1Writer, and Launch Center Pro.
# -*- coding: utf-8 -*-
import sys
import urllib
import webbrowser
import re
# dictionary for uncommon OSIS codes
books = { "Judges" : "JDG", "1 Samuel" : "1SA", "2 Samuel" : "2SA", "1 Kings" : "1KI", "2 Kings" : "2KI", "1 Chronicles" : "1CH", "2 Chronicles" : "2CH", "Song of Solomon" : "SNG", "Ezekiel" : "EZK", "Joel" : "JOL", "Nahum" : "NAM", "Mark" : "MRK", "John" : "JHN", "1 Corinthians" : "1CO", "2 Corinthians" : "2CO", "1 Thessalonians" : "1TH", "2 Thessalonians" : "2TH", "1 Timothy" : "1TI", "2 Timothy" : "2TI", "Philippians" : "PHP", "Philemon" : "PHM", "James" : "JAS", "1 Peter" : "1PE", "2 Peter" : "2PE", "1 John" : "1JN", "2 John" : "2JN", "3 John" : "3JN" }
# extract the verse reference
@epramono
epramono / RemindSomeone
Last active October 2, 2018 23:26
This action allows you to send an iMessage that embeds a custom URL scheme that would allow the recipient to add it as a new Reminder in Due, if she has Due installed and is willing to add the reminder. Simply create a new post in Drafts with the recipient's email address as the first line, and the reminder text that will be parsed by Due on the…
launchpro-messaging://x-callback-url/?
to=[[title]]&
body=[[body]]%0A%0A
{{due://x-callback-url/add?title=[[body]]}}
&x-success={{drafts://}}
@epramono
epramono / CreateLCPAppendAction
Created October 16, 2014 03:47
Create an Append action in Launch Center Pro using the current note's [[uuid]]. Requires: Drafts 4, Launch Center Pro 2.0.
launch://x-callback-url/import?
url={{drafts4://x-callback-url/append?
text=%5Bprompt-return%3A[[title]]%5D&
uuid=[[uuid]]&
x-success=launch%3A%2F%2F}}
@epramono
epramono / 1WriterPhraseology
Created February 5, 2014 23:29
This action will take the currently selected text in 1Writer and open it as a new document in Phraseology. Requires: 1Writer 1.2 and Phraseology 2.0.
phraseology://x-callback-url/create?
title=[name]&
text=[text]
@epramono
epramono / ReuseRemindersInDueLogbook
Created September 13, 2013 09:41
This action allows you to find the completed reminders in Due's Logbook and reuse them. Requires: Due 1.9.5.
due://x-callback-url/search?
section=Logbook&
query=[reminder-name]
@epramono
epramono / TravelPackingListInClear
Created August 3, 2013 14:30
A custom URL action in Drafts that allows you to create a packing list in Clear based on a comma-separated list stored in TextExpander Touch under the snippet <<travel>>. The default list will be appended with a comma-separated list you write in the [[body]] of your Drafts post. The [[title]] is reserved for the list title.
clearapp://list/create?
listName=[[title]]&
tasks={{<<ttravel>>}}%20[[body]]
@epramono
epramono / WorkflowCallSomeoneLater
Created January 16, 2015 16:54
A Workflow action to setup a reminder in Due to call someone in your Contacts list. Requires: Workflow 1.0, Due 1.9, and Launch Center Pro 2.1.
Select Phone Number
Text:
Call [Ask When Run] Later: [Input]
Copy to Clipboard
URL:
launch://x-callback-url/clipboard/convert?format=urlencode
Open x-callback-url
URL:
due://x-callback-url/add?title=[Clipboard]
Open x-callback-url
@epramono
epramono / WorkflowBirthdayGiftReminders
Created January 16, 2015 17:05
A Workflow action to setup one or more reminders in Due to buy birthday gifts for upcoming birthday events in my Calendar. Requires: Workflow 1.0, Due 1.9, and Launch Center Pro 2.1.
Get Upcoming Events: 20
Choose from List:
Select Multiple: Yes
Repeat with Each
Set Variable: event
Get Name
Set Variable: eventName
Get Variable: event
Get Start Date
Format Date:
@epramono
epramono / DraftsWhatsApp
Created June 11, 2014 14:15
This URL action will send the current [[draft]] content to one of your WhatsApp contacts. Requires: Launch Center Pro 2.3, Drafts 2.0, and WhatsApp Messenger.
launch://?url={{whatsapp://send?
text=[[draft]]&
abid=%5Bcontact-abid%5D}}
@epramono
epramono / AlfredTo1Password
Created January 17, 2014 16:50
This AppleScript will accept `1pbrowse` in Alfred and open the current active tab in Safari on 1Password's browser for iOS. Requires: Alfred 2 + Power Pack, Command-C 1.0, and 1Password 4.
set theActiveURL to ""
tell application "Safari"
set theActiveWindow to first window
set theActiveTab to current tab of theActiveWindow
set theDecodedURL to URL of theActiveTab as string
set theActiveURL to my urlencode(theDecodedURL) as string
end tell
tell application "System Events"