Skip to content

Instantly share code, notes, and snippets.

@nkhitrov
nkhitrov / structlog_fastapi.py
Created March 16, 2023 00:04
Structlog FastAPI example
"""
Structlog example configuration with FastAPI.
Features:
- async bound logger
- contextvars to log request-id and other meta data
- custom format for default logging loggers and structlog loggers
"""
import asyncio
import logging
@selfthinker
selfthinker / govspeak-a11y.user.css
Last active November 5, 2024 13:51
Show possible accessibility issues coming from Govspeak on www.gov.uk
/* ==UserStyle==
@name Govspeak accessibility issues
@namespace github.com/alphagov
@description Show possible accessibility issues coming from Govspeak on www.gov.uk
@version 1.2.8
@license MIT
@author Crown Copyright, Government Digital Service
@preprocessor less
@homepageURL https://gist.github.com/selfthinker/207d3d3682bd549599ceec20cb1cb087
@updateURL https://gist.githubusercontent.com/selfthinker/207d3d3682bd549599ceec20cb1cb087/raw/govspeak-a11y.user.css