1つのデバイスでの変更が同じアプリがインストールされた全てのデバイスへ伝わる
アプリはNSUbiquitousKeyValueStoreを通してkey-valueにアクセスできる
| [alias] | |
| tmp = !sh -c 'git co $1 $2 && git reset $2 > /dev/null && fpath=$2 && tmpfile=/tmp/$1."${fpath##*.}" && mv -f $fpath $tmpfile && git co -- $fpath && view $tmpfile && rm -f $tmpfile' - |
| (function (n) { | |
| return (function (fact) { | |
| return fact(fact, n); | |
| })(function (ft, k) { | |
| return (k === 1) ? 1 | |
| : k * (ft(ft, (k - 1))); | |
| }); | |
| })(10) |
| [10:37] ~/tmp/2014-05-22/test | |
| % git --version | |
| git version 1.9.0 | |
| [10:37] ~/tmp/2014-05-22/test | |
| % git init | |
| Initialized empty Git repository in /Users/no-kumagai/tmp/2014-05-22/test/.git/ | |
| [10:37] ~/tmp/2014-05-22/test | |
| (git)-[master]-% ll |
| #!perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Devel::Peek; | |
| my $str = '{"a":"b","c":"あ"}'; | |
| Dump $str; | |
| print <<EOS; |
| func variadic(items: Any...) { | |
| print(items.joinWithSeparator(" = ")) // 何も表示されない | |
| print(items.map({ String($0) }).joinWithSeparator(" = ")) // a = b | |
| } | |
| variadic("a", "b") |