Skip to content

Instantly share code, notes, and snippets.

Privacy Policy
Last updated: February 8, 2026
Introduction
This Privacy Policy describes how Tick Tock App ("we", "our", or "us") collects, uses, and protects user information when you use our application.
By using the application, you agree to the collection and use of information in accordance with this policy.
from concurrent.futures import ThreadPoolExecutor
from math import sqrt
import cv2
import mediapipe as mp
import psutil
from entities.mouse import Mouse
from win32api import GetSystemMetrics
grabSize = 50
rom concurrent.futures import ThreadPoolExecutor
from math import sqrt
import cv2
import mediapipe as mp
import psutil
from entities.mouse import Mouse
from win32api import GetSystemMetrics
grabSize = 50
version: "3.8"
services:
postgres:
container_name: postgres
image: postgres:14.2
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
FROM golang:1.18
WORKDIR /go/src/go-fiber-api-docker
COPY . .
RUN go build -o bin/server cmd/main.go
CMD ["./bin/server"]
server:
go run cmd/main.go
build:
go build -o bin/server cmd/main.go
d.up:
docker-compose up
d.down:
package main
import (
"log"
"go-fiber-api-docker/pkg/common/config"
"go-fiber-api-docker/pkg/common/db"
"go-fiber-api-docker/pkg/products"
"github.com/gofiber/fiber/v2"
package products
import (
"github.com/gofiber/fiber/v2"
"gorm.io/gorm"
)
type handler struct {
DB *gorm.DB
}
package products
import (
"gorm.io/gorm"
)
type handler struct {
DB *gorm.DB
}
package products
import (
"go-fiber-api-docker/pkg/common/models"
"github.com/gofiber/fiber/v2"
)
type UpdateProductRequestBody struct {
Name string `json:"name"`