This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ( | |
github.com/arturwwl/gointtoletters v0.0.1 | |
github.com/aws/aws-sdk-go v1.44.210 | |
github.com/aws/aws-sdk-go-v2/config v1.18.34 | |
github.com/aws/aws-sdk-go-v2/credentials v1.13.33 | |
github.com/aws/aws-sdk-go-v2/service/sesv2 v1.19.3 | |
github.com/caarlos0/env/v6 v6.10.1 | |
github.com/carlmjohnson/requests v0.23.5 | |
github.com/dgrijalva/jwt-go v3.2.0+incompatible | |
github.com/go-playground/validator v9.31.0+incompatible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package server | |
import ( | |
"context" | |
"fmt" | |
"net/http" | |
"os" | |
"os/signal" | |
"path/filepath" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
networks: | |
loki: | |
services: | |
loki: | |
image: grafana/loki:2.9.4 | |
ports: | |
- "3100:3100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
client: | |
container_name: nextjs-client | |
build: | |
context: ./next-client | |
ports: | |
- "3000:3000" | |
networks: | |
- mynetwork |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic Math | |
1 + 2 | |
10/2 | |
# Literal | |
TRUE | |
# Assign variable | |
object <- "object" | |
object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { data } = await api.get( | |
`/excel`, | |
{ | |
responseType: "blob", | |
} | |
); | |
const url = URL.createObjectURL(data); | |
const link = document.createElement("a"); | |
link.style.display = "none"; | |
link.href = url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func daysFromNow(targetTime time.Time) int { | |
// Convert to capture date only, without time | |
year, month, day := time.Now().Date() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func createHTML(templatePath string, htmlData any) (string, error) { | |
var html string | |
htmlTemplate, err := template.ParseFiles(templatePath) | |
if err != nil { | |
return html, err | |
} | |
buf := new(bytes.Buffer) | |
err = htmlTemplate.Execute(buf, htmlData) | |
if err != nil { | |
fmt.Println(err) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Golang Configuration | |
export GOPATH=$HOME/go | |
export GOROOT=/opt/homebrew/opt/go/libexec # for Mac M1 homebrew | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kekerasan domestik adalah masalah serius dan meluas yang menimpa orang-orang dari semua usia, jenis kelamin, dan latar belakang. Hal ini dapat memiliki banyak bentuk, termasuk kekerasan fisik, emosional, finansial, dan kekerasan seksual. | |
Sebagai mahasiswa, penting untuk menyadari tanda-tanda kekerasan domestik dan mengambil langkah-langkah untuk melindungi diri sendiri dan orang lain. Berikut adalah beberapa tips untuk tetap aman dan mendukung korban kekerasan domestik: | |
Mengetahui tanda-tandanya: Beberapa tanda umum kekerasan domestik termasuk cedera fisik, ketakutan atau kecemasan, isolasi dari teman dan keluarga, dan kurangnya kontrol atas keputusan finansial atau pribadi. Jika Anda curiga seseorang yang Anda kenal mengalami kekerasan domestik, penting untuk memahami situasi dengan hati-hati dan sensitif. | |
Cari bantuan: Jika Anda atau seseorang yang Anda kenal dalam bahaya yang segera, hubungi 911. Ada juga banyak sumber daya tersedia bagi korban kekerasan domestik, termasuk layanan telepon darurat, pengu |
NewerOlder