Monthly Archives: June 2012

JSON Parser Library for VB6

VB JSON Parser Library for VB6. VB-JSON is a Visual Basic 6 class library for parsing and emitting JSON (Javascript Object Notation) and can handle nested arrays and objects in the data. It does not rely on the JScript engine … Continue reading

Posted in Uncategorized | Leave a comment

Damerau Levenshtein Algorithm by R.G.

Damerau Levenshtein Algorithm by R.G.. ‘************************************** ‘ Name: Damerau Levenshtein Algorithm ‘ Description:This function returns the ‘ Levenshtein distance capped by the limit ‘ parameter. ‘ By: R.G. ‘ ‘ ‘ Inputs:None ‘ ‘ Returns:None ‘ ‘Assumes:None ‘ ‘Side Effects:None … Continue reading

Posted in Uncategorized | Leave a comment

MySQL Levenshtein and Damerau-Levenshtein UDF’s | sam j levy

MySQL Levenshtein and Damerau-Levenshtein UDF’s | sam j levy. Traditional Levenshtein levenshtein.zip The zip file contains two UDF’s, one by Joshua Drew that comes with original C++ source code, a Win32 (compiled on Server 2008 with MySQL 5.5, Windows SDK … Continue reading

Posted in Uncategorized | Leave a comment

FuzzyMatch in VBA/VBScript

FuzzyMatch in VBA/VBScript/VB6. Function FuzzyMatch(ByVal string1 AsString, _                     ByVal string2 AsString, _                     Optional min_percentage AsLong=70)AsString Dim i AsLong, j AsLong … Continue reading

Posted in Uncategorized | Leave a comment

Levenshtein Distance in VBA

Levenshtein Distance in VBA/Excel Option Explicit PublicFunction Levenshtein(s1 AsString, s2 AsString) Dim i AsInteger Dim j AsInteger Dim l1 AsInteger Dim l2 AsInteger Dim d()AsInteger Dim min1 AsInteger Dim min2 AsInteger l1 = Len(s1) l2 = Len(s2) ReDim d(l1, l2) … Continue reading

Posted in Uncategorized | Leave a comment

The Imgur API – Examples

The Imgur API – Examples.

Posted in Uncategorized | Leave a comment

Escaping HTML in JavaScript

Escaping HTML in JavaScript function makeSafe(text) { return text.replace(/[&”‘`]/g, function (chr) { return ‘&#’ + chr.charCodeAt(0) + ‘;’; }); }; function makeSafe(text) { return text.replace(/\W/g, function (chr) { return ‘&#’ + chr.charCodeAt(0) + ‘;’; }); }; javascript.

Posted in Uncategorized | Leave a comment