Swift VStackを使ってTextを左に寄せるサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
VStack(alignment: .leading) {処理コ ...
AWS EC2とS3でファイルをコピーするサンプル
環境
AWS EC2
AWS S3
AWS CLIのインストール済み
構文
aws s3 cp コピー元 コピー先
コピーはaws s3 cpコマンドを実行します。
操作 ...
AWS CLIのコマンドでEC2からS3のファイルの一覧を表示する
環境
AWS EC2
AWS S3
操作例
1.EC2からS3のファイルの一覧を表示する
コマンド
aws s3 ls
「aws s3 ls」を実行して、バケットの一覧を表示 ...
Swift frame修飾子を使ってTextを左に寄せるサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Text("テキスト") .frame(maxWidth: 横幅, ...AWS Lambda(ラムダ)でPythonのhello worldを実行するサンプル
環境
AWS Lambda
概要
Lambda(ラムダ)は、サーバーレスでプログラムを実行できます。
使用できるプログラミング言語は、C#,PowerShell,Go,Java,Node.js,Py ...
Ubuntu 23.04 Apache httpd をインストールして Web サーバーを構築する
環境
# cat/etc/issue
Ubuntu 23.04 \n \l
操作方法
1.Apache httpd をインストールします。
Swift TextEditorのフォーカスを操作するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
TextEditorのフォーカスを操作するには、@FocusSt ...
Swift Text(テキスト)を改行するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
文字列1\n文字列2
文字列内の改行を入れたい場所に「\ ...
Swift TextEditorのキーボードを表示するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
TextEditorのキーボードを表示するには、@FocusSt ...
TypeScript 配列をSetに変換するサンプル
環境
Windows 11 Pro 64bit
TypeScript 4.4.4
構文
const ttSet = new Set(配列名);
配列(array)をSetに変換するには、Se ...
AWS Route 53を利用しドメインを新規登録する方法
環境
AWS Route 53
概要
Amazon Route 53 は、可用性が高くスケーラブルなドメインネームシステム (DNS) ウェブサービスです。Route 53 は、ユーザーリクエストを AWS ...Flutter AlertDialogを円にするサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
shape: CircleBorder(),
AlertDialogを円にするには、引数「shape」に「Ci ...
Flutter Cardに最小の横幅を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
child: ConstrainedBox( constraints: BoxConstraints( minWidth ...Flutter GridViewの要素をタップできるようにするサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
GestureDetector(
onTap: (){
//処理コード
},
Grid ...
Flutter DatePickerでTextFormFieldに入力する方法
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
TextFormFieldに設定したTextEditinControllerのtextプロパティに、選択した日付を代入 ...
Flutter InputDecorationを使ってTextFormFieldのバリデーションエラーテキストの色を設定する
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
decoration: InputDecoration( errorStyle: TextStyle( color: x ...Flutter TextFormFieldの下線の色を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
1.通常時の下線の色を設定する
Flutter TextFormFieldのカーソルの色を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
TextFormField( cursorColor:/*カーソルの色*/,),TextFormFieldのカーソ ...