diff options
Diffstat (limited to 'day1/tot.tex')
-rw-r--r-- | day1/tot.tex | 80 |
1 files changed, 58 insertions, 22 deletions
diff --git a/day1/tot.tex b/day1/tot.tex index b61949e..e9ad011 100644 --- a/day1/tot.tex +++ b/day1/tot.tex @@ -77,7 +77,7 @@ \author[FOSSEE] {FOSSEE} \institute[IIT Bombay] {Department of Aerospace Engineering\\IIT Bombay} -\date[] {28 January, 2010\\Day 1, Introduction} +\date[] {28 January, 2010\\Day 1, Tricks of the Trade} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %\pgfdeclareimage[height=0.75cm]{iitmlogo}{iitmlogo} @@ -125,28 +125,29 @@ \begin{frame} \frametitle{Workshop Schedule: Day 1} \begin{description} - \item[Session 1] Mon 09:00--10:00 - \item[Session 2] Mon 10:05--11:05 - \item[Session 3] Mon 11:20--12:20 - \item[Session 4] Mon 12:25--13:25 - \item[Quiz 1] Mon 14:25--14:40 - \item[Exercises] Mon 14:40--15:25 - \item[Session 5] Mon 15:40--16:40 - \item[Quiz 2] Mon 16:45--17:00 + \item[Tricks of the trade] Thu 09:00--09:30 + \item[Session 1] Thu 09:30--10:30 + \item[Session 2] Thu 10:45--11:45 + \item[Session 3] Thu 11:50--12:30 + \item[Session 4] Thu 12:30--1:30 + \item[Quiz 1] Thu 14:30--14:45 + \item[Exercises] Thu 14:45--15:30 + \item[Session 5] Thu 15:45--16:45 + \item[Quiz 2] Thu 16:50--17:05 \end{description} \end{frame} \begin{frame} \frametitle{Workshop Schedule: Day 2} \begin{description} - \item[Session 1] Tue 09:00--10:00 - \item[Session 2] Tue 10:05--11:05 - \item[Session 3] Tue 11:20--12:20 - \item[Session 4] Tue 12:25--13:25 - \item[Quiz 1] Tue 14:25--14:40 - \item[Exercises] Tue 14:40--15:25 - \item[Session 5] Tue 15:40--16:40 - \item[Quiz 2] Tue 16:45--17:00 + \item[Session 1] Fri 09:00--10:00 + \item[Session 2] Fri 10:05--11:05 + \item[Session 3] Fri 11:20--12:20 + \item[Session 4] Fri 12:25--13:25 + \item[Quiz 1] Fri 14:25--14:40 + \item[Exercises] Fri 14:40--15:25 + \item[Session 5] Fri 15:40--16:40 + \item[Quiz 2] Fri 16:45--17:00 \end{description} \end{frame} @@ -190,13 +191,13 @@ Hello, World! \end{lstlisting} Exiting -\begin{lstlisting} +\begin{lstlisting} In []: ^D(Ctrl-D) Do you really want to exit([y]/n)? y \end{lstlisting} \end{frame} -\section{Loops - Indentation and Breaking out of loops} +\section{Loops} \begin{frame}[fragile] \frametitle{Loops} Breaking out of loops @@ -208,9 +209,40 @@ Breaking out of loops Hello, World!^C(Ctrl-C) ------------------------------------ KeyboardInterrupt - \end{lstlisting} -\emphbar{\alert{Indentation: Notice the 4 spaces before\\} \typ{print "Hello, World!"}} +\end{frame} + +\section{Indentation} +\begin{frame}[fragile] + \frametitle{Indentation} + \begin{lstlisting} + In []: while True: + ...: print "Hello, World!" + ...: + \end{lstlisting} +\emphbar{\alert{Indentation: Notice the 4 spaces before\\} \typ{print "Hello, World!"}\\ + Hit the ``ENTER'' key twice to return to the previous indentation level} +\end{frame} + +\section{Tab completion} +\begin{frame}[fragile] + \frametitle{Tab completion} + Type \typ{pri} and hit the Tab key + \begin{lstlisting} + In []: pri <Tab> + In []: print + \end{lstlisting} + Type \typ{whi} and hit the Tab key + \begin{lstlisting} + In []: whi <Tab> + In []: while + \end{lstlisting} +\end{frame} + +\section{Tab Suggestion} +\begin{frame}[fragile] + \frametitle{Tab suggestion} + \end{frame} \section{Saving Commands} @@ -241,7 +273,11 @@ Breaking out of loops \begin{frame}[fragile] \frametitle{Scite - How to \ldots} \begin{itemize} - \item Opening scite - run scite from command line + \item Opening scite + \begin{itemize} + \item GNU/Linux: Applications $\rightarrow$ Programming $\rightarrow$ SciTE Text Editor + \item Windows: Double click on Desktop icon + \end{itemize} \item Type the contents \item Saving the file with a filename \alert{File $\rightarrow$ Save as} \item Exiting the editor \alert{File $\rightarrow$ Exit} |