| @ -0,0 +1,8 @@ | |||||
| *.aux | |||||
| *.dvi | |||||
| *.bbl | |||||
| *.log | |||||
| *.toc | |||||
| *.blg | |||||
| */*/ | |||||
| @ -0,0 +1,23 @@ | |||||
| \relax | |||||
| \@setckpt{\@@par }{ | |||||
| \setcounter{page}{9} | |||||
| \setcounter{equation}{0} | |||||
| \setcounter{enumi}{0} | |||||
| \setcounter{enumii}{0} | |||||
| \setcounter{enumiii}{0} | |||||
| \setcounter{enumiv}{0} | |||||
| \setcounter{footnote}{0} | |||||
| \setcounter{mpfootnote}{0} | |||||
| \setcounter{part}{0} | |||||
| \setcounter{chapter}{0} | |||||
| \setcounter{section}{2} | |||||
| \setcounter{subsection}{0} | |||||
| \setcounter{subsubsection}{0} | |||||
| \setcounter{paragraph}{0} | |||||
| \setcounter{subparagraph}{0} | |||||
| \setcounter{figure}{0} | |||||
| \setcounter{table}{0} | |||||
| \setcounter{parentequation}{0} | |||||
| \setcounter{lstnumber}{1} | |||||
| \setcounter{lstlisting}{0} | |||||
| } | |||||
| @ -0,0 +1,14 @@ | |||||
| Greetings and welcome to Programming In General. This is a book that I started writting to try and provide | |||||
| free resources to those who either wanted to learn programming or who wanted to further their knowledge of | |||||
| programming. | |||||
| \newline | |||||
| \\ | |||||
| This book is provided completely free to anyone who wishes to use it. | |||||
| \newline | |||||
| \\ | |||||
| For suggestions, comments or corrections please feel free to e-mail me at: | |||||
| \newline | |||||
| brett@blangdon.com | |||||
| \newline | |||||
| \\ | |||||
| Thank you and I hope you enjoy this book as much as I enjoyed writting it. | |||||
| @ -0,0 +1,2 @@ | |||||
| Functional programming, simply put, is programming by the use of functions. Functional programming does not utilitize the use of | |||||
| classes and objects in order to create applications. | |||||
| @ -0,0 +1,32 @@ | |||||
| \documentclass[10pt,a4paper,titlepage]{book} | |||||
| \usepackage[utf8]{inputenc} | |||||
| \usepackage{amsmath} | |||||
| \usepackage{amsfonts} | |||||
| \usepackage{amssymb} | |||||
| \usepackage{moreverb} | |||||
| \usepackage{listings} | |||||
| \author{Brett Langdon} | |||||
| \title{Programming In General} | |||||
| \lstset{language=php,numbers=left,stepnumber=1} | |||||
| \begin{document} | |||||
| \maketitle | |||||
| \tableofcontents | |||||
| \chapter{Introduction} | |||||
| \input{"./1 - Introduction/Introduction"} | |||||
| \section{Who This Book Is For} | |||||
| \input{"./1 - Introduction/1.0 - Who This Book Is For"} | |||||
| \section{Code Examples} | |||||
| \input{"./1 - Introduction/1.1 - Code Examples"} | |||||
| \chapter{Functional Programming} | |||||
| \input{"./2 - Functional Programming/Functional Programming"} | |||||
| \chapter{Object Oriented Programming} | |||||
| \chapter{Data Structures} | |||||
| \chapter{Algorithms} | |||||
| \end{document} | |||||
| @ -0,0 +1,35 @@ | |||||
| #!/usr/bin/env python | |||||
| import os | |||||
| import re | |||||
| from subprocess import call | |||||
| header = open('./header.tex', 'r'); | |||||
| footer = open('./footer.tex', 'r'); | |||||
| book = open('./Programming In General.tex', 'w'); | |||||
| book.write(header.read()); | |||||
| header.close(); | |||||
| dirs = [x[0] for x in os.walk('.')][1:] | |||||
| for d in dirs: | |||||
| chapter = re.sub('\d+\s-\s', '', d[2:]) | |||||
| book.write('\r\n\chapter{' + chapter + '}\r\n') | |||||
| if os.path.exists(d + '/' + chapter + '.tex'): | |||||
| book.write('\input{"' + d + '/' + chapter + '"}\r\n') | |||||
| files = os.listdir(d) | |||||
| for f in filter(lambda f: re.search('^\d+.\d+\s-\s',f), files): | |||||
| section = re.sub('\d+.\d+\s-\s|.tex', '', f) | |||||
| book.write('\r\n\section{' + section + '}\r\n') | |||||
| book.write('\input{"' + d + '/' + f.replace('.tex', '') + '"}\r\n') | |||||
| book.write(footer.read()); | |||||
| footer.close(); | |||||
| book.close(); | |||||
| call(['latex', './Programming In General.tex']) | |||||
| call(['pdflatex', './Programming In General.tex']) | |||||
| @ -0,0 +1 @@ | |||||
| \end{document} | |||||
| @ -0,0 +1,13 @@ | |||||
| \documentclass[10pt,a4paper,titlepage]{book} | |||||
| \usepackage[utf8]{inputenc} | |||||
| \usepackage{amsmath} | |||||
| \usepackage{amsfonts} | |||||
| \usepackage{amssymb} | |||||
| \usepackage{moreverb} | |||||
| \usepackage{listings} | |||||
| \author{Brett Langdon} | |||||
| \title{Programming In General} | |||||
| \lstset{language=php,numbers=left,stepnumber=1} | |||||
| \begin{document} | |||||
| \maketitle | |||||
| \tableofcontents | |||||