Claude Codeを --dangerously-skip-permissions で自律的に動かしつつ、ホストのMac環境を汚さず、かつXcodeビルドなどMacでしか実行できない操作も可能にする仕組みの解説。
Claude Codeの --dangerously-skip-permissions は強力だが、ホスト環境で直接実行すると以下のリスクがある:
- ファイルシステムへの無制限なアクセス
- 任意のシェルコマンドの実行
react-hook-formとyupを使った重複チェックバリデーション
最近yupに値の重複チェックするためのいい感じの機能が入ったので、react-hook-formと組み合わせて重複チェックをする方法を備忘のため書き綴っていきます。
今まではデータのネストが深い場合、ネストを遡って他のデータにアクセスしデータのバリデーションが難しかったのですが、yupのv0.29.1から追加されたtest関数のコンテキストのfromプロパティを使用することによってネストを遡ることが容易になりました。
jquense/yup#556
今回はそのfromを使用し、フォームの重複チェックバリデーションを作ってみます。
| /* | |
| * Async.gs | |
| * | |
| * Manages asyncronous execution via time-based triggers. | |
| * | |
| * Note that execution normally takes 30-60s due to scheduling of the trigger. | |
| * | |
| * @see https://developers.google.com/apps-script/reference/script/clock-trigger-builder.html | |
| */ |
TypeScript and Playground練習問題集更新情報
WIP
| #!/usr/bin/python | |
| ''' | |
| This script downloads your likes from your Tumblr blog. | |
| It needs *BOTH* a valid OAuth key + secret *AND* a user token (obtained through OAuth). | |
| Obtain the former here: https://www.tumblr.com/oauth/apps | |
| Obtain the latter through API Explorer: https://api.tumblr.com/console/calls/user/info | |
| (or through the nonsense of an OAuth dance if you'd like, this is Tumblr anyway, | |
| I won't kink-shame you. But seriously.) |
| 絵文字 | 文字列 | 意味 |
|---|---|---|
| 🎨 | art | コードのフォーマットや構造にテコ入れ |
| 🚀 | rocket | パフォーマンスを改善 |
| ✏️ | pencil2 | ドキュメントを書いた時 |
| 🚧 | construction | 作業中 |
| ➕ | heavy_plus_sign | 機能を追加,完成 |
| ➖ | heavy_minus_sign | 機能を削除 |
| 🔈 | speaker | ログを追加 |
| 🔇 | mute | ログを削除 |
| // Draws a triangle using low-level OpenGL calls. | |
| import java.nio.*; | |
| PGL pgl; | |
| PShader sh; | |
| int vertLoc; | |
| int colorLoc; | |
| float[] vertices; |