This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI: | |
sudo yum install gcc-c++ | |
sudo yum install openssl-devel | |
wget http://nodejs.org/dist/node-v0.4.2.tar.gz (Pick the stable version available) | |
tar -zxvf node-v0.4.2.tar.gz | |
cd node-v0.4.2 | |
export JOBS=2 | |
./configure | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id<MKOverlay>)overlay | |
{ | |
if ([overlay isKindOfClass:[MKPolygon class]]) | |
{ | |
MKPolygonView* aView = [[MKPolygonView alloc]initWithPolygon:(MKPolygon*)overlay]; | |
aView.fillColor = [[UIColor cyanColor] colorWithAlphaComponent:0.2]; | |
aView.strokeColor = [[UIColor blueColor] colorWithAlphaComponent:0.7]; | |
aView.lineWidth = 3; | |
return aView; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use: for testing against email regex | |
ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
List of Valid Email Addresses | |
email@example.com | |
firstname.lastname@example.com | |
email@subdomain.example.com | |
firstname+lastname@example.com |