Skip to content

Instantly share code, notes, and snippets.

View jbrit's full-sized avatar
🏠
Working from home

Ajibola Ojo jbrit

🏠
Working from home
View GitHub Profile
@jbrit
jbrit / VideoCallState.py
Created December 29, 2021 19:18
A short implementation of video calling using State design pattern
from abc import ABC
from enum import Enum
class Caller:
def __init__(self):
self.other_caller = None
self.state = None
@jbrit
jbrit / ArrayDict.py
Last active October 1, 2021 21:49
Implementing Dictionary Like array based datastructure
class ArrayDict:
def __init__(self):
self.indices = []
self.values = []
def get(self, key):
if key not in self.indices:
return None
else:
index = self.indices.index(key)
@jbrit
jbrit / webdev_online_resources.md
Created August 8, 2019 23:00 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)