Skip to content

Instantly share code, notes, and snippets.

@djour
djour / gist:2414613
Created April 18, 2012 16:11
Define subclass tf-idf for weighting scheme
diff --git a/xapian-core/include/xapian/weight.h b/xapian-core/include/xapian/weight.h
index 09cbe46..7592af1 100644
--- a/xapian-core/include/xapian/weight.h
+++ b/xapian-core/include/xapian/weight.h
@@ -506,6 +506,51 @@ class XAPIAN_VISIBILITY_DEFAULT TradWeight : public Weight {
double get_maxextra() const;
};
+/** Xapian::Weight subclass implementing the basic tf-idf scheme
+ *
@chuangbo
chuangbo / README.md
Last active June 19, 2023 04:48
Python dynamic DNSPod DNS Script

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`