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
#Setup spf13-vim | |
# Assumes MacOS has homebrew install | |
# Assumes Linux is Debian based | |
#Install spf13-vim | |
curl http://j.mp/spf13-vim3 -L -o - | sh | |
if [ "$(uname)" = "Darwin" ]; then | |
brew install ctags | |
elif [ "$(uname)" = "Linux" ]; then |
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/bash | |
## Check if g++-4.8 is installed | |
_GPP_PREF_VER="4.8" | |
_GPP_LOC="$(readlink -f $(which g++))" | |
_GPP_VER="$(g++ --version | head -1 | sed 's/g++ \(.*\) \(.*\)/\2/' - | cut -d. -f1,2)" | |
if [ "$_GPP_LOC" == "/usr/bin/g++-$_GPP_PREF_VER" ]; then | |
if [ "$_GPP_VER" != "$_GPP_PREF_VER" ]; then | |
echo "Please contact your TA and inform them that you have g++-$_GPP_PREF_VER installed, but it is not the default g++ on your system" |
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
#Enable terminal colors | |
export TERM=xterm-color | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
#PS1='\[\033[0;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[0m\]:\[\033[0;34m\]\w\[\033[0m\]\$ ' | |
PS1='\[\033[0;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[0m\]:\[\033[0;34m\]\w\[\033[0;036m\]$(__git_ps1 " (%s)") \[\033[0m\]\$ ' | |
#Load Profile | |
if [ -f ~/.profile ]; then | |
. ~/.profile |
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
"""List Diff - A Doff Tool for Lists | |
Perform a diff between a pair of lists. | |
Usage: | |
listdiff.py <file1> <file2> | |
listdiff.py -h | --help | |
listdiff.py --version | |
Arguments: |
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 java.io.FileInputStream; | |
import java.io.IOException; | |
import java.util.Properties; | |
public class PropertiesDemo { | |
PropertiesDemo() { | |
} | |
//Print Properties |
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
/* | |
* Figure 2-27 | |
* Main Class which uses the ProducerConsumerMonitor | |
*/ | |
import ProducerConsumerMonitor; | |
import Item; | |
class ProducerConsumer2 extends Thread { |
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
#include <iostream> | |
int main(int argc, char *argv[]) { | |
for(unsigned int i = 0; i < 100; i++) { | |
std::cout << i << std::endl; | |
} | |
return(0); | |
} |
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
## | |
## Setup Env Variables | |
## | |
GIT_USERNAME="" | |
GIT_EMAIL="" | |
GIT_EDITOR=vim | |
SSH_KEY_COMMENT="$USER@$(hostname -f)" | |
SSH_KEY_SIZE=4096 |
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
##Editor Temporary Files | |
.*.sw[a-z] | |
*~ | |
\#*\# | |
##Compiled source | |
*.class | |
*.o | |
*.so | |
*.pyc |
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
## | |
## User Modifications | |
## | |
#Set Default Editor | |
EDITOR=vim | |
##XTERM modifications (in case needed) | |
#export TERM="xterm-256color" |