Browse Source

updated document style, including header, footer, code style and title page

pull/1/head
Brett Langdon 14 years ago
parent
commit
d9d83d5764
15 changed files with 243 additions and 104 deletions
  1. +4
    -4
      1 - Introduction/1.1 - Who Is This Resource For.tex
  2. +2
    -2
      1 - Introduction/1.2 - Code Examples.tex
  3. +7
    -9
      1 - Introduction/Introduction.tex
  4. +0
    -1
      2 - Getting Started/1.1 - Choosing A Programming Language.tex
  5. +16
    -26
      2 - Getting Started/1.2 - Sudo Language.tex
  6. +2
    -4
      2 - Getting Started/1.3 - How To Read This Resource.tex
  7. +0
    -1
      2 - Getting Started/Getting Started.tex
  8. +18
    -41
      3 - Functional Programming/1.1 - Variables.tex
  9. +0
    -0
      3 - Functional Programming/1.3 - Control Statements.tex
  10. +0
    -0
      3 - Functional Programming/1.4 - Loops.tex
  11. +0
    -0
      3 - Functional Programming/1.5 - Functions.tex
  12. +8
    -6
      3 - Functional Programming/Functional Programming.tex
  13. +103
    -8
      Programming In General.tex
  14. +1
    -0
      build
  15. +82
    -2
      header.tex

+ 4
- 4
1 - Introduction/1.1 - Who Is This Resource For.tex View File

@ -1,12 +1,12 @@
This resource is intended for everyone. This resource is intended for everyone.
\newline
\\
\par
This resource is meant to be useful to programmers of all levels, those who have never programmed before, those who are just This resource is meant to be useful to programmers of all levels, those who have never programmed before, those who are just
getting started and even those who have been programming for years. getting started and even those who have been programming for years.
Since this resource will always be growing and changing as the industry changes the information should always be in some Since this resource will always be growing and changing as the industry changes the information should always be in some
way applicable for all developers. way applicable for all developers.
\newline
\\
\par
Those who are familiar with programming are most likely going to be able to skip the chapter "Getting Started" and in Those who are familiar with programming are most likely going to be able to skip the chapter "Getting Started" and in
some cases might not read the resource in sequential order, but rather skip around picking and choosing which sections are some cases might not read the resource in sequential order, but rather skip around picking and choosing which sections are
applicable to them. applicable to them.

+ 2
- 2
1 - Introduction/1.2 - Code Examples.tex View File

@ -1,7 +1,7 @@
All code examples in this resource use a sudo language that is not meant to be run or compiled directly. All code examples in this resource use a sudo language that is not meant to be run or compiled directly.
I have chosen to use this approach so that the concepts can be extracted and implemented in any language I have chosen to use this approach so that the concepts can be extracted and implemented in any language
on any platform. on any platform.
\newline
\\
\par
I will cover how to use the sudo language and how to translate it to a useable programming language I will cover how to use the sudo language and how to translate it to a useable programming language
in the chapter "Getting Started" and section "Sudo Language". in the chapter "Getting Started" and section "Sudo Language".

+ 7
- 9
1 - Introduction/Introduction.tex View File

@ -1,16 +1,14 @@
Programming In General is meant to be used as a resource to learn the concepts of computer programming that can be applied to any Programming In General is meant to be used as a resource to learn the concepts of computer programming that can be applied to any
language or platform. language or platform.
\newline
\\
\par
This resource is and always will be provided for free. This resource is and always will be provided for free.
\newline
\\
\par
This resource is currently a work in progress so please bear with me if any particular sections or chapters are in complete or This resource is currently a work in progress so please bear with me if any particular sections or chapters are in complete or
if sections contain less than correct information. if sections contain less than correct information.
If you have any comments, questions, suggestions or corrections please feel free to contact me by e-mail at:
\newline
brett@blangdon.com
\newline
If you have any comments, questions, suggestions or corrections please feel free to contact me by e-mail at: \emph{brett@blangdon.com}
\\ \\
\par
Thank you and enjoy. Thank you and enjoy.
\pagebreak

+ 0
- 1
2 - Getting Started/1.1 - Choosing A Programming Language.tex View File

