I hereby claim:
- I am vmesel on github.
- I am vmesel (https://keybase.io/vmesel) on keybase.
- I have a public key whose fingerprint is 6B02 6052 BA51 E27B 7FD0 36D8 4EA1 B8B4 7577 E781
To claim this, I am signing this object:
def milhar(self, num): | |
*mil, cen,dez,uni = num | |
return(mil) | |
# Se eu rodar isso aqui com o número: 12005, ele me retorna (['1','2']) | |
def milhoes(self, num): | |
*milhoes, mil, cen,dez,uni = num | |
return(milhoes, mil) | |
# Se eu rodar isso aqui com o número: 1200500, ele me retorna (['1', '2', '0'], '0') |
def milhoes(self, num): | |
*milhoes,mil2,mil1,mil0, cen, dez, uni = num | |
aux_milhoes = self.transcrever("".join(milhoes)) | |
return(aux_milhoes) |
def milhoes(self, num): | |
*milhoes,mil2,mil1,mil0, cen, dez, uni = num | |
aux_milhoes = self.transcrever("".join(milhoes)) | |
aux_num = "{m2}{m1}{m0}{c}{d}{u}".format(m2=mil2,m1=mil1,m0=mil0,c=cen,d=dez,u=uni) | |
if aux_num == "000000": | |
return(aux_milhoes + "milhões") | |
else: | |
return("{mi} milhões e {m}").format(mi=aux_milhoes,m=self.milhar(aux_num)) |
## install Catalyst proprietary | |
sudo ntfsfix /dev/sda2 | |
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
sudo apt-get remove --purge fglrx* | |
sudo apt-get install linux-headers-generic | |
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo | |
sudo amdconfig --initial | |
## install build essentials | |
sudo apt-get install cmake |
import pandas as pd | |
from sklearn.naive_bayes import GaussianNB | |
def monta_df(arquivo): | |
df = pd.DataFrame() | |
tweets = [] | |
with open(arquivo, "r") as f: | |
for line in f: | |
tweets.append(line) | |
df['TWEETS'] = tweets |
from skvideo.io import vreader | |
from skimage import io | |
videodata = vreader("shibu.mpeg", num_frames=3) | |
for f in videodata: | |
print f.shape | |
io.imshow(f) | |
io.show() |
I hereby claim:
To claim this, I am signing this object:
# create bkp folders | |
mkdir ~/bkp/ | |
mkdir ~/bkp/apt/ | |
mkdir ~/bkp/python/ | |
mkdir ~/bkp/.ssh/ | |
mkdir ~/bkp/repos/ | |
mkdir ~/bkp/downs/ | |
mkdir ~/bkp/pics/ | |
mkdir ~/bkp/desk/ | |
mkdir ~/bkp/rcfiles/ |
#!/bin/bash | |
############################################################################## | |
# Install system packages # | |
############################################################################## | |
# if apt-get exists, probably it's a Linux | |
if which apt-get > /dev/null; then | |
# update & clean up |
from Bio import SeqIO | |
from random import choice | |
def reverse_translate(sequence): | |
translation_table = { | |
"F":["ttt","ttc",], | |
"L":["tta","ttg","ctt","ctc","ctg",], | |
"I":["att","atc",], | |
"M":["atg"], | |
"V":["gtt","gtc","gta","gtg",], |