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: utf-8 | |
""" | |
Reset un dynamixel et lui affecte un nouvel id, | |
Mode d'emploi: | |
Connecter un actuateur unique est sur le bus dynamixel et lancer: | |
$ ./dxl-init.py 42 | |
Le moteur porte maintenant le n°42 et répond à la poppy-vitesse de 1000000 bauds, |
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: utf-8 | |
""" | |
V-REP Simulation / iPython launcher | |
""" | |
from pip.util import get_installed_distributions | |
from IPython.config.loader import Config as ipConfig | |
from IPython.terminal.embed import InteractiveShellEmbed | |
import re |
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
# coding: utf-8 | |
u""" | |
Raccourcis AES-CBC avec padding | |
Résumé: | |
>>> key = 'mon_petit_secret' # longueur 16, 24 ou 32 (v. ci après) | |
>>> clear = 'texte clair' | |
>>> crypt = encrypt(key, clear) # crypt : texte crypté, bytearray |
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
# makefile pour thème bootstrap personnalisé | |
# | |
# usage dans un makefile supérieur: | |
# $(MAKE) ${MAKEFLAGS} BUILD_DIR=${BUILD_DIR}/theme BOOTSTRAP_SOURCE=${BOOTSTRAP_SOURCE} | |
# ou dans ce makefile: | |
# BUILD_DIR=./build | |
# BOOTSTRAP_SOURCE=${HOME}/src/bootstrap | |
# | |
# bootstrap 2.1.0-wip utilise normalement `recess` | |
# `lessc` permet de surcharger localement des .less (option "--include-path") |