Skip to content

Instantly share code, notes, and snippets.

Problem

A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:

$e^{i \pi} = -1$

Unfortunately, GitHub does not support inline formulas. The issue is tracked here.

Investigation

@luizirber
luizirber / README.md
Last active November 13, 2016 01:56 — forked from ctb/README.md
Cython maps

Here, the .get function on maps is about 1m times slower than the .getitem function. Why?

To run (requires Python 3, Cython, and a C/C++ build environment):

python setup.py build_ext -i
python test.py
@luizirber
luizirber / aperture.py
Last active December 16, 2015 13:18 — forked from ivanov/aperture.py
I liked the idea, so I used img2xterm to create a version using ANSI escape codes. Let's see if pasting it here works... (Now in blue)
# -*- coding: utf-8 -*-
''' 
 ▄ ▄▄▄▄
▄▄ ▄▄ ▀▀  ▄▄
▄▄ ▄▄ ▀▄ ▄ ▄ ▄▄
▄▄ ▄▄ ▀▄     ▄▄
▄ ▄▄▄▄ ▀▄ ▄ ▀ ▄
▀▀▀▀▀▀▀▀▀▀ ▀▄  [