When is my coffee break
Dev interested in new tech, JavaScript related everything, developer experience, and design philosphy.
-
Bob Group
- Pretoria, South Africa
Pinned Loading
-
LRU Cache implementation in Typescript
LRU Cache implementation in Typescript 1class LRU_Cache<T> extends Map<string,T> {
2private _limit: number;
3constructor(limit: number, entries?: [string, T][]) {
4super(entries);
5this._limit = limit;
-
Postgres DB Listener in Python with ...
Postgres DB Listener in Python with exponential backoff - asyncpg and asyncio 1import asyncio
2import asyncpg
34async def listen_for_notifications():
5backoff_times = [1, 2, 4, 8, 16] # Backoff times in seconds
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.