Skip to content

Instantly share code, notes, and snippets.

View davidbegin's full-sized avatar

Begin davidbegin

View GitHub Profile

It is Friday. I don't have to work. I have to travel.

He was an American philosopher, mathematician, and computer scientist, and a major figure in analytic philosophy in the second half of the 20th century. He made significant contributions to philosophy of mind, philosophy of language, philosophy of mathematics, and philosophy of science. Outside philosophy, Putnam contributed to mathematics and computer science. Together with Martin l Davis he developed the Davis–Putnam algorithm for the Boolean satisfiability problem and he helped demonstrate the unsolvability of Hilbert's tenth problem.

@dataclass
class TwitchConfig:
token: str = os.environ["TWITCH_OAUTH_TOKEN"]
bot: str = os.environ.get("TWITCH_BOT_NAME", DEFAULT_BOT)
channel: str = os.environ.get("TWITCH_CHANNEL", DEFAULT_CHANNEL)
def __repr__(self):
return f"TwitchConfig(bot: {self.bot}, channel: {self.channel})"

It is Friday. I don't have to work. I have to travel. I want to continue to bridge the gap between Vim/Bash and Twitchchat, but if anything else comes up, I am going to let my ADHD take me away.

from pathlib import Path
import re
import sys
DEFAULT_LINES_TO_GRAB = 5
# BLACKLISTED_USERS = []
BLACKLISTED_USERS = ["beginbotbot", "nightbot"]
from optparse import OptionParser
:vnoremap <leader>gg :Gist<cr>; beginbot @+<cr>
import json
import socket
from log import Log
from config import TwitchConfig
from command_parser import CommandParser
CONNECTION_DATA = ("irc.chat.twitch.tv", 6667)
ENCODING = "utf-8"
CHAT_MSG = "PRIVMSG"
d then access the contents in Vimscript from register
d then access the contents in Vimscript from register
d then access the contents in Vimscript from register