This file contains 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
<html lang="pt-br"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/> | |
<title>Cemitério de Startups</title> | |
<!-- CSS --> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> |
This file contains 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
class Participant < ActiveRecord::Base | |
has_many :points, :class => 'ParticipantPoints' | |
end | |
class ParticipantPoints < ActiveRecord::Base | |
attr_accessor :credit_debit | |
after_initialize :set_amount | |
after_create :update_current_points | |
This file contains 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
<? | |
class Produto { | |
} | |
class PesquisaProdutos extends AppModel { | |
/** | |
* Busca os produtos conforme os parâmetros do filtro | |
* @return array de Produto |
This file contains 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
class Funcionario { | |
private boolean logado = false; | |
public boolean isLogado() { | |
return this.logado; | |
} | |
public JornadaTrabalho getJornadaTrabalho() { | |
return // busca a jornada do banco de dados ou memória... | |
} | |
} |
This file contains 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
<?php | |
$carrinhoCompras = new CarrinhoCompras(); | |
$venda = new Venda($carrinhoCompras); | |
$voucher.save(); | |
class CarrinhoCompra { | |
/** |
This file contains 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
# language: pt | |
Funcionalidade: Autenticar Usuário | |
Para acesso à área administrativa do sistema | |
Como visitante | |
Quero autenticar com um usuário já cadastrado | |
Cenário: Autenticação com sucesso | |
Dado que estou na página de autenticação | |
Quando digito "25757687649" no campo "CPF" | |
E digito "secret" no campo "Senha" |
This file contains 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
class AppProject | |
def initialize(sales_project) | |
@sales_project = sales_project | |
end | |
def start | |
do_kickoff | |
do_sprint0 | |
@sales_project.sprints.each do |sprint| |
NewerOlder