This file contains hidden or 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
Show hidden characters
| { | |
| "compilerOptions": { | |
| /* Visit https://aka.ms/tsconfig to read more about this file */ | |
| /* Projects */ | |
| // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ | |
| // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ | |
| // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ | |
| // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ | |
| // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
This file contains hidden or 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
| { | |
| "env": { | |
| "browser": true, | |
| "es2021": true | |
| }, | |
| "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"], | |
| "overrides": [], | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "ecmaVersion": "latest", |
This file contains hidden or 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
| { | |
| "semi": true, | |
| "trailingComma": "es5", | |
| "printWidth": 120, | |
| "useTabs": true, | |
| "tabWidth": 1 | |
| } |
This file contains hidden or 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
| function main() { | |
| const imageWidth = 800; | |
| const imageHeigh = 220; | |
| const image = new Jimp(imageWidth, imageHeigh); | |
| // Dont forget to hold bitmap png files also | |
| const fontPath = "path/to/Font.ftn"; | |
| Jimp.loadFont( | |
| fontPath |
This file contains hidden or 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
| sudo modprobe -r psmouse | |
| sudo modprobe psmouse |
This file contains hidden or 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
| async function getDecodedERC1155EventLogs(transactionHash) { | |
| const singleTransferSigHash = | |
| "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62"; | |
| const batchTransferSigHash = | |
| "0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb"; | |
| const txReceipt = await web3.eth.getTransactionReceipt(transactionHash); | |
| const logs = txReceipt.logs.filter( | |
| (log) => |
This file contains hidden or 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
| async function getDecodedERC721EventLogs(transactionHash) { | |
| const txReceipt = await web3.eth.getTransactionReceipt(transactionHash); | |
| const transferSigHash = | |
| "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"; | |
| // Filtring by trasnfer event signature hash and data (can also filter by topics length) | |
| const logs = txReceipt.logs.filter( | |
| (log) => log.topics[0] === transferSigHash && log.data === "0x" | |
| ); |
This file contains hidden or 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
| [ | |
| { | |
| "key": "ctrl+alt+v", | |
| "command": "toggleVim" | |
| }, | |
| { | |
| "key": "shift+alt+j", | |
| "command": "editor.action.moveLinesDownAction" | |
| }, | |
| { |
This file contains hidden or 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
| { | |
| "files.autoSave": "afterDelay", | |
| "vim.easymotion": true, | |
| "vim.incsearch": true, | |
| "vim.useSystemClipboard": true, | |
| "vim.useCtrlKeys": true, | |
| "vim.hlsearch": true, | |
| "vim.sneak": true, | |
| "vim.easymotionMarkerBackgroundColor": "#020202", | |
| "vim.leader": "\\", |