A collection of concise write-ups and code snippets on those small nuggets of information I'd otherwise forget.
So far, I have learned 14 things.
- Bash
- Black
- Django
- Doh
- Git and Github
- Markdown
- Python built-ins
- Python datatypes
- Python standard library
- Web Design
- Dictionary comprehension
- List Comprehensions to combine elements of multiple lists
- Use rsplit() to get the last section of a path
To create a new article:
- Create a new .md file (and a new folder, if it's a new category).
- The title of the new article will be the first level one heading in the file. Use '#', not 'H1'.
- Once all new articles are have been staged in the local repo, commit the changes to git. Assuming
python-githooks
is installed and set up, thisreadme.md
should be automatically regenerated (the test suite will also run, and Python files will be blackened). - If edits are made directly in the GitHub editor make sure to
git pull
the latest version before committing any new articles to the repo locally. There's a test in the test suite to check that the local repo isn't behind the remote, so a commit should fail if there are remote changes not included locally.
Jim Anderson suggested that I build a "Today I Learned..." repo when I asked on the Real Python Slack channel how people were storing their code snippets. Jim's reward for this kindness was that I shamelessly copied his own TIL (although I've added quite a lot of features since then). Thank you Jim, for the suggestion and inspiration!
This repository is licensed under the MIT license. See LICENSE
for details.