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 / CodesOnChain.MoveCrowdfund.ex
Last active June 3, 2023 09:47
CodesOnChain.MoveCrowdfund
defmodule CodesOnChain.MoveCrowdfund do
@moduledoc """
Weightlight backend for MoveCrowdfund.
"""
alias Web3SuiEx.Sui
@network "https://fullnode.testnet.sui.io:443"
@move_crowdfund_contract "0x928530ad292091fde082959ca7131f8b0f6209f8faf1a3fe8dc5ca86b2583acf"
@shared_fund_info "0x807b26a94f540b4164f5dd03acfb1fecf0c996db627945da4b2cd09ec3014a07"
THIS STORY takes place in Rome, where a Greek slave named Androcles escaped from his master and fled into the forest. There he wandered for a long time until he was weary and well nigh spent with hunger and despair. Just then he heard a lion near him moaning and groaning and at times roaring terribly. Tired as he was, Androcles rose up and rushed away, as he thought, from the lion; but as he made his way through the bushes he stumbled over the root of a tree and fell down lamed. When he tried to get up, there he saw the lion coming towards him, limping on three feet and holding his forepaw in front of him. Androcles was in despair; he had no strength to rise and run away, and there was the lion coming upon him. But when the great beast came up to him instead of attacking him it kept on moaning and looking at him, he saw that the lion was holding out his right paw, it was covered with blood and much swollen. Androcles and the Lion Looking more closely at it, Androcles saw a great big thorn pressed into the paw
@leeduckgo
leeduckgo / CodesOnChain.AwesomeMoveProjects.ex
Last active April 26, 2023 04:43
CodesOnChain.AwesomeMoveProjects
defmodule CodesOnChain.AwesomeMoveProjects do
@moduledoc """
The awesome projects of Move Micro Accelerator.
"""
defstruct [
:name,
:homepage,
:github,
:prizes,
@leeduckgo
leeduckgo / move_did_verification.txt
Created April 21, 2023 13:43
move_did_verification
0x2df41622c0c1baabaa73b2c24360d205e23e803959ebbcb0e5b80462165893ed
defmodule CodesOnChain.DID.Indexer do
@moduledoc """
Indexer for MoveDID.
"""
alias TaiShangMicroFaasSystem.Users.User
alias Web3AptosEx.Aptos
alias Components.{KVHandler, ModuleHandler}
def get_module_doc, do: @moduledoc
@leeduckgo
leeduckgo / CodesOnChain.PermaLife.Role.ex
Last active October 9, 2022 13:57
PermaLifeSnippets
defmodule CodesOnChain.PermaLife.Role do
@moduledoc """
backend forPermaLife.Role
"""
alias Components.{KVHandler, ModuleHandler}
def get_module_doc, do: @moduledoc
def create_role(payload) do
key = RandGen.gen_hex(8)
KVHandler.put(key, payload, ModuleHandler.get_module_name(__MODULE__))
end
@leeduckgo
leeduckgo / artists.json
Last active October 3, 2022 11:53 — forked from ErQi/artists.json
[
{
"name": "Kei",
"avatar": "./avatar/avatar_Kei.c36f2ed0.png",
"description": "一个价值投资小能手。全职摸鱼大王,兼职产品经理",
"tag": ["PM"]
},
{
"name": "Pixie",
"avatar": "./avatar/avatar_Pixie.274f8eed.png",
@leeduckgo
leeduckgo / CodesOnChain.AsciiDrawer.ex
Created September 21, 2022 15:05
Example-For-FaaS
defmodule CodesOnChain.AsciiDrawer do
@moduledoc """
This is an code-on-chain example:
Draw ascii pic with param
"""
def get_module_doc, do: @moduledoc
@spec get_ascii(String.t()) :: String.t()
def get_ascii("surprised"), do: "( ✧Д✧) OMG!!"
@leeduckgo
leeduckgo / card_dao.html
Last active September 17, 2022 12:07
Cards Templates in Vue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style type="text/css">
#app {
@leeduckgo
leeduckgo / SoulCard User 版本填写规则 v1.md
Last active September 10, 2022 11:20
SoulCard.User.SourceTemplate.V1
{
  "basic_info": [things in basic_info],
  "awesome_things": [things in awesome things],
  "dao_joined": [things in dao joined]
}