bouzuya.hatenablog.com

ぼうずやのにっき

2021-05-01から1ヶ月間の記事一覧

bbn 0.5.0 をつくった

2021-05 のふりかえりは 2021-05-30 (=2021-W21-7) に書いた。 rust365 で bbn 0.5.0 をつくった。 bbn list のクエリの date: の形式として YYYY-MM-DD/YYYY-MM-DD を取れるようにした。 これで週のふりかえりに出てくる ↓ のようなリンクをつくれるように…

2021-W21 & 2021-05 ふりかえり

2021-W21 をふりかえる。 2021-W21 の目標 とその記事 目標。 ☑ 『三体 II (上) 』を読む ☐ 『実践 Rust プログラミング入門』を読む ☑ rust365 bbn-furikaeri をつくる 記事。 2021-05-29 bejson 0.3.0 をつくった 2021-05-28 rust365 で bejson 0.2.0 をつ…

bejson 0.3.0 をつくった

昨日 (2021-05-28) の bejson を 0.3.0 にした。 --trim-end を追加して末尾の改行を手軽に取り除けるようにした。 ただ実際に使ってみたところ deno 向けに TypeScript で書いたほうが簡単だと気づいてしまった。 今日のコミット。 rust-sandbox 2 commits …

rust365 で bejson 0.2.0 をつくった

