1. When two vehicles enter an intersection from different highways at the same time, which vehicle must yield the right-of-way?
- Either one.
- Vehicle on the left.
- Vehicle on the right.
- Neither one.
See also https://shreevatsa.net/post/programming-pearls/
01 August 1983
| https://cdn.shopify.com/s/files/1/0317/7116/4804/files/Rasur_Guide_Updated_2022_komprimiert.pdf |
| """ | |
| Repro for ownership issue with Python stores for torch.distributed. | |
| rm -rf /tmp/store_bug; for i in {0..1}; do python -u store_bug.py $i 2 & done && wait | |
| """ | |
| import os | |
| import datetime | |
| import sys | |
| import time |
| import os | |
| import sys | |
| import ctypes | |
| ld = ctypes.CDLL(None, use_errno=True) | |
| SPLICE_F_NONBLOCK = getattr(os, "SPLICE_F_NONBLOCK", 0x02) | |
| def tee(fd_in, fd_out, length, flags=SPLICE_F_NONBLOCK): |
| import os | |
| import sys | |
| try: | |
| from _posixshmem import shm_open, shm_unlink | |
| except ImportError: | |
| import ctypes | |
| dllname = None | |
| if sys.platform.startswith("linux"): |
Experiment data from the moolib whitepaper.
| import contextlib | |
| import fcntl | |
| import os | |
| import sys | |
| import termios | |
| import tty | |
| @contextlib.contextmanager | |
| def no_echo(): |
| import queue | |
| import threading | |
| import gym | |
| def target(resetqueue, readyqueue): | |
| while True: | |
| env = resetqueue.get() | |
| if env is None: |
| #!/usr/bin/env python | |
| """ | |
| Script for plotting results. | |
| ``` | |
| python plot.py logs.tsv | |
| ``` | |
| """ | |
| import argparse | |
| import glob |