Skip to content

Instantly share code, notes, and snippets.

View LucasAsafe's full-sized avatar
🎯
Looking for opportunities

Lucas Nascimento LucasAsafe

🎯
Looking for opportunities
View GitHub Profile
@LucasAsafe
LucasAsafe / dblnavbar.html
Created February 14, 2020 19:17
Double navbar (1st hiding and 2nd stickying at the top)
<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 November 21, 2023 16:28
Python code to upload all files, containing defined extension, into AWS S3 using boto3 and os.walker
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 April 10, 2019 12:26
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
<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 April 10, 2019 12:20
Select com todos os estados brasileiros por UF
<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>