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
# Fix the /tmp directory from my previous AMI, which was a symlink to /mnt/tmp (nonexistent) | |
sudo rm /tmp | |
sudo mkdir /tmp | |
sudo chmod 777 /tmp | |
# Upgrade Ubuntu packages | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install Theano dependencies (from: http://deeplearning.net/software/theano/install_ubuntu.html#install-ubuntu) |
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
class CaseReversibleString(s:String) { | |
def reverseCases = (for (c <- s.toCharArray) yield { | |
if (c.isUpper) c.toLower | |
else c.toUpper | |
}).mkString | |
} | |
implicit def string2CaseReversibleString(s:String) = new CaseReversibleString(s) |