Skip to content

Instantly share code, notes, and snippets.

Jarrod Whaley jbwhaley

Block or report user

Report or block jbwhaley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jbwhaley
jbwhaley / MicroBlogger.py
Last active Dec 9, 2018
This script facilitates posting to Micro.blog on iOS with Drafts (using Pythonista).
View MicroBlogger.py
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
View key base.md

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 Nov 25, 2018
A simple script to view all system notifications scheduled by Pythonista.
View forGetter.py
#!/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 Nov 25, 2018
Cancels all currently scheduled notifications in Pythonista.
View CancelReminders.py
#!/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 Nov 25, 2018
A random number generator for Pythonista on iOS. Accepts input from either Drafts.app or via alert prompt when run from within Pythonista.
View RandGen.py
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 Jun 17, 2019
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/).
View gist:5898291
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 Jun 23, 2013
This is a simple AppleScript I use with Hazel to send backups to Evernote.
View Send archive to Evernote
tell application "Evernote"
activate
create note from file theFile notebook {"YOURNOTEBOOK"} tags {"tag1", "tag2", "tag3"}
end tell
View QuickReminder.py
# 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
You can’t perform that action at this time.