Skip to content

Instantly share code, notes, and snippets.

# 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.
syntax enable
colorscheme monokai
set tabstop=2
set softtabstop=2
set expandtab
set smarttab
set number
set showcmd
set cursorline
http://dougblack.io/words/a-good-vimrc.html
angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdownToggle","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/popup.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popo
@samzhao
samzhao / 0_reuse_code.js
Created October 9, 2013 18:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@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")
@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 / gist:1991822
Created March 7, 2012 08:06
Javascript: jQuery pubsub
(function($) {
var o = $( {} );
$.each({
on: 'subscribe',
trigger: 'publish',
off: 'unsubscribe'
}, function( key, api ) {
$[api] = function() {
o[key].apply( o, arguments );
@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);