Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@neophit
neophit / gist:0ece516f8b66ca483de8
Created August 5, 2014 07:36
brew install --HEAD prl-utils
brew install --debug --verbose --HEAD prl-utils
/usr/local/Library/brew.rb (Formulary::StandardLoader): loading /usr/local/Library/Taps/rickard-von-essen/homebrew-formulae/Formula/prl-utils.rb
/usr/local/Library/Taps/rickard-von-essen/homebrew-formulae/Formula/prl-utils.rb (Formulary::StandardLoader): loading /usr/local/Library/Formula/git.rb
==> Cloning https://github.com/rickard-von-essen/prl-utils
git --git-dir /Library/Caches/Homebrew/prl-utils--git/.git status -s
Updating /Library/Caches/Homebrew/prl-utils--git
git config remote.origin.url https://github.com/rickard-von-essen/prl-utils
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git checkout -f master
@neophit
neophit / Useful Keyboard Text Shortcuts.applescript
Last active July 7, 2019 12:01
Add useful keyboard text shortcuts for exponents and fractions to your System Preferences. With iCloud enabled, these shortcuts will sync with your iOS devices. Tested on OS X 10.9.1 and iOS 7.0.4. Requires GUI Scripting Access: http://support.apple.com/kb/HT5914 (Based partially on this script: https://gist.github.com/Zettt/7724258)
set clickDelay to 0.3
set textReplaceList to {}
set exponentsListName to "Exponents (replaces ^0-^9 with ⁰-⁹)"
set fractionsListName to "Fractions (replaces 1/2-7/8 with ½-⅞)"
set exponentsList to {{"^0", "⁰"}, {"^1", "¹"}, {"^2", "²"}, {"^3", "³"}, {"^4", "⁴"}, {"^5", "⁵"}, {"^6", "⁶"}, {"^7", "⁷"}, {"^8", "⁸"}, {"^9", "⁹"}}
set fractionsList to {{"1/2", "½"}, {"1/3", "⅓"}, {"1/4", "¼"}, {"1/5", "⅕"}, {"1/6", "⅙"}, {"1/7", "⅐"}, {"1/8", "⅛"}, {"1/9", "⅑"}, {"1/10", "⅒"}, {"2/3", "⅔"}, {"2/5", "⅖"}, {"3/4", "¾"}, {"3/5", "⅗"}, {"3/8", "⅜"}, {"4/5", "⅘"}, {"5/6", "⅚"}, {"5/8", "⅝"}, {"7/8", "⅞"}}
set chosenLists to (choose from list {exponentsListName, fractionsListName} with title "Useful Keyboard Text Shortcuts" with prompt "Choose one or more sets of keyboard text shortcuts to add to your System Preferences.
This may take a minute to complete." OK button name "Add text shortcuts" cancel button name "Cancel" default items {exponentsListName, fractionsListName} with multiple selections allowed)

Keybase proof

I hereby claim:

  • I am neophit on github.
  • I am jonnull (https://keybase.io/jonnull) on keybase.
  • I have a public key ASBHuOAM1JxZjcglpcojWEJ9Tt95pu4VOa3ejTMUEP8O0go

To claim this, I am signing this object: