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
// Kontrola rodného čísla. | |
// @author: Marián Černý | |
private function is_RC_valid($value) { | |
if (!preg_match('@^([0-9][0-9])([0-9][0-9])([0-9][0-9])/?([0-9]{3})([0-9])?$@', $value, $regs)) | |
return false; | |
list($expression, $year, $month, $day, $ext) = $regs; | |
$c = isset($regs[5]) ? $regs[5] : ""; | |
if (strlen($value) == 9) { |
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
# ZFS Backups | |
3 0 * * * root sh /opt/sbin/zfs-backup.sh | |
2 1-23 * * * root sh /opt/sbin/zfs-backup-hourly.sh | |
33 10 9 * * root sh /opt/sbin/zfs-backup-monthly.sh |
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
// | |
// BowlingKataTests.m | |
// BowlingKataTests | |
// | |
// Created by Marián Černý on 22.05.14. | |
// | |
// | |
#import <XCTest/XCTest.h> |
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
@protocol TransparentViewControllerDelegate; | |
@interface TransparentViewController : UIViewController | |
- (instancetype)initWithRootViewController:(UIViewController *)rootViewController; | |
@property (nonatomic, weak) id<TransparentViewControllerDelegate> delegate; | |
@end |