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
# Automagic oncloud! | |
oncloud () { | |
# If there's a site .bridge_keys file, use that. | |
if [ -f "$PWD/.bridge_keys" ]; then | |
echo "Site .bridge_keys found." | |
oncloud_key=`head -1 "$PWD/.bridge_keys"` | |
# Otherwise, look for the user .bridge_keys file | |
else |
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
Name | Size | Style | Color | Link | |
=========|======|=============|========|====================================================================== | |
Andrew | S | Basic AA | Forest | http://www.zazzle.ca/honey_badger_t_shirt-235709420736259707 | |
Doreen | ? | Spaghetti | Yellow | http://www.zazzle.ca/honey_badger_tshirt-235753835005151786 | |
Donna | ? | Tanktop | White | http://www.zazzle.ca/honey_badger_dont_care_tshirt-235470163111399152 | |
Ross | ? | Basic | White | http://www.zazzle.ca/honey_badger_tshirt-235241323405525909 | |
Braden | M | Value | White | http://www.zazzle.ca/honey_badger_dont_care_tshirt-235164486753952485 | |
Jon | M | Performance | White | http://is.gd/zexc9d | |
Dan | ? | Basic | Gold | http://www.zazzle.ca/honey_badger_dont_give_tshirt-235859346554480394 | |
Devon | ? | ? | ? | TBD |
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
if [ ! -d "$HOME/.oh-my-zsh" ]; then | |
git clone git://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh" | |
cd "$HOME/.oh-my-zsh" | |
grep -v '!custom' "$HOME/.oh-my-zsh/.gitignore" > "$HOME/.oh-my-zsh/.gitignore.tmp" | |
echo "custom" >> "$HOME/.oh-my-zsh/.gitignore.tmp" | |
rm -f "$HOME/.oh-my-zsh/.gitignore" | |
mv "$HOME/.oh-my-zsh/.gitignore.tmp" "$HOME/.oh-my-zsh/.gitignore" | |
git add .gitignore | |
git rm custom/example.zsh | |
git rm custom/example/example.plugin.zsh |
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
#!/bin/sh | |
echo "Running dotfiles install" | |
if [ ! -d "$HOME/.oh-my-zsh" ]; then | |
git clone git://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh" | |
cd "$HOME/.oh-my-zsh" | |
grep -v '!custom' "$HOME/.oh-my-zsh/.gitignore" > "$HOME/.oh-my-zsh/.gitignore.tmp" | |
echo "custom" >> "$HOME/.oh-my-zsh/.gitignore.tmp" | |
rm -f "$HOME/.oh-my-zsh/.gitignore" | |
mv "$HOME/.oh-my-zsh/.gitignore.tmp" "$HOME/.oh-my-zsh/.gitignore" |
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
" Vim Installation | |
" ---------------- | |
" 1. Install MacVim 7.3 — http://github.com/downloads/b4winckler/macvim/MacVim-snapshot-61.tbz | |
" 2. Install vim-update-bundles — git clone git://github.com/bronson/vim-update-bundles.git | |
" 3. Run ./vim-update-bundles | |
" | |
" Vim Cheatsheet | |
" -------------- | |
" ⎋ normal mode | |
" i insert mode before (I beginning of line) |
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
var links = ''; | |
$$('.career-opportunity').each(function(div){ | |
links += '<li><a href="#'+ div.id + '">' + | |
div.down('td').innerHTML + | |
'</a></li>'; | |
}); | |
$('side').insert('<ul>' + links + '</ul>'); |
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
" Statusline {{{ | |
" Functions {{{ | |
" Statusline updater {{{ | |
" Inspired by StatusLineHighlight by Ingo Karkat | |
function! s:StatusLine(new_stl, type, current) | |
let current = (a:current ? "" : "NC") | |
let type = a:type | |
let new_stl = a:new_stl | |
" Prepare current buffer specific text |
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
map <Leader>d :NERDTreeToggle<CR> | |
map <Leader>dd :NERDTreeFind<CR> | |
let NERDTreeIgnore=['\.rbc$', '\~$'] | |
let NERDTreeDirArrows=1 | |
let NERDTreeMinimalUI=1 | |
let NERDTreeShowHidden=1 |
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
<?php | |
require_once 'app/controllers/asset_controller.php'; | |
class ContactController extends AssetController { | |
function __construct() { | |
$this->name = 'contact'; | |
$this->versioning = true; | |
$this->base_view_dir = ROOT_DIR; | |
parent::__construct(); | |
} |
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
<?php | |
require_once 'n_model.php'; | |
class Contact extends NModel { | |
function __construct() { | |
$this->__table = 'contact'; | |
$this->form_required_fields = array('first_name','last_name','email'); | |
$this->form_elements['address'] = array('textarea', 'address', 'Address', array('rows'=>1,'cols'=>50)); | |
$this->form_elements['zip_postal_code'] = array('text', 'zip_postal_code', 'Zip/Postal Code'); |
OlderNewer