January 2021
-
🐥Truncating a Unix timestamp to the hour using Go
-
🐥Parsing a key pair from a PEM file in Go
-
🐥Looking up a CNAME in Go
-
🐥Pretty-print JSON with Go
-
🐥Embedding file with Go 1.16
December 2020
November 2020
-
🐥Writing maintainable code
-
🐥Annotate Querysets to Fetch Specific Values
-
🐥Define Custom Query Sets and Model Managers for Code Reuse
-
🐥Use Prefetch Objects to Control Your Prefetch Related
-
🐥Using Q Objects for Complex Queries
-
🐥Optimize Database Calls with Prefetch Related and Select Related
-
🐥Making a unique list in Python preserving the order
-
🐥Safely getting values from a Python dictionary
-
🐥How to test if __name__ == "__main__"
-
🐥Testing exceptions in pytest
October 2020
-
🐥Executing a Python function and fail after x attempts
-
🐥Sorting a Python dict by value