Instantly share code, notes, and snippets.

donchan922 donchan922

View GitHub Profile
View Main.java
public class Main {
public static void main(String[] args) {
// 文字列全体
String str = "<head><title>abc</title></head>";
// 切り出したい文字列(開始)
String beginStr = "<title>";
// 切り出したい文字列(開始)の開始位置
int beginIndex = str.indexOf(beginStr); // 6
View key-value.sh
key1=value1
key2=value2
key3=value3
View tree.sh
$ tree -N
.
└── 日本語
└── ファイル.txt
1 directory, 1 file
View tree.sh
$ tree
.
└── ?\227??\234??\236
└── ?\203\225?\202??\202??\203?.txt
1 directory, 1 file
View tree.sh
$ tree
.
├── A1
│   ├── Aggregate.java
│   ├── Book.java
│   ├── BookShelf.java
│   ├── BookShelfIterator.java
│   ├── Iterator.java
│   └── Main.java
└── Sample
View git.sh
$ git config --global --list
user.name=John Doe
user.email=johndoe@example.com
View intellij.sh
Unsupported Modules Detected: Compilation is not supported for following modules: XXX. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
View gradle.sh
# Windowsの場合は、gradlew.bat build
$ ./gradlew build
View gradle.sh
└── <project folder>
└── gradlew
└── gradlew.bat
└── gradle
└── wrapper
└── gradle-wrapper.jar
└── gradle-wrapper.properties