Skip to content

Instantly share code, notes, and snippets.

View ecmendenhall's full-sized avatar

Connor Mendenhall ecmendenhall

View GitHub Profile
@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-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 / 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 / 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 / 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);
// 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;