PUROGU LADESU

ポエムがメインのブログです。

2024-04-01から1ヶ月間の記事一覧

【Kotlin】Gradleを使ってVSCodeでビルド、デバッグ

Gradleをインストール https://gradle.org/install/ ダウンロードして適当なフォルダに置く。 binの場所システム環境変数pathに追加。 Gladle作成 Windows10にGradleをインストール #Windows10 - Qiita gradle init --type=kotlin-application 質問に答えて…

【SpringBoot】Test

package com.example.serversidebbssample import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith import org.springframewor…

【Kotlin】VSCodeでkotlin拡張を使う

IntelliJを入れたほうが快適だと思うが、VSCodeを使えという指示なので試してみる。 コンパイラをいれる https://kotlinlang.org/docs/command-line.html#install-the-compiler Githubよりkotlin-compiler-1.9.23.zipをダウンロードする。 システム環境変数p…

postgresqlメモ

PostgreSQLの使い方 JavaDrive https://www.javadrive.jp/postgresql/PostgreSQL日本語ドキュメント https://www.postgresql.jp/document/PostgreSQL】データ型一覧 https://plus-info-tech.com/postgresql-typelist # 文字列や数値の値の入力方法 https://w…

【Python】JSONの要素の実際と期待値の差異を取得する

jsonを並び替える。 片方にしか存在しないオブジェクトを返す。 まあ並び替えなくてもいいんだけど。 with open("actual.json") as f: act = json.load(f) with open("expected.json") as f: exp = json.load(f) # 並び替えたい場合 act.sort(key=operator.i…

VSCodeでAWS EC2に接続する

1.キーペアをローカルに保存 EC2を作成時にローカルに保存する 場所 %userprofile%\.ssh\sshkey.pem 2.ターミナルから接続確認 %userprofile%\.sshに移動しターミナルから実行 ssh -i "sshkey.pem" ec2-user@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.amazonaws.com 3…

速習Kotlin

* 変数 var xxx * クラスありきではないのでトップレベルに関数をかける エントリーポイント fun main(args: Array<String>) { val name: String = "サンタ" println("こんちは ${name}さん") } * 型 プリミティブ(基本型)という概念はない Boolean Byte Short Int</string>…