Skip to content

Commit 03cd860

Browse files
committed
Refactor: Add custom notes layout
1 parent 4288538 commit 03cd860

File tree

84 files changed

+1120
-939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1120
-939
lines changed

content/notes/2020-05-30--19-14-46Z--information_theory.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T16:14:00-03:00
55
slug = "information_theory"
66
tags = ["computing", "theory", "information", "studies"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
@@ -39,7 +39,6 @@ drawings, each would contain the same number of bits though in different
3939

4040
`Key contents: entropy; density, information`
4141

42-
4342
## What is the density of a bit? {#what-is-the-density-of-a-bit}
4443

4544
Bit density measures how many bits can be stored in some area or volume. As far
@@ -62,8 +61,7 @@ about 1.65 cm^2 so its bit density is about 64 GB / 1.65 cm^2 = 38.8 GB / cm^2.
6261
So, by this rough calculation the bit density of a microSD card is about
6362
24,250,000 times greater than that of a sheet of paper.
6463

65-
66-
## CURRENT Measuring information {#current-measuring-information}
64+
## <span class="org-todo todo CURRENT">CURRENT</span> Measuring information {#measuring-information}
6765

6866
How can we quantify/measure an information source? Let's say Alice and Bob live
6967
on the opposite road of each other and they want to communicate during the
@@ -99,4 +97,4 @@ func main(){
9997
}
10098
}
10199

102-
```
100+
```

