1 \documentclass[dvipsnames,14pt,t,xelatex]{beamer} |
1 \documentclass[dvipsnames,14pt,t,xelatex]{beamer} |
2 \usepackage{../slides} |
2 \usepackage{../slides} |
3 \usepackage{../graphics} |
3 \usepackage{../graphics} |
4 \usepackage{../langs} |
4 \usepackage{../langs} |
5 %\usepackage{../data} |
5 \usepackage{chessboard} |
|
6 \usepackage[LSBC4,T1]{fontenc} |
|
7 % \usepackage{../data} |
6 |
8 |
7 \hfuzz=220pt |
9 \hfuzz=220pt |
8 |
10 |
9 %\setmonofont[Scale=.88]{Consolas} |
11 %\setmonofont[Scale=.88]{Consolas} |
10 %\newfontfamily{\consolas}{Consolas} |
12 %\newfontfamily{\consolas}{Consolas} |
215 a billion dollars of pain and damage in the last forty years.'' |
217 a billion dollars of pain and damage in the last forty years.'' |
216 \hfill Sir Tony (Hoare) |
218 \hfill Sir Tony (Hoare) |
217 \end{bubble} |
219 \end{bubble} |
218 \end{textblock} |
220 \end{textblock} |
219 |
221 |
220 \begin{textblock}{5}(11.8,1) |
222 \begin{textblock}{5}(12.5,1.9) |
221 %%\includegraphics[scale=0.20]{hoare.jpg}\\ |
223 \includegraphics[scale=0.05]{../pics/hoare.jpg}\\ |
222 \end{textblock} |
224 \end{textblock} |
223 |
225 |
224 \end{frame} |
226 \end{frame} |
225 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
227 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
226 |
228 |
227 |
229 |
228 |
|
229 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
230 \begin{frame}[c] |
|
231 \frametitle{Types} |
|
232 |
|
233 \begin{itemize} |
|
234 \item Base types\smallskip |
|
235 |
|
236 \begin{tabular}{@{}l@{}} |
|
237 \textcolor{codegreen}{\texttt{Int}}, |
|
238 \textcolor{codegreen}{\texttt{Long}}, |
|
239 \textcolor{codegreen}{\texttt{BigInt}}, |
|
240 \textcolor{codegreen}{\texttt{Float}}, |
|
241 \textcolor{codegreen}{\texttt{Double}}\\ |
|
242 \textcolor{codegreen}{\texttt{String}}, |
|
243 \textcolor{codegreen}{\texttt{Char}}\\ |
|
244 \textcolor{codegreen}{\texttt{Boolean}} |
|
245 \end{tabular} |
|
246 |
|
247 \item Compound types \smallskip |
|
248 |
|
249 \begin{tabular}{@{}ll@{}} |
|
250 \textcolor{codegreen}{\texttt{List[Int]}} & lists of Int's \\ |
|
251 \textcolor{codegreen}{\texttt{Set[Double]}} & sets of Double's \\ |
|
252 \textcolor{codegreen}{\texttt{(Int, String)}} & Int-String pair\\ |
|
253 \textcolor{codegreen}{\texttt{List[(BigInt, String)]}} & |
|
254 lists of BigInt-String\\ |
|
255 & pairs\\ |
|
256 \textcolor{codegreen}{\texttt{List[List[Int]]}} & list of lists of Int's\\ |
|
257 \end{tabular} |
|
258 |
|
259 \end{itemize} |
|
260 |
|
261 \end{frame} |
|
262 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
263 |
|
264 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
230 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
265 \begin{frame}[c] |
231 \begin{frame}[c,fragile] |
266 \frametitle{\begin{tabular}{c}\\[3cm]\alert{Questions?}\end{tabular}} |
232 \frametitle{\begin{tabular}{c}\\[1cm]\alert{Questions?}\end{tabular}} |
267 |
233 |
268 \mbox{} |
234 \begin{center} |
|
235 \chessboard[maxfield=g7, |
|
236 color=blue!50, |
|
237 linewidth=0.2em, |
|
238 shortenstart=0.5ex, |
|
239 shortenend=0.5ex, |
|
240 markstyle=cross, |
|
241 markfields={a4, c4, Z3, d3, Z1, d1, a0, c0}, |
|
242 color=red!50, |
|
243 markfields={f5, e6}, |
|
244 boardfontsize=12pt,labelfontsize=8pt, |
|
245 setpieces={Ng7, Nb2},showmover=false] |
|
246 \end{center} |
|
247 |
|
248 \begin{center} |
|
249 My Scala Office Hours: Thursdays 11 -- 13 |
|
250 \end{center} |
269 \end{frame} |
251 \end{frame} |
270 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
252 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
271 \end{document} |
253 \end{document} |
272 |
254 |
273 |
255 |