Skip to content

Instantly share code, notes, and snippets.

View kincade71's full-sized avatar
📱
Mobile

Richard Robinson kincade71

📱
Mobile
View GitHub Profile
@kincade71
kincade71 / .htaccess
Created March 3, 2015 03:53
My CI Htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|img|robots\.txt|css|js|font|resume|blog|human\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
@kincade71
kincade71 / Simple Image View Alert
Created December 4, 2014 19:06
Simple Image View Alert that begins hidden, shows then fades after interval.
_imageView.hidden = NO;
_imageView.alpha = 1.0f;
// Then fades it away after 2 seconds (the cross-fade animation will take 0.5s)
[UIView animateWithDuration:0.5 delay:0.5 options:0 animations:^{
// Animate the alpha value of your imageView from 1.0 to 0.0 here
_imageView.alpha = 0.0f;
} completion:^(BOOL finished) {
// Once the animation is completed and the alpha has gone to 0.0, hide the view for good
_imageView.hidden = YES;
}];