Skip to content

Instantly share code, notes, and snippets.

View tgmarinho's full-sized avatar
💻
read my blog: tgmarinho.com

Thiago Marinho tgmarinho

💻
read my blog: tgmarinho.com
View GitHub Profile
Contato: @tgmarinho no twitter, www.facebook.com/tgmarinho e email tgmarinho@gmail.com
Currículo em PDF acesse: http://tgmarinho.wordpress.com/curriculo/
Currículo na Plataforma Lattes: http://lattes.cnpq.br/3842572544651417
Currículo no LinkedIn: http://www.linkedin.com/pub/thiago-marinho/1a/586/516
@tgmarinho
tgmarinho / estados-cidades.json
Created July 13, 2017 15:59 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@tgmarinho
tgmarinho / Main.java
Created July 13, 2017 16:00 — forked from JFRode/Main.java
SQL para registro de todos os estados e cidades do Brasil
package jfrode.jsontosql.main;
import java.io.BufferedReader;
import java.io.FileReader;
import org.json.JSONArray;
import org.json.JSONObject;
/**
*
@tgmarinho
tgmarinho / config_linux_mint_tgmarinho.sh
Last active July 14, 2017 19:41
Meus programas e configurações no Linux Mint
#!/bin/bash
## RECOMENDO EXECUTAR ESSE SCRIPT NA PASTA DOCUMENTOS DENTRO DO USUARIO
echo "PRECISA DE INTERNET PARA EXECUTAR ESSE SCRIPT"
echo "FAZ DOWNLOAD DE ARQUIVOS NA NET"
sudo su
apt-get update -y
## meus projetos
#!/bin/bash
## RECOMENDO EXECUTAR ESSE SCRIPT NA PASTA DOCUMENTOS DENTRO DO USUARIO
echo "baixando projetos que colaboro, aprendo ou desenvolvo"
git clone https://github.com/tgmarinho/website.git
git clone https://github.com/tgmarinho/curso-jpa-hibernate.git
// Nome, Tipo de campo, placeholder, Validacao(Inteface)
public enum TipoPessoa {
FISICA("Física", "CPF", "000.000.000-00", CpfGroup.class) {
@Override
public String formatar(String cpfOuCnpj) {
return cpfOuCnpj.replaceAll("(\\d{3})(\\d{3})(\\d{3})", "$1.$2.$3-");
}
},
@tgmarinho
tgmarinho / README-Template.md
Created December 13, 2017 13:20 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@tgmarinho
tgmarinho / git-update-fork.sh
Created March 21, 2018 13:11 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@tgmarinho
tgmarinho / AddTaskContainer.js
Last active March 31, 2018 13:09
High Order Function -> Form of forms!
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { withForm } from './withForm';
import { AddTask } from '../ui/AddTask';
export const addTaskMutation = graphql(
gql`
mutation addTask($task: AddTaskInput!) {
addTask(task: $task) {
@tgmarinho
tgmarinho / App.js
Created April 2, 2018 18:24
Post no Medium sobre Composição básica de componentes
import React, { Componente } from 'react';
import LikeButton from './likeButton';
import DeslikeButton from './deslikeButton';
class App extends Component {
 
 render () {
  return (
<div>
<LikeButton />