// array.ext.ts
declare global {
interface Array<T> {
flatten(): Array;
Use homebrew formula of emacs head.
https://github.com/d12frosted/homebrew-emacs-plus
brew tap d12frosted/emacs-plus
brew install emacs-plus@28 # Change the 28 part to different version you want to install.
PromiseKit の使い方。
enum SampleError: Error {
case error
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# 前準備として、移行先に各イメージのレポジトリを作成しておく必要あり。 | |
# $from、$to、$aws_account_id、$images は適宜変更する。 | |
# | |
set -e | |
from="us-east-1" | |
to="ap-northeast-1" | |
aws_account_id="" |
- Blog
- Session
この投稿では、iOSのファイルシステムについて理解し、データを永続化(iCloud含む)する方法を紹介する。尚、サンプルコードは動かない可能性もあるので参考程度にして下さい。
アプリがファイルシステムとやり取り出来る場所は、ほぼアプリのサンドボックス内のディレクトリに制限されている。新しいアプリがインストールされる際、インストーラーはサンドボックス内に複数のコンテナを作成し、図1に示す構成をとる。各コンテナには役割があり、Bundle Containerはアプリのバンドルを保持し、Data Containerはアプリとユーザ両方のデータを保持する。Data Containerは用途毎に、さらに複数のディレクトリに分けられる。アプリは、例えばiCloud Containerのように、実行時に追加のコンテナへのアクセスをリクエストすることもある。
図1. An iOS app operating within its own sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM image | |
COPY hoge.txt /tmp | |
VOLUME /tmp |