- Background: (46, 46, 46); #2e2e2e
- Comments: (121, 121, 121); #797979
- White: (214, 214, 214); #d6d6d6
- Yellow: (229, 181, 103); #e5b567
- Green: (180, 210, 115); #b4d273
- Orange: (232, 125, 62); #e87d3e
- Purple: (158, 134, 200); #9e86c8
This file contains 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
def armstrong(n): | |
n = str(n) | |
soma = 0 | |
for i in n: | |
soma += int(i)**len(n) | |
return soma == int(n) | |
if __name__ == '__main__': | |
number = 407 | |
print(f"Is {number} an Armstrong number? ", armstrong(number)) |
This file contains 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
from tkinter import * | |
from tkinter import messagebox | |
from tkinter import filedialog | |
from PIL import ImageGrab | |
def locate(event): | |
global x | |
global y | |
x = event.x | |
y = event.y |
This file contains 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
function demosaic(img) | |
{ | |
largura, altura = img.tamanho | |
R, G, B = 0, 1, 2 | |
for (int x = 0; x < largura; x++) | |
{ | |
for (int y = 0; y < altura; y++) | |
{ | |
red = ( img[x - 1, y - 1][R] + img[x + 1, y + 1][R] ) / 2 |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Restaurante</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | |
<script src="https://www.w3schools.com/lib/w3.js"></script> | |
<script src="https://www.w3schools.com/lib/w3codecolor.js"></script> |
#111111 bg #F8F8F2 fg #DADF98 string/regex #43A4AF keywords/operators #DA2025 bracket highlight #A359ED numbers/builtins #74705D comments #99bdbd function/args