Skip to content

Instantly share code, notes, and snippets.

View corygabrielsen's full-sized avatar

Cory Gabrielsen (cory.eth) corygabrielsen

View GitHub Profile
@corygabrielsen
corygabrielsen / prepare-commit-msg.py
Last active January 18, 2023 13:21
This is a pre-commit-msg hook that uses the OpenAI API to get a suggested commit message for the diff that is about to be committed.
#!/usr/bin/env python3
"""
This is a pre-commit-msg hook that uses the OpenAI API to get a suggested commit message
for the diff that is about to be committed.
To use this hook, you will need to:
- Set the OPENAI_API_KEY environment variable to your OpenAI API key.
@corygabrielsen
corygabrielsen / ethereum_etl.md
Created September 9, 2021 22:37
Ethereum ETL

Goal

We aim to design a system for storing and querying Ethereum data via ETL techniques.

Tenets

The system should be:

  • containerized
  • SQL
  • idempotent
  • portable to move data between hosts
@corygabrielsen
corygabrielsen / smart_contract_auction_model_ideas.md
Last active August 26, 2021 02:43
Smart Contract Auction Model Ideas

Goal

The goal of this document is to overview the current state of (NFT) auction programming (on Ethereum), identify weaknesses, and propose solution ideas.

This document is provided for free at no cost. All ideas are open source and encouraged for use.

This is not a scientific paper. Its meant for easy reading.

Good Auction Models

A good auction model generally has the following properties: