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
require 'formula' | |
class Vim < Formula | |
homepage 'http://www.vim.org/' | |
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
head 'https://vim.googlecode.com/hg/' | |
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d' | |
version '7.3.682' | |
def features; %w(tiny small normal big huge) end |
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 | |
# encoding: utf-8 | |
""" Create a symlink of the current .git inside your Dropbox, now all your | |
local commits will automatically be backed up to Dropbox (without your dropbox | |
being littered with development cruft, like temporary build files) | |
""" | |
from os import getcwd, path, mkdir, symlink, chdir |
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
import os, sys | |
import smtplib | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEBase import MIMEBase | |
from email.MIMEText import MIMEText | |
from email.Utils import formatdate | |
from email import Encoders | |
SMTP_SERVER='localhost' |
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
" Automatic `:!chmod +x %`. | |
command! -bar DisableAutoChmod let b:disable_auto_chmod = 1 | |
autocmd BufWritePost * call s:auto_chmod() | |
function! s:auto_chmod() | |
if !exists('b:disable_auto_chmod') | |
\ && getfperm(expand('%'))[2] !=# 'x' | |
\ && getline(1) =~# '^#!' | |
!chmod +x % | |
endif | |
endfunction |
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
import datetime | |
import Acquisition | |
from zope import interface | |
from zope import component | |
import plone.postpublicationhook.interfaces | |
#from collective.skinny.interfaces import IPublicLayer |
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
remove shift = Shift_R | |
remove lock = Caps_Lock | |
remove mod5 = Mode_switch | |
add control = Caps_Lock | |
add mod3 = Mode_switch | |
keysym Shift_R = Mode_switch | |
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
#!/bin/bash | |
# This hook is run after every virtualenv is activated. | |
export OLD_GEM_HOME=$GEM_HOME | |
export GEM_HOME=$VIRTUAL_ENV/gems/ | |
export GEM_PATH= | |
export PATH=$VIRTUAL_ENV/gems/bin:$PATH |
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
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm | |
index ecf841a..84f9152 100644 | |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm | |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm | |
@@ -1537,7 +1537,7 @@ void RecordAppLaunch(Profile* profile, GURL url) { | |
// Return an autoreleased NSCell suitable for a bookmark button. | |
// TODO(jrg): move much of the cell config into the BookmarkButtonCell class. | |
- (BookmarkButtonCell*)cellForBookmarkNode:(const BookmarkNode*)node { | |
- NSImage* image = node ? [self faviconForNode:node] : nil; | |
+ NSImage* image = nil; // Hack to never add a favicon! // node ? [self faviconForNode:node] : nil; |
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
# 'preview' support for browser tests | |
alias preview import os, tempfile; out = tempfile.NamedTemporaryFile(mode='w', suffix='.html'); print >> out, browser.contents; out.flush(); _ = os.system("open '%s'" % out.name) |
OlderNewer