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
protected dialog(AnActionEvent e) throws Exception { | |
Project project = e.getProject(); | |
DataContext dataContext = e.getDataContext(); | |
IdeView view = LangDataKeys.IDE_VIEW.getData(dataContext); | |
if (view == null) { | |
return; | |
} | |
Project project = PlatformDataKeys.PROJECT.getData(dataContext); |
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
Jenkins × PHP環境構築の巻 | |
■目的 | |
PHP環境に対応したJenkins設定を行い、 | |
コミットされる度にサーバ上でのPHPUnitの実行 及び | |
カバレッジレポート出力を"全自動"で行えるようにすること。 | |
1) PHP Pear系のインストール | |
sudo pear channel-discover pear.phing.info | |
sudo pear channel-discover pear.pdepend.org |
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
### Sample Settings | |
# aliases | |
# in this example you can open extensions page by the command ':ext' | |
# and Chrome's option page by the command ':option' | |
alias ext TabOpenNew chrome://extensions/ | |
alias option TabOpenNew chrome://settings/browser | |
alias downloads TabOpenNew chrome://downloads | |
alias history TabOpenNew chrome://history |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script type="text/javascript" | |
src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load('visualization', '1', {packages:['corechart']}); | |
</script> | |
<script type="text/javascript"> | |
(function () { | |
drawGraph = function () { | |
$.ajax({ |
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
/** | |
* 日にち毎の会員登録ユーザ数を取得する | |
*/ | |
public function getRegisterCountDayByDay ( $limit = 30 ) { | |
$params = array( | |
'fields' => array( | |
'count(1) as count', | |
"DATE_FORMAT(created_at,'%Y-%m-%d') as regist_date" | |
), | |
'conditions' => array( 'created_at > (now() - interval ' . $limit . ' day)' ), |
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
/** | |
* 標準のerror_logメソッドを拡張し、呼び出し箇所の行数等を追加表示させる | |
* | |
* @param $message | |
* @param null $message_type | |
* @param null $destination | |
* @param null $extra_headers | |
*/ | |
function e_log ($id, $message, $level = LEVEL_ERR , $message_type = null, $destination = null, $extra_headers = null ) { | |
error_log('---------------------------'); |
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 getScreenSize() { | |
var obj = new Object(); | |
if (!isSafari && !isOpera) { | |
obj.x = document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth; | |
obj.y = document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight; | |
} else { | |
obj.x = window.innerWidth; | |
obj.y = window.innerHeight; | |
} | |
obj.mx = parseInt((obj.x)/2); |
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 hideAddressBar () { | |
setTimeout(function(){ | |
window.scrollTo(0,1); | |
}, 1); | |
} |
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
<div class="navbar navbar-inverse"> | |
<div class="navbar-inner"> | |
<a href="" class="brand">Logo</a> | |
<ul class="nav"> | |
<li><a href="" class="active">Home</a></li> | |
<li><a href="">Help</a></li> | |
</ul> | |
<form class="navbar-search pull-left"> | |
<input type="text" class="search-query" placeholder="検索"> | |
</form> |
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 | |
if (defined('E_DEPRECATED')) { | |
error_reporting(E_ALL & ~E_DEPRECATED & ~E_WARNING); | |
} else { | |
error_reporting(E_ALL); | |
} | |
defined('APPLICATION_CONFIG') | |
|| define('APPLICATION_CONFIG', 'application.ini'); |