Skip to content

Instantly share code, notes, and snippets.

View leeduckgo's full-sized avatar
💭
blockchain everyday

李大狗 leeduckgo

💭
blockchain everyday
View GitHub Profile
@leeduckgo
leeduckgo / wabi-sabi-arweave-based-gpt-bot.md
Created June 24, 2024 11:11
wabi-sabi-arweave-based-gpt-bot
                        _                        _    _____ _____ _______   ____        _   
     /\               | |                      | |  / ____|  __ \__   __| |  _ \      | |  
    /  \   _ __ ______| |__   __ _ ___  ___  __| | | |  __| |__) | | |    | |_) | ___ | |_ 
   / /\ \ | '__|______| '_ \ / _` / __|/ _ \/ _` | | | |_ |  ___/  | |    |  _ < / _ \| __|   🤖
  / ____ \| |         | |_) | (_| \__ \  __/ (_| | | |__| | |      | |    | |_) | (_) | |_    /|\
 /_/    \_\_|         |_.__/ \__,_|___/\___|\__,_|  \_____|_|      |_|    |____/ \___/ \__|  zzzzzz
                                                                                           
 +------------------------------------------------------------------------------------------------------------+  
 |  More Intro |  Scaffold-GPT-Bot   |   Author Twitter    |     Github Link     |                    |
@leeduckgo
leeduckgo / 面对软件错误构建可靠的分布式系统.md
Created June 4, 2024 08:05
面对软件错误构建可靠的分布式系统

面对软件错误构建可靠的分布式系统

(瑞典)Joe Armstrong 撰

段先德 译 邓 辉 审

<声明:本文版权属原文作者所有,译文仅用于个人学习和交流,不得用于任何商业目的。>

defmodule CodesOnChain.ReadmeAnalyzer do
@moduledoc """
analyze the readme of a repo.
functions:
- analyze_readme(text)
"""
def get_module_doc, do: @moduledoc
@leeduckgo
leeduckgo / CodesOnChain.Contracts.RMUDLottery.ex
Created February 10, 2024 09:18
CodesOnChain.Contracts.RMUDLottery.ex
defmodule CodesOnChain.Contracts.RMUDLottery do
@moduledoc """
the interact with RMUDLottery on mappo chain.
> https://mainnet.optimism.io
> 10
> https://explorer.optimism.io
"""
alias Ethereumex.HttpClient
alias Components.Transaction
@leeduckgo
leeduckgo / CodesOnChain.ArweaveUploader.ex
Last active January 24, 2024 05:06
CodesOnChain.ArweaveUploader.ex
defmodule CodesOnChain.ArweaveUploader do
alias Components.ArweaveHandler
@moduledoc """
generate map by a given hash.
"""
def get_module_doc, do: @moduledoc
def send_tx(api_key, data, tags) do
@leeduckgo
leeduckgo / ItemTagger.sol
Created January 8, 2024 07:38
MoveSpaceTaggerCollection
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title ItemTagger v1.0.0
* @dev Implements tagger process along with judger.
*/
contract ItemTagger {
address public chairperson;
@leeduckgo
leeduckgo / CodesOnChain.Crypto.ex
Created December 29, 2023 05:44
CodesOnChain.Crypto.ex
defmodule CodesOnChain.Crypto do
@moduledoc """
the funcs about crypto
"""
def get_module_doc, do: @moduledoc
defdelegate verify_compact(msg, sig, addr), to: EthWallet
end
defmodule CodesOnChain.Contracts.Bodhi.VectorTagger do
@moduledoc """
the interact with vectorTagger on op chain.
> https://mainnet.optimism.io
> 10
> https://explorer.optimism.io
"""
alias Ethereumex.HttpClient
require Logger
@leeduckgo
leeduckgo / CodesOnChain.GalxeInteractor.ex
Last active December 13, 2023 11:54
CodesOnChain.GalxeInteractor
defmodule CodesOnChain.GalxeInteractor do
@moduledoc """
Interact with Galxe.
"""
alias Components.GalxeGraphQLInteractor
def get_module_doc, do: @moduledoc
def query_campaign_list(the_alias, fir, aft) do