尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證LifeClock: your life counted in seconds, from public SSA and WHO life tables. A gentle, private life-expectancy clock with share cards and desk mode. Nothing stored.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Live: https://theguysaccount.github.io/lifeclock/ · Screens: docs/screens
Your life, counted in seconds. Enter a birthday, sex and country, and LifeClock shows a live count of the seconds ahead of you, on average, from public life tables: the U.S. Social Security Administration's for the US, and the World Health Organization's for 184 other countries and the world. It's an average, not a prediction, and it says so.
| What | Where | When |
|---|---|---|
| Validate, test, build, drive in headless Chrome, deploy, smoke-test, IndexNow | .github/workflows/pages.yml | every push |
| Fetch WHO (and try SSA) life tables, validate, commit, redeploy | .github/workflows/refresh.yml | monthly |
| Live end-to-end test, page and table checks, keep-alive | .github/workflows/selftest.yml | weekly |
Failure handling and the keys for the domain, analytics and posters: OPERATIONS.md.
data/ssa.json, data/who.json life tables (refreshed by refresh.yml), data/countries.json names and ISO codes
pipeline/lifetables.py fetch, parse and validate the WHO and SSA tables
pipeline/reference.py the model in Python (independent of the JS; the tests compare them)
pipeline/build.py static site generator (standard library only) -> dist/
site/assets/core.js the model in the browser; app.js the UI; selftest.js the end-to-end driver
scripts/ e2e.sh, screens.sh, og.py, indexnow.py, check_live.py, keepalive.sh
tests/ Python tests (tables, model, build) and tests/js (model, parity)
Python 3.9+, Google Chrome, Node 18+ for the JS tests.
python3 pipeline/build.py && python3 -m http.server -d dist 8000 # http://localhost:8000
python3 -m unittest discover -s tests
node --test tests/js/*.test.mjs
scripts/e2e.sh
Deploy is a push to main.
Exact age is time since local midnight on the birthday, in 365.2425-day years. Remaining years come from the SSA's single-year table (US; linear between ages) or the WHO's table at ages 0, 1, 5 … 85 (linear between; past 85, the WHO value follows the SSA curve's shape). "Prefer not to say" uses the WHO both-sexes table, or the average of the SSA's two tables. The clock counts down to the moment you pressed start plus those years.
Code: MIT. Life tables: SSA (U.S. government work, public domain) and WHO (CC BY-NC-SA 3.0 IGO); the derived data/who.json and dist/data/tables.json are shared under CC BY-NC-SA 3.0 IGO.