- xcode or command line tools
- osx's homebrew
- brew install ack
- brew install tree
- brew install watch
- brew install wget
- brew install autojump
@import compass | |
$icons: sprite-map("icons/*.png") | |
$icons-hd: sprite-map("icons-hd/*.png") | |
i | |
background: $icons | |
display: inline-block | |
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
background: $icons-hd |
$ curl https://api.github.com/zen | octocatsay | |
MMM. .MMM | |
MMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMM ____________________________ | |
MMMMMMMMMMMMMMMMMMMMM | | | |
MMMMMMMMMMMMMMMMMMMMMMM | Practicality beats purity. | | |
MMMMMMMMMMMMMMMMMMMMMMMM |_ ________________________| | |
MMMM::- -:::::::- -::MMMM |/ | |
MM~:~ ~:::::~ ~:~MM |
Mediator = { | |
events: {} | |
listeners: {} | |
fireEvent: (type,event)-> | |
if @listeners[type] | |
@listeners[type].apply @, event | |
addListener: (type,callback) -> | |
@listeners[type] = callback | |
removeListener: (type) -> | |
delete @listeners[type] |
This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.
OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.
var AutoResizer = function (textArea, options) { | |
var self = this; | |
this.$textArea = $(textArea); | |
this.minHeight = this.$textArea.height(); | |
this.options = $.extend({}, $.fn.autoResizer.defaults, options) | |
this.$shadowArea = $('<div></div>').css({ |
#!/bin/bash | |
# | |
# Build a virtual environment suitable for running appengine. | |
# This uses virtualenvwrapper to make the virtual environment | |
# and modifies the postactivate/postdeactivate scripts to make | |
# the appengine code happy. | |
# | |
# Usage: | |
# $ curl -s https://raw.github.com/gist/1012769 | bash | |
# |
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |
$ git branch -r --merged | | |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' | | |
xargs git push origin --delete |