Skip to content

Instantly share code, notes, and snippets.

- name: install build dependency packages
sudo: yes
yum:
name: "{{ item }}"
state: installed
with_items:
- cmake
- git
- gcc
- gcc-c++
<?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;
<?php
namespace XaTestBundle\Doctrine;
use XaTestBundle\Doctrine\Connections\TwoPhaseConnection;
class TransactionManager
{
protected $connections = [];
public function __construct($connections = [])
<?php
namespace XaTestBundle\Doctrine\Connections;
use Doctrine\DBAL\Connection;
use XaTestBundle\Doctrine\TransactionManager;
class TwoPhaseConnection extends Connection
{
protected $transactionManager;
@cocoiti
cocoiti / phpbrew.rb
Last active December 14, 2015 22:49
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'
# 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();