Skip to content

Instantly share code, notes, and snippets.

View tauseedzaman's full-sized avatar
😉
Working from home

Tauseed Zaman tauseedzaman

😉
Working from home
View GitHub Profile
@tauseedzaman
tauseedzaman / TodoDapp.sol
Created December 7, 2023 07:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
contract TodoDapp {
enum TodoStatus {
Pending,
InProgress,
Completed,
Cancelled
@tauseedzaman
tauseedzaman / .prettierrc.json
Created December 7, 2023 07:41
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@tauseedzaman
tauseedzaman / Vote.sol
Created November 29, 2023 08:13
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// 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;
}
@tauseedzaman
tauseedzaman / contracts...MyERC20.sol
Created November 29, 2023 04:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=false&runs=200&gist=
// 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())));
}
}
<!DOCTYPE html>
<html>
<head>
<script>
function readTextFile(file) {
var rawFile = new XMLHttpRequest();
rawFile.open("GET", file, false);
rawFile.onreadystatechange = function() {
if (rawFile.readyState === 4) {
{
"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"
},
<!DOCTYPE html>
<html>
<head>
<title>Please Subscribe</title>
</head>
<body>
<script>
// File name and contents
@tauseedzaman
tauseedzaman / encoded-data
Created June 6, 2022 06:17
Hi, i got this encoded data at opposed to be base64 but when i tried to decode at using base64 -d filename it gives errors/binary kind of strings, can some one try to decode this for me plz
6ISZsRXa0JCIgoweCJCIczVmbpNXdsIycn5Wa0VWZNByIgAiCpRnY1NnIgojIlxGdayN2clRmIgAiCsIia0BXiIgojIu9WaylHcvNmIgAiCsICdodWqCLCI6IjMgkXYNBSSZoRFIsIjMwIDIskXYXB9Gdn5WaoNCIgoALiQ3cvBFIuRXdhJiOiI3boBibhZXRiAAiCsIies9GauJXaCBnIglh2cpxmY1JCIgoALiICI6IicoRXdhFWbFJ3biICI6ICbpVJ3boRXdhJCIgoALiwkUIKwiIiAiOiICI6ICcsVGaiACIgoALzVXYwJCZhN3cl1UZZiACIKwiIiAiOiU2Tk5WSZnF2czVWY2VEIkFWZSJCI6IJgi7WYuFGIzlGIzl2c5xW1alV2dgMXaoRHIm9DM1xVHcgM3NyADM1xFI0FGIlxme6E2YzAlZlJHagwFZzADM1xc3d39yL6MHc0RHaiF2duvR3ZulGazB3Lt92YuQ3cvBnbsB3blFmdl9SZo5mcpJWLuldmchRHIiw1L6x2b1xFdXiwFZzADMwATdcJCXr5WYsJ2doV2MvozcwRHY35yd3d3Ldz9Gcu9Gdn5WaoNXbj5CGcvVGcv02bylmYt4WY2V2LlxHbvhmMwUHXvoTdcF2LjNDXYiACIKwiIuU2MwAmc0R52bpRXdilmIgAiCsIiIgojIzojIklXaiVmIg8les9GauJJCIgoALikjM1AjMyQXZzwF2diAiOixmIgAiCsIiYl1ybsF2YvJCI6ISZsIyUV1ibl5RVZspne1BnIgAiCiUGcUPJ1QiAiOiACIKwiIEJ1TXN1SjJ3cgojIaBlIKwSZ1JHdZlRncvBXbJNXaiACI6ICALlNHbhZGTlxWaGNmczJCIgoSZtFmYlJCI6IHbvhmbylmCbthnL5ITNwIjMfpiCsIFWZyNmIgADI6ISZtlGVu9Wa0MTN2EzNykDM2AiCsUTN0klGVkVWamlGZv1mIgISZt2MTN2EDI6AiCsUTN0kzNykDM1BnIg
@tauseedzaman
tauseedzaman / linux-commands.json
Created May 19, 2022 17:12
1780 linux commands with descriptions created thro automation
{
"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"
},
@tauseedzaman
tauseedzaman / .deps...remix-tests...remix_accounts.sol
Created February 10, 2022 17:19
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// 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;