Skip to content

Commit 0f617a1

Browse files
committed
posts/170306: What I Wish I Knew When Learning Boolean Circuits
1 parent 0b79623 commit 0f617a1

File tree

4 files changed

+85
-15
lines changed

4 files changed

+85
-15
lines changed

feed-template.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$for(entry)$
1515
<entry>
1616
<title>$entry.title$</title>
17-
<link rel="alternate" type="text/html" href="$canonical$$entry.id$" />
17+
<link rel="alternate" type="text/html" href="$if(entry.link)$$entry.link$$else$$canonical$$entry.id$$endif$" />
1818
<id>$feed.id-prefix$$entry.id$</id>
1919
<published>$entry.published$</published>
2020
<updated>$if(entry.updated)$$entry.updated$$else$$entry.published$$endif$</updated>

feed.atom

+31-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,33 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>Through the Looking-Glass</title>
4-
<subtitle>Mort's random homepage.</subtitle>
4+
<subtitle>Morts random homepage.</subtitle>
55
<link rel="alternate" type="text/html" href="https://www.soimort.org/" />
66
<link rel="self" type="application/atom+xml" href="https://www.soimort.org/feed.atom" />
77
<id>tag:www.soimort.org,2017:/</id>
8-
<updated>2017-02-06T00:00:00+01:00</updated>
8+
<updated>2017-03-06T00:00:00+01:00</updated>
99
<author>
1010
<name>Mort Yao</name>
1111
<email>[email protected]</email>
1212
</author>
1313

14+
<entry>
15+
<title>What I Wish I Knew When Learning Boolean Circuits</title>
16+
<link rel="alternate" type="text/html" href="https://blog.soimort.org/comp/c/boolean-circuit/" />
17+
<id>tag:www.soimort.org,2017:/posts/170306</id>
18+
<published>2017-03-06T00:00:00+01:00</published>
19+
<updated>2017-03-06T00:00:00+01:00</updated>
20+
<author>
21+
<name>Mort Yao</name>
22+
</author>
23+
<category term="blog" />
24+
<content type="html" xml:lang="en" xml:base="https://www.soimort.org/">
25+
<![CDATA[
26+
<p style="text-align:center !important;text-indent:0 !important">test</p>
27+
28+
]]>
29+
</content>
30+
</entry>
1431
<entry>
1532
<title>The Fundamental Justification</title>
1633
<link rel="alternate" type="text/html" href="https://www.soimort.org/mst/5" />
@@ -543,8 +560,8 @@ Notice that
543560
<tr class="header">
544561
<th style="text-align: center;"><span class="math inline">\(k\)</span>th coin flip</th>
545562
<th style="text-align: center;"><span class="math inline">\(\Pr[\text{Tails}]\)</span></th>
546-
<th style="text-align: center;">Stake ($)</th>
547-
<th style="text-align: center;">Expected payoff ($)</th>
563+
<th style="text-align: center;">Stake (<span class="math inline">\() | Expected payoff (\)</span>)</th>
564+
<th style="text-align: center;"></th>
548565
</tr>
549566
</thead>
550567
<tbody>
@@ -729,21 +746,21 @@ Notice that
729746
<p>I wouldn’t claim that I know the best practice of using Pandoc, but there’s such a common idiom that cannot be overstressed: <em>Separate presentation and content!</em></p>
730747
<p>In the YAML front matter of <code>src.md</code> (the main Markdown file you’re writing), put only things that matter to your potential readers:</p>
731748
<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="ot">---</span>
732-
<span class="fu">title:</span> Boilerplating Pandoc for Academic Writing
733-
<span class="fu">subtitle:</span> or How I Learned to Stop Typesetting and Concentrate on the Math
734-
<span class="fu">author:</span> Mort Yao
735-
<span class="fu">date:</span> 17 November 2016
736-
<span class="fu">abstract:</span> |
749+
<span class="fu">title:</span><span class="at"> Boilerplating Pandoc for Academic Writing</span>
750+
<span class="fu">subtitle:</span><span class="at"> or How I Learned to Stop Typesetting and Concentrate on the Math</span>
751+
<span class="fu">author:</span><span class="at"> Mort Yao</span>
752+
<span class="fu">date:</span><span class="at"> 17 November 2016</span>
753+
<span class="fu">abstract:</span><span class="at"> |</span>
737754
Lorem ipsum dolor sit amet, consectetur adipiscing elit,
738755
sed do eiusmod tempor incididunt ut labore et dolore magna
739756
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
740757
ullamco laboris nisi ut aliquip ex ea commodo consequat.
741758
<span class="ot">---</span></code></pre></div>
742759
<p>And in a separate YAML file (let’s call it <code>default.yaml</code>), here goes the formatting stuff:</p>
743760
<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="ot">---</span>
744-
<span class="fu">geometry:</span> margin=1.5in
745-
<span class="fu">indent:</span> true
746-
<span class="fu">header-includes:</span> |
761+
<span class="fu">geometry:</span><span class="at"> margin=1.5in</span>
762+
<span class="fu">indent:</span><span class="at"> true</span>
763+
<span class="fu">header-includes:</span><span class="at"> |</span>
747764
\usepackage<span class="kw">{</span>tcolorbox<span class="kw">}</span>
748765
\newcommand\qed<span class="kw">{</span>\hfill\rule{1em<span class="kw">}{</span>1em<span class="kw">}</span>}
749766
<span class="ot">---</span></code></pre></div>
@@ -790,8 +807,8 @@ Notice that
790807
</ul></li>
791808
</ul>
792809
<p>As part of the YAML metadata: (Assume you have <code>ieee.csl</code> and <code>references.bib</code>)</p>
793-
<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="fu">csl:</span> ieee.csl
794-
<span class="fu">bibliography:</span> references.bib</code></pre></div>
810+
<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="fu">csl:</span><span class="at"> ieee.csl</span>
811+
<span class="fu">bibliography:</span><span class="at"> references.bib</span></code></pre></div>
795812
<p>Using <code>pandoc-citeproc</code> as a filter, generate the document with citations:</p>
796813
<pre><code>$ pandoc <span class="do">--filter pandoc-citeproc</span> -H header.tex default.yaml src.md -o out.pdf</code></pre>
797814
<p>The list of references is appended to the end of the document. It is often desirable to give the references an obvious title (“References”), start from a new page and avoid any further indentation, so the following comes in the end of the Markdown source:</p>

