Skip to content

Instantly share code, notes, and snippets.

View jbwhaley's full-sized avatar

Jarrod Whaley jbwhaley

View GitHub Profile
@jbwhaley
jbwhaley / MicroBlogger.py
Last active November 5, 2022 10:37
This script facilitates posting to Micro.blog on iOS with Drafts (using Pythonista).
import requests
import sys
import webbrowser
# Replace the 'API_KEY' value below with your API key;
# get one at https://micro.blog/account
API_KEY = "XXXXXXXXXXXXXXXXXXX"
HEADER_VALUE = "Bearer " + API_KEY

Keybase proof

I hereby claim:

  • I am jbwhaley on github.
  • I am jbwhaley (https://keybase.io/jbwhaley) on keybase.
  • I have a public key ASAeFCCOKra62Lj_IAAFeJcMT08TQA7jnW9GSBTaMAekPAo

To claim this, I am signing this object:

@jbwhaley
jbwhaley / forGetter.py
Last active November 25, 2018 02:04
A simple script to view all system notifications scheduled by Pythonista.
#!/usr/bin/python
# -*- coding: utf-8 -*-
# forGetter Version 1.1
## A simple script to view all system notifications scheduled by Pythonista.
## Currently running it from Launch Center Pro.
import notification
import console
@jbwhaley
jbwhaley / CancelReminders.py
Last active November 25, 2018 02:05
Cancels all currently scheduled notifications in Pythonista.
#!/usr/bin/python
# -*- coding: utf-8 -*-
# CancelReminders Version 1.0
## Cancels all currently scheduled notifications in Pythonista.
import notification
import console
import webbrowser
@jbwhaley
jbwhaley / RandGen.py
Last active November 25, 2018 02:05
A random number generator for Pythonista on iOS. Accepts input from either Drafts.app or via alert prompt when run from within Pythonista.
import random
import requests
import sys
import clipboard
import console
import webbrowser
# Grabs input args
numArgs = len(sys.argv)
@jbwhaley
jbwhaley / gist:5898291
Last active April 17, 2020 08:51
A tweaked version of Federico Viticci's [workflow for sending clipped text and a URL to Drafts.app](http://www.macstories.net/stories/automating-ios-how-pythonista-changed-my-workflow/).
import sys
import webbrowser
import console
import urllib
numArgs = len(sys.argv)
base = 'drafts://x-callback-url/create?text='
if numArgs == 3:
@jbwhaley
jbwhaley / Send archive to Evernote
Created June 23, 2013 21:22
This is a simple AppleScript I use with Hazel to send backups to Evernote.
tell application "Evernote"
activate
create note from file theFile notebook {"YOURNOTEBOOK"} tags {"tag1", "tag2", "tag3"}
end tell
@jbwhaley
jbwhaley / QuickReminder.py
Last active December 9, 2018 07:25
QuickReminder
# QuickReminder 3.0.2 - see: http://jarrodwhaley.com/other-projects/geekery/
import sys
import urllib.request, urllib.parse, urllib.error
import notification
import console
import webbrowser
# Get arguments, if any