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
#!/bin/bash | |
defines=( DEBUG=1 'HOST=@"http://localhost"' ) | |
#Project名==Target名 | |
PROJECT_NAME="ProjectName" | |
#BuindleIDのプレフィックス部分 | |
PREFIX="com.sample" |
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
UIImage *image; | |
NSMutableString *imageName = [[NSMutableString alloc] initWithString:@"Default"]; | |
BOOL isPad = ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ); | |
if( isPad ) | |
{ | |
BOOL isLandscape = UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]); | |
NSString *imageOrientation = (isLandscape) ? @"Landscape" : @"Portrait"; |
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
//viewDidLoad | |
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { | |
// for iOS 7 | |
[self prefersStatusBarHidden]; | |
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)]; | |
} else { | |
// for under iOS 6 | |
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide]; | |
} |
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
define([ | |
"require" | |
], | |
function (require) { | |
/** | |
* @exports Klass | |
* @constructor | |
*/ | |
var Klass = function(){ |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>Google Drive Realtime quickstart</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=9"> | |
<!-- Load the Realtime libraries. --> | |
<script type="text/javascript" | |
src="https://apis.google.com/js/api.js"></script> |
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
<?php | |
use Doctrine\ORM\Tools\Setup; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\DBAL\Types\Type; | |
use Doctrine\Common\Cache\ArrayCache; | |
use Doctrine\Common\Cache\MemcacheCache; | |
use Doctrine\Common\Cache\ApcCache; | |
use Doctrine\Common\Cache\RedisCache; | |
use Doctrine\Common\Cache\XcacheCache; |
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
#!/bin/sh | |
find . -name ".svn" -delete |
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
brew install rbenv | |
brew install ruby-build | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile | |
rbenv rehash | |
brew install readline | |
brew link readline | |
CONFIGURE_OPTS="--with-readline-dir=/usr/local" rbenv install 1.9.3-p194 | |
rbenv global 1.9.3-p194 | |
rbenv rehash |
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> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" /> | |
</head> | |
<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
vi /etc/sysconfig/selinux | |
setenforce 0 | |
getenforce | |
vi /etc/sysconfig/iptables | |
/etc/init.d/iptables restart | |
yum upgrade | |
yum update | |
yum groupinstall "Development Tools" |
NewerOlder