Skip to content

Instantly share code, notes, and snippets.

View ghomasHudson's full-sized avatar

Thomas Hudson ghomasHudson

View GitHub Profile
@ghomasHudson
ghomasHudson / tweeet.py
Created October 27, 2022 13:05
tweeeet
import snscrape.modules.twitter as sntwitter
import sys
search_str = " ".join(sys.argv[1:])
for i,tweet in enumerate(sntwitter.TwitterSearchScraper(search_str).get_items()):
if "kevin" in tweet.user.displayname.lower():
print(tweet.user.displayname)
print("@"+tweet.user.username)
print(tweet.content)
{
"basics": {
"name": "Thomas Hudson",
"email": "thomas@gthudson.me",
"label": "Machine Learning PhD Student",
"picture": "https://avatars.githubusercontent.com/u/13795113?v=4",
"summary": "Researching NLP problems in veterinary medicine",
"location": {
"address": "",
"postalCode": "",
@ghomasHudson
ghomasHudson / feed.xml
Last active May 19, 2022 14:43
Turkish teatime but ordered
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/">
<channel>
<title>Turkish Tea Time</title>
<atom:link href="http://turkishteatime.com/podcast/feed/" rel="self" type="application/rss+xml"/>
<link>http://turkishteatime.com/podcast</link>
<description>Join us at Turkish Tea Time (turkishteatime.com) as we chat about the Turkish language, its grammar, and how it's spoken in every day life. We're Turkish learners, Turkish teachers, and Turkish people ourselves - so we understand what it takes to get a grip on this amazing language. Published daily, each lesson revolves around a dialog that
@ghomasHudson
ghomasHudson / trendy_talk_rss.sh
Created July 21, 2021 15:13
Bash script to build podcast rss feed from the Trendy Talk gemini page
#!/bin/sh
echo '<?xml version="1.0" encoding="UTF-8"?>'
echo '<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">'
echo '<channel>'
echo '<itunes:image href="https://share.tube/lazy-static/avatars/bfce2eb1-82b3-4490-88d1-c7ca034a5745.jpg"/>'
echo '<title>Trendy Talk</title>'
echo '<link>https://portal.mozz.us/gemini/gem.chriswere.uk/trendytalk/</link>'
echo "<description>Trendy Talk is an often gemini-centric punk as heck pseudo-podcast from the Internet's ChrisWere, Uoou and HexDSL. It has no schedule, no theme and no format to follow. It may however be the best gemini podcast on the whole smol-internet. So you are welcome.</description>"
@ghomasHudson
ghomasHudson / meetings.rss
Last active February 4, 2020 13:51
Meeting notes
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Thomas Hudson's PhD meeting nodes</title>
<description>Minutes from progress meetings, group meetings and the like</description>
<item>
<title>Weekly progress</title>
<pubDate>2020-02-03T11:00:00</pubDate>
<description><![CDATA[<ul><li>Writing 9mo review<ul><li>Literature review mostly complete</li><li>Still need citations, abstract, conclusions</li></ul></li><li>Using Github wiki for ideas, paper reviews</li><li>Written <a href="https://github.com/ghomasHudson/phd/wiki/Paper-Reviews">summary of reformer paper</a></li><li>Downloading NarrativeQA dataset</li></ul>]]></description>
@ghomasHudson
ghomasHudson / build.py
Last active February 27, 2018 14:37
Implementation of the BUILD algorithm (Aho et al., 1981)
#Implementation of BUILD algorithm
from pptree import *
from blessings import Terminal
term = Terminal()
colFunctions = ["red","green","yellow","blue","magenta","cyan"]
def printTab(*args, **kwargs):
try: