Skip to content

Instantly share code, notes, and snippets.

View AlexanderHott's full-sized avatar
🗿

Alex Ott AlexanderHott

🗿
View GitHub Profile
//-----------------------------------\\
//---*--- Information Section ---*---\\
//-----------------------------------\\
// Written by - LordDakr
// Date Created - 2019-07-02
// Youtube Channel - https://www.youtube.com/lorddakr
// Licence - https://creativecommons.org/licenses/by-nc-sa/4.0/
//---------------------------------\\
//---*--- Arguments Section ---*---\\
.
. . .
. .
.
.
. `+/ .
. `-:mNy.
@AlexanderHott
AlexanderHott / 256-color.py
Created March 28, 2024 17:02
Print a swatch using all 256 colors of 256-color-capable terminals
#!/usr/bin/python
"""Print a swatch using all 256 colors of 256-color-capable terminals."""
__author__ = 0
__url__ = 0
__version__ = 0
def hrun(start, width, padding=0):
return [None] * padding + list(range(start, start + width)) + [None] * padding
@AlexanderHott
AlexanderHott / adventure.py
Created March 28, 2024 15:33
python file that moves randomly somewhere on your Desktop
import os
import random
import logging
import sys
import subprocess
# Locate movable scope
if os.name == "nt":
homedir = os.getenv("HOMEDRIVE") + os.getenv("HOMEPATH") + os.sep + "Desktop"
try:
import codecs
except ImportError:
codecs = None
import logging.handlers
import time
import os
class BetterTimedRotatingFileHandler(logging.handlers.TimedRotatingFileHandler):

Hikari for beginners

A beginners guide to using hikari.

@AlexanderHott
AlexanderHott / example.py
Last active May 11, 2023 12:11
`hikari`, `lightbulb`, and `miru` examples
# -*- coding: utf-8 -*-
"""Example plugin for reference."""
import asyncio
import hikari
import lightbulb
import lightbulb.decorators
import miru
from miru.ext import nav