Skip to content

Instantly share code, notes, and snippets.

View eder-projetos-dev's full-sized avatar

Éder Luís Britto Garcia eder-projetos-dev

View GitHub Profile
@eder-projetos-dev
eder-projetos-dev / test_html.py
Last active February 10, 2023 12:45 — forked from marcoscastro/test_html.py
Python - Gerando arquivo HTML5 com acentuação correta no Linux e no Windows
import datetime as dt
agora = dt.datetime.now()
data = agora.strftime("%d-%m-%Y")
hora = agora.strftime("%H:%M")
codigo_html = f'''
<!DOCTYPE html>
<html>
<head>
@eder-projetos-dev
eder-projetos-dev / exemplo-css-interno.html
Last active February 12, 2023 13:37
CSS - Estilizando margens, background-color e títulos. Utilizando css interno com a tag style.
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<style type="text/css">
body {
background-color: rgb(245, 245, 245);
margin-top: 5%;
margin-left: 5%;
margin-right: 5%;
}
@eder-projetos-dev
eder-projetos-dev / gist:a9b90791467df80755610e37c52a793a
Last active February 14, 2023 11:14
PHP - Valores de escape "Content-type: text/plain"
<?php
header("Content-type: text/plain");
// pular linha
echo "Isso aqui vai ficar na primeira linha \n E isso na segunda linha \n";
// Tab
echo "Testando o tab \t aqui \n";
@eder-projetos-dev
eder-projetos-dev / requisitos-funcionais.html
Last active February 26, 2023 21:02
Análise - Requisitos Funcionais
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Requisitos Funcionais</title>
</head>
<body>
<?php
$nome = "Apuleio";
// %s -> string
printf("O nome é %s <br>", $nome);
// %d -> int
@eder-projetos-dev
eder-projetos-dev / pip_install_debian.txt
Last active February 22, 2023 21:06
Python - Instalação do PIP no Debian 11
sudo apt install python3-pip
python3 -m pip install --upgrade pip setuptools wheel
pip --version
@eder-projetos-dev
eder-projetos-dev / gist:b2d12cdb563659f74aaaf77882ea9108
Last active March 5, 2023 18:31
Python - Instalando o Flask em ambiente virtual (venv)
# No Linux utilize:
mkdir myproject
cd myproject
python3 -m venv venv
. venv/bin/activate
deactivate venv
pip3 install Flask
# No Windows utilize:
# md myproject
@eder-projetos-dev
eder-projetos-dev / gist:5f4ea8de8afbce261d45799cfbc32cb5
Created February 24, 2023 13:03
Debian - Criar usuário, trocar senha, adicionar e remover usuário de um grupo
# 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á
@eder-projetos-dev
eder-projetos-dev / coinmarketcap-python.md
Last active March 4, 2023 20:47 — forked from SrNightmare09/coinmarketcap-api.md
Python - Using Coinmarketcap API

Using Coinmarketcap API with Python

This is a Gist for anyone looking to learn everything about retrieving cryptocurrency data from Coinmarketcap.com. A handful of information is provided here - Getting started, how to get the API key, what problems I faced, the API limitations and many others...

@eder-projetos-dev
eder-projetos-dev / README.md
Last active March 3, 2023 00:43
Python - Gerador de QR Code

Pure Python QR Code Generator

pip install qrcode
pip install "qrcode[pil]"