emacs

levenshtein.el

Submitted by reeses on Sun, 2006-03-26 22:06. |

This fell out of another project I'm working on. I needed to calculate a string edit distance for sets of strings, and I settled on Levenshtein because I'm lazy, and it was the only algorithm I knew and didn't have to learn. Funny how that works out. This is not at all optimised, and exhibits some of my lisp programming peculiarities, so be forewarned. Tested on XEmacs 21.4.

uniq.el

Submitted by reeses on Sun, 2006-03-26 22:01. |

This is an elisp script that will remove duplicate lines from the selected region. Behavior can either mimic uniq on Unix or remove all duplicate lines from an unsorted file. Tested on both GNU Emacs 20.7.1 and XEmacs 21.4.

;;; uniq.el --- Remove duplicate lines

;; Copyright (C) 2003 Art Taylor

;; Filename: uniq.el
;; Author: Art Taylor 
;; Version: 1.0
;; Keywords: uniq, duplicates

;; [Commentary]
;;
;; Remove duplicate lines from a region.  uniq-region behaves in a
;; fashion similar to the Unix utility 'uniq', only removing a line

  

check-url-update.el

Submitted by reeses on Sun, 2006-03-26 21:51. |

This is an elisp script that will sort-of duplicate the functionality of sites such as http://www.changedetect.com, which suck. Don't use them. Use this script, and when you get sick of it in twenty minutes, write a real program, with real threading, and a real UI, and then give me a copy. Yes, I can hear you OmniWeb types laughing at the rest of us pathetic souls. Tested on XEmacs 21.4.

Addendum: It was suggested to me by one of the employees of the aforementioned service that I was off on a "mindless rant" regarding their suction, and was asked to give evidence. I went to the site to start a list, and was greeted with a MSSQL server error. I don't think I need to continue. :-)