This file contains 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
<!-- iPhone SPLASHSCREEN--> | |
<link href="/img/ios/iphone-splash.jpeg" media="screen and (max-device-width: 320px)" rel="apple-touch-startup-image"> | |
<!-- iPhone (Retina) SPLASHSCREEN--> | |
<link href="/img/ios/[email protected]" media="(device-height: 480px) and (-webkit-min-device-pixel-ratio: 2)" rel="apple-touch-startup-image"> | |
<!-- iPhone 5 SPLASHSCREEN --> | |
<link href="/img/ios/iphone5-splash.jpeg" media="(device-height: 568px) and (-webkit-min-device-pixel-ratio: 2)" rel="apple-touch-startup-image"> | |
<!-- iPad (portrait) SPLASHSCREEN--> | |
<link href="/img/ios/ipad-portrait-splash.jpeg" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" rel="apple-touch-startup-image"> | |
<!-- iPad (landscape) SPLASHSCREEN--> |
This file contains 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
<!doctype html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<link rel="stylesheet" href="style.css"> | |
<script src="jquery-1.6.2.min.js"></script> | |
<script defer src="script.js"></script> | |
</head> | |
<body id="body"> |
This file contains 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 <UIKit/UIKit.h> | |
@class WebViewControllerDelegate; | |
@interface WebViewController : UIViewController <UIWebViewDelegate> | |
@property (nonatomic, strong) UIWebView *webView; | |
@property (nonatomic, strong) WebViewControllerDelegate *functionDelegate; | |
-(void)loadPageWithURL:(NSString *)url; | |
-(void)loadPageFromFile:(NSString *)html; |
This file contains 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
/** | |
* WebViewController is responsible for all | |
* messages that can be used in HTML | |
*/ | |
@class WebViewController; | |
@interface WebViewControllerDelegate : NSObject <UINavigationControllerDelegate, UIImagePickerControllerDelegate> | |
@property (nonatomic, weak) WebViewController *webViewController; |
This file contains 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 <UIKit/UIKit.h> | |
#import "WebViewController.h" | |
@interface ViewController : WebViewController | |
@end |
This file contains 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
CXX= g++ | |
CXXFILES= pysmilebridge.cpp | |
CXXINTERMEDIATE= pysmilebridge.o | |
CXXOUTPUTLIBS= libpysmilebridge.so | |
CXXFLAGS= -O3 -DNDEBUG -ffast-math -Wall -fPIC | |
LIBS = -L/path/to/smile/ -lsmile | |
all: lib | |
lib: |
This file contains 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
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | |
int timesOpened = [defaults integerForKey:@"timesOpened"]; | |
NSLog(@"App has been opened %d times", timesOpened); | |
if(timesOpened >= 4){ | |
[RFRateMe showRateAlert]; | |
} | |
[defaults setInteger:(timesOpened+1) forKey:@"timesOpened"]; | |
[defaults synchronize]; |
This file contains 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
- (void)setupShadowForView:(UIView *)view { | |
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:view.frame cornerRadius:10]; | |
CALayer *viewLayer = view.layer; | |
[viewLayer setShadowColor:[UIColor blackColor].CGColor]; | |
[viewLayer setShadowOpacity:1.0f]; | |
[viewLayer setShadowRadius:10.0f]; | |
[viewLayer setShadowPath:[path CGPath]]; | |
} |
This file contains 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
angular.module('appModule') | |
//app initialization | |
.constant('MY_CONFIG', {}) | |
.config(['MY_CONFIG', function(MY_CONFIG){ | |
var scripts = document.getElementsByTagName('script'); | |
for (var i = 0; i < scripts.length; i++) { | |
var script = scripts[i]; | |
if(script.type === 'text/preloaded'){ | |
var data = JSON.parse(script.innerHTML); | |
angular.extend(MY_CONFIG, data); |
This file contains 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
<html> | |
<head> | |
<script type="text/preloaded">{"preloaded":true}</script> | |
</head> | |
<body> | |
<div ng-app="appModule"></div> | |
</body> | |
</html> |
OlderNewer