Skip to content

Instantly share code, notes, and snippets.

View robrobbins's full-sized avatar

robrobbins robrobbins

  • Coinlist
  • Phoenix, AZ.
  • 21:16 (UTC -07:00)
View GitHub Profile
@robrobbins
robrobbins / gist:7268431
Last active December 27, 2015 04:39
My jshintrc
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : false, // true: Require {} for every new block or scope
@robrobbins
robrobbins / levenshtein.js
Created December 26, 2011 07:06
A (node|common).js module implementation of the Levenshtein Distance Algorithm
// module for calculating the Levenshtein distance between 2 strings
// a matrix to hold the distances
var d = [],
// reusable lengths of the passed in words
lenOne, lenTwo,
// counters
i,j,
// temp equality check
eq;