国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| # author: Bluefissure | |
| # License: MIT License | |
| # Description: Fixes Palworld brokwn save files corrupted by someone existing the guild | |
| # Based on the work of https://github.com/cheahjs/palworld-save-tools/releases/tag/v0.13.0 | |
| import argparse | |
| import codecs | |
| import os | |
| import json | |
| from lib.gvas import GvasFile |
| import { unref, isRef, Ref, onUnmounted } from 'vue' | |
| type IntersectTarget = Element | Ref | |
| /** | |
| * 采用Intersection Observer API 实现无限滚动 | |
| * more_help: https://developer.mozilla.org/zh-CN/docs/Web/API/Intersection_Observer_API#intersection_observer_%E7%9A%84%E6%A6%82%E5%BF%B5%E5%92%8C%E7%94%A8%E6%B3%95 | |
| * @author <timrchen@foxmail.com> | |
| * @param target 目标元素,可在可增加列表末尾设置一个标志标签 | |
| * @param callback 正在相交时执行回调,请注意!如果有一些耗时的操作需要执行,建议使用 Window.requestIdleCallback() 方法 | |
| * @param options IntersectionObserver()构造函数的 options 对象,可选值参考:https://developer.mozilla.org/zh-CN/docs/Web/API/IntersectionObserver/IntersectionObserver#%E5%8F%82%E6%95%B0 | |
| */ |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| var readline = require('readline'); | |
| readline.emitKeypressEvents(process.stdin); | |
| if (process.stdin.isTTY) | |
| process.stdin.setRawMode(true); | |
| process.stdin.on('keypress', (chunk, key) => { | |
| if (key && key.name == 'q') | |
| process.exit(); |