Skip to content

Instantly share code, notes, and snippets.

View seanicus's full-sized avatar

Sean Roberts seanicus

  • Black Hills, South Dakota
View GitHub Profile
@markgukov
markgukov / Installing Node on AWS Linux AMI
Created March 31, 2011 18:37
Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI
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
@ebinnion
ebinnion / .m file
Created January 4, 2012 16:08
Add polygon overlay to mapkit iOS
- (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;
}
@cjaoude
cjaoude / gist:fd9910626629b53c4d25
Last active July 22, 2024 11:08
Test list of Valid and Invalid Email addresses
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