Just use the command below:
ffmpeg -i INPUT_FILE \
-vf scale=3840x2160:flags=lanczos \
-c:v libx264 \
-crf 13 \
-c:a aac -b:a 512k \
class Point: | |
""" | |
>>> p1 = Point(8, 6) | |
>>> p2 = Point(2, 3) | |
>>> p1 + p2 | |
Point(10, 9) | |
>>> p1 - p2 | |
Point(6, 3) | |
>>> p1 / p2 | |
Point(4.0, 2.0) |
class Meta(type): | |
def __new__(mcs, name, bases, namespace): | |
namespace['adicionei'] = 'um valor' | |
cls = super().__new__(mcs, name, bases, namespace) | |
for base in bases: | |
for key, value in base.__dict__.items(): | |
if getattr(value, '__is_abstract__', False): | |
if key not in cls.__dict__.keys(): |
Observação: estou usando o Python 3.10.
O que é Type Annotation? São partes do código usadas para indicar tipos de dados em locais como: variáveis, parâmetros e retornos de funções e métodos. Em Python isso é usado para documentação e ajuda com auto completar dos editores, visto que a linguagem não impede a execução do código mesmo se as anotações estiverem incorretas.
class MinhaLista: | |
def __init__(self): | |
self.__data = {} | |
self.__index = 0 | |
self.__next_index = 0 | |
def add(self, *values): | |
for value in values: | |
self.__data[self.__index] = value | |
self.__index += 1 |
(async function() { | |
console.clear(); | |
const headers = { | |
'Content-Type': 'application/json', | |
}; | |
const body = JSON.stringify({ | |
"username": "joanadarc", | |
"password": "Abc@12345678" | |
}); | |
const config = { |
Título | |
Deploy, Hospedagem e domínio e opções inclusivas para todos | |
Domínio e hospedagem: guia para leigos | |
https://www.otaviomiranda.com.br/2018/dominio-e-hospedagem-guia-para-leigos/ | |
Heroku | |
https://www.heroku.com/ | |
VirtualBox Tutorial |
try: | |
import sys | |
sys.path.insert(0, '/opt/homebrew/opt/pyqt5/lib/python3.9/site-packages') | |
except: | |
... | |
from PyQt5 import QtWidgets | |
from PyQt5.QtWidgets import (QApplication, QGridLayout, QMainWindow, |
{ | |
"window.zoomLevel": 0, | |
"python.languageServer": "Pylance", // ms-python.vscode-pylance | |
"python.testing.unittestEnabled": false, // ms-python.python | |
"python.testing.pytestEnabled": true, | |
"python.testing.pytestArgs": [], // -x to bail | |
"python.linting.flake8Enabled": true, | |
"python.linting.mypyEnabled": true, | |
"python.linting.pylintArgs": [ | |
"--load-plugins=pylint_django", |