14 \lstset{language=Scala, |
14 \lstset{language=Scala, |
15 style=mystyle, |
15 style=mystyle, |
16 numbersep=0pt, |
16 numbersep=0pt, |
17 numbers=none, |
17 numbers=none, |
18 xleftmargin=0mm} |
18 xleftmargin=0mm} |
|
19 |
|
20 |
|
21 \colorlet{punct}{red!60!black} |
|
22 \definecolor{background}{HTML}{EEEEEE} |
|
23 \definecolor{delim}{RGB}{20,105,176} |
|
24 \colorlet{numb}{magenta!60!black} |
|
25 |
|
26 \lstdefinelanguage{json}{ |
|
27 basicstyle=\normalfont\ttfamily, |
|
28 numbers=left, |
|
29 numberstyle=\scriptsize, |
|
30 stepnumber=1, |
|
31 %numbersep=8pt, |
|
32 showstringspaces=false, |
|
33 breaklines=true, |
|
34 %frame=lines, |
|
35 %backgroundcolor=\color{background}, |
|
36 literate= |
|
37 *{0}{{{\color{numb}0}}}{1} |
|
38 {1}{{{\color{numb}1}}}{1} |
|
39 {2}{{{\color{numb}2}}}{1} |
|
40 {3}{{{\color{numb}3}}}{1} |
|
41 {4}{{{\color{numb}4}}}{1} |
|
42 {5}{{{\color{numb}5}}}{1} |
|
43 {6}{{{\color{numb}6}}}{1} |
|
44 {7}{{{\color{numb}7}}}{1} |
|
45 {8}{{{\color{numb}8}}}{1} |
|
46 {9}{{{\color{numb}9}}}{1} |
|
47 {:}{{{\color{punct}{:}}}}{1} |
|
48 {,}{{{\color{punct}{,}}}}{1} |
|
49 {\{}{{{\color{delim}{\{}}}}{1} |
|
50 {\}}{{{\color{delim}{\}}}}}{1} |
|
51 {[}{{{\color{delim}{[}}}}{1} |
|
52 {]}{{{\color{delim}{]}}}}{1}, |
|
53 } |
19 |
54 |
20 \newcommand{\bl}[1]{\textcolor{blue}{#1}} |
55 \newcommand{\bl}[1]{\textcolor{blue}{#1}} |
21 |
56 |
22 \newcommand{\RIGHTarrow}[3]{% |
57 \newcommand{\RIGHTarrow}[3]{% |
23 \begin{textblock}{0}(#2,#3)% |
58 \begin{textblock}{0}(#2,#3)% |
70 |
105 |
71 \normalsize |
106 \normalsize |
72 \begin{center} |
107 \begin{center} |
73 \begin{tabular}{ll} |
108 \begin{tabular}{ll} |
74 Email: & christian.urban at kcl.ac.uk\\ |
109 Email: & christian.urban at kcl.ac.uk\\ |
75 Office: & N\liningnums{7.07} (North Wing, Bush House)\bigskip\\ |
110 %Office: & N\liningnums{7.07} (North Wing, Bush House)\bigskip\\ |
76 Slides \& Code: & KEATS\bigskip\\ |
111 Slides \& Code: & KEATS\bigskip\\ |
77 Office Hours: & Thursdays 12:00 -- 14:00\\ |
112 %Office Hours: & Thursdays 12:00 -- 14:00\\ |
78 Additionally: & (for Scala) Tuesdays 10:45 -- 11:45\\ |
113 %Additionally: & (for Scala) Tuesdays 10:45 -- 11:45\\ |
79 \end{tabular} |
114 \end{tabular} |
80 \end{center} |
115 \end{center} |
81 |
116 |
82 %\tiny |
117 %\tiny |
83 %developed since 2004 bv Martin Odersky |
118 %developed since 2004 bv Martin Odersky |
205 |
240 |
206 \end{frame} |
241 \end{frame} |
207 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
242 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
208 |
243 |
209 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
244 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
245 \begin{frame}[c, fragile] |
|
246 |
|
247 \small |
|
248 My personal keboard shortcut for VS Code\\ |
|
249 (in keybindings.json)\bigskip |
|
250 |
|
251 \tiny |
|
252 \begin{lstlisting}[language=json,numbers=none] |
|
253 [ |
|
254 { |
|
255 "key": "ctrl+enter", |
|
256 "command": "workbench.action.terminal.runSelectedText", |
|
257 "when": "editorTextFocus && editorHasSelection" |
|
258 } |
|
259 ] |
|
260 \end{lstlisting} |
|
261 |
|
262 |
|
263 \end{frame} |
|
264 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
265 |
|
266 |
|
267 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
210 \begin{frame}[t] |
268 \begin{frame}[t] |
211 \frametitle{Why Scala?} |
269 \frametitle{Why Scala?} |
212 |
270 |
213 \onslide<2->{% |
271 \onslide<2->{% |
214 \begin{center} |
272 \begin{center} |
217 \includegraphics[scale=0.2]{../pics/salary1.png} & |
275 \includegraphics[scale=0.2]{../pics/salary1.png} & |
218 \includegraphics[scale=0.2]{../pics/salary2.png}\\ |
276 \includegraphics[scale=0.2]{../pics/salary2.png}\\ |
219 \multicolumn{2}{r@{}}{\footnotesize$^*$ source: Stackoverflow Developer Survey, 2019} |
277 \multicolumn{2}{r@{}}{\footnotesize$^*$ source: Stackoverflow Developer Survey, 2019} |
220 \end{tabular} |
278 \end{tabular} |
221 \end{center} |
279 \end{center} |
222 \RIGHTarrow{2}{2.4}{6.4} |
280 \RIGHTarrow{2}{2.0}{6.3} |
223 \DOWNarrow{2}{10.1}{4.4} |
281 \DOWNarrow{2}{10.1}{4.4} |
224 } |
282 } |
225 |
283 |
226 |
284 |
227 \small |
285 \small |