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
#define GREEN 8 | |
#define RED 12 | |
const int sepToken = 666; | |
int val = 0; | |
int lastVal = 0; | |
void setup() { | |
pinMode(GREEN, OUTPUT); | |
pinMode(RED, 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
# -*-*- coding: utf-8 -*- | |
import codecs | |
import csv | |
from StringIO import StringIO | |
from json import loads | |
# Taken from http://docs.python.org/library/csv.html#csv-examples | |
class UnicodeWriter(object): |
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
#!/usr/bin/python | |
import urllib | |
import requests | |
party = "name_of_the_party" | |
lines = [] | |
for line in open("programa-%s.txt" % party , "r"): | |
l = line.strip() | |
try: | |
int(l) |
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
for node in getGraph().nodes: | |
x, y = getPos(node) | |
setPos(node, -x, y) |
NewerOlder