Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <gmp.h>
/* On Linux, compile like so: g++ sq.cpp -lgmp -lgmpxx */
using namespace std;
int main() {
mpz_t b;
mpz_init (b);
@milktrader
milktrader / Jekyll Liquid tag for MathJax.rb
Created October 11, 2011 14:41 — forked from jessykate/Jekyll nd Octopress Liquid tag for MathJax.rb
A simple liquid tag for Jekyll that converts {% m %} and {% em %} into inline math, and {% math %} and {% endmath %} into block equations, by replacing with the appropriate MathJax script tags.
module Jekyll
class MathJaxBlockTag < Liquid::Tag
def render(context)
'<script type="math/tex; mode=display">'
end
end
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'
end