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
$ sqlplus ユーザ名/パスワード@接続文字列 @demo.sql |
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
boolean isDeleted = FileSystemUtils.deleteRecursively(new File("/path/to/directory")); |
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
- Java 11 |
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
FileUtils.deleteDirectory(new File("/path/to/directory")); |
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
// ログイン処理 | |
... | |
// 転送するファイル種別をバイナリに設定する | |
ftpClient.setFileType(FTP.BINARY_FILE_TYPE); | |
// ファイル転送処理 | |
... |
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
# masterブランチで作業している | |
$ git branch | |
* master | |
$ git log --oneline | |
9b78abe (HEAD -> master) Initial commit | |
# 中身は空 | |
$ cat README.md |
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
# 直前のコミットを取り消す、変更した内容は取り消さない | |
$ git reset --soft HEAD^ | |
or | |
# 直前のコミットと変更した内容を取り消す | |
$ git reset --hard HEAD^ | |
# 強制的にプッシュする(歴史を書き換えるため) | |
$ git push -f origin HEAD |
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
# masterブランチで作業している | |
$ git branch | |
* master | |
$ git log --oneline | |
1c5a640 (HEAD -> master) Initial commit | |
# 中身は空 | |
$ cat README.md |
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
# 直前のコミットの内容を打ち消すためのコミットを行う | |
$ git revert HEAD | |
or | |
# 対象のコミットの内容を打ち消すためのコミットを行う | |
$ git revert コミット番号 | |
# 打ち消したコミットをプッシュする | |
$ git push origin HEAD |
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 SwiftUI | |
import UserNotifications | |
struct TimerView: View { | |
@State var start = false | |
@State var to: CGFloat = 0 | |
@State var count = 0 | |
@State var time = Timer.publish(every: 1, on: .main, in: .common).autoconnect() | |
var body: some View { |