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
from sklearn.datasets import load_svmlight_file | |
from sklearn.naive_bayes import MultinomialNB | |
from sklearn.svm.sparse import LinearSVC | |
from sklearn.cross_validation import StratifiedKFold | |
from sklearn import metrics | |
import numpy as np | |
X, y = load_svmlight_file("fr.vec") | |
y[y == -1] = 0 | |
kf = StratifiedKFold(y, k = 10, indices=True) |
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
Explicando melhor, a carta deve conter as principais atividades realizadas pelo trabalhador. Se não tiver mais nada escrito, só a relação das atividades, já está meio que implícito que o trabalhador não fez diferença na empresa, o que não será bem visto pelo próximo empregador. Agora, se além da lista das atividades o chefe escreve algum elogio em poucas palavras (por exemplo: fez os custos diminuírem, aumentou as vendas em x%...), aí sim o contratado será visto de uma maneira diferente pelo futuro empregador. E se ele for demitido? Também receberá a carta de recomendação e pode ser que conste o motivo da demissão, mas não é obrigatório (até para a empresa não se expor). Então, tudo dependerá da "emoção" que o chefe passará com a carta. Encontrei um site em alemão que ajuda a interpretar as frases escritas pelo chefe e conto para vocês: | |
Será muito bom quando estiver escrito algo como: | |
• "Nós ficamos em todos os sentidos extremamente satisfeitos com o seu trabalho".(A ideia era colocar só um exemplo de cada n |
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
Atualmente sou programador. PHP+Python+JS além de HTML e CSS. | |
Atuar como sysadmin de sistemas LAMP (Debian) também é uma experiência que faz parte do meu dia-a-dia. | |
Trabalhei em diferente áreas relacionadas a comunicação social. | |
Já criei mais de 100 peças gráficas para diferentes clientes, diagramei informativos e outras publicações. | |
Coloquei mais de 10 empresas e profissionais online através de sites, a maioria dos quais ainda está no ar. |
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
#!/bin/bash | |
# a basic crawler in bash | |
# https://github.com/jashmenn/bashpider | |
# usage: crawl.sh urlfile.txt <numprocs> | |
URLS_FILE=$1 | |
BANDWIDTH=2300 | |
CRAWLERS=$2 | |
mkdir -p data/pages |
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
public function show() { | |
// Begin capturing the byte stream | |
ob_start(); | |
// generate the byte stream | |
imagejpeg($this->image, NULL, 100); | |
// and finally retrieve the byte stream | |
$rawImageBytes = ob_get_clean(); |
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
create table jobs( | |
id auto_increment not null primary key, | |
message text not null, | |
process_id varbinary(255) null default null, | |
key jobs_key(process_id) | |
); | |
# queue | |
insert into jobs(message) values('blah blah'); |
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
Maturity begins when you can be right without having to prove the other person wrong. | |
If you're the smartest person in the room, you're probably in the wrong room. | |
There is nothing noble about being better than your fellow man. Only being better than your former self. | |
No snowflake feels responsible for the avalanche | |
Fear... is forward. No one is afraid of yesterday. |
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
Técnicas de Pesquisa | |
As técnicas de investigação a serem utilizadas em um determinado estudo dependem das especificidades do objeto em análise. Dentre as principais metodologias utilizadas pelo IPO - Instituto Pesquisas de Opinião destacam-se as seguintes técnicas: quantitativas, qualitativas e estudos exploratórios. | |
Veja abaixo as principais diferenças entre as técnicas quantitativas e qualitativas: | |
As diferenças básicas entre o método de pesquisa quantitativa e método de pesquisa qualitativa | |
Etapas do processo de | |
pesquisa Método pesquisa | |
quantitativo Método pesquisa | |
qualitativo |
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
#!/bin/bash | |
readonly WORKING_DIR=$(pwd) | |
readonly CONVERSION_DIR=/tmp/conversion | |
readonly LOG_FILE=$WORKING_DIR/conversion.log | |
remove_base_dir() { | |
local SED_BUFFER=/tmp/sed.buffer | |
echo $1 > $SED_BUFFER | |
sed -e 's/\/home\/pedro//g' $SED_BUFFER |
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
<?php | |
// template | |
// Usually you want to replace the following static array | |
// with a dynamic one built retrieving users from the database | |
$users = array( | |
array( | |
"fullname" => "Aurelio De Rosa", | |
"operations" => 100, |
OlderNewer