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
#!/usr/bin/env bash | |
###################################### | |
# Uso: [canal] [seletor de tag HTML] | |
# Ex: ./raspagem.sh "GRD" "h2" | |
###################################### | |
check_dependencies() { | |
if ! command -v curl &>/dev/null; then | |
echo "Erro: O comando 'curl' não está instalado. Por favor, instale-o." | |
exit 1 |
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
ASDF + PHP no Arch sem Apache/Nginx | |
asdf plugin-add php https://github.com/asdf-community/asdf-php.git1 | |
# Listar as versões do PHP | |
asdf list-all php # Recomendo que você escolha a 8.1.5 | |
# Dependências que eu tive que resolver com o pacman | |
sudo pacman -S libzip postgresql-libs perl-gd |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import ttkbootstrap as ttk | |
# from ttkbootstrap.constants import * | |
root = ttk.Window(themename="journal") | |
def calcular(): | |
F = float(textbox_one.get()) |
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
#!/usr/bin/env bash | |
# Dependencies: | |
# sudo apt install golang whiptail | |
# export GOPATH=$HOME/go | |
# export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
# go get github.com/ericchiang/pup | |
############# | |
install_whiptail() { |
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
#!/usr/bin/env lua | |
-- Lib Expat example with cURL | |
local cURL = require "cURL" | |
local lxp = require "lxp" | |
tags = {} | |
items = {} | |
callback = {} |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
try: | |
import tkinter as tk | |
from tkinter import colorchooser | |
except ImportError as err: | |
print(err) | |
storage = [] |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
try: | |
from time import sleep | |
except ImportError: | |
from time import sleep | |
try: | |
cont = 100 |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
import os | |
# Sua Key | |
key = 'L5KcN769zVGXTdmgG5f1gxh3ZpcObgqN' | |
# Titulo do paste |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import tkinter as tk | |
root = tk.Tk() | |
# A window será desenhada com o Canvas e serão setados a largura e altura | |
canvas = tk.Canvas(width = 400, height = 400, bg = '#9ed2c5') | |
canvas.pack(expand = tk.YES, fill = tk.BOTH) # Expandir o Canvas e tornar responsivo |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import tkinter as tk | |
root = tk.Tk() | |
# Aqui é aquele velho X e Y ou Largura e Altura respectivamente | |
canvas_width = 500 | |
canvas_height = 150 |