Skip to content

Instantly share code, notes, and snippets.

Chris Ballinger chrisballinger

Block or report user

Report or block chrisballinger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chrisballinger / gist:3352890
Created Aug 14, 2012 — forked from quietcricket/gist:1593632
Fuzzy string match objective-c (Levenshtein Distance Algorithm)
View gist:3352890
-(float)compareString:(NSString *)originalString withString:(NSString *)comparisonString
// Normalize strings
[originalString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
[comparisonString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
originalString = [originalString lowercaseString];
comparisonString = [comparisonString lowercaseString];
// Step 1 (Steps follow description at
chrisballinger / hqx.rb
Created Dec 26, 2011
hqx homebrew installation file
View hqx.rb
require 'formula'
class Hqx < Formula
url ''
homepage ''
sha1 'bf08ae10db6cce4d29c84524ec13a3101d31db6b'
depends_on 'devil'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
chrisballinger / gist:1522224
Created Dec 26, 2011
hqx homebrew installation failure
View gist:1522224
mbp:local chrisbal$ brew install -v hqx
==> Downloading
File already downloaded in /Users/chrisbal/Library/Caches/Homebrew
/usr/bin/tar xf /Users/chrisbal/Library/Caches/Homebrew/hqx-1.1.tar.gz
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/hqx/1.1
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/hqx/1.1
checking for gcc... /usr/bin/llvm-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
You can’t perform that action at this time.