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
RewriteEngine On | |
# AppCron HTTPS forwarder | |
<If "%{HTTPS} != 'on'"> | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</If> | |
<Else> | |
# Authentication |
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
# AppCron HTTPS forward | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on [NC] | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
var window: NSWindow? | |
func applicationDidFinishLaunching(_ aNotification: Notification) { | |
// Insert code here to initialize your application | |
mainWindowController = MainWindowController() | |
mainWindowController?.showWindow(self) | |
} |
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
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
window = UIWindow(frame: UIScreen.main.bounds) | |
window?.backgroundColor = UIColor.black | |
window?.rootViewController = ViewController() | |
window?.makeKeyAndVisible() |
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
class ACViewController: UIViewController { | |
let frame: CGRect | |
let childViewController: UIViewController | |
var imageView: UIImageView? | |
// MARK: Init | |
init(frame: CGRect) { | |
self.frame = frame |
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 // This File will be read by the wordpress engine, handle with care | |
// ========== AppCron Image Handling ========== | |
// Remove default image sizes | |
function ac_remove_image_sizes( $sizes) { | |
unset( $sizes['thumbnail']); | |
unset( $sizes['medium']); | |
unset( $sizes['large']); |
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 // This File will be read by the wordpress engine, handle with care | |
// =============== Remove some output of the wp_head() function =============== | |
remove_action( 'wp_head', 'wp_generator' ); // Remove the WP version in the generator tag | |
remove_action( 'wp_head', 'feed_links', 2 ); // Remove the links to the general feeds: Post, Comment and Alternate feed | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Remove the links to the extra feeds such as category feeds | |
//remove_action( 'wp_head', 'rsd_link' ); // Remove the link to the Really Simple Discovery service endpoint, EditURI link | |
//remove_action( 'wp_head', 'wlwmanifest_link' ); // Remove the link to the Windows Live Writer manifest file |
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 - | |
#pragma mark Memory Efficient Image Loading | |
+ (UIImage*)imageWithContentsOfFilename:(NSString*)filename | |
{ | |
NSMutableString* path = [NSMutableString stringWithString:[[NSBundle mainBundle] bundlePath]]; | |
[path appendString:@"/"]; | |
[path appendString:filename]; | |
return [UIImage imageWithContentsOfFile: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
#import <QuartzCore/QuartzCore.h> | |
self.view.layer.masksToBounds = NO; | |
self.view.layer.shadowColor = [[UIColor blackColor] CGColor]; | |
// Offset to bottom, left | |
self.view.layer.shadowOffset = CGSizeMake(-1,1); | |
self.view.layer.shadowRadius = 10; | |
self.view.layer.shadowOpacity = 1; |
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)customizeTabBar | |
{ | |
UIImage* tabBarBackground = [UIImage imageNamed:@"tabbar.png"]; | |
[[UITabBar appearance] setBackgroundImage:tabBarBackground]; | |
UIImage* selectionIndicator = [UIImage imageNamed:@"selection-tab.png"]; | |
[[UITabBar appearance] setSelectionIndicatorImage:selectionIndicator]; | |
} |
NewerOlder