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]
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 | | | |
| | | | | |
| +-----------------|----------------+ | |
https://developers.google.com/search/apis/indexing-api/v3/quickstart
Run this directly from the browser console:
async function getSitemapUrls(sitemapUrl) {