Skip to content

Instantly share code, notes, and snippets.

View opeodedeyi's full-sized avatar
🎯
Focusing

Odedeyi Opeyemi opeodedeyi

🎯
Focusing
View GitHub Profile
@b3h3rkz
b3h3rkz / gist:51a7a4e465310da9a193e2cb7a933093
Created February 5, 2020 05:58
Django email confirmation resend
from rest_framework import generics
from allauth.account.utils import send_email_confirmation
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
# request a new confirmation email
class EmailConfirmation(APIView):
@Jonarod
Jonarod / CheckBox.vue
Created November 23, 2019 18:20
Simple custom CheckBox component for Vue.js, compatible with v-model.
/**
* @usage:
*
* <CheckBox label="Foo" value="foo" v-model="MySelectedValues" />
* <CheckBox label="Bar" value="bar" v-model="MySelectedValues" />
* <CheckBox label="Baz" value="baz" v-model="MySelectedValues" />
*
* data(){
* return {
* MySelectedValues: [],
@iMerica
iMerica / urls.py
Last active July 27, 2023 17:20
Email verification in Django Rest Framework, Django All-Auth, Django Rest-Auth. Suitable for Single Page Applications
urlpatterns = [
url(r'^rest-auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', ConfirmEmailView.as_view(), name='account_confirm_email'),
]