Skip to content

Instantly share code, notes, and snippets.

(* Gets the current path from a shell *)
tell application "Finder"
set pwd to do shell script "pwd"
set pwd to (POSIX file pwd) as string
-- Replicate the open command for example
open folder pwd
end tell
@lancebecker
lancebecker / gist:652835
Created October 29, 2010 03:22
Setting an NSTextField text color to black
-(void) styleTextField {
[textField setTextColor:[NSColor blackColor]];
}
set-option -g prefix C-a
set -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
@lancebecker
lancebecker / Vim & Ctags
Created December 3, 2011 21:19
Adding Exuberant CTag support to VIM
Ctags will create a tags file, so make sure to add it to your global .gitignore file and never commit it
# INSTALLATION
### Install exuberant ctags with brew
brew install ctags
### Decommission system ctags
@lancebecker
lancebecker / gist:1428403
Created December 3, 2011 22:49
E353: Nothing in register *
tmux or screen breaks global pasteboard support, if you use mvim outside of tmux this error should go away.
@lancebecker
lancebecker / gist:1428899
Created December 4, 2011 02:16
Vundle failing to install bundles

If you check vundle's help log and it says git cannot be found, double check the value of $PATH

:echo $PATH

If this isn't correct you can usually run mvim to source the correct path.

@lancebecker
lancebecker / gist:1479294
Created December 15, 2011 00:37
Adding color to git output
git config --global color.ui true
@lancebecker
lancebecker / gist:4111677
Created November 19, 2012 16:34
Syntax checkers

via: https://github.com/humiaozuzu/dot-vimrc

For syntax check tools:

Languages Lint Tools Install guide
C gcc built-in
CPP g++ built-in
CoffeeScript coffee npm install -g coffeelint
CSS csslint npm install -g csslint
@lancebecker
lancebecker / gist:4126112
Created November 21, 2012 17:10
Set of Brew Packages to install on a fresh system
@lancebecker
lancebecker / gist:4999456
Created February 20, 2013 20:46
:build Compass config to handoffs
compass_config do |config|
config.output_style = :expanded
config.line_comments = false
end