2018-04-16から1日間の記事一覧
statement 区切りは、; か改行 ; 付けないことが一般的 print print("blue", "green", separator: "+", terminator: ",") print("yellow", terminator: ",") print("red") // blue+green,yellow,red print(#file) // MyPlayground.playground print(#line) /…
Swiftの変数・定数はnilが発生しないようになっていて、nilを代入したい変数は、型をOptional型にする必要がある。 String?のように型の後ろに?をつけるとnilを代入できるOptional型にWrapされる let nums = [3, 4, 6] let lastNum = nums.last let ans = la…
Xcode --- shortcut New Project command + shift + n New Playground option + command + shift + n Tool Bar command + option + t Navigation command + 0 Debug Area shift + command + y Utility Area command + option + 0 Modify Indentation ctrl + …
s3にあるオブジェクトの総量を見たい時 $ aws s3 ls --summarize --human-readable --recursive s3://<backet name> --- Total Objects: 21887 Total Size: 2.7 GiB s3にディレクトリを同期 $ aws s3 sync <local path> s3://<s3 backet> --exact-timestamps reference from http://www.task-note</s3></local></backet>…