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
import java.util.stream.*; | |
import java.util.*; | |
public class Tool { | |
public static Map<Integer, List<Integer>> reverseArrayValue(int[] array) { | |
Map<Integer, List<Integer>> result = new HashMap<>(); | |
for (int i = 0; i < array.length; i++) { | |
result.putIfAbsent(array[i], new ArrayList<Integer>()); | |
result.get(array[i]).add(i); |
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"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<title>FGO Activity Predictor</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" | |
crossorigin="anonymous"> | |
<script src="https://unpkg.com/vue"></script> |
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> | |
<title>2-5式索敵値計算</title> | |
<meta charset="UTF-8"> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/vue/0.10.6/vue.min.js"></script> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"></script> | |
<script type="text/javascript"> | |
//<![CDATA[ | |
window.onload = function(){ |
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
OreoreData oreoreData = new OreoreData(); | |
oreoreData.setOreoreDataId(oreoreDataId); | |
return oreoreDataService.find(oreoreData); |
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
rbt post -o -r xxx --parent=HEAD^^ | |
rbt post -o -r xxx --parent=origin/master |
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
*/10 * * * * ls -1 /usr/local/gitrepos/ | xargs -i git --git-dir=/usr/local/gitrepos/{} remote update | logger -t "update repos" -p local0.info |
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
package ex.web.interceptor; | |
import java.io.IOException; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; |
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
List<Map<String, Object>> rows = new ArrayList<>(); // データ入れる | |
rows.parallelStream().forEach(row -> { | |
LOG.info("something to do."); | |
LOG.info(row); | |
}); |
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
/* | |
* pixiv Bookmark - Tombloo patches | |
* | |
* ピクシブでブックマークするパッチ | |
* | |
* 同時に「お気に入りユーザーに追加」する場合は | |
* 下の BOOKMARK_USER 定義を true にする | |
* | |
* Based: http://gist.github.com/318137 | |
* Version 1.03, 2011-03-05 polygon planet <http://polygonplanet.tumblr.com/> |