Skip to content

Instantly share code, notes, and snippets.

View Iron-Ham's full-sized avatar
💭
Holiday

Hesham Salman Iron-Ham

💭
Holiday
View GitHub Profile
/*
*
* In order to run this:
* Get token to use with Slack API:
* 1. Go to the customize emojis admin page in slack (usually the URL is <instance-name>.slack.com/customize/emoji)
* 2. Open your networks tab and find the request to /api/emoji.adminList
* 3. Check the form data that's submitted and grab the value called "token"
*
* Use token in Slack API to get all emojis:
* 1. Go here: https://api.slack.com/methods/emoji.list/test
@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.