From c8294934cdbe21e33e4f2d5cbfe060548495a645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 22 Nov 2022 01:13:49 +0100 Subject: tis 22 nov 2022 01:13:49 CET --- HTML Footnotes.wiki | 4 ++++ Terminal Colors.wiki | 24 ++++++++++++++++++++++++ alacritty.wiki | 21 --------------------- index.wiki | 7 ++++++- python.wiki | 20 ++++++++++++++++++++ 5 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 HTML Footnotes.wiki create mode 100644 Terminal Colors.wiki delete mode 100644 alacritty.wiki create mode 100644 python.wiki diff --git a/HTML Footnotes.wiki b/HTML Footnotes.wiki new file mode 100644 index 0000000..578311e --- /dev/null +++ b/HTML Footnotes.wiki @@ -0,0 +1,4 @@ +- [ ] Fotnötter i HTML bör ha hovertext med sitt innehåll + +Sida med korrekt byggda fotnötter https://drewdevault.com/2022/09/07/Kernel-hacking-with-Hare-part-1.html + diff --git a/Terminal Colors.wiki b/Terminal Colors.wiki new file mode 100644 index 0000000..a24d057 --- /dev/null +++ b/Terminal Colors.wiki @@ -0,0 +1,24 @@ += Terminal Colors = + +== Dynamic background colors == +- https://medium.com/@joao.paulo.silvasouza/change-your-terminals-background-color-dynamically-using-escape-sequences-aba6e5ed2b29 +- https://github.com/alacritty/alacritty/issues/656 +- https://chromium.googlesource.com/apps/libapps/+/a5fb83c190aa9d74f4a9bca233dac6be2664e9e9/hterm/doc/ControlSequences.md#OSC + +change foreground :: `\033]10;#<6-digit-hexcode>\007` +change background :: `\033]11;#<6-digit-hexcode>\007` +change cursor :: `\033]12;#<6-digit-hexcode>\007` +terminal border bg :: `\033]708;#<6-digit-hexcode>\007` + + +# change individual color +`\033]4;{color};#FF0000\e\\` +1. Red +2. Green +3. Yellow +4. Blue +5. Purple +6. Cyan + +== Misc == +- [ ] Hur interagerar det med dawn/dusk diff --git a/alacritty.wiki b/alacritty.wiki deleted file mode 100644 index 0e72e1c..0000000 --- a/alacritty.wiki +++ /dev/null @@ -1,21 +0,0 @@ -= Alacritty = - -== Dynamic background colors == -- https://medium.com/@joao.paulo.silvasouza/change-your-terminals-background-color-dynamically-using-escape-sequences-aba6e5ed2b29 -- https://github.com/alacritty/alacritty/issues/656 -- https://chromium.googlesource.com/apps/libapps/+/a5fb83c190aa9d74f4a9bca233dac6be2664e9e9/hterm/doc/ControlSequences.md#OSC - -change foreground :: `\033]10;#<6-digit-hexcode>\007` -change background :: `\033]11;#<6-digit-hexcode>\007` -change cursor :: `\033]12;#<6-digit-hexcode>\007` -terminal border bg :: `\033]708;#<6-digit-hexcode>\007` - - -# change individual color -`\033]4;{color};#FF0000\e\\` -1. Red -2. Green -3. Yellow -4. Blue -5. Purple -6. Cyan diff --git a/index.wiki b/index.wiki index 1ad1e7c..fd04da1 100644 --- a/index.wiki +++ b/index.wiki @@ -36,9 +36,9 @@ - [[ansible]] - [[lsp]] - [[Virtualization]] -- [[alacritty]] - [[cmake]] - [[git]] +- [[python]] == Projekt == - [[GitServer]] @@ -88,6 +88,8 @@ - [[Systemd Machined]] - [[ldap]] - [[losetup]] +- [[Terminal Colors]] +- [[HTML Footnotes]] == Misc == - [[Lisp Quine]] @@ -129,6 +131,9 @@ - [[GitServer#Git Server#Autentisering#Autentisering SSH#Problem]] - [[GitServer#Taggning#Cleanup]] +== dressman == + - [[Kläder#Kläder, klädstorlekar, m.m.#Dressmann "Slim Fit" measurements]] + == tidle == - [[Media#tidle]] diff --git a/python.wiki b/python.wiki new file mode 100644 index 0000000..1abbf49 --- /dev/null +++ b/python.wiki @@ -0,0 +1,20 @@ += Properties = +property + +{{{python +field = property(get_f, set_f) +}}} + +{{{python +class C: + def __init__(self): + self._x = 10 + + @property + def x(self): + return self._x + + @x.setter + def x(self, value): + self._x = value +}}} -- cgit v1.2.3