see https://pnpm.io/installation
$ pnpm --versioncorepack will NOT be distributed with Node.js v25>= https://nodejs.org/docs/latest-v24.x/api/corepack.html
see https://pnpm.io/installation
$ pnpm --versioncorepack will NOT be distributed with Node.js v25>= https://nodejs.org/docs/latest-v24.x/api/corepack.html
| // To run this script, you can either: | |
| // 1. Go to sessionize.com in your browser, open the browser console, and paste the following script | |
| // 2. Run it locally in Node.JS and comment the following imports in the begining of the file to use JSDom as a dom parser. | |
| // const jsdom = require("jsdom") | |
| // const { JSDOM } = jsdom | |
| // global.DOMParser = new JSDOM().window.DOMParser | |
| const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)) | |
| const now = new Date(); |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| import "hardhat/console.sol"; | |
| contract NFTMarketplace is ERC721URIStorage { |
| /** | |
| *Submitted for verification at Etherscan.io on 2021-11-26 | |
| */ | |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.7; | |
| contract Lottery { | |
| uint MAX_PLAYERS = 3; | |
| address manager; |
Code is clean if it can be understood easily β by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.