This file only exists to get the Gist started.
This file contains hidden or 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
#!/usr/local/bin/python3 | |
# | |
# Paul Evans ([email protected] | |
# 6-11 February 2020 | |
# 22 January 2020 | |
# | |
import argparse | |
import math | |
import matplotlib.pyplot as pp | |
import statistics |
This file contains hidden or 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
#!/usr/local/bin/python3 | |
# | |
# Paul Evans ([email protected] | |
# 13-16 February 2020 | |
# | |
import math | |
import matplotlib.pyplot as pp | |
import statistics | |
def regression_slope(data_points): |
This file contains hidden or 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
#!/usr/local/bin/python3 | |
# | |
# Paul Evans ([email protected]) | |
# 24 November 2018 | |
# 8 December 2018 | |
# 9 December 2018 | |
# 10 December 2018 | |
# | |
import Levenshtein | |
import re |
This file contains hidden or 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
#!/usr/bin/python | |
# | |
# Paul Evans ([email protected]) | |
# | |
import re | |
def main(): | |
seite = '' | |
pars = '' | |
number = '' | |
# distinctio = '' |
This file contains hidden or 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
c. 1. | |
Quia necesse est ut quod male reincrescit iterum recidatur de constitutionibus | |
antecessorum nostrorum et nostris quae in illorum et nostris capitulis constitutae sunt | |
ad resecanda mala quae specialiter iterum reemergunt missis et comitibus | |
nostris exequenda proponimus idest ut quando missi vel comites nostri | |
latronem vel aliquem malefactorem vel infidelem nostrum forbannierint hoc | |
nobis in nostro palatio, et alijs missis, et comitibus scire faciant, ut si ad nostram | |
curtem venerit inde faciamus quod nostrum est. Et si de uno missatico | |
vel Comitatu in alium missaticum, vel comitatum fugerit missus vel comes |
This file contains hidden or 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
sealed trait Element | |
case class Tag(name: String, attr: String) extends Element | |
case class Header(text: String) extends Element | |
case class Plain(text: String) extends Element | |
import scala.util.parsing.combinator._ | |
object parse extends RegexParsers { | |
override def skipWhitespace = false | |
def tag: Parser[Tag] = ("<" ~> "\\S+".r <~ "\\s".r) ~ "[^\\s>]+".r <~ ">" ^^ { |