Fix broken text and images in N:binary operations, updated the theme and changed fonts.

This commit is contained in:
2025-02-19 12:16:06 +00:00
parent a2e07c92b3
commit 66082f584e
19 changed files with 74 additions and 74 deletions

View File

@@ -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"
]
}

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -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

View File

@@ -1,4 +1,4 @@
---
---
# Post
draft: false
searchHidden: false