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
//question 2 c)i) | |
@Test | |
public void test1Enrol() | |
{ | |
//set up the fixture and the input | |
Instructor instructor1 = new Instructor(2); | |
Session session1 = new Session("session1", instructor1); | |
Name name1 = new Name("Mr", "A", "Customer"); | |
Customer customer1 = new Customer(name1); | |
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
#links | |
http://mysql-python.blogspot.co.uk/2012/11/is-mysqldb-hard-to-install.html | |
https://docs.djangoproject.com/en/dev/ref/databases/#mysql-notes | |
# upgrade pip | |
sudo pip install --upgrade pip | |
# close and open shell to use new pip version | |
# upgrade distribute |
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
# Clone repo | |
git clone git@github.com:stvnwlsn/.vim.git | |
# Symbolic link to .vimrc | |
ln -s ~/.vim/.vimrc ~/.vimrc | |
# Install modules | |
cd ~/.vim && git submodule update --init | |
# pep8 needs to be installed on 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
# virtualenv | |
alias act='source bin/activate' | |
# git | |
alias gp='git push origin master' # git push alias | |
alias gs='git status' | |
alias ga='git add .' | |
alias gc='git commit' | |
alias gb='git branch ' | |
alias gd='git diff' |
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
# Work in progress | |
# Need to test in virtualbox | |
sudo apt-get install libxml2-dev libxslt-dev | |
sudo apt-get install python-lxml | |
virtualenv --distribute venv | |
source venv/bin/activate |
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
# Copy the contents of file to selection clipboard | |
xclip -sel clip < <inputfile> | |
# Refresh shell environment without closing it | |
exec su - <username> | |
# Perl one-liner to search and replace all occurrences of | |
# a word in a bunch of files after backing them up. | |
perl -pi.bak -e 's/blue/red/g' *.dat |
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
sudo pip-3.3 install numpy #necessary? | |
sudo apt-get build-dep python-matplotlib | |
sudo pip-3.3 install matplotlib |
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
export PS1="\u@\w$ " |
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
Add items to top panel | |
Right click panel > Panel > Panel Preferences > Items | |
Workspace Switcher | |
Action buttons | |
Separator | |
Xubuntu Whisper Menu | |
Setting > Panel > Items > Whisker Menu Settings > Behaviour > Display recently used by default | |
Panel at bottom |
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
- Lee Ranaldo | |
- Thurston Moore | |
- "The Fall" | |
- Kim Gordon | |
- "Sonic Youth" | |
- Captain Beefheart | |
- "Nils Frahm" | |
- Chelsea Light Moving | |
- Body Head | |
- Faust |
OlderNewer