Skip to content

Instantly share code, notes, and snippets.

View RuanAragao's full-sized avatar
👽
b̴̤̅u̸͉͊s̵̮̋q̶̳͋u̷̢͒e̵͖̐m̴̰̔ ̶͉̋ċ̵͎ö̸̧́n̵̟͆h̸̼͋e̴̺͝c̵̖̓ị̶͊m̸͕͒ë̶͔́ṇ̵͛t̴̳̓o̵̘̍

Ruan Aragão RuanAragao

👽
b̴̤̅u̸͉͊s̵̮̋q̶̳͋u̷̢͒e̵͖̐m̴̰̔ ̶͉̋ċ̵͎ö̸̧́n̵̟͆h̸̼͋e̴̺͝c̵̖̓ị̶͊m̸͕͒ë̶͔́ṇ̵͛t̴̳̓o̵̘̍
View GitHub Profile
@RuanAragao
RuanAragao / menu.html
Last active August 29, 2015 14:16
Botão para menu collapse X utilizando HTML e CSS - Demo: http://jsbin.com/nurejo/2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Button menu css</title>
</head>
<body>
<header>
<h1>Botão para menu collapse X utilizando HTML e CSS</h1>
<hr>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>grafico</title>
<style id="jsbin-css">
body {
background-color: #333;
}
.grafico {
<!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;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Image profil</title>
<style id="jsbin-css">
#pfl-img {
display: block;
position: relative;
width: 45px;
@RuanAragao
RuanAragao / index.html
Created March 31, 2015 17:12
Seven Segments // source http://jsbin.com/qetomu
<!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 {
## 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
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:
@RuanAragao
RuanAragao / install
Created July 10, 2015 19:17
Server Apache, PHP and MySQL on CentOS
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
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;
@RuanAragao
RuanAragao / zero_to_left.js
Created December 22, 2015 13:41
Insert zeros to left the number
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;
}