Skip to content

Instantly share code, notes, and snippets.


niespodd niespodd

Block or report user

Report or block niespodd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
niespodd /
Created Feb 10, 2019
dj i18n lang switcher template tag
register = Library()
def change_lang(context, lang=None, *args, **kwargs):
request = context.get('request')
path = request.path
url_parts = resolve(path)
niespodd / .zshrc
Last active Jan 29, 2019
Bakin' soda for Django development - reduce typing 5x with onomatopoeia shortcuts for Django management commands. Add this to your `~/.*rc` config and type `python *` no more. Suggestions are more than welcome :-)
View .zshrc
alias mm="python makemigrations"
alias mmm="python makemigrations && python migrate"
alias rrr="python runserver"
alias tss="python test"
alias shh="python shell"
# (optional: you might use Pipenv)
alias sss="source env/bin/activate"
# Enjoy! mmm & rrr
niespodd / package.json
Last active Jul 15, 2019
Making web3/bitcore-lib work with Angular 6
View package.json
"scripts": {
"postinstall": "node patch.js",
niespodd / onclick.js for end screen
Created Oct 28, 2017
Escape TypeForm with form_id without premium, enjoy.
View onclick.js for end screen
You can’t perform that action at this time.