Skip to content

Instantly share code, notes, and snippets.

View WJachowicz's full-sized avatar

Wojciech Jachowicz WJachowicz

  • Mobica
  • Łódź
View GitHub Profile
@implementation VCCMultilineLabel
- (id)init
{
if ((self = [super init])) {
self.numberOfLines = 0;
self.lineBreakMode = NSLineBreakByWordWrapping;
}
return self;
}
@WJachowicz
WJachowicz / install_postgis_osx.sh
Created October 9, 2012 06:25 — forked from juniorz/install_postgis_osx.sh
Installing PostGIS on Mac OS X and Ubuntu
# Some good references are:
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
@WJachowicz
WJachowicz / gist:2935503
Created June 15, 2012 08:57
Trim whitespaces from NSString
NSString * text = @" some text ";
text = [text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]