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 { | |
| createRouter, | |
| providers, | |
| defaultAuthProviderFactories, | |
| } from '@backstage/plugin-auth-backend'; | |
| import {Router} from 'express'; | |
| import {PluginEnvironment} from '../types'; | |
| export default async function createPlugin( | |
| env: PluginEnvironment, |
| require 'net/http' | |
| require 'json' | |
| uri = URI("https://api.github.com/gists") | |
| payload = { | |
| 'description' => "export code to gist", | |
| 'public' => false, | |
| 'files' => { |
| class Array | |
| def to_csv(csv_filename="hash.csv") | |
| require 'csv' | |
| CSV.open(csv_filename, "wb") do |csv| | |
| csv << first.keys # adds the attributes name on the first line | |
| self.each do |hash| | |
| csv << hash.values | |
| end | |
| end | |
| end |
| 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; |
| 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 { |
| 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()); |
| 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; | |
| } |
| /** | |
| * 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'); |