Skip to content

Instantly share code, notes, and snippets.

View alephao's full-sized avatar
🔨
Building

Aleph Retamal alephao

🔨
Building
View GitHub Profile
@alephao
alephao / html-to-elementary.js
Created September 26, 2024 13:32
Convert raw html into swift/elementary
// Update this value w/ the HTML you want to convert
const htmlToConvert = `<div>Hello World</div>`
// Below is the conversion script
const indentation = " "
const _voidElements = new Set([
'area',
'base',
'br',
@alephao
alephao / .env
Last active April 28, 2022 12:59
Deploy with low gas cost
WS_URL=wss://eth-mainnet.alchemyapi.io/v2/<key>
@alephao
alephao / LibRevert.t.sol
Created January 19, 2022 19:34
Handling a Solidity Library function that reverts
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
import "ds-test/test.sol";
interface Hevm {
// Expects an error on next call
function expectRevert(bytes calldata) external;
}