目的 | Visual Studio Code | IntelliJ | 補足 |
---|---|---|---|
行複製 | Option + Shift + ↑ or ↓ | Command + D | Option + Shift + ↑ or ↓はIntelliJでは行入れ替えのショートカットキー |
行削除 | Command + Shift + K Command + X ※ ※ Clipbordに登録されるので、Command + Vで貼り付けできる |
Command + Delete | |
行追加※行末にいない状態で追加 | Command + EnterCommand + Shift + Enter ※※ Shiftをつけてると、上に行が追加される | Shif |
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
// Inspired by https://gist.github.com/tzachz/419478fc8b009e953f5e5dc39f3f3a2a | |
// Task creates a .dot file with all inter-module dependencies | |
// Supports any depth of nested modules | |
task moduleDependencyReport { | |
doLast { | |
def file = new File("project-dependencies.dot") | |
file.delete() | |
file << "strict digraph {\n" | |
file << "splines=ortho\n" |
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 java.io.Closeable; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.URI; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.*; | |
import java.nio.charset.StandardCharsets; | |
import java.util.*; | |
import java.util.logging.Logger; |
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 elasticsearch | |
import curator | |
import json | |
client = elasticsearch.Elasticsearch() | |
indices = curator.get_indices(client) | |
# Filter anything older than or equal to 3 days | |
_filter = curator.build_filter(kindOf='newer_than', value=3, time_unit='days', timestring='%Y.%m.%d') | |
indices = curator.apply_filter(indices, **_filter) |
- Raftという分散合意アルゴリズムの紹介
- 論文: In Search of an Understandable Consensus ALgorithm (Extended Version)
- Raft三日目くらいの人が自分の理解をもとに(適当に)書いています