Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Converted to using the pygments for shell output.

  • Loading branch information...
commit 038be194861424f0642ae0d9760d4edcb3911379 1 parent 7f3897a
@zedshaw zedshaw authored
View
3  .dexy
@@ -30,5 +30,6 @@
"*.css|jinja" : { },
"*.cfg|jinja" : { },
"*.out": {},
- "*.sqlite3-console|pyg|l": {}
+ "*.sqlite3-console|pyg|l": {},
+ "*.sh-session|pyg|l": {}
}
View
1  code/ex1.out → code/ex1.sh-session
@@ -1,3 +1,4 @@
+$ ls -l
total 16
-rw-r--r-- 1 zedshaw staff 2048 Nov 8 16:18 ex1.db
-rw-r--r-- 1 zedshaw staff 92 Nov 8 16:14 ex1.sql
View
0  code/ex10.out → code/ex10.sh-session
File renamed without changes
View
0  code/ex3.out → code/ex3.sh-session
File renamed without changes
View
0  code/ex4.out → code/ex4.sh-session
File renamed without changes
View
0  code/ex5.out → code/ex5.sh-session
File renamed without changes
View
0  code/ex6.out → code/ex6.sh-session
File renamed without changes
View
0  code/ex7.out → code/ex7.sh-session
File renamed without changes
View
0  code/ex8.out → code/ex8.sh-session
File renamed without changes
View
0  code/ex9.out → code/ex9.sh-session
File renamed without changes
View
6 ex1.tex
@@ -34,10 +34,8 @@ \section{What You Should See}
database use \verb|ls -l|:
-\begin{code}{ex1.out}
-\begin{Verbatim}
-<< d['code/ex1.out'] >>
-\end{Verbatim}
+\begin{code}{ex1.sql Output}
+<< d['code/ex1.sh-session|pyg|l'] >>
\end{code}
View
6 ex10.tex
@@ -16,10 +16,8 @@ \section{What You Should See}
As usual, I use my little \file{code.sql} to reset my database and then output
nicer columns with \program{sqlite3 -header -column -echo}.
-\begin{code}{ex10.out}
-\begin{Verbatim}
-<< d['code/ex10.out'] >>
-\end{Verbatim}
+\begin{code}{ex10.sql Output}
+<< d['code/ex10.sh-session|pyg|l'] >>
\end{code}
View
2  ex2.tex
@@ -32,7 +32,7 @@ \section{What You Should See}
but this time I want you to open the database and use the
\ident{.schema} command to dump it:
-\begin{code}{ex2.out}
+\begin{code}{ex2.sql Output}
<< d['code/ex2.sqlite3-console|pyg|l'] >>
\end{code}
View
6 ex3.tex
@@ -25,10 +25,8 @@ \section{What You Should See}
recreate the database so you can put data into it. This is what it looks
like when I run it:
-\begin{code}{ex3.out}
-\begin{Verbatim}
-<< d['code/ex3.out'] >>
-\end{Verbatim}
+\begin{code}{ex3.sql Output}
+<< d['code/ex3.sh-session|pyg|l'] >>
\end{code}
In the first line I just make \file{ex3.db} from the \file{ex2.sql} file.
View
6 ex4.tex
@@ -20,10 +20,8 @@ \section{What You Should See}
I'll just piggyback on the last exercise and run this right on the
\file{ex3.db} database to set these values:
-\begin{code}{ex4.out}
-\begin{Verbatim}
-<< d['code/ex4.out'] >>
-\end{Verbatim}
+\begin{code}{ex4.sql Output}
+<< d['code/ex4.sh-session|pyg|l'] >>
\end{code}
View
6 ex5.tex
@@ -32,10 +32,8 @@ \section{What You Should See}
When you run this with \program{sqlite3 -echo} you should get something like
the following output:
-\begin{code}{ex5.out}
-\begin{Verbatim}
-<< d['code/ex5.out'] >>
-\end{Verbatim}
+\begin{code}{ex5.sql Output}
+<< d['code/ex5.sh-session|pyg|l'] >>
\end{code}
I say "something like" because if you were doing the extra credit this
View
6 ex6.tex
@@ -45,10 +45,8 @@ \section{What You Should See}
When you run this you should get this exactly, not any of the data you've
entered in previous exercises:
-\begin{code}{ex6.out}
-\begin{Verbatim}
-<< d['code/ex6.out'] >>
-\end{Verbatim}
+\begin{code}{ex6.sql Output}
+<< d['code/ex6.sh-session|pyg|l'] >>
\end{code}
If you didn't, then do a \ident{SELECT} on the \ident{person\_pet} table and
View
6 ex7.tex
@@ -26,10 +26,8 @@ \section{What You Should See}
the exercises to this point that you need. This shows you how your work
so far should continue to work as you go through the exercises.
-\begin{code}{ex7.out}
-\begin{Verbatim}
-<< d['code/ex7.out'] >>
-\end{Verbatim}
+\begin{code}{ex7.sql Output}
+<< d['code/ex7.sh-session|pyg|l'] >>
\end{code}
Notice at the end I'm adding the \program{sqlite3 -echo} so you can see
View
6 ex8.tex
@@ -45,10 +45,8 @@ \section{What You Should See}
and run this exercise. I'm also using \program{sqlite3 -header -column -echo}
to get nicer output for the tables and to see the SQL that's being run.
-\begin{code}{ex8.out}
-\begin{Verbatim}
-<< d['code/ex8.out'] >>
-\end{Verbatim}
+\begin{code}{ex8.sql Output}
+<< d['code/ex8.sh-session|pyg|l'] >>
\end{code}
You should see that after you \ident{DELETE} the \ident{SELECT} returns
View
6 ex9.tex
@@ -32,10 +32,8 @@ \section{What You Should See}
I'm resetting the database with my \file{code.sql} script and then running
this:
-\begin{code}{ex9.out}
-\begin{Verbatim}
-<< d['code/ex9.out'] >>
-\end{Verbatim}
+\begin{code}{ex9.sql Output}
+<< d['code/ex9.sh-session|pyg|l'] >>
\end{code}
I've done a bit of reformatting by adding some newlines but otherwise
Please sign in to comment.
Something went wrong with that request. Please try again.