I hereby claim:
- I am nitewriter on github.
- I am nitewriter (https://keybase.io/nitewriter) on keybase.
- I have a public key ASAnHGBJ2RcNOvNKYS9bSG-7YHw3eBo-SlxFYd6vRyF9pAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Markdown change log for the last 20 commits | |
| CHANGE_LOG=$(git log --pretty=format:"* %s" --no-merges --no-color -n 20) | |
| echo CHANGE_LOG | |
| curl \ | |
| -F "status=2" \ | |
| -F "notify=1" \ | |
| -F "notes=$CHANGE_LOG" \ |
| #import "NSData+Hash.h" | |
| #import <CommonCrypto/CommonDigest.h> | |
| @implementation NSData (Hash) | |
| - (NSData *)SHA1 | |
| { | |
| unsigned char hash[CC_SHA1_DIGEST_LENGTH]; | |
| if (CC_SHA1([self bytes], [self length], hash)) | |
| { |
| - (void)viewDidAppear:(BOOL)animated | |
| { | |
| [super viewDidAppear:animated]; | |
| NSString *path = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]; | |
| NSData *HTMLData = [NSData dataWithContentsOfFile:path]; | |
| NSString *HTMLString = [[[NSString alloc] initWithData:HTMLData encoding:NSUTF8StringEncoding] autorelease]; | |
| NSString *baseURLString = [[NSBundle mainBundle] resourcePath]; | |
| NSURL *baseURL = [NSURL fileURLWithPath:baseURLString isDirectory:YES]; |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| // Override point for customization after application launch. | |
| // Create a new window and assign directly to provided iVar | |
| _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| // Implementation of new init method | |
| MyCustomNavigationBar *navigationBar = [[MyCustomNavigationBar alloc] initWithFrame:CGRectZero]; | |
| UINavigationController *navigationController = [[UINavigationController alloc] initWithCustomNavigationBar:navigationBar]; |
| //... | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| // Override point for customization after application launch. | |
| // Create a new window and assign directly to provided iVar | |
| _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| // Set background for window if desired |