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
@startuml | |
[Infrastructure] #Aqua | |
[Shared] | |
note left of Shared : XxxSupport, Utils | |
package "model package" { | |
[Model] <<Domain>> | |
[Repository] <<Domain>> | |
[Factory] <<Domain>> |
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
@startuml | |
[client] | |
package "Domain" { | |
[core] <<Domain>> | |
[core-N] <<Domain>> | |
} | |
[admin] <<Web>> | |
[server] <<Web>> | |
[share] |
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
@startdot | |
digraph G | |
{ | |
pre_boot [shape=doublecircle, style=filled,color=black,fillcolor=green; | |
pre_boot -> codec_correctness_check; | |
file_handle_cache -> database; | |
database -> database_sync; | |
pre_boot -> file_handle_cache; | |
pre_boot -> worker_pool; |
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
<script type="text/javascript"> | |
requirejs([], | |
function () { | |
function fillImageContent(imgTag) { | |
var canvas = document.createElement('canvas'); | |
canvas.width = imgTag.width; | |
canvas.height = imgTag.height; | |
var ctx = canvas.getContext('2d'); | |
ctx.drawImage(imgTag, 0, 0); | |
ctx.fill(); |
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 com.martiansoftware.nailgun.NGServer; | |
import javax.servlet.ServletConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
/** | |
* nailgun servlet | |
* | |
* @author linux_china |
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
on run dir | |
tell application "iTerm" | |
activate | |
tell the first terminal | |
launch session "Default Session" | |
tell the last session | |
write text "cd " & dir | |
end tell | |
end tell |
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
public static String[] shortUrl(String url) { | |
//私钥 | |
String privateKey = "private_key"; | |
//要使用生成URL的字符 | |
String[] chars = new String[]{ | |
"a", "b", "c", "d", "e", "f", "g", "h", | |
"i", "j", "k", "l", "m", "n", "o", "p", | |
"q", "r", "s", "t", "u", "v", "w", "x", | |
"y", "z", "0", "1", "2", "3", "4", "5", | |
"6", "7", "8", "9", "A", "B", "C", "D", |
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
@startuml | |
Alice -> Bob: Authentication Request | |
Bob --> Alice: Authentication Response | |
Alice -> Bob: Another authentication Request | |
Alice <-- Bob: another authentication Response | |
Alice --> Bob: New request | |
Alice --> Bob: New request 2 |
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 org.springframework.boot.web.servlet.ServletRegistrationBean; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.http.server.reactive.HttpHandler; | |
import org.springframework.http.server.reactive.ServletHttpHandlerAdapter; | |
import org.springframework.web.reactive.config.EnableWebFlux; | |
import org.springframework.web.reactive.function.server.RouterFunction; | |
import org.springframework.web.server.adapter.WebHttpHandlerBuilder; | |
import reactor.core.publisher.Mono; |
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
buildscript { | |
ext.kotlin_version = '1.1.3' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | |
} |
OlderNewer