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
/** | |
* 仕様 | |
* 食べることができる | |
* 注文することができる | |
* 替え玉することができる | |
* トッピングができる | |
* トッピングは複数種類存在する | |
* スープを飲むことができる | |
* プラグインはどんな形式でも問わない | |
*/ |
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($){ | |
var $window = $(window), | |
ua = navigator.userAgent.toLowerCase(); | |
$.mbua = $.mbUa = $.mbUA = { | |
/** | |
* Android端末でモバイル扱いしたい端末のUAの文字列の一部を格納する | |
* この配列に入っている端末(UAの文字列)はメソッドから追加することができる | |
* | |
* @access protected |
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 ruby | |
`pear remote-list`.each_line do |p| | |
puts p.split(/\s+/)[0] | |
`pear install -f #{p.split(/\s+/)[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
<?php | |
class Nully_Validate_Uri extends Zend_Validate_Abstract { | |
const INVALID_URI = "%value% is invalid URI"; | |
/** | |
* Checking for http including URI pattern. | |
* | |
* @uses Zend_Uri | |
* Zend_Uri::check method is checking URI scheme including pattern. | |
*/ |
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 | |
/** | |
* Zend Framework - メンテナンスモードプラグイン | |
*/ | |
require_once "Zend/Controller/Plugin/Abstract.php"; | |
class Zend_Controller_Plugin_Maintenance | |
extends Zend_Controller_Plugin_Abstract | |
{ |
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
// comments.php の comment_form 部分を以下に置き換える | |
<?php | |
convenience_comment_form(array( | |
"required" => '<em class="required">*</em>', | |
// %1$s は required で指定した内容に置き換わる | |
"required_notes" => '%1$sは必須項目です。', | |
"fields" => array( | |
"author" => '<p class="comment-form-author"><label for="hogehoge">お名前</label>%1$s'. | |
'<input id="hogehoge" type="text" name="author" value="%2$s"%3$s /></p>', | |
"email" => '<p class="comment-form-email"><label for="email">メールアドレス</label>%1$s'. |
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/bash | |
# Install start message | |
func_startMsg() | |
{ | |
echo "" | |
echo "Install start $1." | |
} | |
func_endMsg() |
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
setInterval(function(){ | |
var imo = $("#imomushi"); | |
imo.animate({ | |
width: imo.width() + 10, | |
right: imo.width() | |
}, function(){ | |
imo.animate({ | |
width: imo.width() - 10, | |
left: parseInt(imo.css("left").replace("px")) - 10 | |
}) |
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
// 以下設定 =================================================================================== | |
// 開始時刻と終了時刻(hh:mmからhh:mmの間) | |
var times = { | |
start: { h: '14', m: '00' }, | |
end: { h: '16', m: '00' } | |
}, | |
// 通知時刻のインターバル(1時間単位) | |
interval = 1, |
OlderNewer