Skip to content

Instantly share code, notes, and snippets.

View bluet's full-sized avatar
🏠
Working from home

BlueT - Matthew Lien - 練喆明 bluet

🏠
Working from home
View GitHub Profile
@bluet
bluet / mariadb-temporal-table.md
Last active July 6, 2020 08:29
Versioning database data with MariaDB Temporal Table
@bluet
bluet / Database Naming Convention and Data Warehouse Design Principles.md
Last active November 13, 2023 13:12
Database Naming Convention and Data Warehouse Design Principles
@bluet
bluet / eth-pubkey-tests.js
Last active June 18, 2023 02:08
eth-crypto and web3, public key retrieving, sign, recover and encrypting test
/* eslint-disable no-console */
const EthCrypto = require("eth-crypto");
const sigUtil = require("@metamask/eth-sig-util");
const ethUtil = require("ethereumjs-util");
async function test (provider, selectedAccount) {
// eslint-disable-next-line no-undef
const web3 = new Web3(provider);
// const accounts = await web3.eth.getAccounts();
// selectedAccount = accounts[0];