├── scripts ├── README.md └── clean_docker.sh ├── front-end └── livros │ └── domine_a_web_do_futuro │ ├── README.md │ └── site_sao_paulo │ ├── README.md │ ├── images │ ├── piola.jpg │ ├── paulista.jpg │ └── ibirapuera.jpg │ └── style.css ├── javascript ├── nodejs │ ├── tutorials │ │ └── nodeauth │ │ │ ├── config │ │ │ ├── auth.js │ │ │ └── database.js │ │ │ ├── Dockerfile │ │ │ ├── package-lock.json │ │ │ ├── package.json │ │ │ ├── README.md │ │ │ ├── views │ │ │ ├── index.ejs │ │ │ ├── profile.ejs │ │ │ ├── login.ejs │ │ │ └── signup.ejs │ │ │ ├── app │ │ │ ├── models │ │ │ │ └── user.js │ │ │ └── routes.js │ │ │ └── server.js │ ├── mongoose │ │ └── mongoose-atomic │ │ │ ├── atoms │ │ │ ├── atom-type.js │ │ │ ├── quarks │ │ │ │ ├── quark-toLower.js │ │ │ │ ├── quark-toUpper.js │ │ │ │ ├── quark-validade-string-lengthGTE3.js │ │ │ │ └── quark-validade-string-length-GTE6-and-LTE10.js │ │ │ ├── atom-created_at.js │ │ │ ├── atom-password.js │ │ │ ├── atom-email.js │ │ │ └── atom-name.js │ │ │ ├── actions │ │ │ ├── action-find.js │ │ │ ├── action-create.js │ │ │ ├── action-findOne.js │ │ │ ├── action-remove.js │ │ │ └── action-update.js │ │ │ ├── README.md │ │ │ ├── organisms │ │ │ ├── create-organism.js │ │ │ └── organism-user.js │ │ │ ├── db │ │ │ └── config.js │ │ │ ├── molecules │ │ │ └── molecule-user.js │ │ │ └── app.js │ ├── express │ │ └── bemean │ │ │ ├── README.md │ │ │ └── hello-world.js │ ├── hello-world.js │ ├── http-request.js │ └── http-request-post.js ├── rock_paper_scissors │ ├── images │ │ ├── paper.jpg │ │ ├── rock.png │ │ ├── scissors.png │ │ ├── left_fist.png │ │ └── right_fist.png │ ├── README.md │ ├── style.css │ ├── index.html │ └── rock_paper_scissors.js ├── README.md ├── ownnew.js └── add_rm_li_from_ul.html ├── python ├── README.md ├── django │ ├── django_by_example │ │ ├── myshop │ │ │ ├── cart │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ └── __init__.py │ │ │ │ ├── models.py │ │ │ │ ├── admin.py │ │ │ │ ├── tests.py │ │ │ │ ├── context_processors.py │ │ │ │ ├── urls.py │ │ │ │ ├── forms.py │ │ │ │ ├── views.py │ │ │ │ └── templates │ │ │ │ │ └── cart │ │ │ │ │ └── detail.html │ │ │ ├── coupons │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── 0001_initial.py │ │ │ │ ├── tests.py │ │ │ │ ├── urls.py │ │ │ │ ├── forms.py │ │ │ │ ├── admin.py │ │ │ │ ├── models.py │ │ │ │ └── views.py │ │ │ ├── orders │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── 0002_auto_20160623_1328.py │ │ │ │ │ └── 0001_initial.py │ │ │ │ ├── tests.py │ │ │ │ ├── static │ │ │ │ │ └── css │ │ │ │ │ │ ├── admin.css │ │ │ │ │ │ └── pdf.css │ │ │ │ ├── templates │ │ │ │ │ ├── orders │ │ │ │ │ │ └── order │ │ │ │ │ │ │ ├── created.html │ │ │ │ │ │ │ ├── create.html │ │ │ │ │ │ │ └── pdf.html │ │ │ │ │ └── admin │ │ │ │ │ │ └── orders │ │ │ │ │ │ └── order │ │ │ │ │ │ └── detail.html │ │ │ │ ├── forms.py │ │ │ │ ├── urls.py │ │ │ │ ├── tasks.py │ │ │ │ ├── locale │ │ │ │ │ ├── en │ │ │ │ │ │ └── LC_MESSAGES │ │ │ │ │ │ │ └── django.po │ │ │ │ │ └── es │ │ │ │ │ │ └── LC_MESSAGES │ │ │ │ │ │ └── django.po │ │ │ │ ├── models.py │ │ │ │ ├── admin.py │ │ │ │ └── views.py │ │ │ ├── shop │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── 0002_auto_20160613_1253.py │ │ │ │ │ ├── 0003_auto_20160613_1408.py │ │ │ │ │ ├── 0006_remove_untranslated_fields.py │ │ │ │ │ ├── 0001_initial.py │ │ │ │ │ └── 0005_migrate_translatable_fields.py │ │ │ │ ├── tests.py │ │ │ │ ├── static │ │ │ │ │ └── img │ │ │ │ │ │ └── no_image.png │ │ │ │ ├── urls.py │ │ │ │ ├── admin.py │ │ │ │ ├── templates │ │ │ │ │ └── shop │ │ │ │ │ │ ├── product │ │ │ │ │ │ ├── list.html │ │ │ │ │ │ └── detail.html │ │ │ │ │ │ └── base.html │ │ │ │ ├── views.py │ │ │ │ ├── models.py │ │ │ │ └── recommender.py │ │ │ ├── myshop │ │ │ │ ├── __init__.py │ │ │ │ ├── celery.py │ │ │ │ ├── wsgi.py │ │ │ │ └── urls.py │ │ │ ├── requirements.txt │ │ │ ├── manage.py │ │ │ └── locale │ │ │ │ └── en │ │ │ │ └── LC_MESSAGES │ │ │ │ └── django.po │ │ ├── mysite │ │ │ ├── blog │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── 0003_post_tags.py │ │ │ │ │ ├── 0002_comment.py │ │ │ │ │ └── 0001_initial.py │ │ │ │ ├── templatetags │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── blog_tags.py │ │ │ │ ├── tests.py │ │ │ │ ├── templates │ │ │ │ │ └── blog │ │ │ │ │ │ ├── post │ │ │ │ │ │ ├── latest_posts.html │ │ │ │ │ │ ├── share.html │ │ │ │ │ │ ├── list.html │ │ │ │ │ │ └── detail.html │ │ │ │ │ │ ├── paginator.html │ │ │ │ │ │ └── base.html │ │ │ │ ├── sitemaps.py │ │ │ │ ├── forms.py │ │ │ │ ├── feeds.py │ │ │ │ ├── urls.py │ │ │ │ ├── admin.py │ │ │ │ ├── static │ │ │ │ │ └── css │ │ │ │ │ │ └── blog.css │ │ │ │ └── models.py │ │ │ ├── mysite │ │ │ │ ├── __init__.py │ │ │ │ ├── wsgi.py │ │ │ │ └── urls.py │ │ │ ├── requirements.txt │ │ │ └── manage.py │ │ ├── bookmarks │ │ │ ├── account │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── 0002_auto_20160606_1317.py │ │ │ │ │ ├── 0001_initial.py │ │ │ │ │ └── 0003_contact.py │ │ │ │ ├── tests.py │ │ │ │ ├── admin.py │ │ │ │ ├── templates │ │ │ │ │ ├── registration │ │ │ │ │ │ ├── password_change_done.html │ │ │ │ │ │ ├── logged_out.html │ │ │ │ │ │ ├── password_reset_complete.html │ │ │ │ │ │ ├── password_reset_email.html │ │ │ │ │ │ ├── password_reset_done.html │ │ │ │ │ │ ├── password_change_form.html │ │ │ │ │ │ ├── password_reset_form.html │ │ │ │ │ │ ├── password_reset_confirm.html │ │ │ │ │ │ └── login.html │ │ │ │ │ ├── account │ │ │ │ │ │ ├── register_done.html │ │ │ │ │ │ ├── register.html │ │ │ │ │ │ ├── edit.html │ │ │ │ │ │ ├── login.html │ │ │ │ │ │ ├── user │ │ │ │ │ │ │ ├── list.html │ │ │ │ │ │ │ └── detail.html │ │ │ │ │ │ └── dashboard.html │ │ │ │ │ └── base.html │ │ │ │ ├── authentication.py │ │ │ │ ├── models.py │ │ │ │ ├── forms.py │ │ │ │ ├── static │ │ │ │ │ └── js │ │ │ │ │ │ └── jquery.cookie.min.js │ │ │ │ └── urls.py │ │ │ ├── actions │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── 0001_initial.py │ │ │ │ ├── tests.py │ │ │ │ ├── views.py │ │ │ │ ├── admin.py │ │ │ │ ├── models.py │ │ │ │ ├── utils.py │ │ │ │ └── templates │ │ │ │ │ └── actions │ │ │ │ │ └── action │ │ │ │ │ └── detail.html │ │ │ ├── bookmarks │ │ │ │ ├── __init__.py │ │ │ │ ├── wsgi.py │ │ │ │ └── urls.py │ │ │ ├── common │ │ │ │ ├── __init__.py │ │ │ │ └── decorators.py │ │ │ ├── images │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── 0002_image_total_likes.py │ │ │ │ │ └── 0001_initial.py │ │ │ │ ├── __init__.py │ │ │ │ ├── tests.py │ │ │ │ ├── admin.py │ │ │ │ ├── signals.py │ │ │ │ ├── templates │ │ │ │ │ ├── bookmarklet_launcher.js │ │ │ │ │ └── images │ │ │ │ │ │ └── image │ │ │ │ │ │ ├── create.html │ │ │ │ │ │ ├── ranking.html │ │ │ │ │ │ ├── list_ajax.html │ │ │ │ │ │ ├── list.html │ │ │ │ │ │ └── detail.html │ │ │ │ ├── apps.py │ │ │ │ ├── urls.py │ │ │ │ ├── models.py │ │ │ │ ├── static │ │ │ │ │ ├── css │ │ │ │ │ │ └── bookmarklet.css │ │ │ │ │ └── js │ │ │ │ │ │ └── bookmarklet.js │ │ │ │ └── forms.py │ │ │ └── manage.py │ │ └── README.md │ └── tutorials │ │ └── django-channels │ │ ├── channels │ │ ├── dj_channels │ │ │ ├── __init__.py │ │ │ ├── chat │ │ │ │ ├── __init__.py │ │ │ │ ├── migrations │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── 0001_initial.py │ │ │ │ ├── tests.py │ │ │ │ ├── admin.py │ │ │ │ ├── apps.py │ │ │ │ ├── urls.py │ │ │ │ ├── static │ │ │ │ │ ├── chat.css │ │ │ │ │ ├── chat.js │ │ │ │ │ └── reconnecting-websocket.min.js │ │ │ │ ├── routing.py │ │ │ │ ├── templates │ │ │ │ │ ├── about.html │ │ │ │ │ ├── base.html │ │ │ │ │ └── chat │ │ │ │ │ │ └── room.html │ │ │ │ ├── models.py │ │ │ │ └── views.py │ │ │ ├── asgi.py │ │ │ ├── wsgi.py │ │ │ └── urls.py │ │ ├── requirements.txt │ │ ├── Procfile │ │ ├── manage.py │ │ └── README.md │ │ └── README.md ├── tdd_by_example │ ├── README.md │ ├── one.py │ ├── three.py │ ├── two.py │ ├── four.py │ ├── five.py │ ├── six.py │ └── seven.py ├── add-material-to-subl3.py └── simple_irc_bot.py ├── README.md ├── hacks ├── bash.md ├── nettools.md └── ssh.md ├── interview_questions ├── general │ ├── binary_search.py │ ├── occurs_once.py │ └── most_frequent.py └── sorting │ └── bubble_sort.py ├── .gitignore ├── git └── README.md └── docker └── README.md /scripts/README.md: -------------------------------------------------------------------------------- 1 | # Script to set things up. 2 | -------------------------------------------------------------------------------- /front-end/livros/domine_a_web_do_futuro/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /javascript/nodejs/tutorials/nodeauth/config/auth.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/README.md: -------------------------------------------------------------------------------- 1 | Codes using Python language. 2 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/cart/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/coupons/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/orders/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/shop/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/blog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/mysite/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/actions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/bookmarks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /front-end/livros/domine_a_web_do_futuro/site_sao_paulo/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/cart/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/orders/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/shop/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/blog/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/blog/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/actions/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/images/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/coupons/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/chat/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/chat/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.8.6 2 | pytz==2016.4 3 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/atoms/atom-type.js: -------------------------------------------------------------------------------- 1 | module.exports = { type: String } 2 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/myshop/__init__.py: -------------------------------------------------------------------------------- 1 | from .celery import app as celery_app 2 | -------------------------------------------------------------------------------- /python/tdd_by_example/README.md: -------------------------------------------------------------------------------- 1 | Code example from Part II of `Test Driven Development: By example` book. -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/images/__init__.py: -------------------------------------------------------------------------------- 1 | default_app_config = 'images.apps.ImagesConfig' 2 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/atoms/quarks/quark-toLower.js: -------------------------------------------------------------------------------- 1 | module.exports = (v) => v.toLowerCase(); 2 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/atoms/quarks/quark-toUpper.js: -------------------------------------------------------------------------------- 1 | module.exports = (v) => v.toUpperCase(); 2 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/atoms/atom-created_at.js: -------------------------------------------------------------------------------- 1 | module.exports = { type: Date, default: Date.now } 2 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/cart/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/requirements.txt: -------------------------------------------------------------------------------- 1 | 2 | Django 3 | channels 4 | asgi_redis 5 | haikunator -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/cart/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/cart/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/coupons/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/orders/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/shop/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/blog/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/atoms/quarks/quark-validade-string-lengthGTE3.js: -------------------------------------------------------------------------------- 1 | module.exports = (v) => v.length > 3; 2 | -------------------------------------------------------------------------------- /javascript/nodejs/tutorials/nodeauth/config/database.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 'url': 'mongodb://192.168.1.6:27017/data' 3 | }; 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/actions/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/actions/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/images/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /javascript/rock_paper_scissors/images/paper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/javascript/rock_paper_scissors/images/paper.jpg -------------------------------------------------------------------------------- /javascript/rock_paper_scissors/images/rock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/javascript/rock_paper_scissors/images/rock.png -------------------------------------------------------------------------------- /javascript/nodejs/express/bemean/README.md: -------------------------------------------------------------------------------- 1 | Code example from Be [MEAN course](https://www.youtube.com/channel/UCKdo1RaF8gzfhvkOdZv_ojg). 2 | 3 | -------------------------------------------------------------------------------- /javascript/rock_paper_scissors/images/scissors.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/javascript/rock_paper_scissors/images/scissors.png -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/chat/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/actions/action-find.js: -------------------------------------------------------------------------------- 1 | module.exports = (Organism) => { 2 | return (req, res) => { 3 | 4 | }; 5 | }; 6 | -------------------------------------------------------------------------------- /javascript/rock_paper_scissors/images/left_fist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/javascript/rock_paper_scissors/images/left_fist.png -------------------------------------------------------------------------------- /javascript/rock_paper_scissors/images/right_fist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/javascript/rock_paper_scissors/images/right_fist.png -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/chat/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/actions/action-create.js: -------------------------------------------------------------------------------- 1 | module.exports = (Organism) => { 2 | return (req, res) => { 3 | 4 | }; 5 | }; 6 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/actions/action-findOne.js: -------------------------------------------------------------------------------- 1 | module.exports = (Organism) => { 2 | return (req, res) => { 3 | 4 | }; 5 | }; 6 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/actions/action-remove.js: -------------------------------------------------------------------------------- 1 | module.exports = (Organism) => { 2 | return (req, res) => { 3 | 4 | }; 5 | }; 6 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/actions/action-update.js: -------------------------------------------------------------------------------- 1 | module.exports = (Organism) => { 2 | return (req, res) => { 3 | 4 | }; 5 | }; 6 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/atoms/quarks/quark-validade-string-length-GTE6-and-LTE10.js: -------------------------------------------------------------------------------- 1 | module.exports = (v) => v.length >= 6 && v.length <= 10; 2 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/cart/context_processors.py: -------------------------------------------------------------------------------- 1 | from .cart import Cart 2 | 3 | 4 | def cart(request): 5 | return {'cart': Cart(request)} 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Lab 2 | ###Repository for projects/snippets to study. 3 | 4 | 5 | >This repository was created following [@mazulo's idea](https://github.com/mazulo/study_lab) 6 | -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/Procfile: -------------------------------------------------------------------------------- 1 | web: daphne dj_channels.asgi:channel_layer --port $PORT --bind 0.0.0.0 -v2 2 | worker: python manage.py runworker -v2 -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/chat/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class ChatConfig(AppConfig): 5 | name = 'chat' 6 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/shop/static/img/no_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/python/django/django_by_example/myshop/shop/static/img/no_image.png -------------------------------------------------------------------------------- /hacks/bash.md: -------------------------------------------------------------------------------- 1 | # Bash hacks 2 | 3 | ## Remove files 4 | 5 | Remove recursively specific file from direcory, recursively: 6 | 7 | `find images/ -name "*.jpg" -type f -delete` 8 | 9 | -------------------------------------------------------------------------------- /front-end/livros/domine_a_web_do_futuro/site_sao_paulo/images/piola.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/front-end/livros/domine_a_web_do_futuro/site_sao_paulo/images/piola.jpg -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/README.md: -------------------------------------------------------------------------------- 1 | # Atomic Design 2 | 3 | Example of Atomic Design with Mongoose, teached by [Suissa](http://github.com/suissa) on Be MEAN 4 | course. 5 | -------------------------------------------------------------------------------- /front-end/livros/domine_a_web_do_futuro/site_sao_paulo/images/paulista.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/front-end/livros/domine_a_web_do_futuro/site_sao_paulo/images/paulista.jpg -------------------------------------------------------------------------------- /front-end/livros/domine_a_web_do_futuro/site_sao_paulo/images/ibirapuera.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delete/lab/master/front-end/livros/domine_a_web_do_futuro/site_sao_paulo/images/ibirapuera.jpg -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/coupons/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls import url 2 | 3 | from . import views 4 | 5 | 6 | urlpatterns = [ 7 | url(r'^apply/$', views.coupon_apply, name='apply'), 8 | ] 9 | -------------------------------------------------------------------------------- /javascript/nodejs/mongoose/mongoose-atomic/organisms/create-organism.js: -------------------------------------------------------------------------------- 1 | module.exports = (OrganismName, Molecule) => { 2 | const mongoose = require('mongoose'); 3 | return mongoose.model(OrganismName, Molecule); 4 | } 5 | -------------------------------------------------------------------------------- /javascript/README.md: -------------------------------------------------------------------------------- 1 | Codes on Javascript language, following the [Airbnb style guide](https://github.com/airbnb/javascript/tree/master/es5). 2 | 3 | There are JS and CSS code among the HTML, I know, but this reposifory is just for tests. -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/asgi.py: -------------------------------------------------------------------------------- 1 | import os 2 | import channels as c 3 | 4 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dj_channels.settings") 5 | channel_layer = c.asgi.get_channel_layer() 6 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/coupons/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from django.utils.translation import gettext_lazy as _ 3 | 4 | 5 | class CouponApplyForm(forms.Form): 6 | code = forms.CharField(label=_('Coupon')) 7 | -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/requirements.txt: -------------------------------------------------------------------------------- 1 | celery==3.1.18 2 | Django==1.8.6 3 | django-rosetta==0.7.6 4 | Pillow==3.2.0 5 | pytz==2016.4 6 | WeasyPrint==0.24 7 | django-parler==1.5.1 8 | django-localflavor==1.1 9 | redis==2.10.3 -------------------------------------------------------------------------------- /python/django/django_by_example/mysite/blog/templates/blog/post/latest_posts.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /javascript/nodejs/express/bemean/hello-world.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const express = require('express'); 4 | const app = express(); 5 | 6 | app.get('/' (req, res) => { 7 | res.send('Hello World!'); 8 | }); 9 | 10 | app.listen(3000, () => console.log('Running on port 3000')); 11 | -------------------------------------------------------------------------------- /javascript/rock_paper_scissors/README.md: -------------------------------------------------------------------------------- 1 | # Rock, paper and scissors! 2 | 3 | 4 | I did just for fun and to get involved with JS. 5 | 6 | It's ugly because I only wrote basic CSS, it was not the objective!(maybe in the future I do a better layout :) 7 | 8 | 9 | ![](http://i.imgur.com/ilRtx0p.jpg) -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/README.md: -------------------------------------------------------------------------------- 1 | # Django Channels 2 | 3 | Code created following this article: 4 | 5 | * [Finally, Real-Time Django Is Here: Get Started with Django Channels](https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django) -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | from .models import Profile 4 | 5 | 6 | class ProfileAdmin(admin.ModelAdmin): 7 | list_display = ['user', 'date_of_birth', 'photo'] 8 | 9 | 10 | admin.site.register(Profile, ProfileAdmin) 11 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/templates/registration/password_change_done.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}Password changed{% endblock %} 3 | {% block content %} 4 |

