Skip to content

Instantly share code, notes, and snippets.

View ecmendenhall's full-sized avatar

Connor Mendenhall ecmendenhall

View GitHub Profile
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;
import "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "openzeppelin-contracts/contracts/utils/Address.sol";
interface IWETH {
function deposit() external payable;
function withdraw(uint wad) external;
@ecmendenhall
ecmendenhall / Example.t.sol
Created April 5, 2022 18:16
Fuzz test without error message
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.10;
import "ds-test/test.sol";
contract ExampleTest is DSTest {
function test_fuzz_reverts_with_message(uint256 n) public {
revert("message");
assertEq(n, 1);
@ecmendenhall
ecmendenhall / Loops.sol
Last active March 12, 2022 02:12
when you're gas golfing
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
contract Looper {
function doStuff(uint256 i) public pure returns (uint256) {
return i;
}
}
contract Looper1 is Looper {
@ecmendenhall
ecmendenhall / hot-saucerman.json
Created September 13, 2018 22:00
Hot Saucerman
[
"Stop Tacoman",
"Shop Talkerman",
"Hot Soccermom",
"Flop Chonkenton",
"Posh Nachoman",
"Yes, my name does rhyme with Snot Bocherman",
"Shock Jockerman",
"Yacht Rockerman",
"Hot Saucerman",
@ecmendenhall
ecmendenhall / technical-cohort-week-4.md
Created July 11, 2017 03:43
Technical Cohort Week 4

Have you been sticking to your daily habit?

I'm about a week behind...but I did it today! Giving an honest answer to this one requires checking in again next week.

Goal progress review:

Feeling generally behind, if we consider June 19 the start date of our first month. I think I can still meet my original "month" goals by the end of July with a bit of attention. I've done a lot of thinking and goal setting so far, but not a lot of writing code :). Bird by bird, buddy.

@ecmendenhall
ecmendenhall / technical-cohort-week-3.md
Last active July 11, 2017 03:35
Technical Cohort Week 3

Daily goals:

  • Order the C books you want to read.
  • Start a development blog.
  • Read through the Linux Kernel Newbies site. Pick a book on kernel programming.

Weekly goals:

  • Read at least 1 book, start writing throwaway code.
  • Pick a tool, set up a project and test framework.
  • Dip into the LKML every day.
@ecmendenhall
ecmendenhall / technical-cohort-goals.md
Created June 18, 2017 22:24
Technical Cohort Goals

Accountability Partner

  • Colin

25 Goals:

  • Reimplement a nontrivial text-processing tool from scratch. (grep, sed, diff)
  • Reimplement a nontrivial process-related tool from scratch. (ps, top, lsof, kill)
  • Reimplement a nontrivial filesystem-related tool from scratch. (mv, chmod, chown)
  • Reimplement a nontrivial networking-related tool from scratch. (telnet, ftp, curl/wget)
  • Write my own kernel module
  • Write my own device driver
no
how do i get cowboy paint off a dog .
@cupcaek no
OFFICIAL: Michael Jackson (1958-2009) RIP - http://tinyurl.com/nlm7r2
RT OFFICIAL: Michael Jackson (1958-2009) RIP - http://tinyurl.com/nlm7r2 #michaeljackson #michealjackson #deadrip
RT OFFICIAL: Michael Jackson (1958-2009) RIP - http://tinyurl.com/nlm7r2 #michaeljackson Suport Iran Fucker
badboy Michael Jackson Rip 1958-2009 "Deth" http://tinyurl.com/l7atle #dead #iranelection #michaeljackson
M Jackson Your Rapes Are Forgiven, in death you are no olnger bound by your disgusting criminal actions, Also I Like "The Moonwalk"
punch evvery fucking celebrity blogger; punish them violently, and when they appeal to the media for sympathy, continue to fuck them, contin
ue to shit on them.