Skip to content

Instantly share code, notes, and snippets.

View gordo's full-sized avatar

Gordon Mei gordo

View GitHub Profile
@gordo
gordo / a-textmate-in-codas-clothing.css
Created August 22, 2011 20:23
Coda-like Syntax Highlighting for TextMate
/* Coda-like Syntax Highlighting for TextMate */
body {
margin: 0;
padding: 0;
}
pre.textmate-source {
margin: 0;
padding: 0 0 0 2px;
@gordo
gordo / launchnewsafari.scpt
Created November 3, 2009 01:03
launchnewsafari.scpt
-- New Safari Session Launcher: launch new Safari window with one click, even when out of focus, without reusing any existing windows (including minimized windows)
-- 2009 Nov 2. Written for OS X 10.5.x.
-- Gordon Mei, by suggestion from Andrew99 from Apple discussions
tell application "Safari"
activate
make new document
end tell
@gordo
gordo / toggleinternetsharing.scpt
Created May 16, 2009 20:08
toggleinternetsharing.scpt
-- Internet Sharing Toggler: Toggle Internet Sharing on/off in OS X
-- 2009 May 16. Written for OS X 10.5.x.
-- 2010 January 27. Changed row 10 to row 11 for OS X 10.6.x.
-- Gordon Mei
-- Feel free to use and distribute however you'd like.
tell application "System Preferences"
activate
tell application "System Events"
tell process "System Preferences"
@gordo
gordo / togglehotcornersoff.scpt
Created May 14, 2009 21:53
togglehotcornersoff.scpt
-- Hot Screen Off Toggler: Toggle all four hot corners off. This is the counterpart to the script that toggles all four hot corners on, for cases when a visitor comes over who isn't used to active screen corners.
-- 2009 May 14. Written for OS X 10.5.x.
-- Gordon Mei, with guidance from Pierre L. from Apple discussions
-- Feel free to use and distribute however you'd like.
-- Edit: Also compatible with OS X 10.6.x, but you need to check "Enable access for assistive devices" under the "Universal Access" preference pane in "System Preferences".
tell application "System Preferences" to activate
tell application "System Events"
tell process "System Preferences"
tell menu bar 1
@gordo
gordo / togglehotcornerson.scpt
Created May 14, 2009 21:49
togglehotcornerson.scpt
-- Hot Screen On Toggler: Toggle all four hot corners on to specified settings (assumes you've set the script to use predefined settings you always use. This is the counterpart to the script that toggles all four hot corners off, for cases when a visitor comes over who isn't used to active screen corners.
-- 2009 May 14. Written for OS X 10.5.x.
-- Gordon Mei, with guidance from Pierre L. from Apple discussions
-- Feel free to use and distribute however you'd like.
-- Edit: Also compatible with OS X 10.6.x, but you need to check "Enable access for assistive devices" under the "Universal Access" preference pane in "System Preferences".
tell application "System Preferences" to activate
tell application "System Events"
tell process "System Preferences"
tell menu bar 1
1. once upon a time, there was a whale.
2. with wings.
3.