pip install python-barcode
#!/usr/bin/env python
<!-- HTML --> | |
<details open id="details_vermelho" class="collapse1"> | |
<summary class="title">Vermelho</summary> | |
<div style="background-color: #e14747"><br></div> | |
<div> | |
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.</p> | |
</div> | |
</details> | |
<style> | |
input[type='radio'] { | |
accent-color: #232323; | |
} | |
</style> |
from flask import Flask, session, escape, request, redirect, url_for | |
from os import urandom | |
app = Flask(__name__) | |
app.debug = True | |
app.secret_key = urandom(24) | |
@app.route('/') |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<link rel="icon" href="data:," /> | |
<title>Copy to Clipboard</title> | |
</head> | |
<body> |
from requests import Request, Session | |
import json | |
import time | |
import webbrowser | |
import pprint | |
def getInfo (): # Function to get the info | |
url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest' # Coinmarketcap API url |
# Criar um novo usuário | |
sudo useradd -d /home/desenvolvimento -c "Desenvolvimento" desenvolvimento | |
# Adicionar o usuário desenvolvimento no grupo ftp | |
sudo usermod -aG ftp desenvolvimento | |
# Remover usuário desenvolvimento do grupo ftp | |
sudo gpasswd -d desenvolvimento ftp | |
# Visualizar grupos em que o usuário está |
# No Linux utilize: | |
mkdir myproject | |
cd myproject | |
python3 -m venv venv | |
. venv/bin/activate | |
deactivate venv | |
pip3 install Flask | |
# No Windows utilize: | |
# md myproject |