Instead of letting claude wait for me patiently, I've created a Notification hook that plays a sound to alter me.
The hook is defined in ~/.claude/settings.json
{
// ...
"hooks": {| כאשר האלים והשדים, שניהם צאצאיו של פראג'פאטי, נלחמו זה בזה, האלים תפסו את עקרון החיים של האודגיטה, וחשבו שבכך הם ינצחו את השדים. | |
| הם עשו מדיטציה על האודגיטה שמתפקדת דרך האף, אבל השדים פילחו אותו ברוע. לכן, עם הנשימה מריחים גם את מה שנעים וגם את המגעיל. כך נוגע הנשימה על ידי הרוע. | |
| הם הרהרו באודגיטה כמילים, אבל השדים פילחו אותה ברוע. לכן, אדם מדבר גם אמת וגם שקר. כך נגע במילים הרוע. | |
| הם עשו מדיטציה על האודגיטה שמתפקדת דרך העין, אבל השדים פילחו אותה ברוע. לכן רואים גם מה נעים וגם מה שמכוער. כך העין נגעה ברשע. | |
| הם עשו מדיטציה על האודגיטה כשומעים, אבל השדים פילחו אותה ברוע. לכן שומעים גם דברים טובים וגם רעים. כך נוגע האוזן ברשע. | |
| אחר כך עשו מדיטציה על האודגיטה בתור המוח, אבל השדים פילחו אותה ברוע. לכן חושבים מה ראוי, נכון וטוב, ומה פסול, שקר ומושחת. כך הנפש נגעה ברשע. |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "math/rand/v2" | |
| "sync" | |
| "sync/atomic" | |
| "time" | |
| ) |
| package main | |
| import ( | |
| "expvar" | |
| "fmt" | |
| "log/slog" | |
| "net/http" | |
| "os" | |
| "time" |
| // export GOEXPERIMENT=rangefunc | |
| package main | |
| import "fmt" | |
| func main() { | |
| for v := range LinearSpace(0, 3, 10) { | |
| fmt.Printf("%.3f ", v) | |
| } | |
| fmt.Println() |
| syntax = "proto3"; | |
| import "google/protobuf/timestamp.proto"; | |
| message User { | |
| int64 id = 1; | |
| google.protobuf.Timestamp created = 2; | |
| } |
| @app.get("/users/{user_id}") | |
| def get_user(user_id): | |
| user = app.state.db.get_user(user_id) | |
| if user is None: | |
| raise HTTPException(HTTPStatus.NOT_FOUND) | |
| data = json.dumps(asdict(user)) | |
| return Response(data, media_type='application/json') |
| /* | |
| #golang #gem: Use expvar to expose metrics on /debug/vars. | |
| */ | |
| package main | |
| import ( | |
| "expvar" | |
| "fmt" | |
| "log" | |
| "net/http" |
| Note that the Go == operator compares not just the time instant but also the Location and the monotonic clock reading. Therefore, Time values should not be used as map or database keys without first guaranteeing that the identical Location has been set for all values, which can be achieved through use of the UTC or Local method, and that the monotonic clock reading has been stripped by setting t = t.Round(0). In general, prefer t.Equal(u) to t == u, since t.Equal uses the most accurate comparison available and correctly handles the case when only one of its arguments has a monotonic clock reading. |
| fmt.Println(t1.Equal(t2)) |