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
Segue | |
- (void)perform { | |
self.contentController.modalPresentationStyle = UIModalPresentationCustom; | |
self.contentController.transitioningDelegate = self.tabBarController; | |
// Orientation works properly. | |
// [self.tabBarController addChildViewController:self.contentController]; | |
// self.contentController.view.frame = self.tabBarController.tabContentView.bounds; | |
// [self.tabBarController.tabContentView addSubview:self.contentController.view]; |
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)viewDidLoad { | |
/* Some code */ | |
self.navigationController.viewControllers = [NSArray array]; | |
/* Some code */ | |
self.navigationController.viewControllers = [NSArray array]; | |
} |
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
+ (NSArray*)eventsGroupedByDay:(NSArray*)events { | |
return [HistoryManager events:events groupedByDateComponents:(NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit)]; | |
} | |
+ (NSArray*)eventsGroupedByWeek:(NSArray*)events { | |
return [HistoryManager events:events groupedByDateComponents:(NSWeekCalendarUnit|NSMonthCalendarUnit|NSYearCalendarUnit)]; | |
} | |
+ (NSArray*)events:(NSArray*)events groupedByDateComponents:(NSUInteger)dateComponents { | |
NSCalendar *gregorian = [[NSCalendar alloc] |
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 <Foundation/Foundation.h> | |
typedef enum Gender { | |
Male, | |
Female | |
} Gender; | |
const char* genderNames[] = { | |
"Male", | |
"Female" |
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
ajhagjsfg |
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
ajhagjsfg |
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
#!/bin/bash | |
FILE_PATH=~/allFiles.txt | |
USER=apple | |
PASSWORD=qwerty102 | |
SERVER=ftp://flighttest.me/ | |
# root | |
cd / | |
# save list to 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
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification | |
{ | |
// Initalize our http server | |
httpServer = [[HTTPServer alloc] init]; | |
[httpServer setType:@"_http._tcp."]; //Bounjour | |
[httpServer setPort:12345]; | |
[httpServer setConnectionClass:[HTTPRouter class]]; // User router | |
//Setup some sample routes |
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
// | |
// HTTPRouter.h | |
// DynamicServer | |
// | |
// Created by Zachry Thayer on 5/9/12. | |
// Copyright (c) 2012 Zachry Thayer. All rights reserved. | |
// | |
#import "HTTPConnection.h" | |
#import "HTTPMessage.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
7:40:39 PM Jack Perry: Soup | |
7:40:49 PM Zachry Thayer: Nothx | |
7:42:48 PM Zachry Thayer: How ya doin? | |
7:44:15 PM Jack Perry: Cock | |
7:44:26 PM Zachry Thayer: you are doing cock? | |
7:44:29 PM Zachry Thayer: See, I knew it. | |
7:49:53 PM Jack Perry: I wish it was your cock 😘 | |
7:51:52 PM Zachry Thayer: o.o | |
7:52:33 PM Jack Perry: Don't act like you don't want it | |
7:52:57 PM Zachry Thayer: o________________o |
NewerOlder