]> Untitled Git - monorepo.git/commitdiff
Changed configs; add journal post
authorPreston Pan <preston@nullring.xyz>
Sat, 24 Jun 2023 06:30:02 +0000 (14:30 +0800)
committerPreston Pan <preston@nullring.xyz>
Sat, 24 Jun 2023 06:30:02 +0000 (14:30 +0800)
config/doom.org
config/qutebrowser.org
journal/index.org
mindmap/duality.org

index 124dfb978f1ad1ae8b553a8c5b5924ffce328885..50e6dd00bde7ff59404838cf5bb258bf23847720 100644 (file)
@@ -69,6 +69,9 @@ Now, we set our keybindings:
         ([?\s-w] . (lambda ()
                      (interactive)
                      (start-process "" nil "qutebrowser")))
+        ([?\s-n] . (lambda ()
+                     (interactive)
+                     (start-process "" nil "nyxt")))
         ([?\s-k] . (lambda ()
                      (interactive)
                      (start-process "" nil "krita")))
@@ -124,8 +127,8 @@ Now we configure fonts:
 ** Color Scheme
 I'm using the catppuccin theme, which is available on github.
 #+begin_src emacs-lisp :tangle yes
-(setq doom-theme 'catppuccin)
-(setq catppuccin-flavor 'mocha)
+(setq doom-theme 'doom-rouge)
+;; (setq catppuccin-flavor 'mocha)
 #+end_src
 ** Doom Module and Programs Configuration
 *** Agenda
@@ -310,6 +313,11 @@ loopbacks in gpg-agent.conf.
      (rainbow-mode 1))))
 (global-rainbow-mode 1)
 #+end_src
+*** Automatically tangle
+#+begin_src emacs-lisp :tangle yes
+(use-package! org-auto-tangle
+  :hook (org-mode . org-auto-tangle-mode))
+#+end_src
 * packages.el Configuration
 These are some external packages that I use that are not provided by doom modules.
 #+begin_src emacs-lisp :tangle packages.el
@@ -320,7 +328,9 @@ These are some external packages that I use that are not provided by doom module
 (package! nasm-mode)
 (package! org-contrib)
 (package! exwm)
+(package! org-auto-tangle)
 (package! rainbow-mode)
+(package! ednc)
 #+end_src
 
 * init.el Configuration
@@ -355,7 +365,7 @@ This installs all the doom modules that we are going to be configuring:
        ;;neotree           ; a project drawer, like NERDTree for vim
        ophints
        (popup +defaults)
-       tabs
+       ;; tabs
        treemacs
        unicode
        (vc-gutter +pretty)
index 7490371270a9a105a26d73a4ad8c5b5e788c2743..0763f68f8f4fd71121f8667b608e5691247d0a2e 100644 (file)
@@ -2,7 +2,7 @@
 #+author: Preston Pan
 #+date: <2023-06-09 Fri>
 #+description: a catppuccin configuration for qutebrowser.
-
+#+auto_tangle: t
 #+html_head: <link rel="stylesheet" type="text/css" href="../style.css" />
 
 * Configuration
@@ -65,8 +65,8 @@ c.url.searchengines = {
 ** Start Page
 Set the default start page to my own website.
 #+begin_src python :tangle config.py
-c.url.start_pages = ["https://preston.nullring.xyz"]
-c.url.default_page = "https://preston.nullring.xyz"
+c.url.start_pages = ["file:///home/preston/website_html/index.html"]
+c.url.default_page = "file:///home/preston/website_html/index.html"
 #+end_src
 ** Keybindings
 Now we define our keybindings for useful programs while browsing:
@@ -92,10 +92,6 @@ Doing mundane things like setting the downloads directory to not use an upper ca
 #+begin_src python :tangle config.py
 c.downloads.location.directory = "~/downloads"
 #+end_src
-We also want to do this for the purpose of EXWM:
-#+begin_src python :tangle config.py
-c.tabs.tabs_are_windows = True
-#+end_src
 ** End of Config
 #+begin_src python :tangle config.py
 config.load_autoconfig()
index 7d05c69b46b34aee12040975b12c22e169e7b196..345deba556d02263a46017619c18322b99496121 100644 (file)
@@ -23,6 +23,11 @@ done
 #+end_src
 
 #+RESULTS:
+- [[file:20230624.org][20230624.org]]
+- [[file:20230623.org][20230623.org]]
+- [[file:20230622.org][20230622.org]]
+- [[file:20230621.org][20230621.org]]
+- [[file:20230620.org][20230620.org]]
 - [[file:20230619.org][20230619.org]]
 - [[file:20230616.org][20230616.org]]
 - [[file:20230615.org][20230615.org]]
index 48e433b621650b5e991509b8c5d97893e581d990..a47e951a062f143f085380d2dc08c41ae159f0a2 100644 (file)
@@ -94,7 +94,45 @@ class BinaryTreeNode:
                 self.right = BinaryTreeNode(value)
             else:
                 self.right.insert(value)
+    def print_node(self, level=1):
+        print(f"level {level}: {self.value}")
+        if self.left is not None:
+            self.left.print_node(level + 1)
+        if self.right is not None:
+            self.right.print_node(level + 1)
+root = BinaryTreeNode(5)
+root.insert(3)
+root.insert(10)
+
+root.print_node()
 #+end_src
+
+#+RESULTS:
+: level 1: 5
+: level 2: 3
+: level 2: 10
+
 Currently, all that this binary tree has is an insert method, but that is all that is needed in order to see the [[id:8f265f93-e5fd-4150-a845-a60ab7063164][recursion]] in the structure.
 Each node "height" is self similar, and it works of a dual-mode sorting algorithm. That is, smaller values go on the left side, and bigger
-values go on the right side.
+values go on the right side. It is the binary tree model in my view that unites the concept of duality with the concept of recursion. Duality
+is self similar at every abstraction level, and the duality is crucial for subdividing processing power in order to break a big task
+into small tasks, which is needed for recursion to be finite.
+* Why duality, and not Any other Modality?
+This is a good question, and one that I've still yet to answer completely. However, I would still like to try my hand at this, because there
+are things that make the number two specially suited for the task of subdividing.
+** Two is a Natural Number
+From a biological perspective, we're probably more used to dealing with whole numbers. We did not even come up with the concept of any others
+until much later, and negative numbers, and even zero, were a construct invented much later as well. Yes, there are an infinite number of natural
+numbers, but at least it's a filter we can use.
+** Two is Prime
+Of course, there are an infinite number of other numbers that are prime, but this is yet another filter that can be used. Any number that is not
+prime can be represented by a smaller factor of that number. For example, 4-ality can be represented by a longer chain of dualities.
+
+What's interesting is that one is a factor of everything. This represents the "null filter", or "anti filter", which doesn't filter any data and
+simply represents it all as one thing. Very interesting.
+*** P-ality, where P is Prime
+I've yet to experiment with other P-alities, but I'm sure they work too. For now, I will say that they probably work, but won't be as elegant as
+a duality, for other reasons:
+** Two is small, and Close to e
+The last thing that makes two unique is simply that it is the smallest prime number, which means thinking about the concept is relatively easy. It is
+also an approximation of the constant e, or euler's constant, which has implications in computer science and storing data as well.