Skip to content

Instantly share code, notes, and snippets.

View mnlsn's full-sized avatar

Mike Nelson mnlsn

  • Enyxus
  • Chicago, IL
View GitHub Profile
@mnlsn
mnlsn / flattenArray.js
Created March 6, 2020 08:01
Flatten Array
/*
* This function flattens nested arrays
* @param {number[]}
* @param {number}
*
* @example
*
* flattenArray([[1,2,[3]],4], 4)
*
* @return {number[]}
@mnlsn
mnlsn / DeathGirlGenesis.sol
Last active June 5, 2022 03:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.14+commit.80d49f37.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
contract DeathGirlGenesis is ERC721A, Ownable, ReentrancyGuard {