Skip to content

Instantly share code, notes, and snippets.

Looking for opportunities

Lucas Nascimento LucasAsafe

Looking for opportunities
View GitHub Profile
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>
<nav class="navbar navbar-expand-lg navbar-light navbar-custom sticky-top" id="navbartag">
LucasAsafe /
Last active Jan 13, 2020
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 / 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 class="form-group col-md-6">
<label for="inputSurname">Sobrenome</label>
<input type="text" class="form-control" id="inputSurname" placeholder="Doe" required>
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>