- メインスピーカー:マシューさん(@matthewmccull)
- サブスピーカー:ジョンさん(@johndbritton)
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。
CGFloat BNRTimeBlock (void (^block)(void)); |
- (UIViewController *)topViewController{ | |
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
} | |
- (UIViewController *)topViewController:(UIViewController *)rootViewController | |
{ | |
if (rootViewController.presentedViewController == nil) { | |
return rootViewController; | |
} | |
def split_str(s, n): | |
"split string by its length" | |
length = len(s) | |
return [s[i:i+n] for i in range(0, length, n)] | |
if __name__ == '__main__': | |
print(split_str('qwertyuiop', 2)) | |
print(split_str('qwertyuiop', 3)) |
+(void)generateKeyPairWithPublicTag:(NSString *)publicTagString privateTag:(NSString *)privateTagString { | |
NSMutableDictionary *privateKeyAttr = [[NSMutableDictionary alloc] init]; | |
NSMutableDictionary *publicKeyAttr = [[NSMutableDictionary alloc] init]; | |
NSMutableDictionary *keyPairAttr = [[NSMutableDictionary alloc] init]; | |
NSData *publicTag = [publicTagString dataUsingEncoding:NSUTF8StringEncoding]; | |
NSData *privateTag = [privateTagString dataUsingEncoding:NSUTF8StringEncoding]; | |
SecKeyRef publicKey = NULL; | |
SecKeyRef privateKey = NULL; |
// layout file | |
<body> | |
<div class="container"> | |
<%= flash_messages %> | |
<%= yield %> | |
</div><!-- /container --> | |
</body> |
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist | xargs -IFILE defaults write FILE DVTPlugInCompatibilityUUIDs -array-add A2E4D43F-41F4-4FB9-BB94-7177011C9AED |
#import "UILabel+TDKUtil.h" | |
@implementation UILabel (TDKUtil) | |
- (void)setLineHeightMultiple:(CGFloat)lineHeightMultiple | |
{ | |
NSMutableAttributedString *attributedString = [self.attributedText mutableCopy]; | |
NSMutableParagraphStyle *paragrahStyle = [NSMutableParagraphStyle new]; | |
paragrahStyle.lineHeightMultiple = lineHeightMultiple; |