sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| import static br.com.caelum.vraptor.proxy.CDIProxies.unproxifyIfPossible; | |
| import static com.google.common.base.Preconditions.checkArgument; | |
| import java.io.IOException; | |
| import java.lang.reflect.Method; | |
| import javax.enterprise.context.RequestScoped; | |
| import javax.enterprise.inject.Specializes; | |
| import javax.inject.Inject; |
| legendTemplate : "<ul class=\"<%=name.toLowerCase()%>-legend\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\"background-color:<%=datasets[i].strokeColor%>\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>" |
| // Promise.all is good for executing many promises at once | |
| Promise.all([ | |
| promise1, | |
| promise2 | |
| ]); | |
| // Promise.resolve is good for wrapping synchronous code | |
| Promise.resolve().then(function () { | |
| if (somethingIsNotRight()) { | |
| throw new Error("I will be rejected asynchronously!"); |
| /** | |
| * Created by Phil on 02/23/17. | |
| */ | |
| // BASE SETUP | |
| // ================================================================================================ | |
| // Imports | |
| const express = require('express'); | |
| const app = express(); | |
| const bodyParser = require('body-parser'); | |
| const path = require('path'); |
| public class Pessoa { | |
| String nome; | |
| String sobrenome; | |
| String idade; | |
| } |
| public class Pessoa { | |
| String nome; | |
| String sobrenome; | |
| String idade; | |
| @Override | |
| public boolean equals(Object obj) { | |
| if (!(obj instanceof Pessoa)) | |
| return false; | |
| Pessoa other = (Pessoa) obj; | |
| if (!this.nome.equals(other.nome) || !this.idade.equals(other.idade)) |
| public class Pessoa { | |
| String nome; | |
| String sobrenome; | |
| String idade; | |
| @Override | |
| public int hashCode() { | |
| final int prime = 31; | |
| int result = 1; | |
| result = prime * result + ((idade == null) ? 0 : idade.hashCode()); | |
| result = prime * result + ((nome == null) ? 0 : nome.hashCode()); |
| import java.util.List; | |
| public class BuscaPessoa { | |
| public PessoaFisica buscaPessoaPorCpf(List pessoas, String cpf) { | |
| for (PessoaFisica pessoaFisica : pessoas) { | |
| if (pessoaFisica.cpf.equals(cpf)) | |
| return pessoaFisica; | |
| } | |
| return null; | |
| } | |
| class PessoaFisica { |
| import java.util.List; | |
| public class BuscaPessoa { | |
| public PessoaFisica buscaPessoaPorCpf(List pessoas, String cpf) { | |
| PessoaFisica pessoaFisica = new PessoaFisica(); | |
| pessoaFisica.cpf = cpf; | |
| int indexOfPessoa = pessoas.indexOf(pessoaFisica); | |
| if (indexOfPessoa > 0) { | |
| return pessoas.get(indexOfPessoa); | |
| } | |
| return null; |