The following script will generate a simple markdown worklog in the format listed below. It correctly handles the partial weeks at the beginning and the end of the year.
# Worklog
## Week 1 [2025-01-01 - 2025-01-03]| ## Just copy the commands and run them | |
| # System-wide animation and transparency | |
| defaults write -g reduceMotion -bool true | |
| defaults write -g reduceTransparency -bool true | |
| defaults write com.apple.Accessibility ReduceMotionEnabled -bool true | |
| defaults write com.apple.Accessibility ReduceTransparencyEnabled -bool true | |
| # Dock instant show/hide |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "strings" | |
| "time" |
| for { | |
| // Build the paginated query | |
| query := session.Query("SELECT id, name FROM users").PageSize(pageSize).PageState(pageState) | |
| iter := query.Iter() | |
| var id gocql.UUID | |
| var name string | |
| for iter.Scan(&id, &name) { | |
| fmt.Printf("User: %s - %s\n", id, name) |
| package errs | |
| import ( | |
| "fmt" | |
| "runtime" | |
| ) | |
| // Error represents a custom error with function name, line number, and message. | |
| type Error struct { | |
| lineno int |
| from svc import log # noqa |
| from svc import log # noqa |
| package src | |
| import ( | |
| "testing" | |
| ) | |
| // Apply functional options pattern | |
| type config struct { | |
| // Required | |
| foo, bar string |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "os" | |
| "runtime" | |
| "strings" | |
| ) |
| /* | |
| cc Redowan Delowar (rednafi.com) | |
| +----------------------------------------+ | |
| | Load Balancer (8080) | | |
| | +----------------------------------+ | | |
| | | | | | |
| | | Request from Client | | | |
| | | | | | |
| | +-----------------|----------------+ | |