Skip to content

Instantly share code, notes, and snippets.

View LuPoYi's full-sized avatar
🦔

Bob LuPoYi

🦔
  • Taiwan
View GitHub Profile
@LuPoYi
LuPoYi / VRFv2Consumer.sol
Created March 17, 2024 13:29
Sepolia Chainlink VRFv2Consumer
// SPDX-License-Identifier: MIT
// An example of a consumer contract that relies on a subscription for funding.
pragma solidity ^0.8.7;
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
contract VRFv2Consumer is VRFConsumerBaseV2 {
VRFCoordinatorV2Interface COORDINATOR;
@LuPoYi
LuPoYi / NFTTokenURI.json
Created July 1, 2023 07:27
NFT TokenURI minted
{"name":"Bob Fake NFT - minted","description":"This image shows the true nature of NFT.","image":"https://fakeimg.pl/500x500/?text=Minted"}
@LuPoYi
LuPoYi / NFTTokenURI2.json
Created July 1, 2023 07:09
NFT TokenURI example2
{"name":"Bob Fake NFT2","description":"This image shows the true nature 2 of NFT.","image":"https://fakeimg.pl/500x500/?text=NFTTokenURI2"}
@LuPoYi
LuPoYi / NFTTokenURI1.json
Last active July 1, 2023 07:10
NFT TokenURI example
{"name":"Bob Fake NFT1","description":"This image shows the true nature 1 of NFT.","image":"https://fakeimg.pl/500x500/?text=NFTTokenURI1"}
@LuPoYi
LuPoYi / parser.js
Last active January 26, 2022 14:01
The Neighborhood NFT Rank - moonrank
let jsonData = []
const list = document.getElementsByClassName('shadow-mr-card-shadow')
for(const item of list){
const id = item.querySelectorAll('h3.font-medium > span')[0].innerText
const rank = item.querySelectorAll('[x-text=rank]')[0].innerText
jsonData.push({id, rank})
require 'thread'
module TT
def self.tester
@@queue1 = Queue.new
@@queue2 = Queue.new
@@package = []
#宇宙無敵快的thread
@@fast_thread = Thread.new do

Keybase proof

I hereby claim:

  • I am lupoyi on github.
  • I am boblu (https://keybase.io/boblu) on keybase.
  • I have a public key ASDJfea7XOAgtXsmbeZ5rb_Ccl2DKCTF5Ie73Ke79fljDAo

To claim this, I am signing this object:

@LuPoYi
LuPoYi / 0x27AF0938059da2EA8da6C25B1Ce1fF34Beb76c90
Created August 20, 2017 12:58
0x27AF0938059da2EA8da6C25B1Ce1fF34Beb76c90
0x27AF0938059da2EA8da6C25B1Ce1fF34Beb76c90
@LuPoYi
LuPoYi / EthereumTestnetWallet
Created August 20, 2017 12:55
0x57663F485F886b165F423b8ee6A36CEa2E327F93
0x57663F485F886b165F423b8ee6A36CEa2E327F93
@LuPoYi
LuPoYi / gist:804bf1a6ee00ed8710ed8902b750babe
Created August 20, 2017 12:46
Ethereum Testnet Address
0xf17922F05F70c0BA33F17ac1dc70cB185763a0a6