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]
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) {
// Must update the USERNAME, PASSWORD, and ORDER_CODE variables. | |
const USERNAME = "<your-username>"; // Has to be an email. | |
const PASSWORD = "<your-password>"; | |
const ORDER_CODE = "KI00000133"; // Collect this from zapier panel. | |
const ROOT_DOMAIN = "https://kiyatec.dendisoftware.com"; | |
// Cache the token. | |
let config = { token: "" }; | |
async function getToken() { |