Skip to content

Instantly share code, notes, and snippets.

View paoloose's full-sized avatar
:octocat:

Paolo Flores paoloose

:octocat:
View GitHub Profile
@paoloose
paoloose / clase1.md
Last active January 29, 2023 09:55
Notas de la primera clase para la b23
def beadsort(input_list: list[int]):
"""Bead sort."""
return_list = []
# Initialize a 'transposed list' to contain as many elements as
# the maximum value of the input -- in effect, taking the 'tallest'
# column of input beads and laying it out flat
transposed_list = [0] * max(input_list)
for num in input_list:
# For each element (each 'column of beads') of the input list,
# 'lay the beads flat' by incrementing as many elements of the
@paoloose
paoloose / bot.py
Created December 18, 2023 21:31 — forked from indiv0/bot.py
bot.py
import docker
import discord
import asyncio
import sqlite3
import io
import functools
import os
from os import listdir
from os.path import isfile, join
from datetime import datetime, timedelta, timezone