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($){ | |
$.fn.extend({ | |
/** | |
* jquery-ui Tabs 動作調整用 | |
* タブ切り替えが連続して発生した場合の問題(※)を回避するため、 | |
* 最初のタブ切り替えが終わってから次のタブ切り替えをするように(切り替えイベントを順に実行するように)します | |
* ただし実行キューには最新の1つのイベントのみが入ります | |
* ※fx.opacityオプションにtoggleを指定していて、すばやくタブ1→タブ2→タブ3などと切り替えた際にタブ2が消>えずに残る | |
* | |
* ex) |
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($){ | |
$.fn.extend({ | |
/** | |
* jquery-ui Tabs 動作調整用 | |
* タブ切り替えが連続して発生した場合の問題(※)を回避するため、 | |
* 最初のタブ切り替えが終わってから次のタブ切り替えをするように(切り替えイベントを順に実行するように)します | |
* ただし実行キューには最新の1つのイベントのみが入ります | |
* ※fx.opacityオプションにtoggleを指定していて、すばやくタブ1→タブ2→タブ3などと切り替えた際にタブ2が消>えずに残る | |
* | |
* ex) |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
.xdebug-var-dump { | |
background: #fef9fb !important; | |
color: #000 !important; | |
padding: 4px 8px !important; | |
margin: 5px 10px !important; | |
text-align: left !important; | |
font-family: Menlo, Monaco, "Consolas", "Lucida Console", "courier new" !important; | |
-moz-border-radius: 10px !important; |
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($){ | |
/** | |
* datepicker デフォルト設定 | |
*/ | |
$.datepicker.setDefaults({ | |
dateFormat: 'yymmdd', | |
dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], | |
dayNamesShort: ['日曜','月曜','火曜','水曜','木曜','金曜','土曜'], | |
dayNamesMin: ['日','月','火','水','木','金','土'], | |
monthNames: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'], |
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 | |
// コンテントタイプを設定します | |
header('Content-type: image/png'); | |
// 画像を生成します | |
$im = imagecreatetruecolor(600, 600); | |
// いくつかの色を生成します | |
$white = imagecolorallocate($im, 255, 255, 255); | |
$grey = imagecolorallocate($im, 128, 128, 128); |
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 | |
echo "target\tif \tisset\tempty\tis_num\t'' \t'0' \t0 \n"; | |
array_map(function($var){ | |
static $i = 0; | |
$type = array("''", "0", "'0'", "false", "null"); | |
echo sprintf('% 6s',$type[$i++]) ."\t"; | |
echo (($var) ? 'true' : 'false') ."\t"; | |
echo (isset($var) ? 'true' : 'false') ."\t"; | |
echo (empty($var) ? 'true' : 'false') ."\t"; | |
echo (is_numeric($var) ? 'true' : 'false') ."\t"; |
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
#!/bin/sh | |
pear channel-discover components.ez.no | |
pear install phpunit/File_Iterator | |
pear install phpunit/phpcpd | |
pear channel-discover pear.pdepend.org | |
pear channel-discover pear.phpmd.org | |
pear install pdepend/PHP_Depend | |
pear install phpmd/PHP_PMD |
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
#!/bin/sh | |
# install rvm | |
cd | |
mkdir -p .rvm/src | |
cd .rvm/src | |
git clone git://github.com/wayneeseguin/rvm.git | |
cd rvm/ | |
./install |
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
pにアサインされた変数:{$p} |
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
#!/bin/sh | |
cd ~/local/src | |
wget http://ftp.kaist.ac.kr/vim/unix/vim-7.3.tar.bz2 | |
bzip2 -d vim-7.3.tar.bz2 | |
tar xvf vim-7.3.tar | |
rm vim-7.3.tar | |
cd vim73/src | |
mkdir ~/local/vim73 | |
./configure --prefix=$HOME/local/vim73 --with-features=huge --enable-multibyte --enable-perlinterp --enable-pythoninterp --enable-multibyte |
OlderNewer