Swift

サンプルコード
let tt = DateFormatter()
tt.dateFormat = DateFormatter.dateFormat(fromTemplate: “EEE”, op ...

Swift

サンプルコード
let fmt = DateFormatter()
fmt.dateFormat = DateFormatter.dateFormat(fromTemplate: “ydMMM” ...

VB.net

サンプルコード

Module ModuleTest Sub Main() Dim city As New Dictionary(Of String, String) city.Add("tokyo", "東京") city.Ad ...

VB.net

サンプルコード

Module ModuleTest Sub Main() Dim kd As New HashSet(Of String) kd.Add("22") kd.Add("33") kd.Clear() Console ...

VB.net

サンプルコード

Module ModuleTest Sub Main() Dim cft As New HashSet(Of String) cft.Add("11") cft.Add("22") cft.Add("33") c ...

Linux

1.ポート番号の削除
# firewall-cmd –remove-port=8080/tcp –zone=public
# firewall-cmd –remove-port=10 ...

Swift

1.文字列置換
let cft = “123testData”
cft.replacingOccurrences(of: “ta”, with: “ark&# ...

Swift

サンプルコード
let arr =
let avg= arr.reduce(0) { $0 + $1 }
print(avg)

GitLab

Git Bashでコマンドを実行する
1.特定のファイル
$ git status
$ git checkout 「filename」
例 git checkout com/study/arkgame/ ...

GitLab

1.ダウンロード

「Download 2.26.2 for Windows」をクリックすると、「Git-2.26.2-64-bit.exe」ファイルのダウンロードが始まります。

2.gitlabインス

IT

1.ローカルモジュールをGitに登録
git clone
cd dev
git add *
git commit -m “comment”
git push -u ori ...

Ruby

サンプルコード

tt = "002"if tt == "001" then print("aaa")elsif tt == "002" then print("bbb")else print("other value")end

Ruby

書式

unless conditional codeend

コード

#!/usr/bin/ruby# -*- coding: UTF-8 -*-x=1unless x>2 puts "x < 2" els ...

Ruby

書式
code if condition

コード
#!/usr/bin/ruby

$debug=1
print “test data\n” if $debug ...

Glassfish

環境
Eclipse 4.6 Neon
Glassfish 3.1.2

現象
Eclipseコンソール画面が一部文字化けします

解決方法
(1).配置ファイルの場所:
例 ...

Glassfish

環境
Eclipse 4.6 Neon
Glassfish 3.1.2

エラー現象
が管理アクセス権を持っていないか、不正なユーザー名およびパスワードが指定されています|#]

解決方法 ...

Windows10

1.操作手順
「コマンドプロンプト」で「netstat -an | findstr 0.0:xxxx」コマンドを入力します。

2.現象
‘netstat’ は、内部コマンドまたは外部 ...

Eclipse

操作方法
1.「ファイル」->「インポート」をクリックします。
2.「Git」 ->「Gitからプロジェクト」をクリックします。
3.「URIの複製」を選択します。
4.「次へ」をクリックし ...