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: MIT | |
pragma solidity ^0.8.18; | |
contract TodoDapp { | |
enum TodoStatus { | |
Pending, | |
InProgress, | |
Completed, | |
Cancelled |
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
{ | |
"overrides": [ | |
{ | |
"files": "*.sol", | |
"options": { | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"bracketSpacing": false |
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: MIT | |
pragma solidity ^0.8.0; | |
contract Vote { | |
// 1. there are multiple candidates users can vote to any one | |
struct Candidate { | |
string name; | |
uint256 voteCount; | |
} |
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: MIT | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract MyToken is ERC20 { | |
constructor() ERC20("Play at farword", "PIF") { | |
_mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); | |
} | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script> | |
function readTextFile(file) { | |
var rawFile = new XMLHttpRequest(); | |
rawFile.open("GET", file, false); | |
rawFile.onreadystatechange = function() { | |
if (rawFile.readyState === 4) { |
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
{ | |
"data": [ | |
{ | |
"command": "animate-im6", | |
"description": "animates an image or image sequence on any X server" | |
}, | |
{ | |
"command": "animate-im6", | |
"description": "q16 animates an image or image sequence on any X server" | |
}, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Please Subscribe</title> | |
</head> | |
<body> | |
<script> | |
// File name and contents |
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
6ISZsRXa0JCIgoweCJCIczVmbpNXdsIycn5Wa0VWZNByIgAiCpRnY1NnIgojIlxGdayN2clRmIgAiCsIia0BXiIgojIu9WaylHcvNmIgAiCsICdodWqCLCI6IjMgkXYNBSSZoRFIsIjMwIDIskXYXB9Gdn5WaoNCIgoALiQ3cvBFIuRXdhJiOiI3boBibhZXRiAAiCsIies9GauJXaCBnIglh2cpxmY1JCIgoALiICI6IicoRXdhFWbFJ3biICI6ICbpVJ3boRXdhJCIgoALiwkUIKwiIiAiOiICI6ICcsVGaiACIgoALzVXYwJCZhN3cl1UZZiACIKwiIiAiOiU2Tk5WSZnF2czVWY2VEIkFWZSJCI6IJgi7WYuFGIzlGIzl2c5xW1alV2dgMXaoRHIm9DM1xVHcgM3NyADM1xFI0FGIlxme6E2YzAlZlJHagwFZzADM1xc3d39yL6MHc0RHaiF2duvR3ZulGazB3Lt92YuQ3cvBnbsB3blFmdl9SZo5mcpJWLuldmchRHIiw1L6x2b1xFdXiwFZzADMwATdcJCXr5WYsJ2doV2MvozcwRHY35yd3d3Ldz9Gcu9Gdn5WaoNXbj5CGcvVGcv02bylmYt4WY2V2LlxHbvhmMwUHXvoTdcF2LjNDXYiACIKwiIuU2MwAmc0R52bpRXdilmIgAiCsIiIgojIzojIklXaiVmIg8les9GauJJCIgoALikjM1AjMyQXZzwF2diAiOixmIgAiCsIiYl1ybsF2YvJCI6ISZsIyUV1ibl5RVZspne1BnIgAiCiUGcUPJ1QiAiOiACIKwiIEJ1TXN1SjJ3cgojIaBlIKwSZ1JHdZlRncvBXbJNXaiACI6ICALlNHbhZGTlxWaGNmczJCIgoSZtFmYlJCI6IHbvhmbylmCbthnL5ITNwIjMfpiCsIFWZyNmIgADI6ISZtlGVu9Wa0MTN2EzNykDM2AiCsUTN0klGVkVWamlGZv1mIgISZt2MTN2EDI6AiCsUTN0kzNykDM1BnIg |
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
{ | |
"data": [ | |
{ | |
"command": "anytopnm", | |
"description": "attempt to convert an unknown type of image file to a portable anymap" | |
}, | |
{ | |
"command": "aplay", | |
"description": "command-line sound recorder and player for ALSA soundcard driver" | |
}, |
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.4.22 <0.9.0; | |
library TestsAccounts { | |
function getAccount(uint index) pure public returns (address) { | |
address[15] memory accounts; | |
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; |