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
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), |
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
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), |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2021 billyeatcookies | |
import json | |
from colorama import Fore, Back, init, Style | |
init(autoreset=True) |
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
class MegaGreeter | |
attr_accessor :names | |
# Create the object | |
def initialize(names = 'world') | |
@names = names | |
end | |
# say hi to everybody | |
def say_hi |
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
import sqlite3 | |
db = sqlite3.connect('scores.db') | |
c = db.cursor() | |
c.execute('''CREATE TABLE stocks | |
(date text, trans text, symbol text, qty real, price real)''') | |
c.execute("INSERT INTO stocks VALUES ('2006-01-05','BUY','RHAT',100,35.14)") |
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
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 |
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
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): |