Skip to content

Instantly share code, notes, and snippets.

http://schedule.gdconf.com/session/developing-high-performance-games-for-android-presented-by-google/856454
http://schedule.gdconf.com/session/introduction-to-apples-metal-2-for-game-rendering-presented-by-apple-inc/856992
http://schedule.gdconf.com/session/developing-android-games-for-chromebooks-presented-by-google/856654
http://schedule.gdconf.com/session/panel-the-future-of-mobile-esports-presented-by-amazon/856649
http://schedule.gdconf.com/session/fostering-diversity-in-games/852023
Join Room:
```json
{
"caps":{
"ver":"4ArXvj+KpyleAhwHHCoKUPRQRto=Rto=",
"node":"https://stanza.io",
"hash":"sha-1"
},
"muc":{
"affiliation":"none",
@MattFoley
MattFoley / gist:b10d723d23cef47326ba74b4a9f5b90e
Created May 13, 2016 16:38
Pages needed added to integration.
• ios_native/integrate_skillz_sdk/turn_based_implementation
• points to: https://skillz.zendesk.com/hc/en-us/articles/210265093
• ios_native/additional_game_info/single_sign_on
• points to: https://skillz.zendesk.com/hc/en-us/articles/210265053
• best_practices/tournament_types
• points to: https://skillz.zendesk.com/hc/en-us/articles/208691806-Tournament-Types
• unity/ios/integrate_skillz_sdk/turn_based_implementation
• points to: https://skillz.zendesk.com/hc/en-us/articles/210264983
• marmalade/ios/localization/localization
• points to: https://skillz.zendesk.com/hc/en-us/articles/210123573-Adding-support-for-additional-languages-localization-
@MattFoley
MattFoley / gist:133c3e258f9ae30821d8f091e4201fe1
Created April 18, 2016 22:18
Another React Native Crash.
- (RCTSizeComparison)attemptScale:(CGFloat)scale
inStorage:(NSTextStorage *)textStorage
forFrame:(CGRect)frame
{
NSLayoutManager *layoutManager = [textStorage.layoutManagers firstObject];
NSTextContainer *textContainer = [layoutManager.textContainers firstObject];
NSRange glyphRange = NSMakeRange(0, textStorage.length);
[textStorage beginEditing];
[textStorage enumerateAttribute:NSFontAttributeName
@MattFoley
MattFoley / gist:46519178115c4a30864f3796d4f87152
Created April 18, 2016 22:13
React Native Crashing Function
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
__block UIView *hitView;
[_stickyHeaderIndices enumerateIndexesWithOptions:0 usingBlock:^(NSUInteger idx, BOOL *stop) {
UIView *stickyHeader = [self contentView].reactSubviews[idx];
CGPoint convertedPoint = [stickyHeader convertPoint:point fromView:self];
hitView = [stickyHeader hitTest:convertedPoint withEvent:event];
*stop = (hitView != nil);
}];
Error I get:
Class RCTStatusBarManager is implemented in both <App Path> and <Dynamic Framework Path>
One of the two will be used. Which one is undefined.
Did two-level namespacing just not make it's way to dynamic framework iOS, and only functions on OSX?
https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/MachOTopics/1-Articles/executing_files.html
//RN attempts this @ ln686 of RCTConvert.m, imageWithContentsOfFile fails to load the image.
(lldb) po [UIImage imageWithContentsOfFile:@"file:///Users/tfallon/Library/Developer/CoreSimulator/Devices/E2A18017-6069-45C6-BFB2-814E62A3F6DA/data/Containers/Data/Application/3A2FBAD8-BCC9-417E-8644-FAD4551A681C/tmp/genImageFile.png"]
nil
//Image is loaded when I attempt this at a breakpoint on the same line.
(lldb) po [UIImage imageWithContentsOfFile:@"Users/tfallon/Library/Developer/CoreSimulator/Devices/E2A18017-6069-45C6-BFB2-814E62A3F6DA/data/Containers/Data/Application/3A2FBAD8-BCC9-417E-8644-FAD4551A681C/tmp/genImageFile.png"]
<UIImage: 0x7f9f9a41cef0>, {90, 90}
@MattFoley
MattFoley / .md
Last active August 29, 2015 14:26
Upgrade to React Native head

Steps to upgrade to React Native head

  1. Delete your Derived Data and node_modules folders

  2. Reboot your computer dangling symlink

  3. Install io.js.

    nvm install iojs nvm alias default iojs

  4. Update brew

//Rather than defining containerRow as multiple hard coded elements:
containerRow {
backgroundcolor: #ffffff,
opacity 90%,
dropshadow: 4px color: #000000,
corner-radius: 10pt,
}
//We define those one use elements as classes, very simple building blocks:
containerCornerRadiusPrimary: {
@MattFoley
MattFoley / gist:f6af9cf9d87c996fb5a5
Last active August 29, 2015 14:21
React Native Information