Skip to content

Instantly share code, notes, and snippets.

View tomlin7's full-sized avatar
πŸ–οΈ
vacation

Billy tomlin7

πŸ–οΈ
vacation
View GitHub Profile
@tomlin7
tomlin7 / poll.py
Last active September 8, 2022 05:38
Poll Command Discord.py
import discord
from discord.ext import commands
class QuickPoll(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
async def poll(self, ctx, question, *options: str):
@tomlin7
tomlin7 / pagination.py
Created December 21, 2020 17:08
a custom discord.py pagination class
import asyncio
import logging
import typing as t
from contextlib import suppress
import discord
from discord.abc import User
from discord.ext.commands import Context, Paginator
from bot import constants
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2021 billyeatcookies
import json
from colorama import Fore, Back, init, Style
init(autoreset=True)
import math
import numpy as np
import tkinter as tk
vertices = [
(100, 100, 100),
(100, 100, -100),
(100, -100, 100),
(100, -100, -100),
(-100, 100, 100),
import math, random
import numpy as np
import tkinter as tk
vertices = [
(100, 100, 100),
(100, 100, -100),
(100, -100, 100),
(100, -100, -100),
(-100, 100, 100),

git boomerang β€” Flip Your Git Staged

Git alias that flips your staged and unstaged changes (invert the index vs. working tree)

Given this:

[βœ”] staged_file.py (staged)
[✎] modified_file.js (unstaged)