One of the benefits of coming back to an existing wordpress blog rather than continuing to try to roll my own in github.io is that I can easily piggyback on other people writing plugins to solve the same problems. So far, the Crayon and MathJax-Latex plugins seem to fit the bill.

**Testing syntax highlighting**

1 2 3 4 5 6 7 8 9 10 |
# hello_world.py class HelloWorld(): """An unnecessarily complex hello world""" def __init__(self): print("Hello world") if __name__ == "__main__": hello = HelloWorld() |

**Testing Latex / Math**

$$

\begin{align}

J(\theta) &= \frac{1}{m}\sum_{i=1}^{m}Cost(h_\theta(x)^{(i)},y^{(i)}) \\

Cost(h_\theta(x),y) &= -log(h_\theta(x))& y=1 \\

Cost(h_\theta(x),y) &= -log(1-h_\theta(x))& y=0

\end{align}

$$