eclipse.iniに次を追加する。 ワークスペースの初回の選択時のみ設定がコピーされる
-pluginCustomization path/to/plugin_customization.ini
#!/bin/bash | |
# force-one-head | |
# add the following to <repository>/.hg/hgrc : | |
# [hooks] | |
# pretxnchangegroup.forceonehead = /path/to/force-one-head | |
if [ $(hg heads --template "{branch}\n"|sort|uniq|wc -l) != $(hg heads --template "{branch}\n"|sort|wc -l) ]; then | |
echo "There are multiple heads." | |
echo "Please 'hg pull' and get your repository up to date first." | |
echo "Also, don't 'hg push --force' because that won't work either." |
# hgrc | |
[extensions] | |
mq = | |
hgshelve = $HOME/.mercurial/extensions/hgshelve/hgshelve.py | |
[alias] | |
# fix latest commit message (hg 1.8.x only) | |
fix = ! \ | |
$HG shelve --all -n 'tmp.hg-fix' && \ |
import java.lang.reflect.InvocationTargetException; | |
public interface InterfaceName { | |
String getValue(); | |
int getLength(); | |
/** | |
* InterfaceName で定義しておいて欲しいクラスメソッドを定義 |
#!/bin/bash | |
[ -d .git ] && git pull | |
[ -d .hg ] && hg pull -u | |
[ -d .svn ] && svn update | |
[ -d .bzr ] && bzr update |
[ui] | |
# merge=araxis | |
[extensions] | |
extdiff = | |
[extdiff] | |
cmd.araxisdiff = bash | |
opts.araxisdiff = -c '"/cygdrive/C/Program Files/Araxis/Araxis Merge/ConsoleCompare.exe" /2 /wait "$(cygpath -w "$0")" "$(cygpath -w "$1")"' |
println "commons-lang-2.6:" + org.apache.commons.lang.StringUtils.split("", "\n").size() | |
println "s2-framework-2.4.44:" + org.seasar.framework.util.StringUtil.split("", "\n").size() | |
println "String.split:" + "".split("\\n").size() | |
println "String.tokenize:" + "".tokenize("\n").size() | |
// -- output | |
// commons-lang-2.6:0 | |
// s2-framework-2.4.44:0 | |
// String.split:1 | |
// String.tokenize:0 |
package jp.troter.sandbox.seasar.struts.filter; | |
import java.io.IOException; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; | |
import javax.servlet.http.HttpServletRequest; |
import org.apache.commons.lang.StringUtils; | |
public interface PrefixAppender { | |
String apply(String content); | |
public static abstract class Builder { | |
public static PrefixAppender build(final String maker) { | |
return new PrefixAppender() { | |
@Override |
# -*- coding: utf-8; mode: ruby -*- | |
# | |
# usage: | |
# hg log --template "{node} {author} {desc|firstline}\n" | ruby pickuphexspeak.rb | |
first_class = %w[ | |
abadbabe baadf00d baddcafe cafebabe deadbeef defec8ed | |
facefeed fee1dead badcab1e feedface deaddead beadface | |
] | |
second_class = %w[ |