This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Relay, { | |
RootContainer, | |
Route | |
} from 'react-relay' | |
class SeasonRoute extends Route { | |
static paramDefinitions = {}; | |
static queries = { | |
currentSeason: () => Relay.QL`query { currentSeason }`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open Script Editor and Export this as an Application | |
// | |
// Then drop a keynote file on it in the Finder and it will properly resize | |
// and rotate everything so the Keynote file becomes usable as a prototype | |
// in the iPhone keynote app | |
// rotateDocument exported function | |
// | |
// Accepts a Keynote document and will rotate | |
// all the slides and elements in the slide 90 degrees |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// AnimationExamplesiPhone | |
// | |
// Created by Eric Allam on 10/05/2014. | |
#import "AppDelegate.h" | |
#pragma mark - UIColor Additions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Implements the solution for solving "snapback" found in | |
// Chapter 8 of "iOS Core Animation Advanced Techniques" by Nick Lockwood | |
// without the need to use setDisableActions: to override the implicit animation, | |
// instead passing in the implicit animation key in addAnimation:forKey: | |
// With setDisableActions | |
- (void)applyBasicAnimation:(CABasicAnimation *)animation toLayer:(CALayer *)layer | |
{ | |
//set the from value (using presentation layer if available) | |
animation.fromValue = [layer.presentationLayer ?: layer valueForKeyPath:animation.keyPath]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma message("Use new block-based API once rdar://15641270 has been fixed") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UI- and App Frameworks Evangelist - Jake Behrens, [email protected], twitter: @Behrens | |
- What's new in Cocoa | |
- Accessibility in iOS | |
- Building User Interfaces for iOS 7 | |
- Getting Started with UIKit Dynamics | |
- What's new in Cocoa Touch | |
- What's New With Multitasking | |
- Best Practices for Cocoa Animation | |
- Improving Power Efficiency with App Nap | |
- Introducing Text Kit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syscall::open*:entry | |
/execname == "locationd"/ | |
{ | |
printf("locationd open %s\n", copyinstr(arg0)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <CoreLocation/CoreLocation.h> | |
extern CLLocationDegrees kMockedLatitude; | |
extern CLLocationDegrees kMockedLongitude; | |
@interface CLLocationManager (MockingLocation) | |
+ (BOOL)custom_locationServicesEnabled; | |
+ (CLAuthorizationStatus)custom_authorizationStatus; | |
-(void)custom_startUpdatingLocation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a comment | |
/* This comment is | |
* several lines long. | |
* since it uses the CSS comment syntax, | |
* it will appear in the CSS output. */ | |
@import "foo.scss" | |
@import "foo.css" |