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 apt-get install htop | |
sudo apt-get install git | |
sudo apt-get install ntfs-3g | |
sudo apt-get install python-gpgme | |
sudo apt-get install vlc browser-plugin-vlc | |
# printer | |
sudo ln -s /etc/init.d/cupsys /etc/init.d/lpd |
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
### Tensorflow | |
# cuda | |
# download cuda 8.0 and cd to the dir | |
sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb | |
sudo apt-get update | |
sudo apt-get install cuda | |
# cuda toolkit (optional?) | |
sudo apt install nvidia-cuda-toolkit | |
nvcc --version | |
# cudnn |
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 random, string | |
def associated_words(f): | |
words, count, output = str.lower(file.read(f)).replace('\xe2\x80\x94', ''), -1, {} | |
for i in string.punctuation: | |
words = words.replace(i, '') | |
words = words.split() |