This file contains hidden or 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
| #ifdef DEBUG | |
| # define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
| #else | |
| # define DLog(...) | |
| #endif | |
| #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
| #ifdef DEBUG | |
| # define ULog(fmt, ...) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"%s\n [Line %d] ", __PRETTY_FUNCTION__, __LINE__] message:[NSString stringWithFormat:fmt, ##__VA_ARGS__] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [alert show]; } | |
| #else | |
| # define ULog(...) |
This file contains hidden or 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
| // Hay que añadirlo a additional-methods.js | |
| jQuery.validator.addMethod("horahhmm", function(value, element) { | |
| var res = false; | |
| // Formato hh:mm | |
| res = this.optional(element) || /^\d{2}[:]\d{2}$/.test(value); | |
| var hora = value.split(':'); | |
| var hh = parseInt(hora[0],10); | |
| var mm = parseInt(hora[1],10); |
This file contains hidden or 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 | |
| if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) !== false ) { | |
| mail('tu_direccion@correo.com','Aviso: Googlebot ha visitado tu web','El Googlebot ha visitado tu página: http://tu_dominio.com'. $_SERVER['REQUEST_URI']); | |
| } | |
| ?> |
This file contains hidden or 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
| // Disable the idle timer | |
| [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; | |
| // Or for those who prefer dot syntax: | |
| [UIApplication sharedApplication].idleTimerDisabled = YES; |
This file contains hidden or 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
| // | |
| // UIImageRounded.h | |
| // BDD Restaurantes | |
| // | |
| // Created by Sendoa Portuondo on 03/10/11. | |
| // Copyright 2011 Qbikode Solutions, S.L. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
NewerOlder