aboutsummaryrefslogtreecommitdiff
path: root/slides/presentations/example/default.pug
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2018-09-23 23:30:10 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2018-09-23 23:30:10 +0200
commiteaf89064f0f6abb8ebeb09c7da49cd792514c897 (patch)
treea826dd645ee18827ce28e1d4a734e818353355a3 /slides/presentations/example/default.pug
parentbae600fe83b539e66220112c354df079f8c3dea7 (diff)
downloadmitjafelicijan.com-eaf89064f0f6abb8ebeb09c7da49cd792514c897.tar.gz
content update
Diffstat (limited to 'slides/presentations/example/default.pug')
-rw-r--r--slides/presentations/example/default.pug150
1 files changed, 0 insertions, 150 deletions
diff --git a/slides/presentations/example/default.pug b/slides/presentations/example/default.pug
deleted file mode 100644
index c84446d..0000000
--- a/slides/presentations/example/default.pug
+++ /dev/null
@@ -1,150 +0,0 @@
1section
2 h1 Why understanding of basic math is imporant for computer programing
3 p September 21, 2018
4 a(href="https://twitter.com/mitjafelicijan") @mitjafelicijan
5
6
7
8section.center
9 q We Cannot Solve Our Problems With The Same Thinking We Used When We Created Them.
10 footer — Albert Einstein
11
12
13
14section
15 h2 How we usually find solutions and why this is problematic?
16
17 ul
18 li We search for code example instead of algorithms.
19 li We copy and paste and do testing on trial&error principle.
20 li We don't take enough time to properly understand problem we a re trying to solve.
21 li Brute force solutions we make are usually not optimized
22
23
24section
25 h3 Grid example
26 div.grid.col-1-1
27 div Lipsum
28 div Lipsum
29
30 div.grid.col-2-1
31 div Lipsum
32 div Lipsum
33
34 div.grid.col-1-2
35 div Lipsum
36 div Lipsum
37
38section
39 h2 Basic linear algebra
40
41 pre
42 code.language-css
43 | body {
44 | background: black;
45 | }
46
47 pre
48 code.language-javascript
49 | $(document).ready(function() {
50 | $('pre code').each(function(i, block) {
51 | hljs.highlightBlock(block);
52 | });
53 | });
54
55 hr
56 figcaption.right Step 1: Finding nearest point
57
58 div.center
59 img(src="drawing1.svg")
60
61 hr
62 figcaption.right Step 1: Finding nearest point
63
64 $$ \large{ \mathbb{R}^2 ∈ \vec{a} \bar{a} } $$
65 $$ \large{ e^{i\pi} + 1 = 0 } $$
66 $$ \large{ x = {-b \pm \sqrt{b^2-4ac} \over 2a} } $$
67
68 hr
69 figcaption.right Step 2: Finding nearest point
70
71 pre
72 code.language-python
73 | fruits = ["apple", "banana", "cherry"]
74 | for x in fruits:
75 | if x == "banana":
76 | break
77 | print(x)
78
79 hr
80 figcaption.right Finding nearest point
81
82 $$ \large{ \mathbb{R}^2 ∈ \vec{a} \bar{a} } $$
83 $$ \large{ e^{i\pi} + 1 = 0 } $$
84 $$ \large{ x = {-b \pm \sqrt{b^2-4ac} \over 2a} } $$
85
86 hr
87 figcaption.right Finding nearest point
88
89 pre
90 code.language-c
91 | #include <stdio.h>
92 | int main () {
93 | for( ; ; ) {
94 | printf("This loop will run forever.\n");
95 | }
96 | return 0;
97 | }
98
99 hr
100 figcaption.right Finding nearest point
101
102 pre
103 code.language-python
104 | fruits = ["apple", "banana", "cherry"]
105 | for x in fruits:
106 | if x == "banana":
107 | break
108 | print(x)
109
110 hr
111 figcaption.right Finding nearest point
112
113 pre
114 code.language-sql
115 | SELECT `CustomerName`, `City` FROM `Customers`;
116
117 hr
118 figcaption.right Finding nearest point
119
120 pre
121 code.language-go
122 | package main
123 | import "fmt"
124 | func main() {
125 | sum := 0
126 | for i := 0; i < 10; i++ {
127 | sum += i
128 | }
129 | fmt.Println(sum)
130 | }
131
132 hr
133 figcaption.right Finding nearest point
134
135 pre
136 code.language-javascript
137 | $(document).ready(function() {
138 | $('pre code').each(function(i, block) {
139 | hljs.highlightBlock(block);
140 | });
141 | });
142
143 hr
144 figcaption.right Finding nearest point
145
146 pre
147 code.language-css
148 | body {
149 | background: black;
150 | }