Skip to content

Instantly share code, notes, and snippets.

Avatar

EmmanuelDgz

  • Andromeda
View GitHub Profile
@EmmanuelDgz
EmmanuelDgz / oh-my-zsh-bira-conda-venv.md
Created Apr 1, 2021 — forked from Samyak2/oh-my-zsh-bira-conda-venv.md
Adding virtualenv and conda support to Oh My Zsh Bira theme
View oh-my-zsh-bira-conda-venv.md
@EmmanuelDgz
EmmanuelDgz / authentication.py
Created Oct 30, 2020 — forked from WayneSan/authentication.py
PyJWT + Django REST framework 2
View authentication.py
import jwt
from django.conf import settings
from django.contrib.auth.models import User
from rest_framework import exceptions
from rest_framework.authentication import TokenAuthentication
class JSONWebTokenAuthentication(TokenAuthentication):