Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| #!/bin/bash | |
| # | |
| # Home-rolled Smush.it, by Alex Dunae (http://dialect.ca). | |
| # | |
| # N.B. This script works for me; it may not work for you. | |
| # Since it overwrites your images with the optimized version, you should | |
| # backup your files before running this script and do a trial run before | |
| # getting too excited. This is your disclaimer. | |
| # | |
| # Uses jpegtran (http://jpegclub.org/jpegtran/), part of libjpeg, | 
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // | 
| (function() { | |
| // Change `silent` to true to invoke the promptless, self-closing | |
| // version of the bookmarklet. | |
| var silent = false; | |
| var url = location.href; | |
| var title = document.title; | |
| // Look for a single hAtom entry on the page, and iff one is found, extract | |
| // the entry-title in place of the document title: | 
| import objc | |
| import AddressBook as ab | |
| import pprint as pp | |
| def pythonize(objc_obj): | |
| if isinstance(objc_obj, objc.pyobjc_unicode): | |
| return unicode(objc_obj) | |
| elif isinstance(objc_obj, ab.NSDate): | |
| return objc_obj.description() | 
| /* | |
| This is my hacked up copy of Marked.app/Contents/Resources/gridless.css | |
| Changes: | |
| 1. Smaller headings | |
| 2. ~~No scrollbars~~ (I now prefer the Lion default behavior) | |
| 3. Styling of definition lists ala LaTeX description lists. | |
| 4. Centering h1.title, h3.author, h4.date (pandoc's title/author/date block). | |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ | 
| -- | |
| -- OCR all documents added to a folder | |
| -- | |
| on adding folder items to this_folder after receiving added_items | |
| try | |
| repeat with i from 1 to number of items in added_items | |
| set this_item to item i of added_items | |
| set appName to my getAppName() | |
| tell application appName | |
| activate | 
       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
               Version 2, December 2004
Copyright (C) 2011 Grigory V. [email protected]
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
| #change some specific application's interface language | |
| defaults write com.google.Chrome AppleLanguages "(zh_CN,en_US)" | |
| defaults write com.apple.iWork.Pages AppleLanguages "(zh_CN,en_US)" | |
| defaults write com.apple.Aperture AppleLanguages "(zh_CN,en_US)" | |
| #change all applications' interface language, don't recommend. | |
| defaults write NSGlobalDomain AppleLanguages "(en_US,zh_CN)" | |
| defaults write NSGlobalDomain AppleLanguages "(zh_CN,en_US)" |