Skip to content

Instantly share code, notes, and snippets.

View grassfedfarmboi's full-sized avatar

Sten grassfedfarmboi

View GitHub Profile
import tkinter
# Lots of tutorials have from tkinter import *, but that is pretty much always a bad idea
from tkinter import ttk
import abc
class Menubar(ttk.Frame):
"""Builds a menu bar for the top of the main window"""
def __init__(self, parent, *args, **kwargs):
''' Constructor'''
ttk.Frame.__init__(self, parent, *args, **kwargs)
@grassfedfarmboi
grassfedfarmboi / main.py
Created July 18, 2019 20:56
Terminal Tic Tac Toe
class Game():
'''
Tic Tac Toe terminal game
'''
def __init__(self):
'''Set initial variables and start game'''
self.grid = """
1 2 3
|| ||
@grassfedfarmboi
grassfedfarmboi / main.py
Created July 19, 2019 12:33
Terminal Tic Tac Toe
class Game():
'''
Tic Tac Toe terminal game
'''
def __init__(self):
'''Set initial variables and start game'''
self.grid = """
1 2 3
|| ||
# -*- coding: utf-8 -*-
""" Deletes all tweets below a certain retweet threshold.
"""
import tweepy
from datetime import datetime
# Constants
CONSUMER_KEY = ''