Password changed

5 |

Your password has been successfully changed.

6 | {% endblock %} -------------------------------------------------------------------------------- /python/django/django_by_example/myshop/orders/static/css/admin.css: -------------------------------------------------------------------------------- 1 | table { 2 | width:100%; 3 | } 4 | 5 | .module { 6 | margin:20px 0; 7 | } 8 | 9 | .num { 10 | text-align:right; 11 | } 12 | 13 | .total { 14 | background:#417690; 15 | color:#fff; 16 | font-weight:bold; 17 | } -------------------------------------------------------------------------------- /hacks/nettools.md: -------------------------------------------------------------------------------- 1 | # Net tools hacks 2 | 3 | ## Monitor incoming packets on a certain port and match against their data payload with a keyword: 4 | 5 | ngrep -d any port **9052** | grep -i "**GET**" 6 | 7 | 8 | ## Listening on a specific port 9 | tcpdump -n -i eth0 port PORT and '(tcp-syn|tcp-ack)!=0' 10 | -------------------------------------------------------------------------------- /javascript/nodejs/hello-world.js: -------------------------------------------------------------------------------- 1 | var http = require('http'); 2 | 3 | http.createServer(function (req, res) { 4 | res.writeHead(200, {'Content-Type': 'text/plain'}); 5 | res.write('Hello World'); 6 | res.end(); 7 | }).listen(3000, function () { 8 | console.log('Servidor rodando em localhost:3000') 9 | }); 10 | -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/templates/registration/logged_out.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}Logged out{% endblock %} 3 | {% block content %} 4 |

Logged out

5 |

You have been successfully logged out. You can log-in again.

6 | {% endblock %} -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/templates/registration/password_reset_complete.html: -------------------------------------------------------------------------------- 1 | {% extends "base.html" %} 2 | {% block title %}Password reset{% endblock %} 3 | {% block content %} 4 |

Password set

5 |

Your password has been set. You can log in now

6 | {% endblock %} -------------------------------------------------------------------------------- /python/django/django_by_example/bookmarks/account/templates/registration/password_reset_email.html: -------------------------------------------------------------------------------- 1 | Someone asked for password reset for email {{ email }}. Follow the 2 | link below: 3 | {{ protocol }}://{{ domain }}{% url "password_reset_confirm" uidb64=uid token=token %} 4 | Your username, in case you've forgotten: {{ user.get_username }} -------------------------------------------------------------------------------- /python/django/tutorials/django-channels/channels/dj_channels/chat/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls import url 2 | from . import views 3 | 4 | urlpatterns = [ 5 | url(r'^$', views.about, name='about'), 6 | url(r'^new/$', views.new_room, name='new_room'), 7 | url(r'^(?P