Skip to content

Instantly share code, notes, and snippets.

View lfalvarez's full-sized avatar
🤹

Luis Felipe Álvarez Burgos lfalvarez

🤹
View GitHub Profile
@lfalvarez
lfalvarez / Articulopostvota.txt
Created October 26, 2015 20:55
PostVotaInteligente
En la Fundación Ciudadano Inteligente llevamos algunos de nuestros proyectos a otros países y
el que más nos ha funcionado es VotaInteligente. El recién pasado fin de semana tuvimos dos elecciones presidenciales
y donde nosotros prestamos apoyo a organizaciones amigas en estos paíse.s
Es difícil hablar con nuestros amigos y preguntarles si están contentos con los resultados de las elecciones.
Es que es comprensible,
@lfalvarez
lfalvarez / csv-to-geojson.geojson
Created October 26, 2015 13:46 — forked from anonymous/csv-to-geojson.geojson
Los problemas de barriosenaccion
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lfalvarez
lfalvarez / preguntas.txt
Created October 15, 2015 12:55
Las preguntas que le haremos a los ciudadanos en las marchas
1) Te puedo grabar?
2) Cómo crees que debe ser un buen ciudadano?
3) Vas a votar en las próximas elecciones?
3.a) Si la respuesta es Sí: "Cómo piensas informarte?"
3.b) Si la respuesta es No: Qué te haría cambiar de opinión?
4) Te importa si difundo esto?
@lfalvarez
lfalvarez / admin.py
Last active September 16, 2015 22:12
from .models import AnswerValue
from elections.admin import TakenPositionInline
from elections.admin import Position
class AnswerValueInline(admin.TabularInline):
model = AnswerValue
extra = 0
class YQSPositionAdmin(admin.ModelAdmin):
inlines = [TakenPositionInline, AnswerValueInline, ]
@lfalvarez
lfalvarez / .bashrc
Last active September 11, 2015 14:27
Environment configuration
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@lfalvarez
lfalvarez / utils_barriosenaccion.sql
Created August 11, 2015 15:34
SQL util para barriosenaccion
COPY(select DISTINCT ON (problem.id) problem.id, body.name, problem.name, users.email, problem.title, problem.state, problem.category, problem.detail, problem.latitude, problem.longitude from problem, users, body where problem.user_id=users.id AND problem.state in ('confirmed', 'investigating', 'in progress', 'planned', 'action scheduled', 'fixed', 'fixed - council', 'fixed - user', 'unable to fix', 'not responsible', 'duplicate', 'closed', 'internal referral') AND problem.whensent > NOW() - INTERVAL '5 weeks' and body.id IN (1, 2, 5)) to stdout
COPY(select users.id, users.name, users.email, from_body from users, body ) to STDOUT;
@lfalvarez
lfalvarez / yqs_json
Last active August 29, 2015 14:24
YQS json
{
"Cargo":"Presidente",
"Nivel":"Nacional",
"Preguntas":{
"Nro_Candidatos":5,
"Nro_Preguntas":4,
"Id":0,
"Candidatos":[
{
"drogas":[
@lfalvarez
lfalvarez / respuesta para martin
Created June 18, 2015 18:30
Respuesta para martín
{
"election_id": "1"
,"election_name": "Pre-candidatos a presidente"
,"district": "Argentina" //should this be a mapit id?
,"level": "Nacional" //should this be an id?
,"post": "Presidente" //should this match the pop-it post-name?
, "categories":[
{
"category_id":1,
"name": "Preguntas",
@lfalvarez
lfalvarez / aaa
Created June 10, 2015 21:59
test test
(virtualenv-vota)felipe@yoquierosaber:/var/www/vota/votainteligente-portal-electoral$ python
Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from candidator.models import Category
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named models
@lfalvarez
lfalvarez / lspci562015
Created June 5, 2015 13:57
lspci 562015
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)