This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| // // https://twitter.com/settings/your_twitter_data/twitter_interests | |
| // Lots of discussion and improvement of the original script in the comments | |
| // Here's the best version that works well | |
| // Because Twitter stops the script working after unchecking 50 interests, so you will almost certainly have to run the script multiple times | |
| function sleep(milliseconds) { | |
| return new Promise(function (resolve) { | |
| return setTimeout(resolve, milliseconds); | |
| }); | 
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet | 
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| """ | |
| Based off Stripe's checkout repo, see the link for the Flask analogue. | |
| https://github.com/stripe-samples/checkout-one-time-payments/blob/master/server/python/server.py | |
| Assumes project is structured like: | |
| src/ | |
| backend/ | |
| app.py | 
| // dreidel model I wrote in 2023. | |
| // see https://buttondown.com/hillelwayne/archive/i-formally-modeled-dreidel-for-no-good-reason/ | |
| dtmc | |
| const int M; //starting money | |
| formula Players = 4; //Players | |
| formula maxval = M*Players; | |
| formula done = (p1=0) | (p2=0) | (p3=0) | (p4=0); | |
| formula halfpot = ceil(pot/2); |