diff options
-rw-r--r-- | docs/index.html | 6 | ||||
-rw-r--r-- | docs/style.css | 6 | ||||
-rw-r--r-- | posts/color_conundrum.md | 2 | ||||
-rw-r--r-- | posts/don't_repeat_yourself.md | 9 |
4 files changed, 9 insertions, 14 deletions
diff --git a/docs/index.html b/docs/index.html index cc69cbf..59a963d 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -14,7 +14,7 @@ | |||
14 | <title>n</title> | 14 | <title>n</title> |
15 | 15 | ||
16 | 16 | ||
17 | <body onload="gotoId()"> | 17 | <body> |
18 | <h1 class="heading">n</h1> | 18 | <h1 class="heading">n</h1> |
19 | 19 | ||
20 | 20 | ||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | <details class="post"> | 24 | <details class="post"> |
25 | <summary> | 25 | <summary> |
26 | <div class="date">30/12 2019</div> | 26 | <div class="date">31/12 2019</div> |
27 | <span class="post-link">Color Conundrum</span> | 27 | <span class="post-link">Color Conundrum</span> |
28 | </summary> | 28 | </summary> |
29 | <div class="post-text"> | 29 | <div class="post-text"> |
@@ -37,7 +37,7 @@ does. It is difficult for the human eye to filter out noise | |||
37 | in rainbow barf. Use color to draw attention, not diverge | 37 | in rainbow barf. Use color to draw attention, not diverge |
38 | it.</p> | 38 | it.</p> |
39 | 39 | ||
40 | <p>At the same time, a book devoid of color is <em>boring!</em>. What | 40 | <p>At the same time, a book devoid of color is <em>boring!</em> What |
41 | is the takeaway from this 10 line paragraph? What are the | 41 | is the takeaway from this 10 line paragraph? What are the |
42 | technical terms used?</p> | 42 | technical terms used?</p> |
43 | 43 | ||
diff --git a/docs/style.css b/docs/style.css index bc722c6..88666e8 100644 --- a/docs/style.css +++ b/docs/style.css | |||
@@ -46,7 +46,7 @@ html { | |||
46 | 46 | ||
47 | 47 | ||
48 | .post { | 48 | .post { |
49 | margin: 2rem; | 49 | margin: 1rem; |
50 | } | 50 | } |
51 | 51 | ||
52 | img { | 52 | img { |
@@ -63,6 +63,10 @@ details > summary::-webkit-details-marker { | |||
63 | display: none; | 63 | display: none; |
64 | } | 64 | } |
65 | 65 | ||
66 | summary: hover { | ||
67 | cursor: pointer; | ||
68 | } | ||
69 | |||
66 | hr { | 70 | hr { |
67 | color: var(--light-black); | 71 | color: var(--light-black); |
68 | } | 72 | } |
diff --git a/posts/color_conundrum.md b/posts/color_conundrum.md index 0e938b7..d051ae4 100644 --- a/posts/color_conundrum.md +++ b/posts/color_conundrum.md | |||
@@ -8,7 +8,7 @@ does. It is difficult for the human eye to filter out noise | |||
8 | in rainbow barf. Use color to draw attention, not diverge | 8 | in rainbow barf. Use color to draw attention, not diverge |
9 | it. | 9 | it. |
10 | 10 | ||
11 | At the same time, a book devoid of color is *boring!*. What | 11 | At the same time, a book devoid of color is *boring!* What |
12 | is the takeaway from this 10 line paragraph? What are the | 12 | is the takeaway from this 10 line paragraph? What are the |
13 | technical terms used? | 13 | technical terms used? |
14 | 14 | ||
diff --git a/posts/don't_repeat_yourself.md b/posts/don't_repeat_yourself.md deleted file mode 100644 index d39267e..0000000 --- a/posts/don't_repeat_yourself.md +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | Looping constructs are bad. Consider this: | ||
2 | |||
3 | ``` | ||
4 | for (int i = 0; i < arr.len(); i++) { ... } | ||
5 | ``` | ||
6 | |||
7 | It is not obvious at all, what this loop does. Is it | ||
8 | supposed to iterate over the elements of the array? Is it | ||
9 | just a variable binding that increases up to `arr.len()`? | ||