-
updateするときのお話。新規でcreate-projectするなら何も困らない
-
php composer.phar update
する前に以下をチェック -
composer.jsonの修正
-
http://symfony.com/blog/symfony-2-3-0-the-first-lts-is-now-available
-
キャッシュファイルは事前にrmしておく
-
icuが4.4以上でないと怒られるので、事前にインストールしているicuのバージョンをチェックしておくこと
-
composer.jsonでバージョン指定すれば回避可能 http://php-sql-gdgd.jugem.jp/?eid=104
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
;; 日本語IM用の設定 | |
(setq default-input-method "MacOSX") | |
;; 日本語の設定(UTF-8) | |
(set-language-environment 'Japanese) | |
(prefer-coding-system 'utf-8) | |
;; load path | |
(setq load-path | |
(append | |
(list |
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
FROM centos:6.4 | |
MAINTAINER Masao Maeda | |
RUN yum install -y git ruby rubygems | |
RUN gem install bundler | |
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
RUN yum install -y npm |
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
function okc (f) { | |
var c = [38,38,40,40,37,39,37,39,66,65,13], | |
x = function () { | |
x.c = x.c||Array.apply ({},c); | |
x.r = function () { | |
x.c = null | |
}; | |
return x.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
# More info at https://github.com/guard/guard#readme | |
guard 'shell' do | |
watch(/src\/(.*).php/) {|m| `php hamcrester.php #{m[0]}` } | |
end |
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
server { | |
listen 80; | |
server_name php54.vm.localhost; | |
access_log /var/log/nginx/vm.localhost.access.log; | |
error_log /var/log/nginx/vm.localhost.error.log; | |
location / { | |
root /var/www/localhost/web; | |
index index.html index.htm; |
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": { | |
"symfony/routing": "2.1.*", | |
"symfony/http-foundation": "2.1.*", | |
"symfony/config": "2.1.*", | |
"symfony/yaml": "2.1.*", | |
"pimple/pimple": "dev-master" | |
} | |
} |
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 | |
date_default_timezone_set('Asia/Tokyo'); | |
if (date('n', strtotime('this month')) === date('n', strtotime('last month'))) { | |
echo "never call"; | |
} | |
// last month は前月の"同一日"を返そうとするので、 | |
// 2月30日 -> 3月1日 のように解釈されてしまう。 | |
// 前月の月を知りたい場合は 以下のようにfirst day of をつけないと先月が何月かを正確に取得できない! |
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 | |
require __DIR__ .'/silex.phar'; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Cookie; | |
$app = new Silex\Application(); | |
$app['debug'] = true; |
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 Silex\Provider; | |
use Silex\Application; | |
use Silex\SilexEvents; | |
use Silex\ControllerProviderInterface; | |
use Silex\ControllerCollection; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; |
NewerOlder