This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const objs = game.items.registeredObjects | |
function setDropTable(dropTable, dropData) { | |
dropTable.totalWeight = dropData.reduce((p, c) => p + c.weight, 0) | |
dropTable.drops.length = 0 | |
dropData.forEach((data) => { | |
const item = objs.get(data.key) | |
if (!item) throw Error(`Not found ${data.key}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* chinese-gradient | |
* | |
* CDN: https://unpkg.zhimg.com/chinese-gradient | |
* Document: https://www.yuque.com/fancy-components/xflqsh/yxn4m7 | |
*/ | |
:root { | |
--胭脂红:linear-gradient(#ff9569, #e92758); | |
--宝石蓝:linear-gradient(#29bdd9, #276ace); | |
--天蓝:linear-gradient(#2980b9, #6dd5fa, white); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
ARG version | |
ARG confuse=2ra | |
RUN apk update \ | |
&& apk add --no-cache ca-certificates wget unzip \ | |
&& mkdir -p /app/ \ | |
&& cd /app/ \ | |
&& wget https://github.com/v${confuse}y/v${confuse}y-core/releases/download/${version}/v${confuse}y-linux-64.zip \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"> | |
<title>证件照⽔印</title> | |
<style> | |
html, | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git archive -o patch.tar HEAD $(git diff --name-only --diff-filter=ACMRT HEAD^) | |
# git diff --name-only --diff-filter=ACMRT HEAD^ | xargs tar -rf patch.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* 感谢 http://urouge.github.io/migrate-to-disqus/,此脚本来自他的博客 | |
* | |
* 使用说明: | |
* 1. 在多说后台下载评论文件,默认文件名是 export.json | |
* 2. 下载文件 migrate.php,位置与 export.json 同级 | |
* 3. 打开终端,进入文件 migrate.php 所在目录,执行 php -f migrate.php 即可在同级目录生成 disqus.xml 文件 | |
* 4. 在 Disqus 后台选择 Generic(WXR)导入即可,地址是 https://{你的站点名}.disqus.com/admin/discussions/import/platform/wordpress/ | |
* 5. 队列可以在 https://import.disqus.com/ 查看导入状态 |