Skip to content

Instantly share code, notes, and snippets.

View Hazzamanic's full-sized avatar

Hazzamanic Hazzamanic

View GitHub Profile
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using Orchard.Alias;
using Orchard.ContentManagement;
namespace SomeNamespace.Alias {
public class AliasContentAccessor : IAliasContentAccessor {
ConcurrentDictionary<string, int?> _lookups;
@ndarville
ndarville / diff.mdown
Created July 23, 2012 20:33
Paul Heckel's Diff Algorithm

[Isolating Differences Between Files][paper]

Advantage over Other Algorithms

The diff output is more specific:

[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.

>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.