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
| (require 'package) ;; You might already have this line | |
| (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
| (not (gnutls-available-p)))) | |
| (url (concat (if no-ssl "http" "https") "://melpa.org/packages/"))) | |
| (add-to-list 'package-archives (cons "melpa" url) t)) | |
| (when (< emacs-major-version 24) | |
| ;; For important compatibility libraries like cl-lib | |
| ) | |
| ;; (package-initialize) ;; You might already have this line |
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
| """ | |
| Implementation of the Lempel–Ziv–Storer–Szymanski algorithm, ported from the | |
| C implementation by Haruhiko Okumura | |
| https://oku.edu.mie-u.ac.jp/~okumura/compression/lzss.c | |
| Public Domain | |
| """ | |
| class LZSSBase(object): | |
| def __init__(self, infile, outfile, EI=11, EJ=4, P=1, N=0, F=0, rless=0, init_chr=b' '): | |
| self.infile = infile |