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
seikai / gist:6914463
Last active Dec 25, 2015
BundleIDの書き分け
View gist:6914463
#!/bin/bash
defines=( DEBUG=1 'HOST=@"http://localhost"' )
#Project名==Target名
PROJECT_NAME="ProjectName"
#BuindleIDのプレフィックス部分
PREFIX="com.sample"
@seikai
seikai / hideStatusbar.m
Last active Dec 24, 2015
hide statusbar on ios7
View hideStatusbar.m
//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];
}
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
seikai / template
Last active Dec 18, 2015
amd class define template
View template
define([
"require"
],
function (require) {
/**
* @exports Klass
* @constructor
*/
var Klass = function(){
@seikai
seikai / index.html
Created Apr 25, 2013
Google Realtime Api Tutorial + Eclipse Orion (original : https://developers.google.com/drive/realtime/realtime-quickstart)
View index.html
<!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>
@seikai
seikai / DoctrineOrmServiceProvider.php
Last active Dec 13, 2015
DoctrineOrmServiceProvider
View DoctrineOrmServiceProvider.php
<?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
seikai / rmsvndir.sh
Last active Dec 11, 2015
.svnの削除
View rmsvndir.sh
#!/bin/sh
find . -name ".svn" -delete
@seikai
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
seikai / scheme.html
Last active Dec 11, 2015
Javascriptで遷移を監視して該当スキーマが無ければストアへ
View scheme.html
<!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>
@seikai
seikai / install.sh
Last active Dec 11, 2015
Redmineインストールメモ 環境:CentOS6.3 / Ruby1.9.3-p362 / Apache+Passenger
View install.sh
vi /etc/sysconfig/selinux
setenforce 0
getenforce
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.