Skip to content

Instantly share code, notes, and snippets.

View robsonlira's full-sized avatar

Robson robsonlira

View GitHub Profile
@robsonlira
robsonlira / app.component.html
Created February 6, 2021 15:02
Usuário no Menu
<ion-app [class.dark-theme]="dark">
<ion-split-pane contentId="main-content" when="md"
>
<ion-menu contentId="main-content" menuId="main-menu"
type="overlay"
>
<ion-content>
<ion-list id="inbox-list">
<ion-list-header>Menu</ion-list-header>
<ion-note *ngIf="user">{{ user.nome }}</ion-note>
@robsonlira
robsonlira / EntityMapper.java
Created July 15, 2021 02:14
Testes Unitários
public interface EntityMapper<D, E> {
E toEntity(D dto);
D toDto(E entity);
List<E> toEntity(List<D> dtoList);
List<D> toDto(List<E> entityList);
}
@robsonlira
robsonlira / JsonUtil.java
Last active November 9, 2021 12:20
JSF com Rest API
@Log
public class JsonUtil implements Serializable {
private static final long serialVersionUID = 1L;
@Inject
@RequestCookieMap
private Map<String, Object> cookieMap;
public HttpHeaders createJsonHeader() {