Skip to content

Instantly share code, notes, and snippets.

View AdamRobertsEF's full-sized avatar

Adam Roberts AdamRobertsEF

  • Enigmatic Flare
View GitHub Profile

Keybase proof

I hereby claim:

  • I am AdamRobertsEF on github.
  • I am adam_roberts (https://keybase.io/adam_roberts) on keybase.
  • I have a public key whose fingerprint is CD10 808A 48DA 0D71 4172 F6F8 F72B 524E A5CD 7C9A

To claim this, I am signing this object:

@AdamRobertsEF
AdamRobertsEF / UIImageView+AsyncImageSet.h
Created November 27, 2014 17:07
UIImageView Category, which offloads image decompression onto a background queue, then after decompression sets the image on the main queue.
//
// UIImageView+AsyncImageSet.h
//
// Created by Adam Roberts on 27/11/2014.
// Copyright (c) 2014 Enigmatic Flare Ltd. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@AdamRobertsEF
AdamRobertsEF / Generic Singleton
Last active August 29, 2015 14:07
Autoconfiguring singleton objective-c class method
// Created by Adam Roberts on 13/10/2014 BSD License
// Place in .h file in @interface section
+(instancetype)sharedManager;
// Place in .m file in @implementation section
+(instancetype)sharedManager{
static dispatch_once_t pred;
static id sharedManager = nil;