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
# Description: | |
# Joke commands. | |
# | |
# Commands: | |
# ぬるぽ - You reply with, "ガッ" When you post a "ぬるぽ" word. | |
# | |
# Notes: | |
# ネタ/ジョーク系のbot全般 | |
module.exports = (robot) -> |
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 CommonValidator | |
{ | |
/** | |
* 日付のフォーマット配列 | |
*/ |
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
# ログインしてクッキー抽出 | |
def login(mail, pass) | |
host = 'secure.nicovideo.jp' | |
path = '/secure/login?site=niconico' | |
body = "mail=#{mail}&password=#{pass}" | |
https = Net::HTTP.new(host, 443) | |
https.use_ssl = true | |
https.verify_mode = OpenSSL::SSL::VERIFY_NONE | |
response = https.start { |https| |
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
$ firebase auth:export firebase-auth-users.json --format json --project 旧Firebaseプロジェクト | |
$ firebase auth:import firebase-auth-users.json --project 新Firebaseプロジェクト |
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
@Override | |
public void fillCompletionVariants(CompletionParameters parameters, CompletionResultSet result) { | |
String arr$[] = new String[] {"foo", "bar"}; | |
int len$ = arr$.length; | |
for (int i$ = 0; i$ < len$; i$++) { | |
String s = arr$[i$]; | |
result.addElement(createDocTagLookup(false, 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
public void syncWithSonar(Project project) { | |
Collection<Rule> sonarRules = this.sonarRulesByRuleKey.values(); | |
int oldSize = sonarRules.size(); | |
clearState(); | |
Collection<SonarSettingsBean> allSonarSettingsBeans = SonarSettingsComponent.getSonarSettingsBeans(project); | |
SonarService sonarService = ServiceManager.getService(SonarService.class); | |
if (null != allSonarSettingsBeans) { | |
for (Rule rule : sonarService.getAllRules(allSonarSettingsBeans)) { | |
this.sonarRulesByRuleKey.put(rule.getKey(), rule); |
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
### 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({ |
NewerOlder