Skip to content

Instantly share code, notes, and snippets.

View dai0304's full-sized avatar

MIYAMOTO Daisuke dai0304

View GitHub Profile
@dai0304
dai0304 / gist:6db4cfb88a9494d93b69a57d08c14142
Last active August 23, 2020 01:34
首狩り族からの手紙
日付: 2017年10月25日 17:08
件名: Steve Maddenでございます。
ミヤモト様
お世話になっております。
IT業界に特化したヘッドハンター、Steve Maddenと申します。
度々のご連絡、大変失礼いたします。
import assertk.Assert
import assertk.all
import assertk.assertThat
import assertk.assertions.contains
import assertk.assertions.containsExactly
import assertk.assertions.hasSize
import assertk.assertions.isEqualTo
import assertk.assertions.isLessThan
import assertk.assertions.isTrue
import assertk.assertions.support.expected

lang = uml

@startuml
アリス -> ボブ: Authentication Request
ボブ --> アリス: Authentication Response
 
アリス -> ボブ: Another authentication Request
アリス <-- ボブ: another authentication Response
@enduml
@dai0304
dai0304 / .gitignore
Created March 9, 2018 01:24
gitbook-plugin-uml v0.1.11 bug
node_modules/
_book/
assets/
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
apply plugin: 'war'
configurations { jetty9 }
dependencies.jetty9 'org.eclipse.jetty:jetty-ant:9.0.2.v20130417'
ant {
taskdef(name: 'jettyRun', classname: 'org.eclipse.jetty.ant.JettyRunTask', classpath: configurations.jetty9.asPath)
taskdef(name: 'jettyStop', classname: 'org.eclipse.jetty.ant.JettyStopTask', classpath: configurations.jetty9.asPath)
}
@dai0304
dai0304 / crowd
Last active December 12, 2015 00:18
#!/bin/bash
# Crowd startup script
#chkconfig: 2345 80 05
#description: Crowd
# Based on script at http://www.bifrost.org/problems.html
RUN_AS_USER=ec2-user
CATALINA_HOME=/mnt/atlassians/crowd/apache-tomcat
public final class Immutable {
private final String message;
public Mutable(String message) {
this.message = message;
}
public void hello() {
System.out.println(message);
public class Stateful {
private String message = "Hello, world!";
public void setMessage(String message) {
this.message = message;
}
public void hello() {
System.out.println(message);
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" dir="ltr"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>wicket-snippet</title>
</head>
<body>
<ul>