This file contains hidden or 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/env python2.6 | |
| #coding=utf8 | |
| import re | |
| COLOR_MAPPING = { | |
| 1: 'gold', | |
| 2: 'blue', | |
| 3: 'gold4', | |
| 30: 'deepskyblue', # Ligne 3b |
This file contains hidden or 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
| naps@leon ~/D/l/path> python -i metro.py | |
| Bienvenue dans le programme de calcul d'itinéraires | |
| Entrez une station de départ | |
| >lib | |
| Station Liberté selectionnée pour le départ. | |
| Entrez une station d'arrivée | |
| >villette | |
| Station Porte de la Villette selectionnée pour l'arrivée. |
This file contains hidden or 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
| import socket | |
| from struct import pack, unpack | |
| import signal | |
| # Fonctions | |
| def mac2string(macaddr): | |
| '''Retourne une adresse mac sous forme d'octets en adresse mac | |
| sous forme de chaine.''' | |
This file contains hidden or 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/env python | |
| # coding=utf8 | |
| import cairo | |
| import pycha.line | |
| import subprocess | |
| from helpers import * | |
| # Parameters : | |
This file contains hidden or 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/env python | |
| # Written by Antoine 'NaPs' Millet | |
| # | |
| # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| # Version 2, December 2004 | |
| # | |
| # Copyright (C) 2004 Sam Hocevar | |
| # 14 rue de Plaisance, 75014 Paris, France | |
| # Everyone is permitted to copy and distribute verbatim or modified |
NewerOlder