Skip to content

Instantly share code, notes, and snippets.

View ArthurDeveloper's full-sized avatar
💭
Probably coding 👨‍💻

Arthur Dev ArthurDeveloper

💭
Probably coding 👨‍💻
  • Brazil
View GitHub Profile
@ArthurDeveloper
ArthurDeveloper / codigo.cs
Created November 21, 2022 17:20
Exercício em C#
using System;
using System.Threading;
using System.Linq;
class Program {
public static String[] nomes = {};
public static String[] pratosPrincipais = {};
public static String[] bebidas = {};
public static String[] sobremesas = {};
@ArthurDeveloper
ArthurDeveloper / fizzbuzz.py
Created August 16, 2021 16:36
FizzBuzz in python
def fizzbuzz(firstNumber, lastNumber):
for number in range(firstNumber, lastNumber+1):
if number % 3 == 0 and number % 5 == 0:
print("FizzBuzz")
elif number % 3 == 0:
print("Fizz")
elif number % 5 == 0:
print("Buzz")
fizzbuzz(1, 100)
@ArthurDeveloper
ArthurDeveloper / github-picture-picker.py
Created August 15, 2021 00:50
Pegando foto de perfil do github dinamicamente
import requests
# Replace with your username
username = 'arthurdeveloper'
with open('image.png', 'wb') as file:
file.write(requests.get(f'https://github.com/{username}.png').content)
@ArthurDeveloper
ArthurDeveloper / half-pyramid.py
Created August 15, 2021 00:41
Meia pirâmide com 2 linhas em python
for i in range(6):
print('* ' * i)
def fib(termsQtt):
term = 1
lastTerm = 0
terms = []
while len(terms) < termsQtt:
terms.append(lastTerm + term)
term, lastTerm = lastTerm, term+lastTerm
return terms