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
/** Extended moon phase utils | |
Ported from https://github.com/solarissmoke/php-moon-phase/blob/master/Solaris/MoonPhase.php | |
Maksym Huk 2017 | |
*/ | |
import Foundation | |
import SwiftMoment | |
class Moon { | |
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
/** Moon phase utils. | |
Ported from https://github.com/mourner/suncalc | |
Maksym Huk 2017 | |
*/ | |
class Moon { | |
let rad = M_PI / 180 | |
let daySeconds: TimeInterval = 60 * 60 * 24 |
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
// | |
// AsyncURLConnection.h | |
// | |
// Created by Maksym Huk on 10/31/12. | |
// Copyright (c) 2012 Maksym Huk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
// Send request with exact timeout |
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
// | |
// NSString+Hash.h | |
// | |
// Created by Maksym Huk on 10/10/12. | |
// Copyright (c) 2012 Maksym Huk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSString (Hash) |
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
// | |
// UISegmentedControl+Background.h | |
// | |
// Created by Maksym Huk on 4/3/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UISegmentedControl (Background) |
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
// | |
// Localize.h | |
// | |
// Created by Maksym Huk on 3/31/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#define LS(...) NSLocalizedString((__VA_ARGS__), nil) |
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
// | |
// AppDirectories.h | |
// | |
// Created by Maksym Huk on 3/31/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
NSString *AppendToDocumentsDirectory(NSString *path); |
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
// | |
// NSAttributedString+Compose.h | |
// | |
// Created by Maksym Huk on 3/31/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSAttributedString (Compose) |
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
// | |
// NSString+DateFormatter.h | |
// | |
// Created by Maksym Huk on 3/31/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#define DateFormatDate @"yyyy-MM-dd" |
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
// | |
// MBProgressHUD+ActivityBlock.h | |
// | |
// Created by Maksym Huk on 4/1/13. | |
// Copyright (c) 2013 Maksym Huk. All rights reserved. | |
// | |
#import "MBProgressHUD.h" | |
@interface MBProgressHUD (ActivityBlock) |
NewerOlder