Skip to content

Instantly share code, notes, and snippets.

@abelcheung
abelcheung / firefox-viewsource-customize.md
Last active May 28, 2023 18:18
Customizing Firefox view-source style -- Solarized Dark theme with wallpaper

Customizing Firefox view-source style

TL;DR

  1. Open (or create) chrome/userContent.css under your Firefox profile folder
  2. Append attached CSS content and save file
  3. Toggle toolkit.legacyUserProfileCustomizations.stylesheets in Firefox about:config
  4. Restart Firefox

firefox view-source style customization

@abelcheung
abelcheung / lxml-element-source.uml
Last active February 23, 2023 04:30
UML diagram of lxml.etree Element inheritance in source and in stub
@startuml
!theme materia
hide empty members
!$notable_cls_color = "#header:Teal|DarkTurquoise"
skinparam title {
RoundCorner 15
BorderThickness 2
Padding 10
FontSize 24
@abelcheung
abelcheung / pytest-datadir-fail.md
Last active January 7, 2021 11:09
Pytest failure on using datadir fixture under Windows

This is bug report for pytest-datadir issue #36.

C:\Users\foobar\repo> pytest -k test_datadir -s tests\
========================================= test session starts =========================================
platform win32 -- Python 3.8.2, pytest-6.2.1, py-1.10.0, pluggy-0.13.1
rootdir: C:\Users\foobar\repo
plugins: datadir-1.3.1
collected 7 items / 6 deselected / 1 selected