# HG changeset patch # User Christian Urban # Date 1417742251 0 # Node ID 7f0ac1355f0b9d896e70e1e87855e5317955eee0 # Parent fc6aa28945c00a2b9a8a88d86ce0163f0ee025ac updated diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho01.pdf Binary file handouts/ho01.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho02.pdf Binary file handouts/ho02.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho03.pdf Binary file handouts/ho03.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho04.pdf Binary file handouts/ho04.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho05.pdf Binary file handouts/ho05.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho06.pdf Binary file handouts/ho06.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho07.pdf Binary file handouts/ho07.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/ho08.pdf Binary file handouts/ho08.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b handouts/inferences.pdf Binary file handouts/inferences.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw01.pdf Binary file hws/hw01.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw02.pdf Binary file hws/hw02.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw03.pdf Binary file hws/hw03.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw04.pdf Binary file hws/hw04.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw05.pdf Binary file hws/hw05.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw06.pdf Binary file hws/hw06.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw07.pdf Binary file hws/hw07.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b hws/hw08.pdf Binary file hws/hw08.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b langs.sty --- a/langs.sty Tue Dec 02 22:33:23 2014 +0000 +++ b/langs.sty Fri Dec 05 01:17:31 2014 +0000 @@ -39,6 +39,21 @@ otherkeywords={=,!=,:=,<,>,\%;*,/}, }[keywords,comments,strings] +\lstdefinelanguage{JavaScript}{ + keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with}, + morecomment=[l]{//}, + morecomment=[s]{/*}{*/}, + morestring=[b]', + morestring=[b]", + ndkeywords={class, export, boolean, throw, implements, import, this}, + keywordstyle=\color{codepurple}, + ndkeywordstyle=\color{codepurple}, + identifierstyle=\color{black}, + commentstyle=\color{codegreen}, + stringstyle=\color{codegreen}, + sensitive=true +} + \lstdefinestyle{mystyle} {basicstyle=\ttfamily, keywordstyle=\color{codepurple}\bfseries, diff -r fc6aa28945c0 -r 7f0ac1355f0b mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mk Fri Dec 05 01:17:31 2014 +0000 @@ -0,0 +1,11 @@ +#!/bin/sh + +subdirs="slides handouts hws" + +for sd in $subdirs; do + cd $sd + for fl in *.tex; do + xelatex $fl + done + cd .. +done \ No newline at end of file diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/info.tex --- a/slides/info.tex Tue Dec 02 22:33:23 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,104 +0,0 @@ -\documentclass[dvipsnames,14pt,t]{beamer} -\usepackage{beamerthemeplaincu} -%%\usepackage[T1]{fontenc} -\usepackage[latin1]{inputenc} -\usepackage{mathpartir} -\usepackage[absolute,overlay]{textpos} -\usepackage{ifthen} -\usepackage{tikz} -\usepackage{pgf} -\usepackage{calc} -\usepackage{ulem} -\usepackage{courier} -\usepackage{listings} -\renewcommand{\uline}[1]{#1} -\usetikzlibrary{arrows} -\usetikzlibrary{automata} -\usetikzlibrary{shapes} -\usetikzlibrary{shadows} -\usetikzlibrary{positioning} -\usetikzlibrary{calc} -\usepackage{graphicx} - -\definecolor{javared}{rgb}{0.6,0,0} % for strings -\definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments -\definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords -\definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc - -\makeatletter -\lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}} -\@empty\z@\@empty -\makeatother - -\lstset{language=Java, - basicstyle=\consolas, - keywordstyle=\color{javapurple}\bfseries, - stringstyle=\color{javagreen}, - commentstyle=\color{javagreen}, - morecomment=[s][\color{javadocblue}]{/**}{*/}, - numbers=left, - numberstyle=\tiny\color{black}, - stepnumber=1, - numbersep=10pt, - tabsize=2, - showspaces=false, - showstringspaces=false} - -\lstdefinelanguage{scala}{ - morekeywords={abstract,case,catch,class,def,% - do,else,extends,false,final,finally,% - for,if,implicit,import,match,mixin,% - new,null,object,override,package,% - private,protected,requires,return,sealed,% - super,this,throw,trait,true,try,% - type,val,var,while,with,yield}, - otherkeywords={=>,<-,<\%,<:,>:,\#,@,->}, - sensitive=true, - morecomment=[l]{//}, - morecomment=[n]{/*}{*/}, - morestring=[b]", - morestring=[b]', - morestring=[b]""" -} - -\lstset{language=Scala, - basicstyle=\consolas, - keywordstyle=\color{javapurple}\bfseries, - stringstyle=\color{javagreen}, - commentstyle=\color{javagreen}, - morecomment=[s][\color{javadocblue}]{/**}{*/}, - numbers=left, - numberstyle=\tiny\color{black}, - stepnumber=1, - numbersep=10pt, - tabsize=2, - showspaces=false, - showstringspaces=false} - - -% beamer stuff -\renewcommand{\slidecaption}{APP, King's College London, 15 October 2013} - - -\begin{document} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\mode{ -\begin{frame}[c] - -Dear All,\medskip - -While showing how to hack in the last lecture, I forgot to make an important announcement: the next lecture on 15 October will be a guest lecture given by Richard Overill. He will present non-examinable material. I hope you still come. Richard is an expert in Cybercrime \& Cyberterrorism and often works with the Met Police Security Force. So he has first-hand knowledge about all sorts of hacking.\medskip - -The lecture on the 22nd will be "normal" again given by me. - -\end{frame}} - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\end{document} - -%%% Local Variables: -%%% mode: latex -%%% TeX-master: t -%%% End: - diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides01.pdf Binary file slides/slides01.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides02.pdf Binary file slides/slides02.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides03.pdf Binary file slides/slides03.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides04.pdf Binary file slides/slides04.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides05.pdf Binary file slides/slides05.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides06.pdf Binary file slides/slides06.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides07.pdf Binary file slides/slides07.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides08.pdf Binary file slides/slides08.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides09.pdf Binary file slides/slides09.pdf has changed diff -r fc6aa28945c0 -r 7f0ac1355f0b slides/slides10.pdf Binary file slides/slides10.pdf has changed