Skip to content

Instantly share code, notes, and snippets.

View amannayak0007's full-sized avatar
🏠
Working from home

Aman Jain amannayak0007

🏠
Working from home
View GitHub Profile
- (void)viewDidLoad {
[super viewDidLoad];
NSString *postTitle = [NSString stringWithFormat:@"<H1>%@</H1>",
post.title];
NSString *html = [postTitle stringByAppendingString:post.description];
[postBody loadHTMLString:html baseURL:nil];
}
NSURL *URL = [NSURL URLWithString: [self.url stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
NSString *html = [NSString stringWithContentsOfURL:URL encoding:NSUTF8StringEncoding error:nil];
[self.webView loadHTMLString:html baseURL:Nil];
#import "CollectionViewController.h"
#import "CollectionViewCell.h"
#import "DetailViewController.h"
#import "NSDate+NVTimeAgo.h"
#import "UIImageView+AFNetworking.h"
@interface CollectionViewController ()
{
#import "CollectionViewController.h"
#import "CollectionViewCell.h"
#import "NSDate+NVTimeAgo.h"
#import <SDWebImage/UIImageView+WebCache.h>
@interface CollectionViewController ()
{
NSUInteger currentIndex;
MWFeedInfo *feedInfo;
#import "NNPDetailViewController.h"
@interface NNPDetailViewController ()
- (void)configureView;
- (void)setCompletedImage:(NSInteger)completed;
- (void)updateToDoObject:(ToDo *)object;
@property (weak, nonatomic) IBOutlet UIDatePicker *reminderDate;
<?php
// Create connection
$con=mysqli_connect("localhost","username","password","dbname");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
#import "ViewController.h"
#import "NNPMasterViewController.h"
@interface ViewController ()
{
NSInteger success;
}
@end
@amannayak0007
amannayak0007 / gist:4483feb51c20e7247ee2
Last active August 29, 2015 14:14
NNPMasterViewController
#import <UIKit/UIKit.h>
@interface NNPMasterViewController : UITableViewController
{
NSInteger item;
}
@property (assign,nonatomic) NSInteger item;
@end
#import "MasterViewController.h"
#import "JSONModelLib.h"
#import "KivaFeed.h"
@interface MasterViewController () {
KivaFeed* _feed;
}
@end