Skip to content

Instantly share code, notes, and snippets.

@darkseed
darkseed / NSString+Soundex.h
Created October 4, 2011 14:55
Objective-C Soundex
@interface NSString (Soundex)
- (NSString*) soundexString;
- (BOOL) soundsLikeString:(NSString*) aString;
@end
@mikeabdullah
mikeabdullah / gist:867275
Created March 12, 2011 14:35
Log errors to the console before they're presented
- (NSError *)application:(NSApplication *)theApplication
willPresentError:(NSError *)error
{
// Log the error to the console for debugging
NSLog(@"Application will present error:\n%@", [error description]);
return error;
}
@sparanoid
sparanoid / stacey-on-nginx.conf
Created December 22, 2010 06:08
Runing Stacey on nginx
server {
listen 80;
server_name sparanoid.com www.sparanoid.com;
server_name_in_redirect off;
access_log /srv/www/sparanoid.com/logs/access.log;
error_log /srv/www/sparanoid.com/logs/error.log;
location / {
root /srv/www/sparanoid.com/public_html;