start new:
tmux
start new with session name:
tmux new -s myname
| {% if messages %} | |
| {% for message in messages %} | |
| <div class="alert alert-{{ message.tags }} alert-dismissible text-center" role="alert"> | |
| <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> | |
| <strong>{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}Error{% else %}{{ message.tags|title }}{% endif %}!</strong> {{ message }} | |
| </div> | |
| {% endfor %} | |
| {% endif %} |
| import asyncio | |
| import pathlib | |
| import socket | |
| import ssl | |
| import pytest | |
| import aiohttp | |
| from aiohttp import web | |
| from aiohttp.resolver import DefaultResolver |
| # TESTING | |
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) |
| def dados_do_local(endereco): | |
| """ | |
| Dado o endereco, retorna o endereco processado, a latitude e a longitude do local. | |
| Exemplo: | |
| place, (lat, lng) = dados_do_local(endereco) | |
| """ | |
| from geopy import geocoders | |
| if hasattr(settings, "EASY_MAPS_GOOGLE_KEY") and settings.EASY_MAPS_GOOGLE_KEY: | |
| g = geocoders.Google(settings.EASY_MAPS_GOOGLE_KEY) | |
| else: |