Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.21 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.21 KB

Introduction

I really enjoy the 3-2-1 newsletter from James Clear. Especially, the questions that come at the end. It has often helped me take a minute and think about things at a macro level. This repository is a simple rust program that scraps the newsletter and extracts these questions to a file.

Update

Huge thanks to feedback from kpcyrd. I learned about the anyhow crate from them and have incorporated the suggested changes.

Instructions

The following commands can be used to generate the questions file:

git clone https://github.com/unbeschwert/3-2-1.git questions
cd questions 
cargo build
./target/debug/james-clear-3-2-1

The file can be found at $HOME/questions.

Further in Linux, one can do the following: Add alias question="cat $HOME/questions | shuf | head -1" to .bash_aliases and enjoy pondering about the questions.

Note

This program is tested on Ubuntu. If you have any questions or suggestions, please do create an issue here.