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
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' |
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
/* *************** | |
** The sidebar as of 6/5/2013 unnecessarily truncates repo names in the repositories sidebar and makes it hard to tell repos | |
** with similar names apart | |
** Add this as a user style for http://github.com and https://github.com | |
*************** | |
*/ | |
.css-truncate-target { | |
overflow: visible; | |
white-space: normal; |
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
// Stylish script for the URL: https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS70APIDiffs/ | |
div.diffReport h2:nth-of-type(3):before { | |
content: " -------- " | |
} | |
div.diffReport h2:nth-of-type(3):after { | |
content: " ---- REMOVED FOR EASY READING --------" | |
} | |
div.diffReport div.headerFile:nth-of-type(11) { | |
display: none; |
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 <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (strong, nonatomic) UILabel *getResponseLabel; | |
@property (strong, nonatomic) UILabel *postResponseLabel; | |
@end |
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 <UIKit/UIKit.h> | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> | |
@property (strong, nonatomic) UIWindow *window; | |
@end |
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
[[NSNotificationCenter defaultCenter] addObserverForName:@"UIKeyboardDidShowNotification" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) { | |
CGRect cursorRect = [self.textView caretRectForPosition:self.textView.selectedTextRange.start]; | |
if(CGRectGetMaxY(cursorRect) > CGRectGetHeight(self.view.frame) - self.topLayoutGuide.length - 216) { | |
[UIView animateWithDuration:1.0f animations:^{ | |
self.textView.contentOffset = CGPointMake(0, 216); | |
} completion:^(BOOL finished) { | |
}]; | |
} | |
}]; | |
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 "AppDelegate.h" | |
#import "ContainerVC.h" | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.rootViewController = [[ContainerVC alloc] init]; |
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
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; | |
// for light navigation item text, or UIBarStyleDefault for dark navigation item text | |
imagePickerController.navigationBar.barStyle = UIBarStyleBlack; | |
// the actual color will be affected by the translucency setting | |
imagePickerController.navigationBar.barTintColor = [UIColor blueColor]; | |
// default is YES, but you could change to NO | |
imagePickerController.navigationBar.translucent = YES; |
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
// | |
// MapViewController.h | |
// MapsCustomInfoWindow | |
// | |
// Created by Jon Friskics on 4/22/14. | |
// Copyright (c) 2014 Jon Friskics. All rights reserved. | |
// | |
#import <UIKit/UIKit.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
#import "TableViewController.h" | |
@interface NSArray (CountForTableView) | |
- (NSInteger)countForTableView; | |
@end | |
@implementation NSArray (CountForTableView) |
OlderNewer