Fix broken text and images in N:binary operations, updated the theme and changed fonts.
34
content/.obsidian/workspace.json
vendored
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
|
||||
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 |
|
||||
| 1 | 0 | 1 |
|
||||
|
||||
```Plain
|
||||
||.|
|
||||
x ||.
|
||||
....
|
||||
||.|
|
||||
+ ||.|
|
||||
|..|||.
|
||||
```
|
||||

|
||||
|
||||
#### 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**.
|
||||
|
||||
```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==.
|
||||
|
||||
```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**.
|
||||
|
||||
### 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 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
---
|
||||
---
|
||||
# Post
|
||||
draft: false
|
||||
searchHidden: false
|
||||
|
||||