Skip to content

Instantly share code, notes, and snippets.

View ahmedosama-st's full-sized avatar
🐼
Peckaboo

Ahmed Osama ahmedosama-st

🐼
Peckaboo
View GitHub Profile
@ahmedosama-st
ahmedosama-st / gc-ms.ts
Last active December 16, 2024 10:38
Garbage collector Mark And Sweep example in TS
class GarbageCollector {
public heap: Set<object>;
constructor() {
this.heap = new Set(); // Simulates the heap where all objects are stored
}
allocate(obj) {
this.heap.add(obj); // Add the object to the heap
return obj;
@ahmedosama-st
ahmedosama-st / cloudSettings
Last active December 21, 2022 08:53
My MacOSX version of vscode settings
{"lastUpload":"2022-03-28T08:06:06.594Z","extensionVersion":"v3.4.3"}
@ahmedosama-st
ahmedosama-st / cloudSettings
Last active February 27, 2022 07:22
My linux version of vscode settings
{"lastUpload":"2022-02-27T07:22:16.320Z","extensionVersion":"v3.4.3"}