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
<?php | |
$url = $_GET['url']; | |
header("refresh:5;url=$url"); | |
//echo $url; | |
?> | |
<p align=left> | |
<script type="text/javascript"><!-- | |
google_ad_client = "ca-pub-3255541264170057"; | |
/* sky */ | |
google_ad_slot = "5476903356"; |
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
#define IMAGE_WIDTH 320 | |
#define IMAGE_HEIGHT 480 | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
NSArray *photos = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"1.jpg"],[UIImage imageNamed:@"2.jpg"],[UIImage imageNamed:@"3.png"],[UIImage imageNamed:@"4.jpg"], nil]; // TODO – fill with your photos | |
// note that the view contains a UIScrollView in aScrollView |
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
- (NSArray *) fizzBuzzFrom:(unsigned int)from To:(unsigned int) to { | |
int i = from; | |
NSMutableArray *array = [NSMutableArray arrayWithCapacity:to]; | |
while (i <= to) { | |
NSString *string = (++i % 15? (i%5? (i%3 ? [NSString stringWithFormat:@"%d", i] : @"Fizz") : @"Buzz") : @"FizzBuzz"); | |
[array addObject:string]; | |
string = nil; | |
} | |
return array; | |
} |
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
- (void) handlePan:(UIPanGestureRecognizer *) gesture { | |
if ((gesture.state == UIGestureRecognizerStateChanged) || | |
(gesture.state == UIGestureRecognizerStateEnded)) { | |
CGPoint location = [gesture locationInView:[self.tableView superview]]; | |
if (location.x <= (_tableView.frame.size.width / 2) + 40) { | |
if (location.x < _tableView.frame.size.width / 2-70 && isFilterViewShowing) | |
[self.tableView setFrame:CGRectMake(location.x, 0, _tableView.frame.size.width, _tableView.frame.size.height)]; | |
else if (location.x < _tableView.frame.size.width / 2 + 40) |
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
#pragma mark - Transparent Modal View | |
-(void) presentTransparentModalViewController: (UIViewController *) aViewController | |
animated: (BOOL) isAnimated | |
withAlpha: (CGFloat) anAlpha{ | |
self.transparentModalViewController = aViewController; | |
UIView *view = aViewController.view; | |
view.opaque = NO; | |
view.alpha = anAlpha; |
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
- (UIImage *)normalizedImage { | |
if (self.imageOrientation == UIImageOrientationUp) return self; | |
UIGraphicsBeginImageContextWithOptions(self.size, NO, self.scale); | |
[self drawInRect:(CGRect){0, 0, self.size}]; | |
UIImage *normalizedImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
return normalizedImage; | |
} |
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
NSArray *arrayCreate(id firstObject, ...) { | |
NSMutableArray *objects = [NSMutableArray array]; | |
[objects addObject:firstObject]; | |
va_list args; | |
va_start(args, firstObject); | |
id arg; | |
while ((arg = va_arg(args, id))) { | |
if (arg == nil) | |
break; | |
[objects addObject:arg]; |
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
function codeigniter() { | |
git clone https://github.com/EllisLab/CodeIgniter.git "$@" ; | |
} |
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
# Dovecot configuration file | |
# If you're in a hurry, see http://wiki.dovecot.org/QuickConfiguration | |
# "doveconf -n" command gives a clean output of the changed settings. Use it | |
# instead of copy&pasting files when posting to the Dovecot mailing list. | |
# '#' character and everything after it is treated as comments. Extra spaces | |
# and tabs are ignored. If you want to use either of these explicitly, put the | |
# value inside quotes, eg.: key = "# char and trailing whitespace " |
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
html { | |
-webkit-font-smoothing: antialiased; | |
-moz-font-smoothing: antialiased; | |
font-smoothing: antialiased; | |
} |
OlderNewer