Skip to content

Instantly share code, notes, and snippets.

View avillp's full-sized avatar
:shipit:
ship it

Arnau Villoslada avillp

:shipit:
ship it
View GitHub Profile
@avillp
avillp / views.py & forms.py
Last active February 23, 2017 09:14
Example of Django class based password_change view with a custom form inheritance.
# views.py
from django.contrib.auth.views import password_change
from django.views.generic import FormView
from backoffice.mixins import PermissionsMixin, ContextMixin
class EditPasswordView(ContextMixin, PermissionsMixin, FormView):
"""
Allows the user to edit their password.

Keybase proof

I hereby claim:

  • I am TheDegree0 on github.
  • I am thedegree0 (https://keybase.io/thedegree0) on keybase.
  • I have a public key whose fingerprint is 988B B1CF A319 6D85 F017 BBA0 5CC7 A77C B3CB 18D6

To claim this, I am signing this object:

@avillp
avillp / Unportify-v1.4.3.js
Last active November 12, 2023 15:22
Unportify helps you export your Google Play Music playlists.
/*
Unportify is a script that exports your Google Play music to text.
Copyright (C) 2016 Arnau Villoslada
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the