Spaces:
Sleeping
Sleeping
Download src/frontend_workspaces/runtime/functions.ts from haroldshipibm/cuga-agent: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/haroldshipibm/cuga-agent/resolve/main/src/frontend_workspaces/runtime/functions.ts
- Command line
-
hf download hf://spaces/haroldshipibm/cuga-agent/src/frontend_workspaces/runtime/functions.ts
-
curl -L -o functions.ts https://huggingface.co/spaces/haroldshipibm/cuga-agent/resolve/main/src/frontend_workspaces/runtime/functions.ts
349 Bytes
| export function sleep(time: number): Promise<void> { | |
| return new Promise((resolve) => setTimeout(resolve, time)); | |
| } | |
| export function uuidv4(): string { | |
| return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) { | |
| var r = (Math.random() * 16) | 0, | |
| v = c === "x" ? r : (r & 0x3) | 0x8; | |
| return v.toString(16); | |
| }); | |
| } | |