- Quem sou? Pedro Markun, hacker e ativista pela transparência e outra forma de fazer politica em tempo integral.
- E estou aqui para contar a história de um Laboratório, um Laboratório Hacker que a gente esta montando dentro do Congresso Nacional. No coração do poder legislativo.
- A minha história com transparência e dados abertos vai começar mais ou menos em Outubro de 2009. Quando 120 pessoas se reuniram na extinta Casa de Cultura Digital - ali na Barra Funda - para realizar o primeiro Transparência Hackday.
- Hoje, você chuta uma árvore e caem 10 hackathons. Estamos planejando inclusive uma segunda edição aqui pra Câmara. Mas naquela época não era bem assim... e eu e a Daniela, minha sócia, tivemos que ouvir do Claudio Abramo - presidente da Transparência Brasil - que isso nunca ia dar certo e que o governo nunca ia abrir os dados.
- Mas enfim, o evento rolou e dele surgiu uma comunidade - a Transparência Hacker - que cresceu e hoje te
This file contains hidden or 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
| { | |
| "nome" : "PIB 2010", | |
| "pergunta" : "Como você acha que é dívidido o Produto Interno Bruto pelo Brasil?", | |
| "descricao": "O produto interno bruto (PIB) representa a soma (em valores monetários) de todos os bens e serviços...", | |
| "unidade" : "r$ em mil", | |
| "fonte" : "http://pt.wikipedia.org/wiki/Anexo:Lista_de_unidades_federativas_do_Brasil_por_PIB", | |
| "brasil" : { | |
| "SP" : { | |
| "valor" : 1247596.00, | |
| "tooltip" : "São Paulo tem o 1/3 do pib de todo o Brasil!" |
This file contains hidden or 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
| <html> | |
| <head> | |
| <style> | |
| #repo { | |
| display:none; | |
| } | |
| #folha { | |
| text-align: center; | |
| width:210mm; |
This file contains hidden or 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
| [ | |
| { | |
| "cod": 4, | |
| "funcao": "ADMINISTRACAO", | |
| "subfuncao": [ | |
| ], | |
| "valor": 0 | |
| }, |
This file contains hidden or 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 time import sleep | |
| class Party: | |
| def __init__(self, name, people): | |
| self.name = name | |
| self.allnight = True | |
| self.people = people | |
| people = ["Capi", "Mobi", "Pedro", "Marcela"] | |
| party = Party("Python com Pimenta", people) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Crie seu certificado | |
| # openssl req -new -x509 -keyout mycert.pem -out mycert.pem -days 365 -nodes | |
| # Droopy (http://stackp.online.fr/droopy) | |
| # Copyright 2008-2012 (c) Pierre Duquesne <stackp@online.fr> | |
| # Licensed under the New BSD License. |
This file contains hidden or 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
| PROJETO DE LEI | |
| Dispõe sobre as medidas relativas à Copa das | |
| Confederações FIFA de 2013 e à Copa do | |
| Mundo FIFA de 2014, que serão realizadas no | |
| Brasil. | |
| O CONGRESSO NACIONAL decreta: | |
| CAPÍTULO I | |
| DISPOSIÇÕES PRELIMINARES | |
| Art. 1o Esta Lei dispõe sobre as medidas relativas à Copa das Confederações FIFA | |
| de 2013, à Copa do Mundo FIFA de 2014 e aos eventos relacionados, que serão realizados no |
This file contains hidden or 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
| { | |
| "DataProj": "19/02/1992", | |
| "Ementa": "INSTITUI, NO MUNICIPIO DE SAO PAULO, O \"DIA DO COLUNISTASOCIAL\", E DA OUTRAS PROVIDENCIAS.", | |
| "Assunto": [ | |
| "COLUNISTA SOCIAL", | |
| "DATA COMEMORATIVA", | |
| "DIA NACIONAL DO COLUNISTA SOCIAL", | |
| "IMPRENSA" | |
| ], | |
| "Encerramento": [ |
This file contains hidden or 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 numpy as np | |
| import scipy | |
| import pylab | |
| from scipy import ndimage | |
| import mahotas | |
| import math | |
| from SimpleCV import Camera, Image | |
| def calcula_percento(objeto, valor_referencia): | |
| if objeto['h'] >= valor_referencia*0.5: |
This file contains hidden or 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
| /* Processing code for this example */ | |
| // Graphing sketch | |
| // This program takes ASCII-encoded strings | |
| // from the serial port at 9600 baud and graphs them. It expects values in the | |
| // range 0 to 1023, followed by a newline, or newline and carriage return | |
| // Created 20 Apr 2005 |