Skip to content

Instantly share code, notes, and snippets.

http://dougblack.io/words/a-good-vimrc.html
syntax enable
colorscheme monokai
set tabstop=2
set softtabstop=2
set expandtab
set smarttab
set number
set showcmd
set cursorline
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export EDITOR='vim'
source ~/.bin/tmuxinator.zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
set-option -g default-shell /bin/zsh
set-option -g default-terminal "screen-256color"
set-option -g base-index 1
setw -g pane-base-index 1
set-option -g xterm-keys on
setw -g aggressive-resize on
set -s escape-time 0
# load libraries
require 'rubygems' rescue nil
require 'wirble'
#require 'json'
alias q exit
class Object
def local_methods
(methods - Object.instance_methods).sort
@samzhao
samzhao / gist:1991793
Created March 7, 2012 07:58
HTML: Starting Template
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
@samzhao
samzhao / gist:1991813
Created March 7, 2012 08:03
CSS: Image Replacement
.ir {
border:0;
font: 0/0 a;
text-shadow: none;
color: transparent;
background-color: transparent;
}
@samzhao
samzhao / gist:1991809
Created March 7, 2012 08:02
Javascript: Clever pubsub
// Works in modern browsers + IE9, but Modernizr has to polyfill baked in for function.bind.
// Hat tip Paul Irish
var o = $( {} )
$.subscribe = o.on.bind(o);
$.unsubscribe = o.off.bind(o);
$.publish = o.trigger.bind(o);
@samzhao
samzhao / gist:1991844
Created March 7, 2012 08:09
Javascript: Link jQuery Source
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
@samzhao
samzhao / Prettier Development
Created October 13, 2012 21:41
Gemfile Template with Wirble, Hirb, awesome_print, and annotate
gem('wirble', group: "development")
gem('hirb', group: "development")
gem('awesome_print', group: "development")
gem('annotate', group: "development")