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
xcode-select -s /Applications/Xcode.app/Contents/Developer |
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
unbind C-b | |
set -g prefix C-'\' | |
bind C-'\' send-prefix |
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 the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Resize Bindings | |
bind right:alt resize +10% +0 | |
bind left:alt resize -10% +0 |
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
#!/bin/bash | |
## A simple shell script to build Zombie Hero Project from command line | |
## It involves using the following programs | |
## | |
## 1. xcodebuild | |
## 2. ios-deploy | |
## | |
## Commands support (*specific for this script and project) | |
## |
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
// | |
// UnityNativeInterface.m | |
// Unity-iPhone | |
// | |
// Created by Sam Izzo on 30/05/14. | |
// | |
// | |
#import "UnityInterface.h" | |
#import "UnityNativeInterface.h" |
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 once | |
@class UnityView; | |
@interface UnityViewControllerBase : UIViewController | |
{ | |
} | |
- (BOOL)shouldAutorotate; | |
- (BOOL)prefersStatusBarHidden; |
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
// Prepare by adding to the top window. | |
if(!self.superview){ | |
NSEnumerator *frontToBackWindows = [[[UIApplication sharedApplication] windows] reverseObjectEnumerator]; | |
for (UIWindow *window in frontToBackWindows) { | |
if (window.windowLevel == UIWindowLevelNormal) { | |
[window addSubview:self]; | |
break; | |
} |
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
... | |
UIView* contentView = [[UIView alloc] init]; | |
contentView.translatesAutoresizingMaskIntoConstraints = NO; | |
contentView.backgroundColor = [UIColor grayColor]; | |
contentView.layer.cornerRadius = 12.0; | |
UILabel* statusLabel = [[UILabel alloc] init]; | |
statusLabel.translatesAutoresizingMaskIntoConstraints = NO; | |
statusLabel.backgroundColor = [UIColor clearColor]; | |
statusLabel.textColor = [UIColor whiteColor]; |
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 SSH | |
1. First Install CURL by typing sudo apt-get install curl | |
2. Then Restart Apache by typing sudo service apache2 restart | |
3. Then Install PHP5 CURL by typing sudo apt-get install php5-curl | |
4. will prompt to install... type y or yes! | |
5. Then Restart Apache by typing sudo service apache2 restart Done! | |
Now you should be fine! |
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
+(UIImage *)getUIImageOfGeneratedScore | |
{ | |
CCSprite *socialShare = CCSprite::create("../bg-social-share.png"); | |
int textureWidth = socialShare->getContentSize().width; | |
int textureHeight = socialShare->getContentSize().height; | |
socialShare->setPosition(ccp(textureWidth/2, textureHeight/2)); | |
CCRenderTexture* renderer = CCRenderTexture::create(textureWidth, textureHeight); | |
renderer->begin(); |