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 A { | |
private $name; | |
public function __construct($name){ | |
$this->name = $name; | |
} | |
/** |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^.*$ /index.php [NC,L] | |
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 | |
error_reporting(E_ALL | E_STRICT); | |
set_include_path( | |
dirname(__FILE__) | |
. PATH_SEPARATOR . dirname(__FILE__) . '/application/library' | |
. PATH_SEPARATOR . get_include_path() | |
); | |
include_once 'Zend/Loader.php'; |
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 | |
/** | |
* phpinfox.php | |
* 単一ファイルでphpinfoおよび、入力したコードの実行結果を確認できる | |
* PHP5用 | |
* | |
* @author twk | |
*/ | |
/* |
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
var $fewerMoreLink = $('.fewerMore a'); | |
if ($fewerMoreLink.size() == 2) { | |
var $more = $fewerMoreLink.eq(1); | |
var $much = $more.clone(); | |
var s = $much.attr('href'); | |
s = s.replace(/rowsperpage=\d+/g, 'rowsperpage=3500'); | |
$much.attr('href', s).text(' ▼much more'); | |
$more.after($much); |
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
$('.rolodex a').each(function(i, a){ | |
var $a = $(a); | |
var href = $a.attr('href'); | |
if (href.indexOf('rowsperpage=') < 0) { | |
href += 'rowsperpage=3500'; | |
$a.attr('href', href); | |
} | |
}); |