This file contains hidden or 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
" This is the custom vim file setup.... | |
" Ctrl-J g - Generate a guid (insert mode only) | |
" | |
" May need to uncomment below line if pathogen isn't loading correctly | |
" set nocp | |
" | |
" This sets the pathogen startup | |
runtime bundle/vim-pathogen/autoload/pathogen.vim | |
call pathogen#infect() | |
call pathogen#helptags() |
This file contains hidden or 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/bash | |
# Move to the vim directory for this | |
cd $HOME/.vim/bundle || echo "You need to create the directory ~/.vim/bundle"; exit 1; | |
function install_plugin() | |
{ | |
if [ -d "$1" ]; then | |
echo "Updating $1" | |
cd $1 |
This file contains hidden or 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
#[ -z "$PS1" ] && return | |
[ "$PS1" ] || return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace |
This file contains hidden or 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
set nocompatible | |
filetype on | |
filetype indent on | |
filetype plugin on | |
colorscheme xoria256 " This does require 256 term | |
set smartindent | |
set autoindent | |
set expandtab |
This file contains hidden or 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
# Setting my bindkey as a | |
set -g prefix C-a | |
unbind C-b | |
set -s escape-time 1 | |
bind r source-file ~/.tmux.conf \; display "Reloaded." | |
bind C-a send-prefix | |
bind X kill-session | |
bind x kill-pane | |
# Vim Keys for Pane management |
This file contains hidden or 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/bash | |
setUp() | |
{ | |
originalPath=$PATH | |
PATH=$PWD:$PATH | |
} | |
tearDown() | |
{ |
This file contains hidden or 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/bash | |
if [ -z "$TEST_WGET_FAILURE" ] | |
then | |
echo "Downloading $1" | |
else | |
echo "Failed to download file" | |
exit 1 | |
fi |
This file contains hidden or 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/bash | |
if [ -z "$1" ] | |
then | |
echo "Missing required command line url" | |
exit 1 | |
fi | |
wget http://s3.amazon.com/work/sharedconfig.txt | |
if [ ! $? -eq 0 ] | |
then |
This file contains hidden or 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/bash | |
# | |
# Description: This is a sample test using shunit2 | |
# | |
testMyComparison() | |
{ | |
assertTrue "This is the message if it fails" "[ 1 -eq 1 ]" | |
} |
This file contains hidden or 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
public static double GetResponse() | |
{ | |
double result; | |
do | |
{ | |
Console.Write("Enter a double: "); | |
} while (double.TryParse(Console.ReadLine(), out result)); | |
return result; | |
} |