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
| import matplotlib.pyplot as plt | |
| from matplotlib.figure import Figure | |
| from matplotlib.colors import ListedColormap | |
| import numpy as np | |
| from PIL import Image | |
| import random | |
| class Cat: | |
| def __init__(self, qtd: int, value: int): | |
| self.qtd = qtd |
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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "strings" | |
| "unicode" | |
| ) |
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
| package main | |
| import "fmt" | |
| type Node[T comparable] struct { | |
| Value T | |
| next *Node[T] | |
| prev *Node[T] | |
| root *Node[T] | |
| } |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| ) | |
| type Pokemon struct { | |
| nome string | |
| vida int |
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
| package main | |
| import "fmt" | |
| type Node[T comparable] struct { | |
| value T | |
| next *Node[T] | |
| prev *Node[T] | |
| root *Node[T] | |
| } |
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
| # para desinstalar o go caso tenha baixado anteriormente | |
| sudo rm -rf /usr/local/go | |
| # para desisntalar o go caso tenha baixado via apt | |
| sudo apt remove --purge golang-go -y | |
| sudo apt autoremove -y | |
| # para instalar a versão mais nova | |
| versao='go1.24.2.linux-amd64.tar.gz' | |
| wget https://go.dev/dl/$versao |
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
| #!/bin/bash | |
| # para desinstalar o go caso tenha baixado anteriormente | |
| sudo rm -rf /usr/local/go | |
| # para desisntalar o go caso tenha baixado via apt | |
| sudo apt remove --purge golang-go -y | |
| sudo apt autoremove -y | |
| # para instalar a versão mais nova |
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
| class Node: | |
| def __init__(self, key: int) -> None: | |
| self.left: Node | None = None # Ponteiro para o nó à esquerda | |
| self.right: Node | None = None # Ponteiro para o nó à direita | |
| self.value: int = key # Valor armazenado no nó | |
| class BST: | |
| def __init__(self) -> None: | |
| self.root: Node | None = None # Raiz da árvore |
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
| poo arcade images |
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
| // Fiz esse código enquanto dormia, por isso n | |
| let raio = 50; | |
| function setup() { | |
| createCanvas(800, 500); | |
| background("blue"); | |
| frameRate(10); | |
| } | |
| function draw() { |
NewerOlder