diff --git a/assets/css/extended/custom.css b/assets/css/extended/custom.css new file mode 100644 index 0000000..e9db021 --- /dev/null +++ b/assets/css/extended/custom.css @@ -0,0 +1,35 @@ +@font-face { + font-family: AdwaitaSans; + src: local(sans-serif), url(/fonts/AdwaitaSans.ttf); + font-display: swap; +} + +body { + font-family: "AdwaitaSans", sans-serif; +} + +:root { + --theme: #fafafa; + --entry: #ffffff; + --primary: #2f2f2f; + --secondary: #696866; + --tertiary: #d9d9d9; + --content: #3a3a3a; + --hljs-bg: #ebebeb; + --code-bg: #ebebeb; + --border: #ebebeb; + --code-block-bg: #272727; +} + +.dark { + --theme: #1d1d1d; + --entry: #2e2e2e; + --primary: #deddda; + --secondary: #acaaa7; + --tertiary: #4b4b4b; + --content: #cccccc; + --hljs-bg: #272727; + --code-bg: #272727; + --border: #2e2e2e; + --code-block-bg: #272727; +} diff --git a/config.yaml b/config.yaml index 7846e6d..5272dfa 100644 --- a/config.yaml +++ b/config.yaml @@ -44,6 +44,11 @@ params: mainSections: - posts + label: + text: "TrudeEH" + icon: /logo.webp + iconHeight: 10 + ShowReadingTime: true ShowShareButtons: true ShowPostNavLinks: true diff --git a/content/.obsidian/workspace.json b/content/.obsidian/workspace.json index 23a2c77..d7d60e1 100644 --- a/content/.obsidian/workspace.json +++ b/content/.obsidian/workspace.json @@ -11,14 +11,12 @@ "id": "ab03f7100c1ce0fb", "type": "leaf", "state": { - "type": "markdown", + "type": "image", "state": { - "file": "notes/ready/firewall.md", - "mode": "source", - "source": false + "file": "notes/ready/binary_operations/d1.png" }, - "icon": "lucide-file", - "title": "firewall" + "icon": "lucide-image", + "title": "d1" } } ] @@ -94,7 +92,7 @@ "state": { "type": "backlink", "state": { - "file": "notes/ready/firewall.md", + "file": "TODO.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -104,7 +102,7 @@ "unlinkedCollapsed": true }, "icon": "links-coming-in", - "title": "Backlinks for firewall" + "title": "Backlinks for TODO" } }, { @@ -141,13 +139,13 @@ "state": { "type": "outline", "state": { - "file": "notes/ready/firewall.md", + "file": "notes/ready/binary_operations/d1.png", "followCursor": false, "showSearch": false, "searchQuery": "" }, "icon": "lucide-list", - "title": "Outline of firewall" + "title": "Outline of d1" } } ], @@ -171,9 +169,17 @@ }, "active": "b73f137a8a755c19", "lastOpenFiles": [ - "notes/drafts/linux/index.md", - "notes/ready/firewall.md", + "notes/ready/binary_operations/index.md", + "notes/ready/binary_operations/d6.png", + "notes/ready/binary_operations/d5.png", + "notes/ready/binary_operations/d4.png", + "notes/ready/binary_operations/d3.png", + "notes/ready/binary_operations/d2.png", + "notes/ready/binary_operations/d1.png", + "notes/ready/binary_operations/multiplication.png", "TODO.md", + "notes/ready/firewall.md", + "notes/drafts/linux/index.md", "_Templates/note.md", "drafts/nvim.md", "drafts/rust.md", @@ -194,8 +200,6 @@ "ready/c-snippets.md", "ready/compiling.md", "ready/diodes.md", - "ready/encryption.md", - "ready/flask.md", - "ready/gdb.md" + "ready/encryption.md" ] } \ No newline at end of file diff --git a/content/TODO.md b/content/TODO.md index 9be6a49..13f152a 100644 --- a/content/TODO.md +++ b/content/TODO.md @@ -3,6 +3,7 @@ draft: true --- ## Notes + ### New Notes In draft folder? (checkbox) @@ -13,7 +14,6 @@ In draft folder? (checkbox) - [x] Lua - [ ] JS - [ ] CSS -- [ ] Firewall - [x] macOS - [ ] FreeBSD - [x] Neovim, vim bindings, text editor diff --git a/content/notes/ready/binary_operations/d1.png b/content/notes/ready/binary_operations/d1.png new file mode 100644 index 0000000..a6e187a Binary files /dev/null and b/content/notes/ready/binary_operations/d1.png differ diff --git a/content/notes/ready/binary_operations/d2.png b/content/notes/ready/binary_operations/d2.png new file mode 100644 index 0000000..d4c6e41 Binary files /dev/null and b/content/notes/ready/binary_operations/d2.png differ diff --git a/content/notes/ready/binary_operations/d3.png b/content/notes/ready/binary_operations/d3.png new file mode 100644 index 0000000..46052c3 Binary files /dev/null and b/content/notes/ready/binary_operations/d3.png differ diff --git a/content/notes/ready/binary_operations/d4.png b/content/notes/ready/binary_operations/d4.png new file mode 100644 index 0000000..5cb7ed8 Binary files /dev/null and b/content/notes/ready/binary_operations/d4.png differ diff --git a/content/notes/ready/binary_operations/d5.png b/content/notes/ready/binary_operations/d5.png new file mode 100644 index 0000000..097805f Binary files /dev/null and b/content/notes/ready/binary_operations/d5.png differ diff --git a/content/notes/ready/binary_operations/d6.png b/content/notes/ready/binary_operations/d6.png new file mode 100644 index 0000000..3f27c8e Binary files /dev/null and b/content/notes/ready/binary_operations/d6.png differ diff --git a/content/notes/ready/binary_operations/image75.png b/content/notes/ready/binary_operations/image75.png index 78a3755..7bad0fa 100644 Binary files a/content/notes/ready/binary_operations/image75.png and b/content/notes/ready/binary_operations/image75.png differ diff --git a/content/notes/ready/binary_operations/index.md b/content/notes/ready/binary_operations/index.md index c5735fd..368d881 100644 --- a/content/notes/ready/binary_operations/index.md +++ b/content/notes/ready/binary_operations/index.md @@ -186,14 +186,7 @@ First, multiply the top number to every digit of the bottom one, and then add th | 0 | 0 | 0 | | 1 | 0 | 1 | -```Plain - ||.| - x ||. - .... - ||.| -+ ||.| - |..|||. -``` +![multiplication](multiplication.png) #### 2-Bit By 2-Bit Multiplier @@ -201,57 +194,20 @@ First, multiply the top number to every digit of the bottom one, and then add th ### Division -1. Find the smallest part of the dividend greater than or equal to the ==divisor==. +1. Find the smallest part of the dividend greater than or equal to the **divisor**.![d1](d1.png) - ```Plain - |.| ||..| - ``` + +2. Write the first digit of **the answer**, and **copy the original divisor down**.![d2](d2.png) -2. Write the first digit of ==the answer==, and ==copy the original divisor down==. + +3. Subtract the **aligned dividend digits** by **the digits under the dividend**.![d3](d3.png) - ```Plain - | - |.| ||..| - |.| - ``` +4. Lower **the next dividend digit**.![d4](d4.png) -3. Subtract ==the aligned dividend digits== by ==the digits under the dividend==. +5. Is **the total** greater or equal to the **divisor**? If so, add a `1` to the answer. If not, **add a `0` to the answer and return to step 4**.![d5](d5.png) - ```Plain - | - |.| ||..| - |.| - | - ``` -4. Lower ==the next dividend digit==. - - ```Plain - | - |.| ||..| - |.| - |. - ``` - -5. Is ==the total== greater or equal to the ==divisor==? If so, add a `1` to the answer. If not, ==add a== ==`0`== ==to the answer== ==and return to step 4==. - - ```Plain - |. - |.| ||..| - |.| - |. - ``` - -6. Return to step 2, until you reach the end of the number. If you reached the end, you found ==the answer==. - - ```Plain - |.| - |.| ||..| - |.| - |.| - |.| - . - ``` +6. Return to step 2, until you reach the end of the number. If you reached the end, you found **the answer**.![d6](d6.png) ### ASCII diff --git a/content/notes/ready/binary_operations/multiplication.png b/content/notes/ready/binary_operations/multiplication.png new file mode 100644 index 0000000..58537bb Binary files /dev/null and b/content/notes/ready/binary_operations/multiplication.png differ diff --git a/content/posts/nix-starter-guide.md b/content/posts/nix-starter-guide.md index c7fa83a..35999b1 100644 --- a/content/posts/nix-starter-guide.md +++ b/content/posts/nix-starter-guide.md @@ -365,7 +365,7 @@ mkdir -p ~/.config/nix-darwin/ cp -f flake.nix ~/.config/nix-darwin/ cp -f home.nix ~/.config/nix-darwin/ -if [[ $(uname -m) == "x86_64" ]]; then +if [ $(uname -m) == "x86_64" ](%20$(uname%20-m)%20==%20"x86_64"%20); then echo "Intel mac." nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake ~/.config/nix-darwin#x86 else diff --git a/content/posts/private-phone.md b/content/posts/private-phone.md index a98b751..70caaf9 100644 --- a/content/posts/private-phone.md +++ b/content/posts/private-phone.md @@ -1,4 +1,4 @@ ---- +--- # Post draft: false searchHidden: false diff --git a/static/fonts/AdwaitaMono.ttf b/static/fonts/AdwaitaMono.ttf new file mode 100644 index 0000000..481dd37 Binary files /dev/null and b/static/fonts/AdwaitaMono.ttf differ diff --git a/static/fonts/AdwaitaSans.ttf b/static/fonts/AdwaitaSans.ttf new file mode 100644 index 0000000..6fcafd9 Binary files /dev/null and b/static/fonts/AdwaitaSans.ttf differ diff --git a/static/portfolio/css/main.css b/static/portfolio/css/main.css index 990c2a4..8a71285 100644 --- a/static/portfolio/css/main.css +++ b/static/portfolio/css/main.css @@ -13,8 +13,8 @@ } @font-face { - font-family: Roboto; - src: local(sans-serif), url(../fonts/Roboto-Regular.ttf); + font-family: AdwaitaSans; + src: local(sans-serif), url(/fonts/AdwaitaSans.ttf); font-display: swap; } @@ -25,7 +25,7 @@ html { } body { - font-family: "Roboto", sans-serif; + font-family: "AdwaitaSans", sans-serif; background: var(--bg); margin: 0px; padding: 0px; diff --git a/static/portfolio/fonts/Roboto-Regular.ttf b/static/portfolio/fonts/Roboto-Regular.ttf deleted file mode 100644 index ddf4bfa..0000000 Binary files a/static/portfolio/fonts/Roboto-Regular.ttf and /dev/null differ