Skip to content

Instantly share code, notes, and snippets.

View trk9001's full-sized avatar

trk trk9001

View GitHub Profile
@trk9001
trk9001 / sexy2kitty
Created April 12, 2022 23:19
Update kitty's colors from a terminal.sexy color scheme.
#!/usr/bin/env bash
# vim: sw=2 sts=2 et
# Update kitty's colors from a terminal.sexy color scheme (exported in JSON).
#
# Although there are at least a couple of PRs on terminal.sexy that add support
# for exporting color schemes for kitty, development on the repo seems to have
# gone stale and the PRs remain unmerged. This script reads a color scheme
# exported in the "JSON Scheme" format, and loads it into kitty's config after
# backing it up. Backups are created beside the original config. Dependencies
@trk9001
trk9001 / README.md
Last active October 14, 2020 21:13
Demonstration of Python's C3 Method Resolution Order using a complex example.

The text in mro.md shows the steps of computing the MRO of the class M from the following script, using the [C3 linearization][1] algorithm. For more info, see [this paper explaining the method resolution order used by Python since version 2.3][2].

#!/usr/bin/env python

class X:
  pass