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
# 参考: http://d.hatena.ne.jp/idesaku/20090908/1252419890 | |
# 参考: http://qiita.com/sea_mountain/items/d70216a5bc16a88ed932 | |
git filter-branch --commit-filter ' | |
GIT_AUTHOR_NAME="lequinharay" | |
GIT_AUTHOR_EMAIL="lequinharay@gmail.com" | |
GIT_COMMITTER_NAME="lequinharay" | |
GIT_COMMITTER_EMAIL="lequinharay@gmail.com" | |
git commit-tree "$@" | |
' HEAD |
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 | |
/** リソース出力のキャッシュクリアのために、HTMLヘルパーのメソッドをオーバーライドする | |
* | |
* @author lequinharay <lequinharay@gmail.com> | |
*/ | |
class HtmlResourceCacheHelper extends HtmlHelper { | |
function css($path, $rel = null, $options = array()) { | |
return $this->__common('css', $path, $rel, $options); | |
} |
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
javascript:function cl(){var elem = document.getElementById("btn-a");var e = document.createEvent("MouseEvents");e.initEvent("click", false, true);elem.dispatchEvent(e);}setInterval('cl()', 1000); |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>証明写真</title> | |
<style type="text/css" media="screen"> | |
table { | |
width: 127mm; | |
height: 89mm; | |
background-color: #EEE; | |
} |
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
$(document).on( | |
'click', 'html', function(e) { | |
var x = e.pageX; | |
var y = e.pageY; | |
alert('X = ' + x + 'px, Y = ' + y + 'px'); | |
} | |
); |
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
/* | |
フォームの入力値を数値のみに制限するjavascript | |
web上に落ちてたものから以下の点だけ変えた。 | |
・keyCodeがfirefoxで上手く動かなかったのでwhichを使用 | |
・deleteとか矢印キーによる移動は活かしておきたかった | |
<input class="no-numeric" style="ime-mode: disabled" /> | |
の様にして使う | |
*/ | |