This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on menuselect() | |
tell application "Transmit" | |
activate | |
end tell | |
set troof to true | |
return troof | |
end menuselect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BBEdit" | |
set activeWindow to front window | |
if (class of activeWindow is project window) then | |
set projectDocument to project document of activeWindow | |
if ((count of items of projectDocument) > 0) then | |
set firstFileItem to item 1 of projectDocument as alias | |
else | |
set firstFileItem to file of document of activeWindow as alias | |
end if |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
-- set tehWin to current tab of window 1 | |
set selectedText to (do JavaScript "(''+getSelection())" in document 1) | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib,json | |
a = urllib.urlopen('http://www.reddit.com/r/programming/.json') | |
try: | |
j = json.load(a)['data'] | |
except KeyError: | |
print "Reddit sucks." | |
exit() | |
storieslist = j['children'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <leader>ft mZggVG='Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ko.views.manager.currentView.setFocus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var http = require('http'); | |
var options = { | |
host: 'www.reddit.com', | |
port: 80, | |
path: '/r/programming/.json' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change to NO to keep "distraction free" style, YES to have REALLY full-screen | |
defaults write com.barebones.bbedit FullScreenWindowsHogScreen -bool YES | |
# When using the "Previous Document" and "Next Document" commands on the View menu, or the | |
# navigation arrows in the navigation bar, the order in which BBEdit navigates documents is | |
# determined by the order in which they were opened. If you prefer, these commands can be | |
# made to navigate the documents in the order shown in the file list. | |
defaults write com.barebones.bbedit SurfNextPreviousInDisplayOrder -bool YES | |
# By default, the "Balance" command (or double-clicking on a delimiter to balance) does |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BBEdit" | |
set theContent to do shell script "~/bin/reddit.py" | |
make new shell window with properties {contents:theContent} | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#mw-panel { | |
display: none !important; | |
width: 0px; | |
} | |
#mw-head { | |
display: none !important; | |
} | |
#mw-head-base { | |
height: 0px !important; | |
} |
OlderNewer