Skip to content

Instantly share code, notes, and snippets.

@malkarouri
malkarouri / config.kdl
Created January 21, 2025 20:43
A Zellij configuration
keybinds clear-defaults=true {
locked {
bind "Ctrl b" { SwitchToMode "normal"; }
}
pane {
bind "left" { MoveFocus "left"; }
bind "down" { MoveFocus "down"; }
bind "up" { MoveFocus "up"; }
bind "right" { MoveFocus "right"; }
bind "c" { SwitchToMode "renamepane"; PaneNameInput 0; }
>>> class D(object):
class E(object):
pass
def __init__(self):
self.e = D.E() # E must be referred to as part of the D scope
>>> d=D()
>>> d.e
<__main__.E object at 0x011D4FF0> # the representation of the nested class E misrepresents its scope
>>> class Mcl(type): pass
>>> class A: __metaclass__ = Mcl
>>> class B:
class __metaclass__(type): pass
>>> class C:
class __metaclass__(type): pass