Fix broken text and images in N:binary operations, updated the theme and changed fonts.
35
assets/css/extended/custom.css
Normal file
@@ -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;
|
||||||
|
}
|
||||||
@@ -44,6 +44,11 @@ params:
|
|||||||
mainSections:
|
mainSections:
|
||||||
- posts
|
- posts
|
||||||
|
|
||||||
|
label:
|
||||||
|
text: "TrudeEH"
|
||||||
|
icon: /logo.webp
|
||||||
|
iconHeight: 10
|
||||||
|
|
||||||
ShowReadingTime: true
|
ShowReadingTime: true
|
||||||
ShowShareButtons: true
|
ShowShareButtons: true
|
||||||
ShowPostNavLinks: true
|
ShowPostNavLinks: true
|
||||||
|
|||||||
34
content/.obsidian/workspace.json
vendored
@@ -11,14 +11,12 @@
|
|||||||
"id": "ab03f7100c1ce0fb",
|
"id": "ab03f7100c1ce0fb",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "image",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "notes/ready/firewall.md",
|
"file": "notes/ready/binary_operations/d1.png"
|
||||||
"mode": "source",
|
|
||||||
"source": false
|
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-image",
|
||||||
"title": "firewall"
|
"title": "d1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -94,7 +92,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "notes/ready/firewall.md",
|
"file": "TODO.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@@ -104,7 +102,7 @@
|
|||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
},
|
},
|
||||||
"icon": "links-coming-in",
|
"icon": "links-coming-in",
|
||||||
"title": "Backlinks for firewall"
|
"title": "Backlinks for TODO"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -141,13 +139,13 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "notes/ready/firewall.md",
|
"file": "notes/ready/binary_operations/d1.png",
|
||||||
"followCursor": false,
|
"followCursor": false,
|
||||||
"showSearch": false,
|
"showSearch": false,
|
||||||
"searchQuery": ""
|
"searchQuery": ""
|
||||||
},
|
},
|
||||||
"icon": "lucide-list",
|
"icon": "lucide-list",
|
||||||
"title": "Outline of firewall"
|
"title": "Outline of d1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -171,9 +169,17 @@
|
|||||||
},
|
},
|
||||||
"active": "b73f137a8a755c19",
|
"active": "b73f137a8a755c19",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"notes/drafts/linux/index.md",
|
"notes/ready/binary_operations/index.md",
|
||||||
"notes/ready/firewall.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",
|
"TODO.md",
|
||||||
|
"notes/ready/firewall.md",
|
||||||
|
"notes/drafts/linux/index.md",
|
||||||
"_Templates/note.md",
|
"_Templates/note.md",
|
||||||
"drafts/nvim.md",
|
"drafts/nvim.md",
|
||||||
"drafts/rust.md",
|
"drafts/rust.md",
|
||||||
@@ -194,8 +200,6 @@
|
|||||||
"ready/c-snippets.md",
|
"ready/c-snippets.md",
|
||||||
"ready/compiling.md",
|
"ready/compiling.md",
|
||||||
"ready/diodes.md",
|
"ready/diodes.md",
|
||||||
"ready/encryption.md",
|
"ready/encryption.md"
|
||||||
"ready/flask.md",
|
|
||||||
"ready/gdb.md"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@ draft: true
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
### New Notes
|
### New Notes
|
||||||
|
|
||||||
In draft folder? (checkbox)
|
In draft folder? (checkbox)
|
||||||
@@ -13,7 +14,6 @@ In draft folder? (checkbox)
|
|||||||
- [x] Lua
|
- [x] Lua
|
||||||
- [ ] JS
|
- [ ] JS
|
||||||
- [ ] CSS
|
- [ ] CSS
|
||||||
- [ ] Firewall
|
|
||||||
- [x] macOS
|
- [x] macOS
|
||||||
- [ ] FreeBSD
|
- [ ] FreeBSD
|
||||||
- [x] Neovim, vim bindings, text editor
|
- [x] Neovim, vim bindings, text editor
|
||||||
|
|||||||
BIN
content/notes/ready/binary_operations/d1.png
Normal file
|
After Width: | Height: | Size: 1010 B |
BIN
content/notes/ready/binary_operations/d2.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
content/notes/ready/binary_operations/d3.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
content/notes/ready/binary_operations/d4.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
content/notes/ready/binary_operations/d5.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
content/notes/ready/binary_operations/d6.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 21 KiB |
@@ -186,14 +186,7 @@ First, multiply the top number to every digit of the bottom one, and then add th
|
|||||||
| 0 | 0 | 0 |
|
| 0 | 0 | 0 |
|
||||||
| 1 | 0 | 1 |
|
| 1 | 0 | 1 |
|
||||||
|
|
||||||
```Plain
|

|
||||||
||.|
|
|
||||||
x ||.
|
|
||||||
....
|
|
||||||
||.|
|
|
||||||
+ ||.|
|
|
||||||
|..|||.
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 2-Bit By 2-Bit Multiplier
|
#### 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
|
### 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**.
|
||||||
|
|
||||||
```Plain
|
|
||||||
|.| ||..|
|
2. Write the first digit of **the answer**, and **copy the original divisor down**.
|
||||||
```
|
|
||||||
|
|
||||||
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**.
|
||||||
|
|
||||||
```Plain
|
4. Lower **the next dividend digit**.
|
||||||
|
|
|
||||||
|.| ||..|
|
|
||||||
|.|
|
|
||||||
```
|
|
||||||
|
|
||||||
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**.
|
||||||
|
|
||||||
```Plain
|
|
||||||
|
|
|
||||||
|.| ||..|
|
|
||||||
|.|
|
|
||||||
|
|
|
||||||
```
|
|
||||||
|
|
||||||
4. Lower ==the next dividend digit==.
|
6. Return to step 2, until you reach the end of the number. If you reached the end, you found **the answer**.
|
||||||
|
|
||||||
```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
|
|
||||||
|.|
|
|
||||||
|.| ||..|
|
|
||||||
|.|
|
|
||||||
|.|
|
|
||||||
|.|
|
|
||||||
.
|
|
||||||
```
|
|
||||||
|
|
||||||
### ASCII
|
### ASCII
|
||||||
|
|
||||||
|
|||||||
BIN
content/notes/ready/binary_operations/multiplication.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
@@ -365,7 +365,7 @@ mkdir -p ~/.config/nix-darwin/
|
|||||||
cp -f flake.nix ~/.config/nix-darwin/
|
cp -f flake.nix ~/.config/nix-darwin/
|
||||||
cp -f home.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."
|
echo "Intel mac."
|
||||||
nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake ~/.config/nix-darwin#x86
|
nix --extra-experimental-features "nix-command flakes" run nix-darwin -- switch --flake ~/.config/nix-darwin#x86
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
# Post
|
# Post
|
||||||
draft: false
|
draft: false
|
||||||
searchHidden: false
|
searchHidden: false
|
||||||
|
|||||||
BIN
static/fonts/AdwaitaMono.ttf
Normal file
BIN
static/fonts/AdwaitaSans.ttf
Normal file
@@ -13,8 +13,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: Roboto;
|
font-family: AdwaitaSans;
|
||||||
src: local(sans-serif), url(../fonts/Roboto-Regular.ttf);
|
src: local(sans-serif), url(/fonts/AdwaitaSans.ttf);
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Roboto", sans-serif;
|
font-family: "AdwaitaSans", sans-serif;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
|||||||