Skip to content

Instantly share code, notes, and snippets.

@luminshi
luminshi / dependency.py
Last active March 7, 2024 04:38
A quick hack to run class methods with interdependencies in parallel
import threading
import functools
from time import sleep
completeness = {
"a": False,
"b": False,
"c": False,
"d": False,
@luminshi
luminshi / docker_jupyter.sh
Created September 6, 2021 15:56
Jupyter Notebook Docker Script
#!/bin/bash
# I pulled notebook-6.4.3 from docker hub
IMAGE="jupyter/datascience-notebook:latest"
# Host IP to bind to.
# Ideally, the IP belongs to an overlay network so
# you don't have to set up HTTPS for encryption.
IP="SOME_HOST_IP"