Skip to content

Instantly share code, notes, and snippets.

View heliocarbex's full-sized avatar
💭
Programming a lot

Helio Junior heliocarbex

💭
Programming a lot
View GitHub Profile
@heliocarbex
heliocarbex / README.md
Created March 26, 2019 23:07 — forked from brizandrew/README.md
How to use node.js build routines and npm packages in Django.

Using Node.js With Django

When writing django apps it's easy to ignore the organization of your front end code. Often, these backend coders will just write a static js and css file, stick it in the static directory, and call it a day.

You can also build them as two completely independent parts. With a complex gulp build routine independent of the django app. But if you don't know gulp, node, or those kinds of systems it can be a daunting process to get started with.

Enter django-compressor-toolkit (the name doesn't quite roll off the tongue).

Setting Up Django-Compressor-Toolkit

Using django-compressor and django-compressor-toolkit you can write Javascript ES6 code with all its fancy import/export logic or style your pages with sass instead of css, and leave your deploy routine largely untouched.

@heliocarbex
heliocarbex / pagseguro.en.yml
Created August 31, 2018 01:31 — forked from dtelaroli/pagseguro.en.yml
Pagseguro I18n - API Ruby de pagamento transparente
en:
pagseguro:
errors:
'bad_request': 'Bad request'
'5003': 'bank network error'
'10000': 'invalid creditcard brand'
'10001': "creditcard number with invalid length"
'10002': "invalid date format"
'10003': "invalid security field"
'10004': "cvv is mandatory"
@heliocarbex
heliocarbex / 0-startup-overview.md
Created August 14, 2018 01:16 — forked from dideler/0-startup-overview.md
Startup Engineering notes