Skip to content

Instantly share code, notes, and snippets.

seikai seikai

Block or report user

Report or block seikai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
seikai / gist:6914463
Last active Dec 25, 2015
View gist:6914463
defines=( DEBUG=1 'HOST=@"http://localhost"' )
seikai / hideStatusbar.m
Last active Dec 24, 2015
hide statusbar on ios7
View hideStatusbar.m
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];
View launch-image
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";
seikai / template
Last active Dec 18, 2015
amd class define template
View template
function (require) {
* @exports Klass
* @constructor
var Klass = function(){
seikai / index.html
Created Apr 25, 2013
Google Realtime Api Tutorial + Eclipse Orion (original :
View index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
<title>Google Drive Realtime quickstart</title>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<!-- Load the Realtime libraries. -->
<script type="text/javascript"
seikai / DoctrineOrmServiceProvider.php
Last active Dec 13, 2015
View DoctrineOrmServiceProvider.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;
seikai /
Last active Dec 11, 2015
find . -name ".svn" -delete
seikai / log.txt
Last active Dec 11, 2015
Homebrew+rbenv+rails install log
View log.txt
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
seikai / scheme.html
Last active Dec 11, 2015
View scheme.html
<html lang="en-US">
<meta charset="UTF-8">
<script type="text/javascript" src=""></script>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
seikai /
Last active Dec 11, 2015
Redmineインストールメモ 環境:CentOS6.3 / Ruby1.9.3-p362 / Apache+Passenger
vi /etc/sysconfig/selinux
setenforce 0
vi /etc/sysconfig/iptables
/etc/init.d/iptables restart
yum upgrade
yum update
yum groupinstall "Development Tools"
You can’t perform that action at this time.