Skip to content

Instantly share code, notes, and snippets.

View Jourdelune's full-sized avatar
🏠
Working from home

Jourdelune

🏠
Working from home
View GitHub Profile
@Jourdelune
Jourdelune / gist:5a54c800198134408ccf075a6766de08
Last active February 5, 2024 23:35
Patreon API with discord
class PatreonApi:
def __init__(self, campaign_id: str, access_token: str):
self.campaign_id = campaign_id
self.access_token = access_token
async def fetch_all(self) -> dict:
"""Get all discord id with current tiers of a patreon campaign
:return: a dict that contain the discord id and the current tiers of the user
:rtype: dict
@Jourdelune
Jourdelune / .md
Last active July 4, 2022 15:09
Opus language code

Opus language code: If you see a model that does not match the language or a missing model, please create a pull request.

Afrikaans (af) : Helsinki-NLP/opus-mt-en-af <-> Helsinki-NLP/opus-mt-af-en
Amharic (am) : Helsinki-NLP/opus-mt-en-sem <-> Helsinki-NLP/opus-mt-sem-en
Arabic (ar) : Helsinki-NLP/opus-mt-en-ar <-> Helsinki-NLP/opus-mt-ar-en
Asturian (ast) : 
Azerbaijani (az) : Helsinki-NLP/opus-mt-en-az <-> Helsinki-NLP/opus-mt-az-en
Bashkir (ba) : Helsinki-NLP/opus-mt-en-mul <-> Helsinki-NLP/opus-mt-mul-en