One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #Aplicações: QT (e KDE) | |
| cd /usr/share/X11/locale/en_US.UTF-8 | |
| cp Compose Compose.original | |
| cat Compose.original | sed -e 's/Ć/ć/' -e 's/Ç/ç/' > Compose | |
| exit | |
| #Aplicações: GTK (e Gnome) | |
| cd /usr/lib/gtk-2.0/2.10.0/immodule-files.d/ | |
| cat libgtk2.0-0.immodules | sed -e 'az:ca:co:fr:gv:oc:pt:sq:tr:wa' -e 'en:az:ca:co:fr:gv:oc:pt:sq:tr:wa' | |
| touch /etc/environment |
| # coding=utf-8 | |
| def pegar_pontos_cartesianos(pontos_str): | |
| """Captura uma string e retorna o dicionario de coordenadas | |
| Ex: | |
| In :: pontos = pegar_pontos_cartesianos('P(0,2,3);Y(0.6,3.5,3.9);J(2,5,103)') | |
| In :: print(pontos) | |
| Out:: {'Y': [0.6, 3.5, 3.9], 'P': [0.0, 2.0, 3.0], 'J': [2.0, 5.0, 103.0]} | |
| :param pontos_str: Representação de pontos cartesianos |
| class DotExpandedDict(dict): | |
| """ | |
| - A special dictionary constructor that takes a dictionary in which the | |
| - keys may contain dots to specify inner dictionaries. It's | |
| - confusing, but this | |
| - example should make sense. | |
| - | |
| - >>> d = DotExpandedDict({'person.1.firstname': ['Simon'], \ | |
| - 'person.1.lastname': ['Willison'], \ | |
| - 'person.2.firstname': ['Adrian'], \ |
| for PYFILE in $(find . -name '*.py'); do pep8 $PYFILE --count >> pep8.log; done |
| # To work with python | |
| pip install --upgrade autopep8 | |
| pip install flake8 | |
| pip install flake8-docstrings | |
| pip install iresolve | |
| # To work with python and django | |
| apm install python-tools |