diff options
author | Santosh G. Vattam | 2010-01-22 20:00:45 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2010-01-22 20:00:45 +0530 |
commit | 9fdebcbc2b9e6774e3da47aa4773ebd785e33f68 (patch) | |
tree | 5c49d4d900596bb629a8a279b49a63be0021f24a /day1 | |
parent | c5581e1629e7c8d4107b999f6aa0a93194e706c0 (diff) | |
download | workshops-9fdebcbc2b9e6774e3da47aa4773ebd785e33f68.tar.gz workshops-9fdebcbc2b9e6774e3da47aa4773ebd785e33f68.tar.bz2 workshops-9fdebcbc2b9e6774e3da47aa4773ebd785e33f68.zip |
Updated tot.tex and session 2 slides.
Diffstat (limited to 'day1')
-rw-r--r-- | day1/session2.tex | 2 | ||||
-rw-r--r-- | day1/tot.tex | 80 |
2 files changed, 59 insertions, 23 deletions
diff --git a/day1/session2.tex b/day1/session2.tex index ed30335..635220e 100644 --- a/day1/session2.tex +++ b/day1/session2.tex @@ -312,7 +312,7 @@ This gives \kwrd{tsq} which is the list of squares of \typ{t} values. \begin{frame}[fragile] \frametitle{How to come out of the \texttt{for} loop?} - Hit the ``ENTER'' key twice to come to the previous indentation level + Hit the ``ENTER'' key twice to return to the previous indentation level \begin{lstlisting} In []: for time in t: ....: tsq.append(time*time) 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} |