Skip to content

assignment 1 jules#18

Open
prishakhichadi wants to merge 8 commits intoGit-Lecture-2026:julesfrom
prishakhichadi:jules
Open

assignment 1 jules#18
prishakhichadi wants to merge 8 commits intoGit-Lecture-2026:julesfrom
prishakhichadi:jules

Conversation

@prishakhichadi
Copy link

No description provided.

@prishakhichadi prishakhichadi changed the title merge assignment assignment jules Mar 15, 2026
@prishakhichadi prishakhichadi changed the title assignment jules assignment 1 jules Mar 15, 2026
monkeytype.sh Outdated
local word_count=$1
local min=$2
local max=$3
grep -E "^[a-z]{$min,$max}$" /usr/share/dict/words | sort -R | head -n "$word_count" | xargs

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use shuf - it is used for random sampling

monkeytype.sh Outdated
while true; do
now=$(date +%s)
remaining=$(( time_limit - (now - start_time) ))
echo -ne "\033[s\033[0;40H${red}TIME: ${remaining}s ${nc}\033[u"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Insane nitpick, but what if my terminal window size is smaller than 40 cols
Use tput cols to calculate the terminal width

@peopleig
Copy link

Good work
You can submit after resolving the above two suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants