Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2022-05-17 #11

Open
r7kamura opened this issue May 16, 2022 · 14 comments
Open

2022-05-17 #11

r7kamura opened this issue May 16, 2022 · 14 comments

Comments

@r7kamura
Copy link
Owner

No description provided.

@r7kamura
Copy link
Owner Author

作業配信する。
作業 with r7kamura #17 - YouTube

@r7kamura
Copy link
Owner Author

rubocop-todo-correctorを業務のRailsアプリの一つに導入した。上手く動いていることを確認した。

@r7kamura
Copy link
Owner Author

r7kamura/diaryにRSSを追加した。
#10

@r7kamura
Copy link
Owner Author

r7kamura commented May 16, 2022

Amazon URL ShortenerでURLが短縮されないページを見つけたので、色々試してみた。同じようなの本ページでも、いけるものと駄目なものがある。すると、window.onload = ... というコードだと上手く動かないページもあるということが分かった。

content scriptの実行タイミングをmanifestで調整できるようで、ドキュメントを読み終わった後に実行してもらうようにすれば、window.onloadに頼らなくて済む。そもそもwindow.addEventListenerを使いなさいよという話ではあるのだが。という訳で、これを使うようにした。

また、ドキュメント内の要素からASINを見つけられなかった場合にのみURLパターンから正規表現でASINを取り出すというフォールバックを用意したので、これでAmazonフレッシュのような特殊なページにも対応できるようになった。面白いことに、Amazonフレッシュのページではクエリ情報を取り除いたURLでのみ「この商品は過去に50回購入しています」的な情報が表示される。つまり、短縮した方が情報が増える。

Amazon URL Shortenerの開発話はどこかに少しまとめておいた方が良さそうだ。

@r7kamura
Copy link
Owner Author

RSSのitemにdescriptionが空だと若干怒られるっぽかったので、適当に「2022年5月17日の作業ログ」みたいな文字列で埋めることにした。

@r7kamura
Copy link
Owner Author

https://github.com/r7kamura/gh-diary を改造して、エディタから作業ログを書けるようにした。

@r7kamura
Copy link
Owner Author

書き直した。
GitHub Issuesで作業ログを書く

@r7kamura
Copy link
Owner Author

VSCodeでターミナルを常に全画面パネルで開きたいと思っていたので、設定した。
Keyboard shortcuts example for VSCode to always open terminal in maximized panel.

@r7kamura
Copy link
Owner Author

見ている業務アプリの一つにrubocop-todo-correctorを導入しようとしたが、そういえば全てのTODOを半年ほど掛けてほぼ気合いで直しきったので、このリポジトリでは不要だった。

@r7kamura
Copy link
Owner Author

r7kamura commented May 17, 2022

VSCode Rubyのsmart select (shift+alt+left/rightで選択範囲を拡縮できる機能)、引用符とかdo...endブロックとか選択できないのがいまいちで、書き味がかなり悪い。

do...endについては数年前にIssueが上がっていた
rubyide/vscode-ruby#374

@r7kamura
Copy link
Owner Author

r7kamura commented May 17, 2022

IMG_6600
IMG_6599

掛け時計が届いたので設置作業を進めた。

@r7kamura
Copy link
Owner Author

Hatsukey69いいじゃん
【委託】Hatsukey69 – 遊舎工房ショップ

@r7kamura
Copy link
Owner Author

IMG_6602

取り付けた。

@r7kamura
Copy link
Owner Author

Rails7にあげるとwarningが出るようになった · Issue #64 · r7kamura/autodocというIssueを挙げてくれた人がいたので対応した。助かる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant