initial commit

This commit is contained in:
Michele Guerini Rocco 2017-09-05 16:02:17 +02:00
commit 2180cfe8f1
Signed by: rnhmjoj
GPG Key ID: 91BE884FBA4B591A
199 changed files with 5622 additions and 0 deletions

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# Category Theory for Programmers
## E-book version of Bartosz Milewski's blog post series
HTML preview available [here](http://rnhmjoj.github.io/category-theory-for-programmers/src)

32
makefile Normal file
View File

@ -0,0 +1,32 @@
title = 'category-theory-for-programmers'
root = $(shell pwd)
src = $(root)/src
init = $(src)/init/cover.html $(src)/init/table.html $(src)/init/preface.html
chapters = $(shell find $(src)/part-* -name '*.html' | sort -V)
all: pdf epub
pdf:
cd $(src)/init; \
pandoc \
$(init) \
$(chapters) \
$(root)/opt/metadata.yaml \
--standalone \
--smart \
--number-sections \
-H $(root)/opt/tex \
--latex-engine=xelatex \
-o $(root)/$(title).pdf
epub:
cd $(src)/init; \
pandoc \
$(init) \
$(chapters) \
$(root)/opt/metadata.yaml \
--standalone \
--smart \
--number-sections \
-o $(root)/$(title).epub

14
opt/metadata.yaml Normal file
View File

@ -0,0 +1,14 @@
---
title:
- type: main
text: Category Theory for Programmers
- type: subtitle
text: by Bartosz Milewski
creator:
- role: author
text: Bartosz Milewski
- role: editor
text: Michele Guerini Rocco
rights: © 2017 Bartosz Milewski
stylesheet: style.css
...

11
opt/tex Normal file
View File

@ -0,0 +1,11 @@
\LetLtxMacro{\OldIncludegraphics}{\includegraphics}
\usepackage[export]{adjustbox}
\renewcommand{\includegraphics}[2][]{
\begin{center}
\OldIncludegraphics[max width=10cm,max height=6cm,#1]{#2}
\end{center}}
\renewcommand{\floatpagefraction}{.8}%
\newcommand{\sectionbreak}{\clearpage}

BIN
src/fonts/bold-italic.woff Normal file

Binary file not shown.

BIN
src/fonts/bold.woff Normal file

Binary file not shown.

BIN
src/fonts/italic.woff Normal file

Binary file not shown.

31
src/fonts/noto-serif.css Normal file
View File

@ -0,0 +1,31 @@
@font-face {
font-family: "Noto Serif";
font-style: normal;
font-weight: normal;
src: local("Noto Serif"), url("regular.woff") format("woff");
}
@font-face {
font-family: "Noto Serif Bold";
font-style: normal;
font-weight: normal;
src: local("Noto Serif Bold"), url("bold.woff") format("woff");
}
@font-face {
font-family: "Noto Serif Bold Italic";
font-style: normal;
font-weight: normal;
src: local("Noto Serif Bold Italic"), url("bold-italic.woff") format("woff");
}
@font-face {
font-family: "Noto Serif Italic";
font-style: normal;
font-weight: normal;
src: local("Noto Serif Italic"), url("italic.woff") format("woff");
}

BIN
src/fonts/regular.woff Normal file

Binary file not shown.

BIN
src/images/045518B007.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
src/images/06ECAD17D7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
src/images/070794046B.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
src/images/0895E9B532.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
src/images/0B1F14EBC9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
src/images/0B8915D46B.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
src/images/0D6C7317FB.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
src/images/1426BFD84F.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
src/images/15772CD809.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
src/images/181429D377.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
src/images/185FF80C87.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
src/images/18B18E4B10.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
src/images/1C3F78717D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
src/images/1E312B795F.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

BIN
src/images/1EEA1C742E.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
src/images/1EFE64EA25.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 KiB

BIN
src/images/1F1FABB999.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
src/images/21246BBA72.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
src/images/22AF3A011B.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
src/images/240AA5ADD6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
src/images/24DC6D8BD5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
src/images/2636A9EBE9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
src/images/279EF3CC86.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
src/images/28EF550A0F.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
src/images/29553647F9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
src/images/2E3E58135B.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
src/images/32407E63E2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
src/images/32D64937B7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
src/images/3529E080B1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src/images/35DEB19F12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
src/images/363D32DF63.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
src/images/370E343412.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
src/images/3772D4D29D.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
src/images/393EF0C031.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
src/images/3951654D79.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
src/images/39CCD72EE8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
src/images/3BF66DAF38.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
src/images/3C5954DD57.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
src/images/401D31D484.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
src/images/40D5173CAB.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

BIN
src/images/48299EA4A3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
src/images/48D1883851.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
src/images/4A1DFFB71F.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
src/images/4B394D1DC9.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

BIN
src/images/4B430100E8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/images/4D538069BA.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src/images/4D9665D52A.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
src/images/4EA68B8A72.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

BIN
src/images/4EEBACA42C.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
src/images/5676314194.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
src/images/58166E67EB.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
src/images/58C52083F3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

BIN
src/images/5B4246071D.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
src/images/5E1F06C258.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
src/images/5E498089D8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
src/images/5F68D2BA0A.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
src/images/60D9204963.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
src/images/657DFB1D41.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
src/images/658E626F66.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
src/images/65D57D524E.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

BIN
src/images/6784905022.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
src/images/691FC65E52.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

BIN
src/images/6953DB622E.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
src/images/6A6140566E.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
src/images/6E5F19E03B.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
src/images/6EE2C52410.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

BIN
src/images/73B48F967F.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
src/images/73CA465FB6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
src/images/74F0719294.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/images/74F134ABC3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
src/images/75794CEB5C.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
src/images/77AD3AEF5C.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
src/images/7927728592.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
src/images/79EA8BE971.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
src/images/7C32F3C6F5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
src/images/7C3CB9DB9A.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
src/images/7C53DC1926.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
src/images/7D1CCE05C6.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
src/images/7E69DB6A2D.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
src/images/7E8DB2D44F.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
src/images/7FC95D6A08.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
src/images/80AB64C5A3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
src/images/80D7AFD4F2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB

BIN
src/images/8587D532B3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
src/images/88BFA7B5EA.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
src/images/8BBE53D9BC.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
src/images/8CDC41778F.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
src/images/931C3EB469.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
src/images/934E81810F.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
src/images/937B471CF1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
src/images/95696EB742.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Some files were not shown because too many files have changed in this diff Show More