Skip to content

Instantly share code, notes, and snippets.

View samuelbutler's full-sized avatar
🕊️

Samuel Butler samuelbutler

🕊️
View GitHub Profile
@anonhostpi
anonhostpi / $AUTOGPT.md
Last active May 13, 2023 01:18
AutoGPT Conversation Trackers

Description:

Tracks AutoGPT Conversations and Categorizes them for easy access

  • mainly used by anonhostpi to track common issues with AutoGPT

A lot of issues/prs/discussions end up getting recreated, because contributors struggle to find previous issues

Since I am a junkie for issue tracking, I have created this public gist to help others navigate AutoGPT's repo.

- my discord name: anonhostpi 
@rochacbruno
rochacbruno / validate_dataclass.py
Created September 30, 2021 11:13
Validate Dataclass Python
from typing import Union, List
from dataclasses import dataclass
class Validations:
def __post_init__(self):
"""Run validation methods if declared.
The validation method can be a simple check
that raises ValueError or a transformation to
English short name lower case Alpha-2 code Alpha-3 code Numeric code ISO 3166-2
Afghanistan AF AFG 004 ISO 3166-2:AF
Åland Islands AX ALA 248 ISO 3166-2:AX
Albania AL ALB 008 ISO 3166-2:AL
Algeria DZ DZA 012 ISO 3166-2:DZ
American Samoa AS ASM 016 ISO 3166-2:AS
Andorra AD AND 020 ISO 3166-2:AD
Angola AO AGO 024 ISO 3166-2:AO
Anguilla AI AIA 660 ISO 3166-2:AI
Antarctica AQ ATA 010 ISO 3166-2:AQ