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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>grafico</title> | |
<style id="jsbin-css"> | |
body { | |
background-color: #333; | |
} | |
.grafico { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>grafico</title> | |
<style id="jsbin-css"> | |
body { | |
background-color: #333; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Image profil</title> | |
<style id="jsbin-css"> | |
#pfl-img { | |
display: block; | |
position: relative; | |
width: 45px; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" /> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> | |
<meta charset="utf-8"> | |
<title>Seven Segments</title> | |
<style id="jsbin-css"> | |
#output { |
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
## 1 - Despesas | |
url = "http://inter01.tse.jus.br/spceweb.consulta.receitasdespesas2014/resumoDespesasByCandidato.action?sqCandidato=&sgUe=&sgUfMunicipio=&filtro=S&tipoEntrega=0" | |
### 2 - Receitas | |
# url = "http://inter01.tse.jus.br/spceweb.consulta.receitasdespesas2014/resumoReceitasByCandidato.action" | |
### form | |
# sqCandidato | |
# sgUe | |
#candidato |
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 wget | |
cargos = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] | |
ufs = ['AC', 'AL', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO', 'RR', 'RS', 'SC', 'SE', 'SP', 'TO'] | |
dataDir = "dataXML/" | |
## Obter todos os documentos XML | |
def getAll(): | |
for cargo in cargos: |
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
echo ">>> Starting" | |
sudo yum -y update | |
echo ">>> Installing Apache" | |
yum install httpd | |
systemctl start httpd.service | |
echo ">>> Installing MySQL and PHP" | |
yum install php php-mysql php-gd |
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
int sl = 2; | |
int sr = 3; | |
int sts_l = 0; | |
int sts_r = 0; | |
int erro = 0; | |
int md1 = 5; | |
int md2 = 6; | |
int me1 = 7; | |
int me2 = 8; |
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
function zero_to_left(number, size) { | |
var code = ""; | |
var number_zeros = (size - number.length); | |
for(var i = 1; i <= number_zeros; i++) { | |
code += "0"; | |
} | |
code += number; | |
return code; | |
} |