RxSwiftは、ReactiveX(Rx)のswift実装である。この投稿ではRxの概要をRxSwiftを用いて解説する。
Rxを簡単に説明すると、下記のものを組み合わせたライブラリである。
Rx = Observable + Operators + Scheduler
基本的にはObserverパターンの拡張であり、非同期データストリームであるObservableに対して
GIT_VERSION=`git --version | awk '{print $3}'` | |
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash" | |
BASHRC="$HOME/.bashrc" | |
echo "Downloading git-completion for git version: $GIT_VERSION..." | |
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then | |
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
fi |
FROM image | |
COPY hoge.txt /tmp | |
VOLUME /tmp |
require 'net/http' | |
require 'net/https' | |
require 'json' | |
require 'pit' | |
@host = "api.github.com" | |
@ng_member = [] # for bot | |
def group_match app_id, team_id, groups | |
@token = access_token(app_id) |
PromiseKit の使い方。
enum SampleError: Error {
case error
}
#!/bin/bash | |
# | |
# 前準備として、移行先に各イメージのレポジトリを作成しておく必要あり。 | |
# $from、$to、$aws_account_id、$images は適宜変更する。 | |
# | |
set -e | |
from="us-east-1" | |
to="ap-northeast-1" | |
aws_account_id="" |