<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://chenggong-zhang.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://chenggong-zhang.github.io/" rel="alternate" type="text/html" /><updated>2026-04-30T00:30:46+00:00</updated><id>https://chenggong-zhang.github.io/feed.xml</id><title type="html">Chenggong Zhang</title><subtitle>M.S. ECE student at UCLA, researching RL, agents, and generative models.</subtitle><author><name>Chenggong Zhang</name><email>chenggong61@g.ucla.edu</email></author><entry><title type="html">Hello, world: writing math and code</title><link href="https://chenggong-zhang.github.io/hello-world/" rel="alternate" type="text/html" title="Hello, world: writing math and code" /><published>2026-04-28T00:00:00+00:00</published><updated>2026-04-28T00:00:00+00:00</updated><id>https://chenggong-zhang.github.io/hello-world</id><content type="html" xml:base="https://chenggong-zhang.github.io/hello-world/"><![CDATA[<p>This blog is plain Markdown. To start a new post, drop a file into <code class="language-plaintext highlighter-rouge">_posts/</code> named <code class="language-plaintext highlighter-rouge">YYYY-MM-DD-slug.md</code>, fill in the front matter, and write. Jekyll picks it up and the <code class="language-plaintext highlighter-rouge">/blog/</code> index updates automatically.</p>

<h2 id="math">Math</h2>

<p>Inline math sits in single dollars — $\sigma(x) = \frac{1}{1 + e^{-x}}$ — and display math gets double dollars:</p>

\[\nabla_\theta \mathcal{L}(\theta) = \mathbb{E}_{x \sim \mathcal{D}}\left[ \nabla_\theta \log p_\theta(x) \cdot r(x) \right]\]

<p>KaTeX renders both client-side. Anything KaTeX supports works — matrices, alignments, integrals, the usual.</p>

<h2 id="code">Code</h2>

<p>Fenced code blocks with a language tag get syntax highlighting via Prism’s autoloader, so any language Prism knows about (Python, Rust, Go, JS, …) just works:</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="n">np</span>

<span class="k">def</span> <span class="nf">sigmoid</span><span class="p">(</span><span class="n">x</span><span class="p">:</span> <span class="n">np</span><span class="p">.</span><span class="n">ndarray</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">np</span><span class="p">.</span><span class="n">ndarray</span><span class="p">:</span>
    <span class="k">return</span> <span class="mf">1.0</span> <span class="o">/</span> <span class="p">(</span><span class="mf">1.0</span> <span class="o">+</span> <span class="n">np</span><span class="p">.</span><span class="n">exp</span><span class="p">(</span><span class="o">-</span><span class="n">x</span><span class="p">))</span>

<span class="n">x</span> <span class="o">=</span> <span class="n">np</span><span class="p">.</span><span class="n">linspace</span><span class="p">(</span><span class="o">-</span><span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>
<span class="n">y</span> <span class="o">=</span> <span class="n">sigmoid</span><span class="p">(</span><span class="n">x</span><span class="p">)</span>
<span class="k">print</span><span class="p">(</span><span class="n">y</span><span class="p">[:</span><span class="mi">5</span><span class="p">])</span>  <span class="c1"># 0.00247... up to 0.5
</span></code></pre></div></div>

<p>Inline code uses backticks, like <code class="language-plaintext highlighter-rouge">np.exp(-x)</code> or <code class="language-plaintext highlighter-rouge">_posts/</code>.</p>

<h2 id="quotes-and-rules">Quotes and rules</h2>

<blockquote>
  <p>The unreasonable effectiveness of writing things down — that you only realize what you actually believe once it’s on the page.</p>
</blockquote>

<hr />

<p>That’s the whole setup. Math, code, links, the occasional blockquote. Future posts go here.</p>]]></content><author><name>Chenggong Zhang</name><email>chenggong61@g.ucla.edu</email></author><category term="Meta" /><category term="Math" /><category term="Python" /><summary type="html"><![CDATA[This blog is plain Markdown. To start a new post, drop a file into _posts/ named YYYY-MM-DD-slug.md, fill in the front matter, and write. Jekyll picks it up and the /blog/ index updates automatically.]]></summary></entry></feed>