Wanted to apply machine learning to generate Donald Trump tweets, and use signal handlers.
What it does
Prints a Trump tweet every 3 seconds or so, and responds to several of the standard signals (including SIGINT, SIGQUIT, SIGHUP, and SIGSEGV). Unfortunately, didn't have time to generate my own tweets, so managed to download some of his real ones and just print those instead.
How I built it
I used a shell script to run a program I wrote in C that reads in tweets line by line from a text file. Then later I added a GUI to the shell script using zenity to make it a bit more user-friendly.
Challenges I ran into
Using a machine learning algorithm to generate possible Trump tweets is hard, and I felt it was wiser to just print his actual tweets.
Accomplishments that I'm proud of
It just works! GUI in shell!
What I learned
SIGIO just says when input/output is readable/writeable, not when there is actually input or output. There's a GUI for shell scripts!!!!
What's next for ^[Tt]r(ump_[Bb])?ash$
Getting a larger collection of tweets, and/or generating new ones based on existing ones instead of just printing his old tweets.
Log in or sign up for Devpost to join the conversation.