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
Secuencia de comandos para generar la BD | |
1) Eliminar la BD de test | |
dropdb test_gotham || true | |
2) Eliminar el backup generado anetriormente | |
rm backup.dump |
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
(Struct){ | |
servicioId[] = "2", | |
unidadId[] = "1", | |
categoriaId[] = "1", | |
estado[] = "1", | |
esPaquete[] = "0", | |
tipoPaqueteId[] = "", | |
tipoServicieId[] = "2", | |
paisId[] = "130", | |
regionId[] = "4", |
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
Reto #1 | |
def main(): | |
file = open('problem1.txt', 'r') | |
lines = file.readlines() | |
for line in lines: | |
line = line.rstrip() | |
numbers = line.split(' ') | |
print(" ".join(detect_cycle(numbers))) | |
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 -*- | |
from sqlalchemy.orm import validates | |
from ..helpers.slugify import slugify | |
from .main import db | |
class SluggableMixin(object): |
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
virtualenv --python=/usr/bin/python3 | |
mkvirtualenv --python=/usr/local/bin/python3 myenv | |
pip install pyopenssl ndg-httpsclient pyasn1 | |
https://github.com/skotcarruth/buybay/blob/ee198eb846614eb52114f75ef864303e72fea6ab/orders/paypal.py |
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
https://www.reddit.com/r/learnpython/comments/2map7f/virtualenvwrappersh_bash_directory_issue/ |
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
sudo systemctl restart celery |
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
PATH=$PATH:/usr/local/sbin | |
sudo rabbitmq-server | |
pg_restore -U postgres -d viatodo2 viatodo.sql |
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
http://ionicframework.com/docs/api/service/$ionicPopup/ | |
http://codepen.io/rossmartin/pen/XJmpQr?editors=101 | |
http://codepen.io/mhartington/pen/cnqfL | |
http://codepen.io/asadfida/pen/oknzL?editors=101 | |
query |
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
**** HTML **** | |
<p><a href="#" class="btn btn-success" | |
role="button" | |
data-toggle="modal" | |
data-target="#cartModal" | |
data-product="{{ product.name }}" | |
data-presentation="{{ product.presentations.not_deleted()|objectjs }}" add-cart>Añadir al carrito</a> | |
NewerOlder