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
| force field create Account sample_text1:string label:サンプルテキスト1 length:10 | |
| force field create Account sample_text2:string label:サンプルテキスト2 length:20 | |
| force field create Account sample_text3:string label:サンプルテキスト3 length:30 required true |
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
| #!/bin/bash | |
| AUTHOR=$(git config user.name) | |
| DATE=$(date +%F) | |
| git log --no-merges --format="%cd" --date=short --no-merges --author="$AUTHOR" --all | sort -u -r | while read DATE ; do | |
| if [ $NEXT != "" ] | |
| then | |
| echo | |
| echo [$NEXT] | |
| fi | |
| GIT_PAGER=cat git log --no-merges --format=" %s" --since=$DATE --until=$NEXT --author="$AUTHOR" --all |
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
| [alias] | |
| changelog = "!_() { t=$(git describe --abbrev=0 --tags); git log ${t}..HEAD --no-merges --pretty=format:'* %s'; }; _" |
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
| git log --date=short --pretty=format:"%H %cd [%s] <%an> <%ae>" --no-merges --first-parent $(git describe --tags `git rev-list --tags --max-count=1`)..origin/develop; |
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
| #!/bin/sh | |
| HOOK_URL="" | |
| slack_channel="" | |
| REPO="" | |
| AUTHOR="" | |
| cd ${REPO} | |
| COMMIT_LOG=$(git shortlog --all --no-merges --author="${AUTHOR}" --since="midnight") |
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
| class User { | |
| /** | |
| * ユーザID | |
| */ | |
| private String id; | |
| /** | |
| * ユーザ名 | |
| */ | |
| private String name; |
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
| @Around("execution(public * hoge.*.*(..))") | |
| public Object logging(ProceedingJoinPoint proceedingJoinPoint) throws Throwable { | |
| String method = proceedingJoinPoint.getSignature().toShortString(); | |
| try { | |
| logger.info("START {}", method); | |
| return proceedingJoinPoint.proceed(); | |
| } catch (Throwable t) { | |
| logger.warn("{} failed.", method); | |
| throw t; | |
| } finally { |
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
| import play.Application; | |
| import play.Configuration; | |
| import play.Plugin; | |
| public class BatchPlugin extends Plugin { | |
| private Logger logger; | |
| private Configuration conf; |
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
| CommandLine command = new CommandLine("cmd") | |
| .addArgument("/c") | |
| .addArgument("echo") | |
| .addArgument("test"); | |
| DefaultExecutor executor = new DefaultExecutor(); | |
| executor.execute(commandLine); |
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 class Sample { | |
| private Logger logger; | |
| public Sample() { | |
| this.logger = LoggerFactory.getLogger(this.getClass()); | |
| } | |
| public Sample(Logger logger) { |
NewerOlder