This file contains hidden or 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 "UIImage+H568.h" | |
| #include <objc/runtime.h> | |
| @implementation UIImage (H568) | |
| + (void)load { | |
| if ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) && | |
| ([UIScreen mainScreen].bounds.size.height > 480.0f)) { | |
| method_exchangeImplementations(class_getClassMethod(self, @selector(imageNamed:)), | |
| class_getClassMethod(self, @selector(imageNamedH568:))); |
This file contains hidden or 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
| DUETSHTTPClient *httpClient = [DUETSHTTPClient sharedHTTPClient]; | |
| NSMutableURLRequest *request = [httpClient requestWithMethod:@"POST" | |
| path:@"/tokens" | |
| parameters:params]; | |
| AFJSONRequestOperation *operation = [[AFJSONRequestOperation alloc] initWithRequest:request]; | |
| [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { | |
| if ([self validateRequest:operation.response]) { | |
| } |
This file contains hidden or 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)sendSMSToRecipients:(NSArray *)recipientArray SMSString:(NSString *)smsString intoVC:(UIViewController *)vc { | |
| _vc = vc; | |
| MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init]; | |
| if([MFMessageComposeViewController canSendText]) | |
| { | |
| controller.body = smsString; | |
| controller.recipients = recipientArray; | |
| controller.messageComposeDelegate = self; | |
| [vc presentViewController:controller animated:YES completion:^{ |
This file contains hidden or 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)getCellContacts:(void (^)(NSArray *contactArray))successBlock { | |
| ABAddressBookRef myAddressBook = ABAddressBookCreate(); | |
| ABAddressBookRequestAccessWithCompletion(myAddressBook, ^(bool granted, CFErrorRef error) { | |
| NSArray *allPeople = (__bridge NSArray *)ABAddressBookCopyArrayOfAllPeople(myAddressBook); | |
| NSMutableArray *contactList = [[NSMutableArray alloc]initWithCapacity:[allPeople count]]; | |
| [allPeople enumerateObjectsUsingBlock:^(id record, NSUInteger idx, BOOL *stop) { | |
| CFTypeRef phoneProperty = ABRecordCopyValue((__bridge ABRecordRef)record, kABPersonPhoneProperty); | |
| NSArray *phones = (__bridge NSArray *)ABMultiValueCopyArrayOfAllValues(phoneProperty); |
This file contains hidden or 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 java.io.*; | |
| import java.util.Arrays; | |
| import java.util.ArrayList; | |
| class FileRead | |
| { | |
| public static void main(String args[]) | |
| { | |
| try{ | |
| FileInputStream fstream = new FileInputStream("textfile.txt"); |
This file contains hidden or 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
| .sprite-photoupload-roll{ background-position: 0 0; width: 100px; height: 25px; } | |
| .sprite-photoupload{ background-position: 0 -30px; width: 100px; height: 25px; } | |
| .sprite-videoupload-roll{ background-position: 0 -60px; width: 100px; height: 25px; } | |
| .sprite-videoupload{ background-position: 0 -90px; width: 100px; height: 25px; } | |
| .sprite-weblink-roll{ background-position: 0 -120px; width: 100px; height: 25px; } | |
| .sprite-weblink{ background-position: 0 -150px; width: 100px; height: 25px; } |
This file contains hidden or 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
| CREATE TABLE `tbl_activityfeed` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `activitytype` varchar(10) DEFAULT NULL, | |
| `userid` int(11) DEFAULT NULL, | |
| `commentpageid` int(11) DEFAULT NULL, | |
| `goal_id` int(11) DEFAULT NULL, | |
| `activity_date` timestamp NULL DEFAULT NULL, | |
| PRIMARY KEY (`id`) | |
| ) |
NewerOlder