AWS

環境
AWS CloudShell

1.コマンドでEC2のAMIを作成する
構文

aws ec2 create-image \--instance-id インスタンスID \--name "AMI名" ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
result = arr
配列「arr」の最後からn番目の要素を取得します。
配列のインデックス「- ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
res = text.gsub(/\r\n|\n/, replace)
text=対象の文字列, repla ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
result = hash.to_a
to_aメソッドは、呼び出したハッシュ(Hash)のキーと値のペア(k ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
hash=対象のハッシュ
result = hash.values
valuesメソッドは、呼び出し ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
hash=対象のハッシュ
result = hash.keys
keysメソッドは、呼び出したハッシ ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
str=対象の文字列, newChar=追加する文字
result = str.concat(newChar ...

Ruby

環境
Windows10 Home 64bit
ruby 3.1.2p20

構文
#str=対象の文字列, newChar=追加する文字
str << newChar
「 ...

Ubuntu 23.04

環境

$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 23.04Release: 23.04Coden ...

Ansible

環境

$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 23.04Release: 23.04Coden ...

Ubuntu 23.04

環境
Ubuntu 23.04

操作方法
1.一時的に変更する。(システムを再起動すると元に戻る)
# hostname
li-VMware-Virtual-Platform

ス ...

Ubuntu 23.04

環境

$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 23.04Release: 23.04Coden ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文
MaterialButtonの形状を設定するには、引数「shape」を使います。
CircleBorder:丸 ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文

TextFormField( maxLength:/*最大文字数*/,),

TextFormFieldの引数「max ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文

Text( 'サンプルのテキスト', style: TextStyle( height:/*行間の大きさを文字の倍率で指 ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

操作方法
TextStyleの引数「letterSpacing」を使う方法

Text( 'サンプルのテキスト', st ...

Flutter

環境
Windows11 pro 64bit
Flutter 3.3.7

構文

Row( mainAxisAlignment: MainAxisAlignment.end, children: ,) ...

PowerShell

環境
Windows 11 pro 64bit
PowerShell

構文
Get-ChildItemコマンドで隠しファイルを含むファイル一覧を表示するには、「-Force」オプションを使います。 ...