Skip to content

Instantly share code, notes, and snippets.

View dcb9's full-sized avatar

Du, Chengbin dcb9

View GitHub Profile
[package]
name = "counter"
version = "0.1.0"
edition = "2021"
[dependencies]
[dependencies.windows]
version = "0.52"
features = [
@dcb9
dcb9 / extractable-one-time-signatures-example-in-go.go
Last active December 10, 2024 14:36
babylon EOTS(Extractable one-time signatures) example in go https://go.dev/play/p/5cdeTT96Sj0
package main
import (
"crypto/rand"
"fmt"
"github.com/babylonchain/babylon/crypto/eots"
)
func main() {
module.exports.parse = ({ content, name, url }, { yaml, axios, notify }) => {
if (content && content.rules) {
const targets = ["国外流量"]
for (const target of targets) {
const hasTarget = content.rules.some((ele) => ele.includes(target))
if (hasTarget) {
const domainSuffixes = [
"rs", "io", "npmjs.org", "notion.so", "etherscan.io",
]
for (const domain of domainSuffixes) {