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
- name: install build dependency packages | |
sudo: yes | |
yum: | |
name: "{{ item }}" | |
state: installed | |
with_items: | |
- cmake | |
- git | |
- gcc | |
- gcc-c++ |
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 | |
namespace XaTestBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use XaTestBundle\Doctrine\TransactionManager; |
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 | |
namespace XaTestBundle\Doctrine; | |
use XaTestBundle\Doctrine\Connections\TwoPhaseConnection; | |
class TransactionManager | |
{ | |
protected $connections = []; | |
public function __construct($connections = []) |
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 | |
namespace XaTestBundle\Doctrine\Connections; | |
use Doctrine\DBAL\Connection; | |
use XaTestBundle\Doctrine\TransactionManager; | |
class TwoPhaseConnection extends Connection | |
{ | |
protected $transactionManager; |
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
require 'formula' | |
class Phpbrew < Formula | |
homepage 'https://github.com/c9s/phpbrew' | |
url 'https://github.com/c9s/phpbrew.git', :tag => '1.8.19' | |
version '1.8.19' | |
head 'https://github.com/c9s/phpbrew.git' | |
depends_on 'automake' | |
depends_on 'autoconf' |
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
# http://www.php.net/manual/ja/imagick.setsize.php | |
<?php | |
require_once 'Benchmark/Timer.php'; | |
$file = __DIR__ . '/sample.jpg'; | |
$sizeX = 160; | |
$sizeY = 160; | |
$t = new Benchmark_Timer(); | |
$t->start(); |