@ -2,7 +2,6 @@ It is wonderful that you have decided to undertake the hobby of computer program
C/C++, VB, Ruby, Scala, Groovy, Javascript, or one of the thousands of others languages available to programmers. There are many factors to consider C/C++, VB, Ruby, Scala, Groovy, Javascript, or one of the thousands of others languages available to programmers. There are many factors to consider
when choosing a programming language especially when getting into programming for the first time: paradigm, syntax, platform and even just the when choosing a programming language especially when getting into programming for the first time: paradigm, syntax, platform and even just the
coolness factor. coolness factor.
\newline
\subsection{Paradigm} \subsection{Paradigm}
A languages paradigm refers to how the language is constructed. For example the three mainly disucessed paradigms are Functional, Object Oriented A languages paradigm refers to how the language is constructed. For example the three mainly disucessed paradigms are Functional, Object Oriented


+ 16
- 26
2 - Getting Started/1.2 - Sudo Language.tex View File

@ -1,13 +1,13 @@
For the code examples presented in this resource I am going to be using a sudo language. The concept behind a sudo language For the code examples presented in this resource I am going to be using a sudo language. The concept behind a sudo language
is to be able to present programming concepts in a language agnostic form so that the concepts can be translated to your is to be able to present programming concepts in a language agnostic form so that the concepts can be translated to your
language of choice. language of choice.
\newline
\\
\par
So it is great that you have chosen lanauge X to use throughout this resource, but how is the sudo lanauge going to help you out? So it is great that you have chosen lanauge X to use throughout this resource, but how is the sudo lanauge going to help you out?
Well, lets walk through a few examples and I will show you how the examples get translated to a few various languages. Well, lets walk through a few examples and I will show you how the examples get translated to a few various languages.
\subsection{Example 1} \subsection{Example 1}
\begin{lstlisting}
\begin{lstlisting}[caption={Example 1 - Sudo Code}]
name = "Brett" name = "Brett"
if name == "Brett" if name == "Brett"
print "Name Is Brett" print "Name Is Brett"
@ -20,8 +20,7 @@ variable name is equal to the value "Brett", if so then we want to print "Name I
print "Name Is Not Brett". As far as programming goes this is a fairly simple process but lets try and translate this example print "Name Is Not Brett". As far as programming goes this is a fairly simple process but lets try and translate this example
to a few different languages to see how it is done. to a few different languages to see how it is done.
{\bf PHP:}
\begin{lstlisting}
\begin{lstlisting}[language=php,caption={Example 1 - PHP}]
<?php <?php
$name = 'Brett'; $name = 'Brett';
if( $name === 'Brett' ){ if( $name === 'Brett' ){
@ -31,8 +30,7 @@ if( $name === 'Brett' ){
} }
\end{lstlisting} \end{lstlisting}
{\bf C:}
\begin{lstlisting}
\begin{lstlisting}[language=c,caption={Example 1 - C}]
int main{ int main{
char* name = "Brett"; char* name = "Brett";
if( name == "Brett" ){ if( name == "Brett" ){
@ -44,8 +42,7 @@ int main{
} }
\end{lstlisting} \end{lstlisting}
{\bf Python:}
\begin{lstlisting}
\begin{lstlisting}[language=python,caption={Example 1 - Python}]
name = "Brett" name = "Brett"
if name is "Brett": if name is "Brett":
print "Name Is Brett" print "Name Is Brett"
@ -53,8 +50,7 @@ else:
print "Name Is Not Brett" print "Name Is Not Brett"
\end{lstlisting} \end{lstlisting}
{\bf Node.JS:}
\begin{lstlisting}
\begin{lstlisting}[language=javascript,caption={Example 1 - Node.JS}]
var name = "Brett"; var name = "Brett";
if( name == "Brett" ){ if( name == "Brett" ){
console.log("Name Is Brett"); console.log("Name Is Brett");
@ -63,8 +59,7 @@ if( name == "Brett" ){
} }
\end{lstlisting} \end{lstlisting}
{\bf Java:}
\begin{lstlisting}
\begin{lstlisting}[language=java,caption={Example 1 - Java}]
class Example1{ class Example1{
public static void main( String[] args ){ public static void main( String[] args ){
String name = "Brett"; String name = "Brett";
@ -85,7 +80,7 @@ identical to the sudo language example.
Since we have seen a fairly simple example above, lets take a look at a more complicated example. Do not be afraid if it does not make Since we have seen a fairly simple example above, lets take a look at a more complicated example. Do not be afraid if it does not make
too much sense right now, but try and notice the similarities between the sudo language and the actual code examples. too much sense right now, but try and notice the similarities between the sudo language and the actual code examples.
\begin{lstlisting}
\begin{lstlisting}[caption={Example 2 - Sudo Code}]
class Person class Person
private name private name
@ -111,13 +106,12 @@ private property "name" and two methods "getName" and "setName". "getName" will
"setName" will take in a single parameter "newName" and set the private property "name"'s value to the value of "newName". Lastly we "setName" will take in a single parameter "newName" and set the private property "name"'s value to the value of "newName". Lastly we
are going to create a variable called "p" and have it be equal to a new instance of a "Person", set that instances name to "Brett" then like are going to create a variable called "p" and have it be equal to a new instance of a "Person", set that instances name to "Brett" then like
in the previous example we are going to get if the value of "p"'s private property "name" is equal to "Brett". in the previous example we are going to get if the value of "p"'s private property "name" is equal to "Brett".
\newline
\\
\par
Like I mentioned before, this example might go over the head of some people as it introduces some more advanced topics, but hopefully it Like I mentioned before, this example might go over the head of some people as it introduces some more advanced topics, but hopefully it
helps to understand how you can translate the sudo language. helps to understand how you can translate the sudo language.
{\bf PHP:}
\begin{lstlisting}
\begin{lstlisting}[language=php,caption={Example 2 - PHP}]
<?php <?php
class Person{ class Person{
private $name; private $name;
@ -141,8 +135,7 @@ if( $p->getName() === 'Brett' ){
} }
\end{lstlisting} \end{lstlisting}
{\bf Java:}
\begin{lstlisting}
\begin{lstlisting}[language=java,caption={Eample 2 - Java}]
class Person{ class Person{
private String name; private String name;
@ -168,8 +161,7 @@ class Person{
} }
\end{lstlisting} \end{lstlisting}
{\bf Node.JS:}
\begin{lstlisting}
\begin{lstlisting}[language=javascript,caption={Example 2 - Node.JS}]
var Person = function(){} var Person = function(){}
Person.prototype.getName = function(){ Person.prototype.getName = function(){
return this.name; return this.name;
@ -188,8 +180,7 @@ if( p.getName() == "Brett" ){
} }
\end{lstlisting} \end{lstlisting}
{\bf Python:}
\begin{lstlisting}
\begin{lstlisting}[language=python,caption={Example 2 - Python}]
class Person: class Person:
def getname( self ): def getname( self ):
return self.name return self.name
@ -210,7 +201,6 @@ laid out by the sudo language can still be extrapolated and translated to each i
language supports the concepts. As you may notice that I left out the implementation of C in this example. It is because C language supports the concepts. As you may notice that I left out the implementation of C in this example. It is because C
does not support the use of classes and objects, yes there are ways of completing this example in C using structs but that does not support the use of classes and objects, yes there are ways of completing this example in C using structs but that
is something that you should learn on your own. is something that you should learn on your own.
\newline
\\
\par
So now you have seen a few examples, hopefully enough to give you an idea of how the examples in this resource will be presented. So now you have seen a few examples, hopefully enough to give you an idea of how the examples in this resource will be presented.

+ 2
- 4
2 - Getting Started/1.3 - How To Read This Resource.tex View File

@ -1,12 +1,10 @@
This resource is going to be laid out a little weird, more so for those who have already had some programming background. This resource is going to be laid out a little weird, more so for those who have already had some programming background.
\newline
\\
\par
For those who are new to programming I strongly suggest reading through Chapters 3 and 4 thoroughly before continuing with the For those who are new to programming I strongly suggest reading through Chapters 3 and 4 thoroughly before continuing with the
rest of the resource. Those two chapters contain all of the core concepts needed in order to understand some of the higher level rest of the resource. Those two chapters contain all of the core concepts needed in order to understand some of the higher level
concepts presented with Data Structures and Algorithms. concepts presented with Data Structures and Algorithms.
\newline
\\
\par
Once you have completed chapters 3 and 4 please feel free to jump around a little between sections presented in chapters 5 and 6 as Once you have completed chapters 3 and 4 please feel free to jump around a little between sections presented in chapters 5 and 6 as
some data structures or algorithms might interest you more than others. some data structures or algorithms might interest you more than others.

+ 0
- 1
2 - Getting Started/Getting Started.tex View File

@ -1,3 +1,2 @@
This chapter will cover how to get started with programming, how to choose which language or platform to start with and how to go about This chapter will cover how to get started with programming, how to choose which language or platform to start with and how to go about
using this resource. using this resource.
\pagebreak

+ 18
- 41
3 - Functional Programming/1.1 - Variables.tex View File

@ -1,53 +1,30 @@
For starters we are going to cover some basic usage of variables. Variables are used to store values to be read and manipulated.
For example we can create a variable named "name" and store the value of the string "Brett" in it.
\begin{lstlisting}
name = "Brett"
\end{lstlisting}
Fairly simple to start with.
\newline
\\
So here we are storing a string into a variable but what about other types of data? Each programming language supports different data types
but for the most part they all support numbers, usaully various types, strings as well as booleans (true or false).So, we can store these
different data types in variables as well.
Variables are used to represent values by name and allow you to access the original value or manipulate the original value.
For example we would store the integer value 10 into a variable named "a" which would then allow us to refer to "10" by
using the name "a".
\begin{lstlisting} \begin{lstlisting}
name = "Brett"
number = 10
boolean = false
a = 10
print a
\end{lstlisting} \end{lstlisting}
Great, we can store values into a variable to use, but what do you mean use them? Well we can either use the variable names to access
the values that we stored in them or we can manipulate the values stored in variables.
In the above example the output would be "10" because the value 10 is stored in the variable "a" and then we access the original value
10 when we print a.
\begin{lstlisting}
name = "Brett"
print name
\end{lstlisting}
\subsection{Data Types}
Here we are storing the string "Brett" into the variable "name" and then printing the value stored in name. Here we are showing that
we can access the original string value "Brett" from the variable "name".
Programming languages support different types of data types or different types of values that they can represent in variables.
Some programming languages use multiple different types of values but most of them support the basic types: string, integer
and boolean (true or false).
\begin{lstlisting} \begin{lstlisting}
a = 10
b = 5
c = a + b
print c
string = "Brett"
integer = 10
boolean = false
\end{lstlisting} \end{lstlisting}
Ok, so here we are taking the number, or integer, value 10 and storing it into the variable "a", and the integer value 5 and storing it into
the variable "b". Then we are using the mathematical opperator for addition (+) to store the addition of the values stored by
"a" and "b" into the variable "c". Lastly, we are printing the value of "c" which if all works as we would like would print "15".
\newline
This is another example of showing how we can access the values stored within variables and act upon them. In this case we are accessing
the values 10, stored in "a", and 5, stored in "b", and performing mathematical opperations on them.
Please keep in mind that each programming language supports different data types and you should research those types to better
understand variables in that language.
\begin{lstlisting}
a = 10
a = a + 5
print a
\end{lstlisting}
\subsection{Operations}
In this example we are storing the integer value 10 into the variable "a" and then we are manipulating the value of a in such a way that we
are adding the integer value 5 to it. Lastly, we are printing the final value of "a", which will be "15".
\subsection{Conclusion}

+ 0
- 0
3 - Functional Programming/1.3 - Control Statements.tex View File


+ 0
- 0
3 - Functional Programming/1.4 - Loops.tex View File


+ 0
- 0
3 - Functional Programming/1.5 - Functions.tex View File


+ 8
- 6
3 - Functional Programming/Functional Programming.tex View File

@ -3,13 +3,15 @@ to different people, but in regard to this resource we are going to refer to fun
without the use of classes and objects. Yes, some people are cringing a little in their seats as that is not the best without the use of classes and objects. Yes, some people are cringing a little in their seats as that is not the best
definition of functional programming but to try and keep things simple and organized that is what we are going to definition of functional programming but to try and keep things simple and organized that is what we are going to
refer to it as. refer to it as.
\newline
\\
\par
I am going to use this chapter to introduce topics other than just functions. Topics including control statements, loops and some input output (io). I am going to use this chapter to introduce topics other than just functions. Topics including control statements, loops and some input output (io).
\newline
\\
{\bf Functional Programming:}
\par
\vfill
{\it Functional Programming:}
\\ \\
Functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and mutable data. Functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and mutable data.
\newline
\\
Wikipedia (2012) Wikipedia (2012)

+ 103
- 8
Programming In General.tex View File

@ -1,20 +1,101 @@
\documentclass[10pt,a4paper,titlepage]{book} \documentclass[10pt,a4paper,titlepage]{book}
\usepackage[width=7in, height=9.5in,papersize={8.5in,11in}]{geometry}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage{amsmath} \usepackage{amsmath}
\usepackage{amsfonts} \usepackage{amsfonts}
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{moreverb} \usepackage{moreverb}
\usepackage{listings} \usepackage{listings}
\usepackage{layout}
\usepackage{fancyhdr}
\usepackage{color}
\author{Brett Langdon} \author{Brett Langdon}
\title{Programming In General} \title{Programming In General}
\lstset{language=php,numbers=left,stepnumber=1}
\pagestyle{fancy}
\voffset=0.25in
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\definecolor{lstkeyword}{rgb}{.2,.2,.7}
\definecolor{lstcomment}{rgb}{.7,.7,.7}
\definecolor{lstidentifier}{rgb}{0,0,0}
\definecolor{lststring}{rgb}{.4,.4,.4}
\lstset{
numbers=left,
stepnumber=1,
numberstyle=\footnotesize,
frame=single,
showspaces=false,
showstringspaces=false,
basicstyle=\ttfamily,
linewidth=6.5in,
xleftmargin=0.5in,
keywordstyle=\bfseries\color{lstkeyword},
commentstyle=\itshape\color{lstcomment},
identifierstyle=\color{lstidentifier},
stringstyle=\color{lststring},
morekeywords={class,public,private,protected,$this,return,this,self,if,else,function,print},
morestring=[b]',
morestring=[b]",
morecomment=[s]{/*}{*/},
comment=[l]{//}
}
\lstdefinelanguage{javascript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},
ndkeywords={class, export, boolean, throw, implements, import, this},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]"
}
\lstdefinelanguage{php}{
keywords={$this,class,public,private,protected,return,new,null,catch,try,switch,if,else,while,do,case,break,continue,true,false,function,boolean,throw,implements,inhrits,echo,print}
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]"
}
\begin{document} \begin{document}
\maketitle
\begin{titlepage}
\begin{center}
\vspace*{3 in}
\HRule \\[0.4cm]
{\huge \bfseries Programming In General}
\HRule \\[0.4cm]
\emph{Author:}\\
Brett \textsc{Langdon}
\vfill
{\large \today}
\end{center}
\end{titlepage}
\tableofcontents \tableofcontents
\chapter{Introduction} \chapter{Introduction}
\input{"./1 - Introduction/Introduction"} \input{"./1 - Introduction/Introduction"}
\vfill
\pagebreak
\section{Who Is This Resource For} \section{Who Is This Resource For}
\input{"./1 - Introduction/1.1 - Who Is This Resource For"} \input{"./1 - Introduction/1.1 - Who Is This Resource For"}
@ -23,7 +104,8 @@
\chapter{Getting Started} \chapter{Getting Started}
\input{"./2 - Getting Started/Getting Started"} \input{"./2 - Getting Started/Getting Started"}
\vfill
\pagebreak
\section{Choosing A Programming Language} \section{Choosing A Programming Language}
\input{"./2 - Getting Started/1.1 - Choosing A Programming Language"} \input{"./2 - Getting Started/1.1 - Choosing A Programming Language"}
@ -35,16 +117,29 @@
\chapter{Functional Programming} \chapter{Functional Programming}
\input{"./3 - Functional Programming/Functional Programming"} \input{"./3 - Functional Programming/Functional Programming"}
\vfill
\pagebreak
\section{Variables} \section{Variables}
\input{"./3 - Functional Programming/1.1 - Variables"} \input{"./3 - Functional Programming/1.1 - Variables"}
\section{Control Statements}
\input{"./3 - Functional Programming/1.3 - Control Statements"}
\section{Loops}
\input{"./3 - Functional Programming/1.4 - Loops"}
\section{Functions}
\input{"./3 - Functional Programming/1.5 - Functions"}
\chapter{Object Oriented Programming} \chapter{Object Oriented Programming}
\input{"./4 - Object Oriented Programming/Object Oriented Programming"} \input{"./4 - Object Oriented Programming/Object Oriented Programming"}
\vfill
\pagebreak
\chapter{Data Structures} \chapter{Data Structures}
\input{"./5 - Data Structures/Data Structures"} \input{"./5 - Data Structures/Data Structures"}
\vfill
\pagebreak
\chapter{Algorithms} \chapter{Algorithms}
\input{"./6 - Algorithms/Algorithms"} \input{"./6 - Algorithms/Algorithms"}
\end{document}
\vfill
\pagebreak\end{document}

+ 1
- 0
build View File

@ -17,6 +17,7 @@ for d in filter(lambda d: not re.search('.git',d),dirs):
book.write('\r\n\chapter{' + chapter + '}\r\n') book.write('\r\n\chapter{' + chapter + '}\r\n')
if os.path.exists(d + '/' + chapter + '.tex'): if os.path.exists(d + '/' + chapter + '.tex'):
book.write('\input{"' + d + '/' + chapter + '"}\r\n') book.write('\input{"' + d + '/' + chapter + '"}\r\n')
book.write('\\vfill\r\n\pagebreak')
files = os.listdir(d) files = os.listdir(d)
for f in filter(lambda f: re.search('^\d+.\d+\s-\s',f), files): for f in filter(lambda f: re.search('^\d+.\d+\s-\s',f), files):
section = re.sub('\d+.\d+\s-\s|.tex', '', f) section = re.sub('\d+.\d+\s-\s|.tex', '', f)


+ 82
- 2
header.tex View File

@ -1,13 +1,93 @@
\documentclass[10pt,a4paper,titlepage]{book} \documentclass[10pt,a4paper,titlepage]{book}
\usepackage[width=7in, height=9.5in,papersize={8.5in,11in}]{geometry}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage{amsmath} \usepackage{amsmath}
\usepackage{amsfonts} \usepackage{amsfonts}
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{moreverb} \usepackage{moreverb}
\usepackage{listings} \usepackage{listings}
\usepackage{layout}
\usepackage{fancyhdr}
\usepackage{color}
\author{Brett Langdon} \author{Brett Langdon}
\title{Programming In General} \title{Programming In General}
\lstset{language=php,numbers=left,stepnumber=1}
\pagestyle{fancy}
\voffset=0.25in
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\definecolor{lstkeyword}{rgb}{.2,.2,.7}
\definecolor{lstcomment}{rgb}{.7,.7,.7}
\definecolor{lstidentifier}{rgb}{0,0,0}
\definecolor{lststring}{rgb}{.4,.4,.4}
\lstset{
numbers=left,
stepnumber=1,
numberstyle=\footnotesize,
frame=single,
showspaces=false,
showstringspaces=false,
basicstyle=\ttfamily,
linewidth=6.5in,
xleftmargin=0.5in,
keywordstyle=\bfseries\color{lstkeyword},
commentstyle=\itshape\color{lstcomment},
identifierstyle=\color{lstidentifier},
stringstyle=\color{lststring},
morekeywords={class,public,private,protected,$this,return,this,self,if,else,function,print},
morestring=[b]',
morestring=[b]",
morecomment=[s]{/*}{*/},
comment=[l]{//}
}
\lstdefinelanguage{javascript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},
ndkeywords={class, export, boolean, throw, implements, import, this},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]"
}
\lstdefinelanguage{php}{
keywords={$this,class,public,private,protected,return,new,null,catch,try,switch,if,else,while,do,case,break,continue,true,false,function,boolean,throw,implements,inhrits,echo,print}
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]"
}
\begin{document} \begin{document}
\maketitle
\begin{titlepage}
\begin{center}
\vspace*{3 in}
\HRule \\[0.4cm]
{\huge \bfseries Programming In General}
\HRule \\[0.4cm]
\emph{Author:}\\
Brett \textsc{Langdon}
\vfill
{\large \today}
\end{center}
\end{titlepage}
\tableofcontents \tableofcontents

Loading…
Cancel
Save