Skip to content

Instantly share code, notes, and snippets.

View minute-med's full-sized avatar
🎯
Focusing

minuteMed minute-med

🎯
Focusing
  • somewhere over the rainbow
View GitHub Profile
@minute-med
minute-med / verify-metamask-signed-message-express.md
Last active March 14, 2022 12:44
Express verify signed message from metamask

Express verify signed message from metamask

this gist show you how you can verify in express a message signature generated by web3 with the metamask injected provider using the etherjs library

initial setup

cd /tmp && mkdir test-evm-sign && cd test-evm-sign
yarn init -y
yarn add express ethers
touch index.js # copy paste content of below's index.js in this file
@minute-med
minute-med / vuejs-paginated-data.md
Last active August 2, 2021 16:38
How to display paginated non-tabulated data with vue.js (NUXT) and Buefy

how to make a pagination system for non tabulated data with nuxt (or Vue.js) and buefy

Here we gonna see how to make a basic pagination for data that we dont want to display in a table i decided to go for the computed property way and since i'm a lazy ass i dediced to pick up Buefy, a nice css component library that i already used before to handle the pagination logic for me.

Download & install buefy for nuxt

npm install nuxt-buefy --save