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
// Dado os Dados | |
2-) Faça um programa que seja capaz de realizar o cálculo de seguro de um carro. O cálculo deve ser proporcional a condição escolhida abaixo pelo usuário. | |
Condições: | |
a-) Acrescentar ao valor do seguro 2% caso a pessoa seja solteira. | |
b-) Acrescentar ao valor do seguro 8% caso a pessoa seja solteira, do sexo masculino e sua idade esteja entre 18 a 25 anos. |
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
// Programa em C , Media do Aluno | |
// Desenvolvido Por Renato Rosa Franco | |
// 10:29:16 - 12 de Abril de 2014 | |
#include <stdio.h> | |
// Função Principal | |
int main() | |
{ |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package javaapplication1; | |
/** | |
* | |
* @author Laboratório | |
*/ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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
#!/bin/bash | |
# set your own routine here | |
prepare(){ | |
bundle install | |
if [ $1 != 'production' ]; then | |
rails db:drop RAILS_ENV=$1 | |
fi | |
rails db:create RAILS_ENV=$1 && rails db:migrate RAILS_ENV=$1 | |
rails db:seed RAILS_ENV=$1 |
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
def get_domain(domain) | |
@domain = domain.split /\@/ | |
@domain[1] | |
end | |
def valid_domains?(users) | |
regexp = /\@#{Regexp.quote(@domain[1])}/ | |
@error_domain_counter = 0 | |
@error_domains = [] |
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
def get_domain(domain) | |
@domain = domain.split /\@/ | |
@domain[1] | |
end | |
def valid_domains?(users) | |
regexp = /\@#{Regexp.quote(@domain[1])}/ | |
@error_domain_counter = 0 | |
@error_domains = [] | |
@valid_domains = [] |
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
# Dominio : Campo do dominio a ser preenchido | |
# Emails : Campo de e-mails a ser preenchido (usuarios, admin) | |
# Argumentos | |
# 1-> Dominio principal | |
# 2-> Emails para serem validados referente ao domninio | |
def valid_domains(dominio, emails) | |
regexp = dominio.match /(\.[a-z0-9]*){1,3}/ | |
dominio = $& | |
emails = emails.split(';') |
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
renato.franco@uol.br;renato-franco@uol.com.br;anderson@gmail.com |
OlderNewer