放送で紹介する用。書きかけです。
これは、 TypeScript 開発者が Rust + wasm-pack でフロントエンドを書けるようになるためのチュートリアルです。
Rust で書きつつ、 TypeScript で相当するコードをコメントで残しておきます。
| -- allSettings is a list of records containing {width:? height:? apps:{{name:? pos:? size:?},...} | |
| -- for each display setup store the apps and their associated position and size | |
| property allSettings : {} | |
| -- create a variable for the current settings | |
| set currentSettings to {} | |
| display dialog "Restore or save window settings?" buttons {"Restore", "Save"} default button "Restore" | |
| set dialogResult to result |
| $! raise された例外オブジェクト | |
| $" require で読み込まれたファイルの配列 | |
| $# | |
| $$ 現在のプロセス ID | |
| $% | |
| $& 正規表現にマッチした箇所の文字列 | |
| $' 正規表現にマッチした箇所より後ろの文字列 | |
| $( | |
| $) | |
| $* Ruby スクリプトに指定された引数。ARGV と同じ |
| $ ruby -r socket -e 'Socket.unix("#{ENV["HOME"]}/.cmus/socket"){|s| IO.copy_stream($<, s)}' | |
| player-pause <--コントロールコマンド | |
| player-play | |
| seek +1m | |
| ... |
| __rvm_path_match_gem_home_check_warning() | |
| { | |
| rvm_warn "\ | |
| Warning! PATH is not properly set up, '$GEM_HOME/bin' $1, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',to fix temporarily in this shell session run: 'rvm use ${GEM_HOME##*/}'." | |
| } | |
| __rvm_path_match_gem_home_check() | |
| { | |
| (( ${rvm_silence_path_mismatch_check_flag:-0} == 0 )) || return 0 | |
| [[ -n "${GEM_HOME:-}" ]] || return 0 |
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。