Skip to content

Instantly share code, notes, and snippets.

View mattwebdev's full-sized avatar

Matt mattwebdev

View GitHub Profile
import random
class Card:
def __init__(self, suit, value):
self.suit = suit
self.value = value
def display(self):
return str(self.value) + str(self.suit)
@mattwebdev
mattwebdev / milestone-investment-contract.md
Last active July 10, 2025 16:56
an investment style contract where funds are released at successful milestones

InvestmentMilestoneContract

This is how I would build a Solidity smart contract for milestone-based fund releases.

The Idea

Move money only when progress is made. This contract lets you define milestones, allocate funds, and automatically release USDC as work gets done.

How It Works

<?xml version="1.0"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference/>
<RequestAction>Rate</RequestAction>
<RequestOption>Shop</RequestOption>
</Request>
<PickupType>
<Code>01</Code>
<Description/>
class onOrderCreateUser implements EventSubscriberInterface {
/**
* {@inheritdoc}
* Empty Constructor.
*/
public function __construct() {
}
/**
@mattwebdev
mattwebdev / hail-to-the-victors.markdown
Created August 31, 2016 22:17
Hail to the Victors!