count utils

remotes/1717718404098715063/master
km0 3 years ago
parent 15ba803cdc
commit 0c67b28cca

@ -0,0 +1,82 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Nim Fanfic: 73\n",
"What is a loot box?: 158\n",
"One-sentence game ideas: 98\n",
"Miriam the Leader: 32\n",
"Katamari Fanfic: 147\n",
"there are 2 types of treasure chest: 24\n",
"\n",
"\n",
"Total post-it: 532\n"
]
}
],
"source": [
"import frontmatter\n",
"import os\n",
"\n",
"# list all the folders\n",
"folders = [ name for name in os.listdir() if os.path.isdir(os.path.join('', name)) and not name.startswith('.') ]\n",
"\n",
"total = 0\n",
"for folder in folders:\n",
" with open(f'{folder}/contents.md', 'r') as f:\n",
" metadata, body = frontmatter.parse(f.read())\n",
" block = len(metadata['contents'])\n",
" print(f'{metadata[\"title\"]}: {block}')\n",
" total = total + block\n",
"print('\\n')\n",
"print(f'Total post-it: {total}')\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"interpreter": {
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
},
"kernelspec": {
"display_name": "Python 3.8.2 64-bit",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}

@ -47,7 +47,6 @@ contents:
- almost in real time - almost in real time
- hahaha - hahaha
- week 08-14.02.2022 - week 08-14.02.2022
- You're a Helium Balloon and you just got to the Big City - You're a Helium Balloon and you just got to the Big City
@ -61,7 +60,6 @@ contents:
- you get to experience your whole life in reverse - you get to experience your whole life in reverse
- There is no gravity, no left or right, no up and down, but you have to indicate someone their way to the treasure. - There is no gravity, no left or right, no up and down, but you have to indicate someone their way to the treasure.
- week 15-21.02.2022 - week 15-21.02.2022
- Life's a game, play the game. - Life's a game, play the game.
@ -88,7 +86,6 @@ contents:
- I'm leaving 🍷 Wine Harbour now ;)) - I'm leaving 🍷 Wine Harbour now ;))
- Who are you, reveal yourself - Who are you, reveal yourself
- week 01-07.03.2022 [spring break] - week 01-07.03.2022 [spring break]
- The rain starts when the meeting stops - The rain starts when the meeting stops
@ -97,7 +94,7 @@ contents:
- week 07-14.03.2022 - week 07-14.03.2022
- "guess the guests" - Miri the Leader thanks for adding hahah - '"guess the guests" - Miri the Leader thanks for adding hahah'
- Try to eat the hole of a donut - Try to eat the hole of a donut
- Try to find out whether the donut hole is expired it was good - Try to find out whether the donut hole is expired it was good
- each chatroom is a different reality - each chatroom is a different reality
@ -115,5 +112,4 @@ contents:
- SI17 launch but everyone is being kicked out from FNP for no apparent reason - SI17 launch but everyone is being kicked out from FNP for no apparent reason
- sushi but it tastes like cola - sushi but it tastes like cola
- cola but it tastes like sushi - cola but it tastes like sushi
--- ---

Loading…
Cancel
Save