This Does Not Work
$\begin{bmatrix}X\Y\end{bmatrix}$
This Does
See how using the math "language" for syntax renders what you want.
This is the code:
```math
\begin{bmatrix}X\\Y\end{bmatrix}
This Does Not Work
$\begin{bmatrix}X\Y\end{bmatrix}$
This Does
See how using the math "language" for syntax renders what you want.
This is the code:
```math
\begin{bmatrix}X\\Y\end{bmatrix}
| """ | |
| lark_tree_to_json.py | |
| How can I convert the output of lark().parse() into JSON #618 | |
| https://github.com/lark-parser/lark/issues/618 | |
| Lark parser, LALR & Earley, Python | |
| https://github.com/lark-parser/lark | |
| https://lark-parser.readthedocs.io/en/latest/ | |
| https://pypi.org/project/lark-parser/ |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}| import array | |
| import smc.freeimage as fi | |
| from PIL import Image | |
| import numpy as np | |
| import cv2 | |
| def gamma_correction(a, gamma): | |
| return np.power(a, 1/gamma) | |
| def load_hdr(file): |
| import math | |
| class Vector(object): | |
| def __init__(self, *args): | |
| """ Create a vector, example: v = Vector(1,2) """ | |
| if len(args)==0: self.values = (0,0) | |
| else: self.values = args | |
| def norm(self): | |
| """ Returns the norm (length, magnitude) of the vector """ |
| #!/usr/bin/env ruby | |
| def e_sh(str) | |
| str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF\n])/n, '\\').gsub(/\n/, "'\n'").sub(/^$/, "''") | |
| end | |
| def find_headers(lines) | |
| in_headers = false | |
| lines.each_with_index {|line, i| | |
| if line =~ /^\S[^\:]+\:( .*?)?$/ |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223