Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TeX for Telegram | |
// @namespace https://ncordon.github.io/ | |
// @description Allows LaTeX messages in Telegram Desktop | |
// @version 1 | |
// @include https://web.telegram.org/* | |
// @grant none | |
// @license WTFPL | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'cl) | |
(defun org-get-header-list (&optional buffer) | |
"Get the headers of an org buffer as a flat list of headers and levels. | |
Buffer will default to the current buffer. | |
Thanks to http://emacs.stackexchange.com/questions/17622/how-can-i-walk-an-org-mode-tree | |
for this function! | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE RecordWildCards, Arrows #-} | |
import Numeric | |
import Data.Char | |
import Control.Monad | |
import Data.Monoid ((<>)) | |
import Data.List (nub, sort, reverse) | |
data RepeatBounds = RB |