Add the following in your ~/.tmux.conf
set -g default-terminal "tmux-256color"
Add the following in your ~/.tmux.conf
set -g default-terminal "tmux-256color"
# Anaconda | |
export PATH=$PATH:$HOME/anaconda3/bin | |
#export PATH=~/anaconda3/bin:$PATH | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/home/stanlee321/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else |
git clone https://github.com/tomaspinho/rtl8821ce
cd Downloads/rtl8821ce/
sudo apt install bc module-assistant build-essential dkms
sudo m-a prepare
sudo ./dkms-install.sh
import numpy as np | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.model_selection import train_test_split | |
from sklearn.naive_bayes import MultinomialNB | |
from sklearn.feature_extraction.text import TfidfTransformer | |
from sklearn.linear_model import SGDClassifier | |
from sklearn.model_selection import GridSearchCV | |
from sklearn.pipeline import Pipeline | |
from pprint import pprint |
def plot_treemap(df, values="count", columns = [], title='Proyectos en curso por Departamento', width=1200, height=600): | |
fig1 = px.treemap(df.sort_values(by=values, ascending=False).reset_index(drop=True), | |
path=columns, values=values, title=title, | |
color_discrete_sequence = px.colors.qualitative.Prism, width=width,height=height, maxdepth = 4, ) | |
fig1.data[0].textinfo = 'label+text+value+percent entry' | |
py.offline.iplot(fig1) | |
return fig1 |
# PURGE NVIDIA AND CUDA | |
# Remove existing CuDA versions | |
sudo apt --purge remove "cublas*" "cuda*" | |
sudo apt --purge remove "nvidia*" | |
rm -rf /usr/local/cuda* | |
sudo apt-get autoremove && sudo apt-get autoclean | |
# Reboot to remove cached files | |
reboot | |
view rawremove_cuda.sh ho |
# Add NVIDIA package repositories
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.1.243-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo dpkg -i cuda-repo-ubuntu1804_10.1.243-1_amd64.deb
sudo apt-get update
wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt install ./nvidia-machine-learning-repo-ubuntu1804_1.0.0-1_amd64.deb
sudo apt-get update
/* | |
Aprendiendo Golang | |
Author: Stanley Salvatierra | |
Email: stanlee321@gmail.com | |
----- | |
TEMA: Apuntadores | |
----- | |
*/ |