posts/170306/index.html

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<!-- Akai (pandoc HTML5 template)
3+
designer: soimort
4+
last updated: 2016-05-06
5+
last adapted: 2016-11-01 -->
6+
<html>
7+
<head>
8+
<meta charset="utf-8">
9+
<meta name="generator" content="pandoc">
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
11+
<meta name="author" content="Mort Yao">
12+
<meta name="dcterms.date" content="2017-03-06">
13+
<title>What I Wish I Knew When Learning Boolean Circuits</title>
14+
<link rel="canonical" href="https://www.soimort.org/posts/170306">
15+
<style type="text/css">code { white-space: pre; }</style>
16+
<link rel="stylesheet" href="//cdn.soimort.org/normalize/5.0.0/normalize.min.css">
17+
<link rel="stylesheet" href="//cdn.soimort.org/fonts/latest/URW-Palladio-L.css">
18+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
19+
<link rel="stylesheet" href="/__/css/style.css">
20+
<link rel="stylesheet" href="/__/css/pygments.css">
21+
<!--[if lt IE 9]>
22+
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
23+
<![endif]-->
24+
<script src="//cdn.soimort.org/jk/20160504/jk.min.js"></script>
25+
<link rel="icon" href="/favicon.png">
26+
<link rel="apple-touch-icon" href="/favicon.png">
27+
<link rel="alternate" type="application/atom+xml" href="/feed.atom">
28+
</head>
29+
<body>
30+
<article>
31+
<header>
32+
<h1 class="title"><a href="https://www.soimort.org/posts/170306">What I Wish I Knew When Learning Boolean Circuits</a></h1>
33+
<address class="author">Mort Yao</address>
34+
<h3 class="date">2017-03-06</h3>
35+
</header>
36+
<div id="content">
37+
38+
</div>
39+
<!-- (www.soimort.org) last updated: 2016-05-07 -->
40+
<aside id="soimort-toolbar">
41+
<a href="/"><i class="fa fa-home" aria-hidden="true"></i></a>
42+
</aside>
43+
</article>
44+
</body>
45+
</html>

posts/170306/src.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: What I Wish I Knew When Learning Boolean Circuits
3+
author: Mort Yao
4+
date: 2017-03-06
5+
category: blog
6+
7+
link: https://blog.soimort.org/comp/c/boolean-circuit/
8+
---

0 commit comments

Comments
 (0)