rust365 (2021-05-14) で bejson 0.2.0 をつくった (bouzuya/rust-sandbox) 。 bejson は JSON にコマンドの実行結果を埋め込めるコマンドだ。たとえば ↓ のように使える。 $ cat test.bejson { "foo": "bar", "greeting": $`echo 'Hello'`, "date": $`date …

bejson 0.1.0 をつくった

bouzuya/rust-sandbox に bejson 0.1.0 を追加した。 nom で JSON を parse した。https://www.json.org/json-en.html の McKeeman Form に従って書いた。 nom をすこしだけ使えるようになってきたように思う。 Number に Rust の i64 / f64 の制約を入れて…

『三体 II 黒暗森林 上』を読んだ

『三体 II 黒暗森林 上』を読んだ。 I に続いて (2021-05-23) 三体 III に向けて読み返している。前回は 2020-06-21 。 今日のコミット。 rust-sandbox 3 commits bbn: 0.3.0 bbn: add view subcommand fix workflows rust-atcoder 2 commits typical90 050 …

風邪っぽい

風邪っぽい。鼻水とくしゃみがとまらない。 今日のコミット。 rust-atcoder 1 commit abc175 a, b, c, d, e rust-sandbox 6 commit bbn: 0.2.0 bbn: fix integration tests bbn: use new query bbn: add year, month, day to Query bbn: use &str in Query b…

bbn 0.1.0 (bbn-furikaeri 相当) をつくった

今日のコミット。 rust-sandbox 2 commits bbn: 0.1.0 bbn-furikaeri 相当のものをつくった 細かい仕様が変わっている bbn: initial commit rust-atcoder 2 commits typical90 048 abc174 a, b, c, d, e, f ABC174 F が水色とは思えない難しさ 典型なのだろ…

2021-W20 ふりかえり

2021-W20 をふりかえる。 2021-W20 の目標 とその記事 目標。 ☑ rust365 week をつくる ☑ 『実践 Rust プログラミング入門』を読み進める 記事。 2021-05-22 ABC202 で水色 → 緑色になった 2021-05-21 口内炎がつらい 2021-05-20 GitHub の Release ページか…

ABC202 で水色 → 緑色になった

ABC202 で水色 → 緑色になった。 D をひたすらバグらせていた。 下の子のお食い初め。良い天気だった。 今日のコミット。 rust-atcoder 3 commits abc202 a, b, c abc148 a, b, c, d, e, f typical90 046 rust-sandbox 3 commits week: 0.2.1 week: fix read…

口内炎がつらい

今日のコミット。 rust-sandbox 9 commits b: 0.4.1 キーで使用可能な文字種の修正 テンプレートの解釈の修正 GitHub の Releases での配布の開始 b: update readme b: update github actions settings b: allow _ as key b: fix lib b: add TemplateEntry b…

GitHub の Release ページからダウンロードできるようにした

bouzuya/rust-sandbox の week 0.2.0 をつくった。 今回は GitHub の Release ページにビルド済みのファイルを追加するようにしてみた。 https://github.com/bouzuya/rust-sandbox/releases/tag/week%2F0.2.0 いまは cargo install --path . しがちだけどビ…

week 0.1.0

今日のコミット。 rust-sandbox 1 commit week: 0.1.0 昨日までの date-range crate の date & week-date を使ったらすぐにできた rust-atcoder 2 commits typical90 044 abc144 a, b, c, d, e

ビット DP の典型だった

今日のコミット。 rust-sandbox 7 commits date-range: 0.3.0 date-range: add --week-date date-range: add week-date date-range: refactor tests date-range: impl TryFrom<u16> for Year & impl From<Year> for u16 date-range: impl From<DayOfMonth> for u8 date-range: impl </dayofmonth></year></u16>…

次は difficulty が水色の問題を解こう

AtCoder Problems を見ながら Difficulty が水色 (1200-) のものを解くようにしている。 水色の問題を解くようになってから水色になれた (2021-04-24) ような気がしている。調べてないけどそんな気がしている。レーティングを水色で安定させたりその上の青色…

2021-W19 ふりかえり

2021-W19 をふりかえる。 2021-W19 の目標 とその記事 目標。 ☑ date-range コマンドを Rust に移植する 記事。 2021-05-15 ABC201 で Highest を 1220 に更新した 2021-05-14 rust365 2021-05-13 nom を触ってみた 2021-05-12 首が昨日より悪くなっている 2…

ABC201 で Highest を 1220 に更新した

ABC201 で Highest を 1220 に更新した。 https://atcoder.jp/users/bouzuya/history/share/abc201 ABC200 : 水色 → 緑色 だったのを ABC201 : 緑色 → 水色に戻せた。 bouzuya/rust-sandbox で date-range 0.1.0 をつくっている。今週の目標にしていたのを思…

rust365

ぼくは rust365 という取り組みをしている。 rust365 は毎日 Rust で書かれたアプリをバージョンアップする取り組みだ。ぼくがそう呼んでいるだけのものだ。世間的には "Write Code Every Day" と呼ばれているものの一種だと思う。 ルールは ↓。 毎日 Rust …

nom を触ってみた

今日のコミット。 rust-sandbox 3 commits b: 0.3.0 b: {var} -> {{var}} crates:nom を触ってみた b: extract lib from main rust-atcoder 2 commits abc131 a, b, c, d, e typical90 038 首はまだ治っていない。

首が昨日より悪くなっている

今日のコミット。 rust-atcoder 2 commits abc129 a, b, c, d, e typical90 037 rust-sandbox 4 commits b: 0.2.0 b: add template directory feature b: use PathBuf b: add github actions workflow 『クリード 炎の宿敵』を観た。 首の状態が昨日 (2021-0…

首が回らない

今日のコミット。 rust-sandbox 5 commits fix on.push.branches b-pwd: 0.2.0 b-pwd: add github actions workflow b-pwd: use anyhow b-pwd: add --help & --version rust-atcoder 2 commits abc126 a, b, c, d, e, f typical90 036 また首がまわらなくな…

調子が悪い

今日のコミット。 rust-atcoder 1 commit abc114 a, b, c, d rust-sandbox 1 commit b: 0.1.0 調子が悪い。

2021-W18 ふりかえり

2021-W18 をふりかえる。 2021-W18 の目標 とその記事 目標。 ☑ 競プロ典型 90 問の最新に追いつく 記事。 2021-05-08 ABC200 で水 → 緑に落ちた 2021-05-07 なんだか調子が悪い 2021-05-06 AC Library の lazysegtree を調べた 2021-05-05 スーパーマリオ 3…

ABC200 で水 → 緑に落ちた

今日のコミット。 rust-atcoder 3 commits abc200 a, b, c, d abc113 a, b, c, d typical90 034 rust-sandbox 7 commits tasks: 0.5.0 tasks: add --all to list tasks: extract use_case from main tasks: SubCommand -> Subcommand tasks: use impl Into<String> t</string>…

なんだか調子が悪い

今日のコミット。 rust-sandbox 8 commits tasks: 0.4.0 tasks: extract lib from main tasks: move some functions to repository tasks: add TaskRepository tasks: TasksJson -> Tasks tasks: add task.id tasks: add remove subcommand tasks: use struc…

AC Library の lazysegtree を調べた

今日のコミット。 rust-sandbox 4 commits tasks: 0.3.0 tasks: add done subcommand tasks: fix data_dir tasks: add done flag rust-atcoder 2 commits abc099 a, b, c, d typical90 029, 030, 032 typical90 の 029 経由で lazysegtree の使い方を調べた…

スーパーマリオ 3D コレクションをクリアした

スーパーマリオ 3D コレクションをクリアした。 スーパーマリオ 64 ・スーパーマリオサンシャイン・スーパーマリオギャラクシーの 3 作のすべてのスター (or シャイン) を集めてクリアした。 スーパーマリオ 64 (2020-11-14) スーパーマリオサンシャイン (20…

強連結成分分解を調べた

今日のコミット。 rust-sandbox 1 commit tasks: 0.1.0 tasks add <text> serde, serde_json, dirs を使っている rust-atcoder 4 commits abc097 c abc097 a, b, c, d typical90 022, 024 typical90 021 競プロ典型 90 問の 021 経由で強連結成分分解 (SCC: Strong</text>…

川沿いの公園へ行った

川沿いの公園へ行った。途中に鯉のぼりなどを見た。 今日のコミット。 rust-atcoder 2 commits typical90 020 abc096 a, b, c, d rust-sandbox 2 commits markdown-link-helper: 0.2.0 markdown-link-helper: add a rule for [crates:*]

2021-W17 & 2021-04 ふりかえり

2021-W17 をふりかえる。 2021-W17 の目標 とその記事 目標。 ☑ 毎日 Rust で何かつくる 記事。 2021-05-01 current を Rust で書き直した 2021-04-30 [x] → ☑ 2021-04-29 Rust の raw string literals は便利だ 2021-04-28 WUPC2012 F を解いた 2021-04-27 …