- Criar conta no Github
- Criar conta no Docker Hub
- Baixar e Instalar o VS Code e instalar as seguintes extensões:
- Gherkin Indent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| ci = commit | |
| co = checkout | |
| cm = checkout master | |
| cb = checkout -b | |
| st = status -sb | |
| sf = show --name-only | |
| lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30 | |
| incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u}) | |
| outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NIVEIS = Hash.new(Candidato::Desconhecido).merge( | |
| junior: Candidato::Junior, | |
| pleno: Candidato::Pleno, | |
| senior: Candidato::Senior | |
| ) | |
| candidato = NIVEIS[nivel].new(nome, telefone) | |
| # OU... | |
| NIVEIS = Hash.new( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| klass = case nivel | |
| when 'junior' | |
| Candidato::Junior | |
| when 'pleno' | |
| Candidato::Pleno | |
| when 'senior' | |
| Candidato::Senior | |
| else | |
| Candidato::Desconhecido | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case nivel | |
| when 'junior' | |
| candidato = Candidato::Junior.new(nome, telefone) | |
| when 'pleno' | |
| candidato = Candidato::Pleno.new(nome, telefone) | |
| when 'senior' | |
| candidato = Candidato::Senior.new(nome, telefone) | |
| else | |
| candidato = Candidato::Desconhecido.new(nome, telefone) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Exemplo 1: sem Hash | |
| def comer(fruta) | |
| case fruta | |
| when 'b' | |
| 'Banana' | |
| when 'c' | |
| 'Coco' | |
| when 'm' | |
| 'Maçã' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var template = ` | |
| <table> | |
| <tr> | |
| <th>Job title</th> | |
| <th>Location</th> | |
| <th>Company</th> | |
| </tr> | |
| {{#each response}} | |
| <tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| On the shared machine: | |
| Download http://code.google.com/p/selenium/downloads/detail?name=selenium-server-standalone-2.33.0.jar&can=2&q= | |
| $ brew install chromedriver | |
| $ java -jar selenium-server-standalone-2.33.0.jar | |
| On the local machine: | |
| Set `CHROME_HOSTNAME` in your `.env`, `.rbenv_vars`, or per run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| def tarefa(hash = {}) | |
| browser = hash[:browser] ||= '-p chrome' | |
| mode = hash[:mode] ||= '-p default' | |
| desc "Executa os testes no #{hash[:task].capitalize} no modo #{hash[:env]}" | |
| task hash[:task].to_sym, [:tags] do |_t, args| | |
| Rake::Task['cucumber:command'].invoke(browser, mode, args.tags) | |
| end |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.