Skip to content

Instantly share code, notes, and snippets.

@Drex72
Drex72 / prettify.js
Last active August 4, 2022 21:28
javascript - prettify
/*
Make the function more readable and maintainable
*/
function doStuff(text) {
const words = text.toLocaleLowerCase().split(' ').reverse()
return words
.map((word) => word.trim())
.filter((word) => word.length > 5)
.join(', ')
@Drex72
Drex72 / sampleToken
Created March 23, 2024 13:41
Filecoin Smart Contract Submission
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.5.9;
import "@0x/contracts-erc20/contracts/src/ERC20Token.sol";
/**
* @title SampleERC20
* @dev Create a sample ERC20 standard token
*/