Skip to content

Instantly share code, notes, and snippets.

void SFFUserEventHandlerImpl::pageMoreComments(const feedsdk::FeedElementViewmodel &feedElementViewModel,
const std::shared_ptr<feedsdk::LayoutFactoryDelegate> &layoutDelegate) {
//_layoutDelegate = layoutDelegate;
// auto feedElementIdentifier = feedElementViewModel.identifier;
// auto dataManager = make_shared<FSFeedItemDetailDataManager>(_cacheService);
// auto commentPage = dataManager->getCommentPageForFeedElementWithId(feedElementIdentifier);
// auto commentAction = _feedAPI->create_comment_action(shared_from_this());
// commentAction->getCommentNextPage(feedElementIdentifier, commentPage->next_page_url, dataManager);
}

(use-package magit-find-file :ensure t :after magit :config (with-eval-after-load ‘projectile (defadvice projectile-current-project-files (around jafo/pcpf activate) “Use magit-find-file-files which is faster.” (if (magit-git-repo-p (projectile-project-root)) (setq ad-return-value (magit-find-file-files))

@threeve
threeve / keybase.md
Last active March 25, 2016 05:24
keybase verification

Keybase proof

I hereby claim:

  • I am threeve on github.
  • I am threeve (https://keybase.io/threeve) on keybase.
  • I have a public key ASAzZWJpQMo9dcwosc5MWKA6WO7dEvVkWJhjBFWBDURUZwo

To claim this, I am signing this object:

#import <Foundation/Foundation.h>
@interface Foo : NSObject
@end
@implementation Foo
- (NSString*)description;
{
return @"this\nhas\nnewlines";
#import <UIKit/UIKit.h>
@interface ZMBViewController : UIViewController
@end
@protocol SignalDelegate
- (void)signalDidChange:(Signal*)signal; // change to suit your needs
@end
@interface Signal
@property id<SignalDelegate> delegate;
...
@end
#import "RAScrollClipView.h"
@implementation RAScrollClipView
@synthesize scrollView;
- (void)dealloc;
{
self.scrollView = nil;
#import "AutoAutoViewController.h"
#define RAScopeAutorelease() \
NSAutoreleasePool *$ra_pool##__LINE__ __attribute__((cleanup($ra_scopeDrainAutoreleasePool))) = [NSAutoreleasePool ra_pool]; (void)$ra_pool##__LINE__
void $ra_scopeDrainAutoreleasePool( NSAutoreleasePool **pool )
{
[*pool drain];
}
@threeve
threeve / RATopAlignedLabel.h
Created April 7, 2011 03:02
UILabel subclass with text aligned at top
#import <UIKit/UIKit.h>
@interface RATopAlignedLabel : UILabel
@end
var op = NSBlockOperation.Create (delegate {
Console.WriteLine("this happened");
});
NSOperationQueue.MainQueue.AddOperation (op);