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
import UIKit | |
import Ikemen | |
import NorthLayout | |
final class SearchTopSquareBannersView: UIView { | |
var didSelectItem: ((Int) -> Void)? | |
var viewHeight: CGFloat { | |
return sectionInsetTop + sectionInsetBotton + 2 * itemHeight + minimumSpacing | |
} |
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
<?php | |
/** | |
* library/Doctrine/DBAL/Types/Mysql/BinaryType.php | |
* | |
* custome create binary type(mapping for mysql midiumblob type) | |
* | |
*/ | |
namespace Doctrine\DBAL\Types\Mysql; | |
use Doctrine\DBAL\Types\Type; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* scripts/doctrine | |
* | |
* 1. generate annotation format metadata from database | |
* $ application/scripts/doctrine -v orm:convert-mapping --from-database annotation application/doctrine/Metadata --force | |
* | |
* 2. generate entities which has setter/getter by annotation format metadata | |
* ( @Entity(repositoryClass="Repositories\[RepositoryName]") |
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
<?php | |
/** | |
* library/Mylib/Resource/Entitymanager.php | |
*/ | |
use Doctrine\DBAL\Types\Type; | |
class Mylib_Resource_Entitymanager extends Zend_Application_Resource_ResourceAbstract | |
{ | |
/** setting value example | |
protected $_options = array( | |
'connection' => array( |
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
### centos5.6(64bit)のネットワークインストール手順 | |
# 必要ファイルのダウンロード | |
1.http://ftp.iij.ad.jp/pub/linux/centos/5.6/isos/x86_64/ | |
から | |
CentOS-5.6-x86_64-netinstall.iso | |
をダウンロード | |
# vmwareでのインストール開始 | |
1.vmwareで上記ファイルから起動 | |
参考-1) http://friendfeed.com/yungsang/48dfe3c4/centos-to-vmware-fusion |