Skip to content

Instantly share code, notes, and snippets.

Data & Tools:
Many contributors. Thanks to all.
Contact:
ParlerAnalysis@protonmail.com
IRC Channels:
#parlerparsers at https://webirc.hackint.org/
#parlerparsers-video for video IDing
@brossi
brossi / stylus-best-practices.md
Created October 30, 2015 13:37 — forked from zspecza/stylus-best-practices.md
Stylus Best Practices

Stylus Best Practices

Introduction

This is a curated set of conventions and best practices for Stylus, an expressive, dynamic, robust and advanced CSS preprocessor. Frustrated with there not being a set of conventions set in place (that could be easily found), I set forth to find out on my own.

@brossi
brossi / dollars-to-html.py
Created October 30, 2015 13:29 — forked from drewsberry/dollars-to-html.py
Replace equations $ ... $ or $$ ... $$ with KaTeX HTML using Python
import re
import execjs
def find_equations(string):
""" Take in a string, and convert everything between $ ... $ into an inline
equation and everything between $$ ... $$ into a centred equation. """
doubledollar = re.compile(ur"\$\$([^$]+)\$\$")
singledollar = re.compile(ur"(?<![\$])\$([^$]+)\$(?!\$)")