1
0
mirror of https://github.com/mgerb/top-of-reddit synced 2026-03-07 13:55:29 +00:00

update go, add 2021 and 2022 lists

This commit is contained in:
2023-03-04 16:11:05 -06:00
parent 23e053fc2b
commit 913bbcd4f6
13 changed files with 1892 additions and 743 deletions

20
src/scripts/generate.sh Executable file
View File

@@ -0,0 +1,20 @@
# get first argument
if [ -z "$1" ]; then
echo "Please provide a year e.g. 'generate.sh 2023'"
exit 1
fi
rm README.md subreddits.txt wordcloud_$1.png;
go run generate-stats.go $1;
wordcloud_cli \
--text subreddits.txt \
--imagefile wordcloud_$1.png \
--color red \
--background white \
--height 2000 \
--width 2000 \
--margin 10 \
--mask ./circle.png