Skip to content

Instantly share code, notes, and snippets.

Capture & round-trip Δv: before (fixed dvLI) vs after (pure-physics v∞ capture) — AIRLESS destinations only

Atmospheric destinations excluded (they capture via aerobrake, flat 100 m/s — unaffected). All values raw model Δv (m/s), no difficulty margin. Round-trip = cheapest Sample-Return (else Return). Δcap = after − before. Positive = far home now correctly pays more; negative = old Kerbin-anchored value was over-charging an outer/closer home. Rows where Δcap≠0 are bold.

source destination mission cap before cap after roundtrip before roundtrip after Δcap
Bop Dres SAMPLE_RETURN 1290 609 6941 6260 -681
Bop Eeloo SAMPLE_RETURN 1370 255 7020 5904 -1115
Bop Gilly SAMPLE_RETURN 410 410 7975 7975 +0
#Archipelago
FROM python:3.12-slim AS archipelago-base
ENV VIRTUAL_ENV=/opt/venv
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY . .
RUN apt-get update; \
apt-get install -y --no-install-recommends \
git=1:2.39.5-0+deb12u1 \
@nickdavies
nickdavies / runners.py
Created June 11, 2019 17:55
Python 3.6 version of asyncio.runners
"""
Backport of the asyncio.runners module from Python 3.7.
"""
# Source:
# https://github.com/python/cpython/blob/a4afcdfa55ddffa4b9ae3b0cf101628c7bff4102/Lib/asyncio/runners.py
# Modifications:
# * removed relative imports of .coroutines, .events, .tasks
# * replaced `coroutines`, `events`, `tasks` with `asyncio`.
# * replaced `tasks.all_tasks` with `asyncio.Task.all_tasks` because it is
import requests
import time
import sys
URL = "https://api.github.com/search/users"
MAX_PAGE = 100
class GithubQuery(object):
results = {}
@nickdavies
nickdavies / gist:9795933
Created March 26, 2014 23:16
keybase.md
### Keybase proof
I hereby claim:
* I am nickdavies on github.
* I am nickdavies (https://keybase.io/nickdavies) on keybase.
* I have a public key whose fingerprint is 346A A865 7D22 2B04 604A 63A3 5F0F 5B6D 38FE 70FC
To claim this, I am signing this object: