Skip to content

Instantly share code, notes, and snippets.

View bonzini's full-sized avatar

Paolo Bonzini bonzini

View GitHub Profile
from datetime import date
# per ogni festa che cade di:
# sabato, domenica, -1 punto (niente ponte e niente festa)
# giovedi', martedi', +4 punti (ponte!!)
# lunedi', venerdi', +3 punti (festa dopo fine settimana)
# mercoledi +1 punti (solo festa)
punteggio = [3, 4, 1, 4, 3, -1, -1]
feste = [(1,1), # capodanno
(6,1), # epifania
#!/bin/sh
#
# git-snapshot.sh - save junk code to a snapshots branch
#
# USAGE: git-snapshot.sh [-m message] [files...]
#
# Run `git add files` and then create a new commit on branch 'snapshot'
# with two parents, the previous snapshot and HEAD.
#
# If -m is given, the 'message' is used as the commit message; otherwise