Skip to content

Instantly share code, notes, and snippets.

#CHAPITRE 1er. - Dispositions introductives

Article 1er. La présente ordonnance règle une matière visée à l'article 39 de la Constitution.

Art. 2. La présente ordonnance s'applique à l'organisation des élections communales.

Art. 3. § 1er. Le Gouvernement fournit aux bureaux de vote et aux bureaux principaux les logiciels informatiques que ceux-ci doivent utiliser.

Le Gouvernement constate que les systèmes et processus électroniques utilisés pour l'enregistrement et la totalisation des votes garantissent l'intégrité des données et le secret des votes. Pour ce faire, il se base sur l'avis d'un des organismes agréés par le Roi en vertu de l'article 2, § 2, de la loi du 11 avril 1994 organisant le vote automatisé.

## Server section with all kinds of settings for the LCDd server ##
[server]
DriverPath=/usr/local/lib/lcdproc/
Driver=hd44780
Bind=127.0.0.1
Port=13666
User=pi
#Foreground=yes
# Hello message: each entry represents a display line; default: builtin
@dglaude
dglaude / LCD20.txt
Created July 23, 2016 20:59
LCD20 with lcdproc
### Setup of the i2c bus and tools ###
# Enable i2c bus with the menu of raspi-config
sudo raspi-config
# Reboot (this might not be necessary)
sudo shutdown -r now
# make sure Raspbian is up to date
#!/bin/bash
# ClusterHAT controller
if [ $# -gt 0 ];then
MODE=$1
else
echo
echo "Usage:"
echo " $0 <action> [<device>] [<device>]"
echo " action = on / off"
@dglaude
dglaude / unicorn_hat_for_ESP8266_micro.py
Last active June 2, 2020 10:51
Modifying Pimoroni Unicorn HAT library for use in microPython on ESP8266
### microPython ESP8266 documentation from http://docs.micropython.org/en/latest/esp8266/esp8266/quickref.html#neopixel-driver
###
###from machine import Pin
###from neopixel import NeoPixel
###
###pin = Pin(0, Pin.OUT) # set GPIO0 to output to drive NeoPixels
###np = NeoPixel(pin, 8) # create NeoPixel driver on GPIO0 for 8 pixels
###np[0] = (255, 255, 255) # set the first pixel to white
###np.write() # write data to all pixels
###r, g, b = np[0] # get first pixel colour
@dglaude
dglaude / REPL upload
Last active September 13, 2016 23:24
Blinkt! on ESP8266 microPython
f=open('colorsys.py','w')
f.write('''
''')
f.close()
@dglaude
dglaude / (NEW_VERSION_OF)random.py
Last active January 23, 2023 16:55
Blinkt! API for microPython (ESP8266)
f=open("random.py","w")
f.write('''import os
def getrandbits(k):
numbytes = (k + 7) // 8
x = int.from_bytes(os.urandom(numbytes), 'big')
return x >> (numbytes * 8 - k)
def bit_length(n):
res = n
@dglaude
dglaude / install_cat_and_copy.py
Last active October 9, 2016 18:53
microPython tools: cat, copy & decat (a debug cat with line number)
import os
os.mkdir("lib")
os.chdir("lib")
f=open("decat.py","w")
f.write('''
import os
def decat(filename):
@dglaude
dglaude / install_clock.py
Last active June 21, 2020 04:21
microPython ESP8266 Rainbow TIX clock with DS1307 I2C RTC and Pimoroni Unicorn pHAT (32 Neo Pixels)
f=open('main.py','w')
f.write('''import my_clock
my_clock.main()''')
f.close()
f=open('my_clock.py','w')
f.write('''
import random, colorsys
import sys, time
from machine import I2C, Pin
f=open("mote.py","w")
f.write('''
from machine import Pin
from apa102 import APA102
import colorsys
import time
def main():
clock = Pin(14, Pin.OUT)
data = Pin(13, Pin.OUT)