This file contains hidden or 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
import { create } from "zustand"; | |
interface LoadState { | |
[key: string]: boolean; | |
} | |
interface States { | |
states: LoadState; | |
} |
This file contains hidden or 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
{ | |
"error": false, | |
"code": 200, | |
"message": "OK", | |
"data": { | |
"id": "def99af9-2184-40dd-be49-d094d0d59124", | |
"user_id": "65b38384-a192-4474-81e6-fc429a309e0c", | |
"school_id": "824c1d06-035e-45d1-8e34-a083d3263ed1", | |
"material_id": "e983510e-2e25-43ab-b21c-4e0bf68923e3", | |
"type": "course", |
This file contains hidden or 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
[ | |
{ | |
"city": "Qal eh-ye Now", | |
"timezone": "Asia/Kabul", | |
"pop": 2997 | |
}, | |
{ | |
"city": "Chaghcharan", | |
"timezone": "Asia/Kabul", | |
"pop": 15000 |
This file contains hidden or 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
{ | |
"error": false, | |
"code": 200, | |
"message": "OK", | |
"data": { | |
"list": [ | |
{ | |
"id": "152f575c-eedb-4449-89b9-afe110997a0d", | |
"user_id": "65b38384-a192-4474-81e6-fc429a309e0c", | |
"category": "gamification", |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Video Audio Detection</title> | |
</head> | |
<body> | |
<input type="file" id="videoInput" accept="video/*"> | |
<video id="videoElement" width="320" height="240" controls autoplay style="display: none"></video> |
This file contains hidden or 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
id := "7035ad47-82b4-4ef4-ae5d-220c40540232" | |
fileToUploadPath := "./assets/video.mp4" | |
fileToUpload, err := os.Open(fileToUploadPath) | |
if err != nil { | |
c.JSON(http.StatusBadRequest, gin.H{ | |
"message": err.Error(), | |
}) | |
return | |
} |
This file contains hidden or 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
{ | |
"assessment": [ | |
{ | |
"answer": "test update lorem ipsum", | |
"id": "c82defcf-3896-4256-8ef0-4924c623de56" | |
}, | |
{ | |
"answer": "test update lorem ipsum module2", | |
"id": "c9343fd1-2e0f-4a19-b559-3187f246a785" | |
}, |
This file contains hidden or 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 (handler *designerHandler) Notify(ctx *fiber.Ctx) error { | |
ctx.Set(fiber.HeaderContentType, "text/event-stream") | |
ctx.Set(fiber.HeaderCacheControl, "no-cache") | |
ctx.Set(fiber.HeaderConnection, "keep-alive") | |
ctx.Set(fiber.HeaderTransferEncoding, "chunked") | |
ctx.Context().SetBodyStreamWriter(func(w *bufio.Writer) { | |
for { | |
if handler.q.Length() == 0 { | |
time.Sleep(time.Second * 1) | |
continue |
This file contains hidden or 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
{ | |
"error": false, | |
"code": 200, | |
"message": "OK", | |
"data": { | |
"company": { | |
"id": "7ace78a0-d73f-45a8-9008-c9140fb83ae0", | |
"name": "The Test Company", | |
"description": "Test company has service .... ", | |
"sector": "IT", |
This file contains hidden or 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
{ | |
"error": false, | |
"code": 200, | |
"message": "OK", | |
"data": [ | |
{ | |
"id": "id.............", | |
"stripe_product_id": "id.............", | |
"name": "starter", | |
"description": "best option for personal use", |
NewerOlder