Skip to content

Instantly share code, notes, and snippets.

View enzoampil's full-sized avatar
🙂

Lorenzo Ampil enzoampil

🙂
View GitHub Profile
from enum import Enum, auto
class FeedStatus(Enum):
INIT = auto()
CONNECTED = auto()
PAUSED = auto()
CRASHED = auto()
from typing import List
@tuffacton
tuffacton / streamlit_colab.ipynb
Last active March 7, 2024 05:47
Colaboratory Notebook that hosts a streamlit app and creates an ngrok https tunnel for access.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tvst
tvst / SessionState.py
Last active September 30, 2024 07:47
DO NOT USE!!! Try st.session_state instead.
"""Hack to add per-session state to Streamlit.
Usage
-----
>>> import SessionState
>>>
>>> session_state = SessionState.get(user_name='', favorite_color='black')
>>> session_state.user_name
''