Skip to content

Instantly share code, notes, and snippets.

View charles-silva's full-sized avatar

Charles Silva charles-silva

View GitHub Profile
@charles-silva
charles-silva / Consulta simples.java
Last active November 30, 2020 18:53
[Consulta java]#java
@Override
public List<Usuar> findAll() {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT Isn,Nome_Login,Nome_Completo,Bloqueado,Administrador,Cod_Funcionario,Senha_Hash,Senha1 FROM USUAR");
try {
List<Usuar> usuars = db.query(sql.toString(), new UsuarRowMapper());
return !usuars.isEmpty() ? usuars : null;
} catch (EmptyResultDataAccessException e) {
return null;
}
@charles-silva
charles-silva / Toolbar.xml
Created November 30, 2020 18:48
Diminuir tamanho dos espaços Toolbar #Android #Toolbar
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar_repor"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:background="?colorPrimary"
android:contentInsetStart="0dp"
android:minHeight="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
@charles-silva
charles-silva / comandos.java
Created December 1, 2020 20:31
[Dicas Git] #git
#cria um branch e já faz o checkout no mesmo comando.
git checkout -b contar-menu
@charles-silva
charles-silva / .gitignore
Created January 9, 2023 19:38
Gitigore para projetos em flutter/dart
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/