Skip to content

Instantly share code, notes, and snippets.

View alexpaden's full-sized avatar
👷‍♂️
I may be slow to respond.

Alex Paden alexpaden

👷‍♂️
I may be slow to respond.
View GitHub Profile

Grant Proposal to Purple DAO

From: Haberdashery Degen DAO

Date: 03/21/2024

Donation Date: 04/01/2024

Grant Amount: $100,000 (80% in USDC, 20% in DEGEN)

Executive Summary

The Haberdashery Degen DAO proposes to grant $100,000 to Purple DAO, a prominent noun builder DAO in the Farcaster ecosystem. This grant, comprising 80% in USDC and 20% in DEGEN, aims to enhance Purple's grant and funding programs, and to foster growth within the Farcaster and Degen ecosystems.

@alexpaden
alexpaden / gist:ad5e399eabe16f534071bf23e610e882
Created February 22, 2024 16:22
farcaster x dune follow tool
import requests
from dune_client.client import DuneClient
from dune_client.query import QueryBase
import time
import random
FID = 533
NEYNAR_API_KEY = ""
DUNE_API_KEY = ""
SIGNER_UUID = ""
@alexpaden
alexpaden / gist:8ece0b1cfc71d920b4bb99cb16702ab7
Created February 14, 2024 22:58
farcaster follower via dune queries
import requests
from dune_client.client import DuneClient
from dune_client.query import QueryBase
import time
import random
NEYNAR_API_KEY = ""
DUNE_API_KEY = ""
SIGNER_UUID = ""
HEADERS = {'accept': 'application/json', 'api_key': NEYNAR_API_KEY}
@alexpaden
alexpaden / gist:517aaa2195b9bbc15a979d09202bb1c0
Created September 10, 2023 17:21
Binary Meme Classifier
from transformers import AutoModelForImageClassification, AutoProcessor
import torch
import requests
from PIL import Image
import numpy as np
from io import BytesIO
def download_image(url):
response = requests.get(url)
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.keys import Keys
import pandas as pd
import time
import logging
import json
from selenium.common.exceptions import NoSuchElementException, TimeoutException, WebDriverException
@alexpaden
alexpaden / contracts...ersv3.sol
Created June 20, 2023 03:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
contract Reputation is Ownable {
struct ReputationData {
int reputation;
string comment;
@alexpaden
alexpaden / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created June 20, 2023 03:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
def get_collection_owners(
self,
collection_id: str,
cursor: NoneStr = None,
limit: PositiveInt = 25,
) -> UsersResult:
"""Get the owners of an OpenSea collection
Args:
collection_id (str): OpenSea collection ID
cursor (NoneStr, optional): cursor, defaults to None