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
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 |
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
#!/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 |