Skip to content

Instantly share code, notes, and snippets.

View ricmoo's full-sized avatar

Richard Moore ricmoo

View GitHub Profile
@ricmoo
ricmoo / SMBDIS.ASM
Created January 9, 2024 03:57 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@ricmoo
ricmoo / Verifying my Peepeth
Created December 7, 2018 22:19
Verifying my Peepeth
Verifying my identity on Peepeth.com 0x8ba1f109551bd432803012645ac136ddd64dba72
@ricmoo
ricmoo / Coffee.sol
Created March 21, 2018 23:02
Contract Addresses: Coffee Contract Example
/**
* Coffee
*
* Just a very simple example of deploying a contract at a vanity address
* across several chains.
*
* See: https://blog.ricmoo.com/contract-addresses-549074919ec8
*
*/
@ricmoo
ricmoo / UserDirectory.json
Created March 8, 2018 21:50
Solidity ABIv2: A Foray into the Experimental
{
"deployer": "0xD7DE6d5514c0bfA85c7b8018FBBd9914583Ce486",
"source": "pragma solidity ^0.4.20;\npragma experimental ABIEncoderV2;\n\ncontract UserDirectory {\n\n struct Contact {\n string email;\n string phone;\n }\n\n struct User {\n string name;\n address addr;\n Contact contact;\n }\n\n address _admin;\n mapping (address => User) _users;\n\n event UserAdded(address indexed addr, User user);\n event UserUpdated(address indexed addr, User user);\n\n function UserDirectory() {\n _admin = msg.sender;\n }\n\n // Only the admin can add users\n function addUser(User user) {\n require(msg.sender == _admin);\n _users[user.addr] = user;\n UserAdded(user.addr, user);\n }\n\n // Let any user update their contact info\n function update(Contact contact) {\n User storage user = _users[msg.sender];\n require(user.addr != 0);\n user.contact = contact;\n UserUpdated(user.addr, user);\n
@ricmoo
ricmoo / keybase.md
Created May 21, 2015 04:33
keybase.md

Keybase proof

I hereby claim:

  • I am ricmoo on github.
  • I am ricmoo (https://keybase.io/ricmoo) on keybase.
  • I have a public key whose fingerprint is 6CDE FD16 9AD7 9D5B 9AA8 243B 9899 3548 86CF 50FA

To claim this, I am signing this object:

Verifying myself: My Bitcoin username is +ricmoo. https://onename.io/ricmoo