Skip to content

Instantly share code, notes, and snippets.

Michael-F-Ellis

  • Ellis & Grant, Inc.
  • Weaverville, NC (USA)
Block or report user

Report or block Michael-F-Ellis

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
@Michael-F-Ellis
Michael-F-Ellis / takenote.scpt
Created Feb 21, 2017
AppleScript for "spring-loaded" jump to a frequently used app.
View takenote.scpt
#!/usr/bin/osascript
-- OS X script for "spring-loaded" app switching
-- Useful if you have a preferred app for jotting notes and ideas.
-- I use MacVim with Vimwiki, but you can use whatever by changing one line in this script.
-- To make this useful, you need to assign a hotkey.
-- OS X won't let you directly assign a hotkey to a script.
-- You can get around that by creating an Automator Service that runs this script.
-- See http://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote for how to do that.
-- I use Ctrl-Cmd-B because its not commonly used by other apps. You may need something else.
View riddler161021.py
"""
Python (2.x) brute force solver for fivethirtyeight.com Riddler Express problem 10/21/2016.
May be applied to any ascii text file containing a list of words to be considered.
Tested with word2.txt file from https://github.com/dwyl/english-words.
Usage:
python riddler161021.py <textfile>
Author: Michael F. Ellis
@Michael-F-Ellis
Michael-F-Ellis / test.html
Created Sep 11, 2016
pure.js:84 Uncaught pure error: cannot have more than one loop on a target
View test.html
<!DOCTYPE html>
<html>
<head>
<title>PURE Test</title>
<script src="http://pure.github.io/pure/libs/pure.js"></script>
</head>
<body>
<!-- HTML template -->
<div data-role="page">
You can’t perform that action at this time.