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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Encode; | |
use File::Find; | |
use Term::ANSIColor::Print; | |
my @targets = split /,/, $ARGV[0]; |
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
*** html-helper-mode_default.el 2004-05-17 01:01:09.000000000 +0900 | |
--- html-helper-mode.el 2010-11-11 16:51:48.000000000 +0900 | |
*************** | |
*** 310,316 **** | |
(defvar html-helper-new-PHP-buffer-template | |
'("<html> <head>\n" | |
! "<? PHP\n\n?>" | |
"</head><body>\n" | |
"<? /* " html-helper-timestamp-start "\n\n" |
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 | |
function is_deeply($a, $b, $diff = array(), $key_str = '') { | |
ksort($a); | |
ksort($b); | |
$keys = array_unique( | |
array_merge( | |
array_keys($a), | |
array_keys($b) |
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 | |
function getFileList($dir_path) | |
{ | |
if(! is_dir($dir_path)) | |
{ | |
return array(); | |
} | |
$list = array(); |
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
#!/usr/bin/php | |
<?php | |
$text = file_get_contents('php://stdin'); | |
$text = preg_replace('/<\/?div[^>]*\/?>/', '', $text); | |
$text = preg_replace('/<\/?a[^>]*>/', '', $text); | |
$text = preg_replace('/<span[^\/]+\/span>/', '', $text); | |
$text = preg_replace('/ id="[^"]*"/', '', $text); |
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
config/environment.yml: | |
class: sfDefineEnvironmentConfigHandler | |
param: | |
prefix: app_ |
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 | |
class myEnvironmentConfigFilter extends sfFilter | |
{ | |
public function execute($filterChain) | |
{ | |
if ($this->isFirstCall()) { | |
include(sfContext::getInstance()->getConfigCache()->checkConfig(sfConfig::get('sf_config_dir').'/environment.yml')); | |
} |
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
myEnvironmentConfigFilter: | |
class: myEnvironmentConfigFilter |
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 | |
class kayacActions extends sfActions | |
{ | |
public function executeError(sfWebRequest $request) | |
{ | |
// 問答無用でエラーレスポンス | |
$this->forwardError('500', 'エラーメッセージ'); | |
} |
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 | |
class sharedActions extends sfActions | |
{ | |
/* | |
* エラーレスポンス | |
* | |
* @param sfWebRequest $request | |
*/ | |
public function executeError(sfWebRequest $request) |