Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Looking for opportunities

Lucas Nascimento LucasAsafe

🎯
Looking for opportunities
View GitHub Profile
@LucasAsafe
LucasAsafe / dblnavbar.html
Created Feb 14, 2020
Double navbar (1st hiding and 2nd stickying at the top)
View dblnavbar.html
<nav class="navbar-custom-top">
<div class="container">
<a class="navbar-brand heading" href="index.html#pagetop">Humboldt</a>
<div class="float-right topnav-right-button">
<a class="bg-heading p-3" href="">Sign up</a>
</div>
</div>
</nav>
<nav class="navbar navbar-expand-lg navbar-light navbar-custom sticky-top" id="navbartag">
@LucasAsafe
LucasAsafe / upload_file_to_s3.py
Last active Jan 13, 2020
Python code to upload all files, containing defined extension, into AWS S3 using boto3 and os.walker
View upload_file_to_s3.py
import os
import logging
import boto3
from botocore.exceptions import ClientError
path = '/home/{your user}/Documents'
def upload_file(file_name, bucket, object_name=None):
@LucasAsafe
LucasAsafe / formcadastro.html
Created Apr 10, 2019
Form de cadastro padrão bootstrap - Nome, sobrenome, email, senha, endereço, complemento, cidade, cep e estado com select de todos os estados do Brasil
View formcadastro.html
<form action="pastadestino.php" method="POST">
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputName">Nome</label>
<input type="text" id="inputName" class="form-control" placeholder="John" required>
</div>
<div class="form-group col-md-6">
<label for="inputSurname">Sobrenome</label>
<input type="text" class="form-control" id="inputSurname" placeholder="Doe" required>
</div>
@LucasAsafe
LucasAsafe / selectUF.html
Created Apr 10, 2019
Select com todos os estados brasileiros por UF
View selectUF.html
<select name="uf-estados-brasil">
<option value="AC">AC</option>
<option value="AL">AL</option>
<option value="AP">AP</option>
<option value="AM">AM</option>
<option value="BA">BA</option>
<option value="CE">CE</option>
<option value="DF">DF</option>
<option value="ES">ES</option>
<option value="GO">GO</option>