This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"), | |
util = require("util") | |
http.createServer(function(req, rsp){ | |
var regex = /^\/(v1|v2)/g | |
var matches = req.url.match(regex) | |
if((matches && matches[0] === "/v1") || (req.headers["x-api-version"] === "v1")) | |
var port = 8001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://cashtokens.org/bcmr-v2.schema.json", | |
"version": { "major": 0, "minor": 1, "patch": 1 }, | |
"latestRevision": "2023-04-25T21:45:00.000Z", | |
"registryIdentity": { | |
"name": "cash token", | |
"description": "self-published cash token on chipnet", | |
"time": { "begin": "2023-04-25T20:58:08.000Z" } | |
}, | |
"identities": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": { | |
"major": 0, | |
"minor": 1, | |
"patch": 0 | |
}, | |
"latestRevision": "2023-04-25T21:58:08Z", | |
"registryIdentity": { | |
"name": "cash token", | |
"description": "self-published cash token on chipnet", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://cashtokens.org/bcmr-v2.schema.json", | |
"version": { "major": 0, "minor": 1, "patch": 1 }, | |
"latestRevision": "2023-04-25T21:45:00.000Z", | |
"registryIdentity": { | |
"name": "cash token", | |
"description": "self-published cash token on chipnet", | |
"time": { "begin": "2023-04-25T20:58:08.000Z" } | |
}, | |
"identities": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.7; | |
/** | |
* @title Guard Contract. | |
* @author Anthony (fps) https://github.com/0xfps. | |
*/ | |
abstract contract Guard { | |
bool locked; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ethers = require('ethers'); | |
var crypto = require('crypto'); | |
var id = crypto.randomBytes(32).toString('hex'); | |
var privateKey = "0x"+id; | |
console.log("SAVE BUT DO NOT SHARE THIS:", privateKey); | |
var wallet = new ethers.Wallet(privateKey); | |
console.log("Address: " + wallet.address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let nftABI=[{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"mint",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{con |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let iconFound = false; | |
let tokenUrl = null; | |
if ( | |
token.url.startsWith('ipfs://') || | |
token.url.startsWith('psf://') || | |
token.url.startsWith('nouns:') || | |
token.url.startsWith('pouns:') | |
) | |
tokenUrl = token.url; | |
if (token.url.startsWith('Qm') || token.url.startsWith('bafyb')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generateWaifu = require('waifu-generator') | |
async function genWaifu () { | |
try { | |
for (var i = 1; i <= 1000; i++) { | |
const options = { | |
filename: name, | |
path: './images' | |
} | |
await generateWaifu(options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am attesting that this GitHub handle zh is linked to the Tezos account tz1aoPC4r8cYnKXVKeULNgVWQyDb74jFkxoM for tzprofiles | |
sig:edsigtvrXJMRoTdBphwavCnUwSFhmrdZoEZdGjajdtta5Q8yjTuNX9FH1keW4qj3YeSmKk5cauTNfL9q8U2NRcDT18w6yyRDTAb |
NewerOlder