Skip to content

Instantly share code, notes, and snippets.

View Yummy-Yums's full-sized avatar
😊
Open to work on OSS / employed

Yummy-Yums

😊
Open to work on OSS / employed
  • Accra, Ghana
  • 22:36 (UTC)
View GitHub Profile
@Yummy-Yums
Yummy-Yums / workaround.ts
Created June 7, 2024 12:15
Promise Workaround
export async function checkWhetherURLExists(url: URL) {
try{
const response = await fetch(url.origin);
return response.status == 200
} catch(error){
return new Response("something went wronger")
}
}
@Yummy-Yums
Yummy-Yums / Service.scala
Last active May 26, 2024 18:25
ZIO Services pattern tutorial
import zio._
case class Doc(
title: String,
description: String,
language: String,
format: String,
content: Array[Byte]
)
@Yummy-Yums
Yummy-Yums / test.js
Last active February 29, 2024 12:58
Reflex Cxn Issue
var wsUri = "wss://ws.postman-echo.com/raw";
var log;
var websocket;
var inactivityTimeout;
function init(){
log = document.getElementById("log");
testWebSocket();
}

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.