Skip to content

Commit

Permalink
update typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeizbicki committed Jan 27, 2023
1 parent aa67428 commit c6f9e81
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 2 deletions.
10 changes: 9 additions & 1 deletion extra_credit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ All extra credit opportunities will be posted here.
1. <https://github.com/git-game/git-game-v2>

1. (+4 points)
Install linux on your computer and use it exclusively for all throughout the semester (not just for this class, but for all your computing).
Install linux on your computer and use it exclusively throughout the semester (not just for this class, but for all your computing).

You must install linux before February 14th to get this extra credit.

You cannot use a virtual machine.

Dual booting is acceptable as long as you only use the original operating system for "emergency" purposes, and spend >95% of your computing time in linux.

I personally use Debian linux on all my machines.
Ubuntu is another popular distribution.
It's based on Debian but has a few usability enhancements and what [the Free Software Foundation (and Richard Stallman in particular) calls "spyware"](https://linux.slashdot.org/story/12/12/07/1527225/rms-speaks-out-against-ubuntu).
2 changes: 1 addition & 1 deletion topic_01_functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

1. Ensure that you have updated your local git repo with the latest upstream.

1. `cd` into the `topic_01_functional_programing` folder and then open the file `p_macro` in vim.
1. `cd` into the `topic_01_functions` folder and then open the file `p_macro` in vim.
You should see contents that look like
```
^y$iprint("^[A=", ^[pa)^[^
Expand Down
Binary file added topic_01_functions/quiz.pdf
Binary file not shown.
170 changes: 170 additions & 0 deletions topic_01_functions/quiz.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
\documentclass[10pt]{article}

\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage[shortlabels]{enumitem}
\usepackage[normalem]{ulem}
\usepackage{courier}

\usepackage{hyperref}
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = black, %Colour for external hyperlinks
linkcolor = blue, %Colour of internal links
citecolor = blue %Colour of citations
}

\usepackage[T1]{fontenc}
\usepackage{listings}
\lstset{
language=HTML
,basicstyle=\linespread{1}\ttfamily
%,numbers=left
,breaklines=true
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\theoremstyle{definition}
\newtheorem{problem}{Problem}
\newtheorem{note}{Note}
\newcommand{\E}{\mathbb E}
\newcommand{\R}{\mathbb R}
\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}

\newcommand{\trans}[1]{{#1}^{T}}
\newcommand{\loss}{\ell}
\newcommand{\w}{\mathbf w}
\newcommand{\mle}[1]{\hat{#1}_{\textit{mle}}}
\newcommand{\map}[1]{\hat{#1}_{\textit{map}}}
\newcommand{\normal}{\mathcal{N}}
\newcommand{\x}{\mathbf x}
\newcommand{\y}{\mathbf y}
\newcommand{\ltwo}[1]{\lVert {#1} \rVert}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\begin{center}
{
\Large
Quiz: Terminal
}

%\vspace{0.1in}
%CSCI046: Data Structures

\vspace{0.1in}
\end{center}

\vspace{0.15in}
\noindent
\textbf{Total Score:} ~~~~~~~~~~~~~~~/$2^2$

\vspace{0.2in}
\noindent
\textbf{Printed Name:}

\noindent
\rule{\textwidth}{0.1pt}
\vspace{0.15in}

\noindent
\textbf{Quiz rules:}
\begin{enumerate}
\item You MAY use any printed or handwritten notes.
\item You MAY NOT use a computer or any other electronic device.
\end{enumerate}

\noindent

\vspace{0.15in}


\begin{problem}
Write the output of the final command in the following terminal session.
If the command has no output, then leave the problem blank.
\end{problem}
\begin{lstlisting}
$ cd
$ rm -rf quiz
$ mkdir quiz
$ cd quiz
$ touch README
$ mkdir foo
$ touch foo/README2
$ touch README3
$ ls -a
\end{lstlisting}
\vspace{1in}


\begin{problem}
Write the output of the final command in the following terminal session.
If the command has no output, then leave the problem blank.
\end{problem}
\begin{lstlisting}
$ cd
$ rm -rf quiz
$ mkdir quiz
$ cd quiz
$ mkdir foo
$ echo "hello world" > README
$ echo "hola mundo" > foo/README
$ echo "hello again" > foo/README
$ cd foo
$ echo "hola otra vez" >> README
$ cat README
\end{lstlisting}

\vspace{1in}

\begin{problem}
Write the output of the final command in the following terminal session.
If the command has no output, then leave the problem blank.
\end{problem}
\begin{lstlisting}
$ cd
$ rm -rf quiz
$ mkdir quiz
$ cd quiz
$ echo "print('hello world')" >> foo.py
$ echo "print('hola mundo')" >> bar.py
$ echo 'print("hola otra vez")' > bar.py
$ echo "print(\"hello again\")" > foo.py
$ python3 foo.py
\end{lstlisting}
\vspace{2in}

\begin{problem}
Write the output of the final command in the following terminal session.
If the command has no output, then leave the problem blank.
\end{problem}
\begin{lstlisting}
$ cd
$ rm -rf quiz
$ mkdir quiz
$ cd quiz
$ git init
$ echo "print('hello world')" > foo.py
$ echo "print('hola mundo')" > bar.py
$ git add foo.py
$ git add bar.py
$ git commit -m "first commit"
$ git branch foo
$ git checkout foo
$ echo "print('hello again')" >> foo.py
$ git add foo.py
$ git add bar.py
$ git commit -m "second commit"
$ git checkout master
$ echo "print('hola otra vez')" >> bar.py
$ python3 foo.py
\end{lstlisting}

\end{document}

0 comments on commit c6f9e81

Please sign in to comment.