Skip to content

Instantly share code, notes, and snippets.

View bobbyecho's full-sized avatar
🎨
Painting (code)

Bobby Echo Prasetyo bobbyecho

🎨
Painting (code)
View GitHub Profile
127.0.0.1 localhost
142.251.12.91 dev.sicepat.com
::1 ip6-localhost
@bobbyecho
bobbyecho / safeTask.ts
Last active November 3, 2023 19:07
(safeTask) error handling like golang in JS
type ErrorWithMessage = {
message: string;
};
function isErrorWithMessage(error: unknown): error is ErrorWithMessage {
return (
typeof error === 'object' &&
error !== null &&
'message' in error &&
typeof (error as Record<string, unknown>).message === 'string'
@bobbyecho
bobbyecho / webcrypto-examples.md
Created May 10, 2023 03:53
Web Cryptography API Examples