This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Loading Aliases" | |
alias ls='ls -FHG' | |
alias ll='ls -lh' | |
alias la='ls -la' | |
alias l='ls' | |
alias lls='ll -Sr' | |
alias less='less -imJMW' | |
alias update='brew update && brew upgrade' | |
alias upgrade='brew upgrade' | |
alias clean='brew doctor' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Loading Aliases" | |
alias ls='ls -FHG' | |
alias ll='ls -lh' | |
alias la='ls -la' | |
alias l='ls' | |
alias lls='ll -Sr' | |
alias less='less -imJMW' | |
alias update='brew update && brew upgrade' | |
alias upgrade='brew upgrade' | |
alias clean='brew doctor' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Loading Emacs Bindings" | |
bindkey '^b' backward-word | |
bindkey '^f' forward-word | |
bindkey '^R' history-incremental-search-backward | |
bindkey '^R' history-incremental-pattern-search-backward | |
bindkey '^?' backward-delete-char | |
bindkey '^H' backward-delete-char |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U colors && colors | |
autoload -U promptinit | |
autoload -Uz vcs_info | |
local reset white gray green red yellow blue cyan magenta black | |
reset="%{${reset_color}%}" | |
white="%{$fg[white]%}" | |
gray="%{$fg_bold[black]%}" | |
green="%{$fg_bold[green]%}" | |
red="%{$fg[red]%}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskutil list | |
diskutil unmountDisk /dev/diskN | |
sudo dd if=/path/to/iso of=/dev/diskN bs=1m | |
diskutil eject /dev/diskN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Before | |
canModify: Ember.computed -> | |
value = false | |
description = @get('content.statusDescription') | |
if description is 'Unsent' or description is 'Do Not Send' | |
value = true | |
value | |
#After |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import pynotify | |
>>> pynotify.init("Test") | |
True | |
>>> pynotify.Notification("T", "B", "dialog-warning").show() | |
True | |
>>> pynotify.Notification("T", "B", "dialog-info").show() | |
True | |
>>> pynotify.Notification("T", "B", "dialog-error").show() | |
True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install zsh | |
sudo apt-get -y install emacs23-nox zsh | |
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh | |
chsh -s $(which zsh) | |
.dotfiles repo | |
-> .emacs.d submodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instead of | |
Someframework.object.create({ | |
my: 'attributes', | |
go: 'here' | |
}); | |
// Try doing this | |
function MyObject(){ | |
this.my = "attributes"; | |
this.go = "here"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var console = { | |
log: function(message){ | |
$('body').append(message + "<br />"); | |
} | |
}; | |
var __bind_prop = function(fn, me, name){ | |
return function(){ | |
var args = [name]; | |
for (var x=0;x<arguments.length;x++){ |