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 \
| sudo apt update -y | |
| sudo apt upgrade -y | |
| sudo apt install git curl build-essential -y | |
| sudo apt install gcc make default-libmysqlclient-dev libssl-dev -y | |
| sudo apt install python3.10-full python3.10-dev -y |
| from dataclasses import dataclass | |
| def execute_command(command): | |
| if command == 'ls': | |
| print('$ listing files') | |
| elif command == 'cd': | |
| print('$ changing directory') | |
| else: | |
| print('$ command not implemented') |
| { | |
| "window.zoomLevel": 5, | |
| "editor.formatOnSave": true, | |
| "code-runner.executorMap": { | |
| "python": "clear ; .\\venv\\Scripts\\python.exe" | |
| }, | |
| "code-runner.runInTerminal": true, | |
| "code-runner.clearPreviousOutput": true, | |
| // Python | |
| "[python]": { |
| 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 = { |