This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| <!DOCTYPE html> | |
| <html lang="en" > | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>CodePen - React Material UI Template</title> | |
| </head> | |
| <body> | 
| const socket = new WebSocket('wss://stream.binance.com:9443/ws/btcusdt@trade'); | |
| socket.onmessage = (event) => { | |
| const data = JSON.parse(event.data); | |
| const btcPriceUSD = parseFloat(data.p); | |
| console.log("Bitcoin pricing in USD (WebSocket):", btcPriceUSD); | |
| }; | |
| // code tested and working in 26/08/2024 | 
| import pdfkit | |
| def html_to_pdf(html_content, pdf_file): | |
| try: | |
| pdfkit.from_string(html_content, pdf_file) | |
| print("PDF conversion successful!") | |
| except Exception as e: | |
| print(f"PDF conversion failed: {str(e)}") | |
| if __name__ == "__main__": | 
document.addEventListener('keydown', function(event) {
  if (event.key === 'F2') {
 | import tkinter as tk | |
| from tkinter import messagebox | |
| # Cria uma janela tkinter (mas não a exibe) | |
| janela = tk.Tk() | |
| janela.withdraw() # Esconde a janela principal | |
| # Mostra o alerta diretamente | |
| messagebox.showinfo("Alerta", "Este é um alerta na tela!") | 
| #!/usr/bin/python | |
| import socket | |
| ip = "192.168.0.1" | |
| porta = 80 # Se for porta 81 vai constar fechada. | |
| meusocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| res = meusocket.connect_ex((ip, porta)) | |
| if (res == 0 ): | 
| function atribuirValoresAleatorios(json) { | |
| // Converte a string JSON de volta para um objeto | |
| const objeto = JSON.parse(json); | |
| // Percorre todos os atributos do objeto | |
| for (const chave in objeto) { | |
| // Gera um valor aleatório para o atributo | |
| const valorAleatorio = Math.floor(Math.random() * 100); | |
| // Atribui o valor aleatório ao atributo | 
| ELOGIOS A | |
| O livro ilustrado dos maus argumentos | |
| “Eu amei este livro. É um compêndio infalível de falhas.” — ALICE ROBERTS, Ph.D., anatomista, | |
| apresentadora do programa da BBC The Incredible Human Journey | |
| “Maus argumentos, ótimas ilustrações… Maravilhoso.” — CORY DOCTOROW, do BoingBoing.net | |