Skip to content

Instantly share code, notes, and snippets.

View BookOwl's full-sized avatar

Matthew BookOwl

  • USA
View GitHub Profile
import re
from operator import *
i=lambda p: p if type(p)!=tuple else{"cons":lambda a,b:(a,b),"car":lambda a:a[0],"cdr":lambda a:a[1],"cadr":lambda a:a[1][0],"+":add,"-":sub,"*":mul,"print":print}[p[0]](*map(i,p[1:]))
while 1:i(eval(re.sub("[\n ]+",",",re.sub("[a-z+\-*]+","'\g<0>'",input()).replace("'nil'","''"))or"''"))
#!python3
# selenium_forum_poster.py - Scratch forum bot using Selenium
import time, pickle, random, os.path
from selenium import webdriver
RESPONSES = (
"Support.",
"No support.",
"workaroundable, no support.",
"100% support!",