docker COMANDO CREAR postgres-db
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 time | |
| def simple_for(): | |
| lista = [] | |
| for x in range(0, 100_000_000): | |
| lista.append(x) | |
| def list_comprehension(): | |
| lista = [x for x in range(0, 100_000_000)] |
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
| from fabric.api import run | |
| from fabric.api import env, cd, prefix, sudo | |
| from fabric.api import local | |
| env.hosts = ['104.236.4.54'] | |
| env.user = 'eduardo' | |
| env.key_filename = '/home/eduardo/.ssh/id_ed25519.pub' | |
| def deploy(): |
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
| CREATE DATABASE IF NOT EXISTS bootcamp; | |
| USE bootcamp; | |
| DROP TABLE IF EXISTS users; | |
| CREATE TABLE users( | |
| id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, -- Este es un campo único. | |
| name VARCHAR(50) NOT NULL, | |
| age INT NOT NULL, |
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 shutil | |
| from pathlib import Path | |
| current_path = Path.cwd() | |
| documents_path = current_path / 'documents' | |
| files_path = documents_path / 'txts' | |
| pdfs_path = documents_path / 'pdfs' | |
| images_path = documents_path / 'images' |
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
| /* | |
| Theme Name: Gym Fitness | |
| Theme URI: | |
| Author: Juan Pablo De la torre Valdez | |
| Author URI: http://twitter.com/codigoconjuan | |
| Description: Theme Diseñado para el Gimnasio GymFitness | |
| Version: 1.0 | |
| License: GNU General Public License v2 or later | |
| License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| Tags: Gym, gimnasio, flexbox, css grid, mobile first |
Actualmente no es necesario configurar el proyecto en el directorio .vscode/settings.json, es mucho más fácil. Solo hay que seguir estos pasos:
- Antes de nada instalad estas extensiones en vuestro Visual Studio Code:
- Python: https://marketplace.visualstudio.com/items?itemName=ms-python.python
- Pylance: https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
- Pylint: https://marketplace.visualstudio.com/items?itemName=ms-python.pylint
- Django: https://marketplace.visualstudio.com/items?itemName=batisteo.vscode-django
links for old versions of Docker for Mac
Docker provides download links in release note. They promised that
(we) will also include download links in release notes for future releases.
Note: