Skip to content

Instantly share code, notes, and snippets.

View sidharth72's full-sized avatar
🎯
Focusing

Sidharthan GN sidharth72

🎯
Focusing
View GitHub Profile
@sidharth72
sidharth72 / TransformerEncoderDecoder.md
Last active January 28, 2025 07:51
Transformer Encoder-Decoder Architectural Design
%%{init: {'theme': 'base', 'themeVariables': {
  'primaryColor': '#2C3E50',
  'secondaryColor': '#34495E',
  'tertiaryColor': '#1ABC9C',
  'primaryTextColor': '#FFFFFF',
  'tertiaryTextColor': '#FFFFFF'
}}}%%

flowchart TB
@sidharth72
sidharth72 / settings.py
Last active February 20, 2022 14:04
PostgreSQL database configuration
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': '<database_name>',
'USER':'<database_username>', # default 'postgres'
'PASSWORD':'<password>', # Password configured
'HOST':'<database_host_or_ip_address>'
}
}
@sidharth72
sidharth72 / settings.py
Last active February 20, 2022 13:36
default sqlite3 database configuration settings.py
# Default sqlite3 configuration
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
@sidharth72
sidharth72 / create_list.py
Last active February 6, 2022 05:07
Creating lists in python
languages = ["Python","Java","JavaScript","C"]
print(languages)
output:
['Python', 'Java', 'JavaScript', 'C']