content/notes/2020-05-30--21-56-36Z--list_of_spority_artists.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T18:56:00-03:00
55
slug = "list-of-spotify-artists"
66
tags = ["music"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
1111

1212
| Artists |
13-
|------------------------------------|
13+
| ---------------------------------- |
1414
| Lana Del Rey |
1515
| Slipknot |
1616
| CocoRosie |
@@ -408,4 +408,4 @@ bookCollapseSection = true
408408
| Steinsopp |
409409
| Sync24 |
410410
| Grupo Revelação |
411-
| In The Hearts Of Emperors |
411+
| In The Hearts Of Emperors |

content/notes/2020-05-30--22-10-05Z--cool_companies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title = "Cool companies"
33
author = ["Ben Mezger"]
44
date = 2020-05-30T19:10:00-03:00
55
slug = "cool-companies"
6-
type = "posts"
6+
type = "notes"
77
draft = false
88
bookCollapseSection = true
99
+++

content/notes/2020-05-30--22-22-20Z--org_mode_firefox_bookmarks.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T19:22:00-03:00
55
slug = "orgmode-firefox-bookmark"
66
tags = ["emacs", "orgmode", "firefox"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
@@ -14,16 +14,21 @@ tags
1414

1515
Add the following scripts to call org-capture from Firefox
1616

17-
1817
## Call capture template {#call-capture-template}
1918

2019
The following calls capture template key `n`
2120

2221
```js
23-
javascript:location.href='org-protocol://capture?template=n'+'&url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection());
22+
javascript: location.href =
23+
"org-protocol://capture?template=n" +
24+
"&url=" +
25+
encodeURIComponent(window.location.href) +
26+
"&title=" +
27+
encodeURIComponent(document.title) +
28+
"&body=" +
29+
encodeURIComponent(window.getSelection());
2430
```
2531

26-
2732
## Without a capture template {#without-a-capture-template}
2833

2934
If unspecified, the template key is set in the variable
@@ -37,4 +42,4 @@ available:
3742
%i The selected text
3843
```
3944

40-
See: <https:orgmode.org/manual/The-capture-protocol.html#The-capture-protocol>
45+
See: <https:orgmode.org/manual/The-capture-protocol.html#The-capture-protocol>

content/notes/2020-05-30--22-30-53Z--org_roam_firefox_bookmark.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T19:30:00-03:00
55
slug = "org-roam-firefox-bookmark"
66
tags = ["emacs", "orgmode", "roam", "firefox"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
@@ -21,17 +21,16 @@ More documentation on the templating system can be found here.
2121

2222
These templates should contain a `#+ROAM_KEY: ${ref}` in it.
2323

24-
2524
## `Roam-ref` protocol {#roam-ref-protocol}
2625

27-
Find and creates from with a specific ROAM\_KEY
26+
Find and creates from with a specific ROAM_KEY
2827

2928
```js
30-
javascript:location.href =
31-
'org-protocol://roam-ref?template=r&ref='
32-
+ encodeURIComponent(location.href)
33-
+ '&title='
34-
+ encodeURIComponent(document.title)
29+
javascript: location.href =
30+
"org-protocol://roam-ref?template=r&ref=" +
31+
encodeURIComponent(location.href) +
32+
"&title=" +
33+
encodeURIComponent(document.title);
3534
```
3635

37-
Related link: <https://org-roam.readthedocs.io/en/master/roam%5Fprotocol/>
36+
Related link: <https://org-roam.readthedocs.io/en/master/roam%5Fprotocol/>

content/notes/2020-05-30--22-53-04Z--the_communist_manifesto.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T19:53:00-03:00
55
slug = "communist-manifesto"
66
tags = ["books", "reading"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
1111

1212
tags
1313
: [Politics]({{< relref "2020-06-02--11-52-08Z--politics" >}})
1414

15-
1615
## READING The Communist Manifesto {#reading-the-communist-manifesto}
1716

1817
<div class="table-caption">
@@ -21,12 +20,12 @@ tags
2120
</div>
2221

2322
| Headline | Time |
24-
|-------------------------|----------|
23+
| ----------------------- | -------- |
2524
| **Total time** | **2:36** |
2625
| The Communist Manifesto | 2:36 |
2726

2827
:BOOK_CATEGORY: politics
2928
:BOOK_AUTHORS: Karl Marx, Friedrich Engels
3029
:START_DATE: <span class="timestamp-wrapper"><span class="timestamp">&lt;2020-05-25 Mon&gt;</span></span>
3130
:END_DATE: nil
32-
:URL: <https://www.amazon.com/Communist-Manifesto-Karl-Marx/dp/1508475660>
31+
:URL: <https://www.amazon.com/Communist-Manifesto-Karl-Marx/dp/1508475660>

content/notes/2020-05-30--22-57-32Z--the_pragmatic_programmer_from_journeyman_to_master.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T19:57:00-03:00
55
slug = "the-pragmatic-programmer"
66
tags = ["reading", "books"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
1111

1212
tags
1313
: [Programming]({{< relref "2020-05-31--15-33-23Z--programming" >}}) [Computer Science]({{< relref "2020-05-31--15-29-21Z--computer_science" >}}) [Computer Architecture]({{< relref "2020-05-31--16-01-33Z--computer_architecture" >}})
1414

15-
1615
## READING The Pragmatic Programmer: From Journeyman to Master {#reading-the-pragmatic-programmer-from-journeyman-to-master}
1716

1817
<div class="table-caption">
@@ -21,12 +20,12 @@ tags
2120
</div>
2221

2322
| Headline | Time |
24-
|-----------------------------------|-----------|
23+
| --------------------------------- | --------- |
2524
| **Total time** | **10:04** |
2625
| The Pragmatic Programmer: From... | 10:04 |
2726

2827
:BOOK_CATEGORY: Computer science, software architecture, software engineering
2928
:BOOK_AUTHORS: Andy Hunt, David Thomas
3029
:START_DATE: <span class="timestamp-wrapper"><span class="timestamp">&lt;2020-05-25 Mon&gt;</span></span>
3130
:END_DATE: nil
32-
:URL: <https://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X>
31+
:URL: <https://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X>

content/notes/2020-05-30--22-58-52Z--operating_systems_internals_and_design_principles_9th_edition.md

Lines changed: 40 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T19:58:00-03:00
55
slug = "operating-systems"
66
tags = ["reading", "books", "cs", "operating-systems"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
1111

1212
tags
1313
: [Computer Science]({{< relref "2020-05-31--15-29-21Z--computer_science" >}}) [Operating Systems]({{< relref "2020-05-31--15-29-38Z--operating_systems" >}})
1414

15-
1615
## READING Operating Systems: Internals and Design Principles (9th Edition) {#reading-operating-systems-internals-and-design-principles--9th-edition}
1716

1817
<div class="table-caption">
@@ -21,66 +20,65 @@ tags
2120
</div>
2221

2322
| Headline | Time |
24-
|-------------------------------------|----------|
23+
| ----------------------------------- | -------- |
2524
| **Total time** | **3:24** |
2625
| Operating Systems: Internals and... | 3:24 |
2726

28-
2927
### Exercises {#exercises}
3028

3129
1.1. CPU: Takes care of processing data
32-
Main memory: Volatile memory for storing data and program instructions
33-
Secondary storage: Non-volatile for permantely storing data.
34-
I/O: External peripherals such as USB drive, printer and etc.
30+
Main memory: Volatile memory for storing data and program instructions
31+
Secondary storage: Non-volatile for permantely storing data.
32+
I/O: External peripherals such as USB drive, printer and etc.
3533

3634
1.2. Memory address register (MAR): specifies the memory address for the next
37-
read or write.
38-
Memory buffer register (MBR): contains data to be written to memory or
39-
receives data read from memory.
35+
read or write.
36+
Memory buffer register (MBR): contains data to be written to memory or
37+
receives data read from memory.
4038

4139
1.3. Processor-memory: Data may be transferred from processor to memory or from
42-
memory to processor.
43-
Processor-IO: Process may transfer data to I/O module or from I/O module to
44-
processor
45-
Data processing: Processor may perform arithmetic or logical operation
46-
Control: The instruction may specify a different location to fetch the next
47-
instruction from, altering the sequence of execution.
40+
memory to processor.
41+
Processor-IO: Process may transfer data to I/O module or from I/O module to
42+
processor
43+
Data processing: Processor may perform arithmetic or logical operation
44+
Control: The instruction may specify a different location to fetch the next
45+
instruction from, altering the sequence of execution.
4846

4947
1.4. Interrupts the current execution of the CPU. This allows external
50-
peripherals to process data while the CPU works on something else. When the
51-
data processing is over, the peripheral may trigger an interrupt requesting
52-
CPU attention. A CPU interrupt handler may take care of interrupt or ignore it.
48+
peripherals to process data while the CPU works on something else. When the
49+
data processing is over, the peripheral may trigger an interrupt requesting
50+
CPU attention. A CPU interrupt handler may take care of interrupt or ignore it.
5351

5452
1.5. There are two types of handling interrupts: sequentially or by
55-
priority-policy. In sequential interrupts, if an interrupt happens within the
56-
handler of a current interrupt, the interrupt will be ignored for the moment
57-
by setting a pending interrupt. After it the current interrupt has been
58-
dealt, it then treats the next pending interrupt. Priority-based interrupts
59-
allows one interrupt to be handled by priority. Whiling handling one
60-
interrupt, if another interrupt occurs and the priority is higher than the
61-
current interrupt being dealt, it stores the current context and handles the
62-
higher priority interrupt.
53+
priority-policy. In sequential interrupts, if an interrupt happens within the
54+
handler of a current interrupt, the interrupt will be ignored for the moment
55+
by setting a pending interrupt. After it the current interrupt has been
56+
dealt, it then treats the next pending interrupt. Priority-based interrupts
57+
allows one interrupt to be handled by priority. Whiling handling one
58+
interrupt, if another interrupt occurs and the priority is higher than the
59+
current interrupt being dealt, it stores the current context and handles the
60+
higher priority interrupt.
6361

6462
1.6. Cost, speed, size are characteristics that are important
6563

6664
<!--list-separator-->
6765

68-
- Notes
66+
- Notes
6967

70-
<!--list-separator-->
68+
<!--list-separator-->
7169

72-
- Program execution
70+
- Program execution
7371

74-
A program consists of a set of instructions stored in memory. The processor
75-
fetches one instruction at a time and executes each instruction. The processing
76-
required for one instruction is called the **instruction cycle**. The instruction
77-
cycle is composed of three main stages:
72+
A program consists of a set of instructions stored in memory. The processor
73+
fetches one instruction at a time and executes each instruction. The processing
74+
required for one instruction is called the **instruction cycle**. The instruction
75+
cycle is composed of three main stages:
7876

79-
1. Fetch stage: The process fetches an instruction from memory. Most processor
80-
hold some type of PC (Program counter) register which points to the next
81-
instruction in memory. Each time a new instruction has been fetched, the PC
82-
is incremented to the next instruction. The fetch stage usually consists of the
83-
following "substages"
84-
- Address of PC is copied to the MAR (Memory address register), which either
85-
stores the memory address from where data will be fetched or the address to
86-
which data will be sent or stored.
77+
1. Fetch stage: The process fetches an instruction from memory. Most processor
78+
hold some type of PC (Program counter) register which points to the next
79+
instruction in memory. Each time a new instruction has been fetched, the PC
80+
is incremented to the next instruction. The fetch stage usually consists of the
81+
following "substages"
82+
- Address of PC is copied to the MAR (Memory address register), which either
83+
stores the memory address from where data will be fetched or the address to
84+
which data will be sent or stored.

content/notes/2020-05-30--23-00-17Z--clean_architecture.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T20:00:00-03:00
55
slug = "clean-architecture"
66
tags = ["reading", "books"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
1111

1212
tags
1313
: [Computer Science]({{< relref "2020-05-31--15-29-21Z--computer_science" >}}) [Computer Architecture]({{< relref "2020-05-31--16-01-33Z--computer_architecture" >}}) [Programming]({{< relref "2020-05-31--15-33-23Z--programming" >}})
1414

15-
16-
## HOLD Clean Architecture {#hold-clean-architecture}
15+
## HOLD Clean Architecture {#hold-clean-architecture}

content/notes/2020-05-30--23-01-43Z--clean_code.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ author = ["Ben Mezger"]
44
date = 2020-05-30T20:01:00-03:00
55
slug = "clean-code"
66
tags = ["toread", "books"]
7-
type = "posts"
7+
type = "notes"
88
draft = false
99
bookCollapseSection = true
1010
+++
1111

1212
tags
1313
: [Computer Science]({{< relref "2020-05-31--15-29-21Z--computer_science" >}}) [Programming]({{< relref "2020-05-31--15-33-23Z--programming" >}}) [Computer Architecture]({{< relref "2020-05-31--16-01-33Z--computer_architecture" >}})
1414

15-
16-
## NEXT Clean Code {#next-clean-code}
15+
## <span class="org-todo todo NEXT">NEXT</span> Clean Code {#clean-code}

0 commit comments

Comments
 (0)