This file contains hidden or 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
| Map<String, Integer> scores = new HashMap<String, Integer>(); | |
| List<Map.Entry<String, Integer>> entries = new ArrayList<Map.Entry<String, Integer>>(scores .entrySet()); | |
| // Valueの降順(大きい順)に並べる | |
| Collections.sort(entries, new Comparator<Object>() { | |
| @Override | |
| @SuppressWarnings("unchecked") | |
| public int compare(Object o1, Object o2) { | |
| Map.Entry<String, Integer> e1 = (Map.Entry<String, Integer>) o1; |
This file contains hidden or 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 enum JobEnum { | |
| MUSICIAN(1, "ミュージシャン"), | |
| MODEL(2, "モデル"), | |
| private Integer jobId; | |
| private String jobName; | |
| JobEnum(Integer jobId, String jobName) { | |
| this.jobId= jobId; | |
| this.jobName= jobName; |
This file contains hidden or 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
| ^(.+\.)?hoge.com$ |
This file contains hidden or 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 enum RoutesEnum { | |
| TOP("/", "portal/top"), | |
| DETAIL("/{mediaId}", "media/detail"); | |
| private String urlPath; | |
| private String filePath; | |
| RoutesEnum(String urlPath, String filePath) { |
This file contains hidden or 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
| svn log --xml | grep -P "^<author" | sort -u | perl -pe 's/<author>(.*?)<\/author>/$1 = $1 <$1\@hoge.jp>/' | sed -e "s/_/-/2" > authors.txt |
This file contains hidden or 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
| $ jruby -S bundle exec rails server |
OlderNewer