Skip to content

Instantly share code, notes, and snippets.

View dado3212's full-sized avatar

Alex Beals dado3212

View GitHub Profile
@dado3212
dado3212 / ridethebus.py
Created August 13, 2017 00:09
Ride the Bus testing
import itertools, random, csv
suits = ["Spades", "Diamonds", "Hearts", "Clubs"]
values = ["Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"]
class InfiDeck:
def __init__(self):
self.deck = self.new_deck()
self.new_decks = 0
self.cards = 0
@dado3212
dado3212 / deleteGoogleGroup.py
Created August 7, 2017 05:16
Uses Selenium to delete every topic in a Google Group (rate of around 2k/hour deletions)
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import selenium.webdriver.support.ui as ui
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
credentials = {
# login credentials for google group
'username': '<username>',
@dado3212
dado3212 / texts_markov.py
Created March 3, 2017 08:10
This is a simple script that auto-generates texts using Markov chains based on your Mac iMessage history
__author__ = "Alex Beals"
import sqlite3, markovify, codecs, warnings, os
# Handle errors from running on Python 2.7 (emoji support)
warnings.simplefilter("ignore")
print("Connecting to chat database...")
# Extract all of my texts from the 'db' file