Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| import React from 'react'; | |
| interface AuthProps { | |
| token: string | undefined; | |
| setToken: React.Dispatch<React.SetStateAction<string | undefined>>; | |
| } | |
| const DEFAULT_VALUE: AuthProps = { | |
| token: undefined, | |
| setToken: () => {} |
| ##################################### | |
| # # | |
| # Comandos Docker # | |
| ##################################### | |
| 1- criar e executar um container e baixar uma imagem: | |
| docker container run hello-world | |
| *o comando run baixa uma imagem se ela não existir local, depois de baixada essa imagem só executa local, o comando run cria um container(sempre cria um novo) e também inicializa |
| import org.jasypt.encryption.pbe.StandardPBEStringEncryptor; | |
| public class Cipher { | |
| private Cipher() { | |
| } | |
| /** | |
| * Descriptografar uma string. | |
| */ |
| import { Component, OnInit, OnDestroy, Output, EventEmitter} from '@angular/core'; | |
| import { MenuSateService } from '../shared/service/menu-state.service'; | |
| @Component({ | |
| selector: 'app-inicio', | |
| templateUrl: './inicio.component.html', | |
| styleUrls: ['./inicio.component.css'] | |
| }) | |
| export class InicioComponent implements OnInit, OnDestroy { | |
| import java.io.Serializable; | |
| import javax.persistence.Column; | |
| import javax.persistence.Entity; | |
| import javax.persistence.NamedStoredProcedureQueries; | |
| import javax.persistence.NamedStoredProcedureQuery; | |
| import javax.persistence.ParameterMode; | |
| import javax.persistence.StoredProcedureParameter; | |
| import javax.persistence.Table; |
| package com.gmail.andersoninfonet.testesgenericos.model; | |
| import jakarta.validation.constraints.AssertTrue; | |
| import jakarta.validation.constraints.Email; | |
| import jakarta.validation.constraints.Max; | |
| import jakarta.validation.constraints.Min; | |
| import jakarta.validation.constraints.NotBlank; | |
| import jakarta.validation.constraints.NotEmpty; | |
| import jakarta.validation.constraints.NotNull; | |
| import jakarta.validation.constraints.Size; |
| import lombok.AccessLevel; | |
| import lombok.NoArgsConstructor; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.hibernate.Criteria; | |
| import org.hibernate.engine.spi.SessionFactoryImplementor; | |
| import org.hibernate.internal.CriteriaImpl; | |
| import org.hibernate.internal.SessionImpl; | |
| import org.hibernate.loader.OuterJoinLoader; | |
| import org.hibernate.loader.criteria.CriteriaLoader; | |
| import org.hibernate.persister.entity.OuterJoinLoadable; |
| public class RegexExample { | |
| public static void main(String[] args) { | |
| //seacrhing all tags from a html in a string | |
| //pure regex: /<\w+>|<\/\w+>/gm | |
| //example in Java serching and removing all tags | |
| String html = "<body><h1>Hello World</h1><p>Match Regex</p></body>"; | |
| html = html.replaceAll("<\\w+>|<\\/\\w+>",""); | |
| System.out.println(html); | |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| #Example of ~/.ssh/config | |
| Host 192.168.0.1 | |
| HostName 192.168.0.1 | |
| User root | |
| IdentityFile ~/.ssh/KeyPairOk.pem |