Skip to content

Instantly share code, notes, and snippets.

@interface UIWindow (resize)
-(void)_adjustSizeClassesAndResizeWindowToFrame:(CGRect)frame;
@end
typedef enum _UICustomRes
{
UICustomResiPadTwoThirds,
UICustomResiPadHalf,
UICustomResiPadOneThird,
UICustomResiPhone47,
@OliverLetterer
OliverLetterer / XCDUUID.m
Created January 26, 2013 17:05
With this gist, I, as a total assembly noob, am trying to understand the XCDUUID runtime hack (https://github.com/0xced/NSUUID/blob/1.0.1/NSUUID.m#L167-L221) to be able to use NSUUID on iOS < 6.0.
@implementation XCDUUID
+ (void) load
{
// query runtime if NSUUID class already exists, if so => done
if (objc_getClass("NSUUID"))
{
return;
}
@bjhomer
bjhomer / pov results.txt
Last active December 10, 2015 19:28
Wheel of Time POV scenes by character. (Compiled by @tommetge and @bjhomer. Data from http://www.encyclopaedia-wot.org. Fetched using https://gist.github.com/bjhomer/4489273.)
Rand => 237
Perrin => 153
Egwene => 130
Mat => 115
Elayne => 83
Nynaeve => 61
Min => 35
Faile => 28
Aviendha => 23
Galad => 22