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
<h1>Listing convenios</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Numeroconvenio</th> | |
<th>Uf</th> | |
<th>Codigosiafi</th> | |
<th>Nomemunicipio</th> | |
<th>Situacaoconvenio</th> |
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
<h1>Lista de Usuários</h1> | |
<table > | |
<thead> | |
<tr> | |
<td>Nome</td> | |
<td>Cpf</td> | |
<td>Email</td> | |
<td>Editar usuário</td> | |
<td>Deletar usuário</td> |
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
<%= simple_form_for @usuarios do |f| %> | |
<%= f.input :nome, input_html: { class: 'special' } %> | |
<%= f.input :cpf, input_html: { maxlength: 11 } %> | |
<%= f.input :email %> | |
<%= f.input :login, input_html: { maxlength: 20 } %> | |
<%= f.input :senha, input_html: { maxlength: 12 } %> | |
<%=link_to raw("<i class=\"fa fa-plus-circle\"> Voltar "), | |
usuarios_path, |
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
<%= form_tag directories_path, method: :post do %> | |
<div class="field"> | |
<%= label_tag "Login"%> | |
<%= text_field_tag 'login', nil,:required => true %> | |
</div> | |
<div class="field"> | |
<%= label_tag "Nome"%> | |
<%= text_field_tag 'nome' , nil ,:required => true%> |
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
Referências: | |
http://rogerdudler.github.io/git-guide/index.pt_BR.html | |
http://blog.glaucocustodio.com/2013/03/06/git-nosso-de-cada-dia-git-cheatsheet/ | |
http://git-scm.com/book/pt-br/ | |
Treine: | |
https://try.github.io/levels/1/challenges/1 | |
http://games.vidageek.net/play/git |
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
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
int main() { | |
double entrada,valor; | |
double cem =0 ,cinquenta = 0 ,vinte = 0,dez = 0,cinco = 0,dois = 0,um = 0,m50 = 0 , m25=0,m10=0,m5=0,m1=0; | |
int end = 0; |
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
QUESTAO B | |
Bolos da Maria | |
Por Fabio Lima, Universidade de São Paulo - São Carlos BR Brazil | |
Timelimit: 1s | |
Dona Maria é uma senhora que está aposentada e faz doces. Ela começou a fazer bolos para complementar a renda da família. | |
Para fazer um bolo, Dona Maria precisa de certa quantidade de alguns ingredientes diferentes. Cada ingrediente tem um custo fixo por unidade. Ela tem uma quantia de dinheiro D máxima para gastar na compra dos ingredientes. Dentre os tipos de bolos que existem, você deve escolher apenas um tipo, de maneira a maximizar a quantia de bolos. |
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
h1. Tô de Olho! | |
http://todolho.com.br | |
!http://164.41.86.12/redm/attachments/download/28/logotodelho.jpg! | |
Bem vindos ao projeto Tô de olho,O projeto abrange um sistema de integração entre toda a população brasileira e as informações fornecidas dos convênios e contratos de Repasse da administração pública feitos por do país. A intenção da solução de software é dar oportunidade para qualquer cidadão acompanhar os gastos de seu governo e dar voz as reclamações da população. | |
h2. Integrantes da Equipe de Desenvolvimento |
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
Levando em consideração que uma VM CENTOS 6.5 esteja criada | |
1- Entrar na pasta raiz do projeto https://github.com/colab-community/colab.git | |
2- Criar arquivo project_cfg.py (exemplo no gist) na raiz do projeto | |
3- Agora dentro da pasta do src/colab você irá copiar o arquivo local_settings-dev.py para local_settings-lappis.py (lappis é o nome que está no evnvironments , em project_cfg.py) | |
4- Abra o arquivo local_settings-lappis.py e altere a variável allowed_hosts colocando o ip da VM. | |
5- Volte a raiz do projeto e vá para puppet/hieradata/ | |
6- Abra o arquivo common.yaml | |
7- Adicione o ip da máquina da seguinte forma: | |
colab::hostnames: |
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
#include <iostream> | |
#include <string> | |
#include <map> | |
using namespace std; | |
//na primeira vez que esse código for executado, por exemplo, para um fib(4), | |
//ele vai ter que calcular respectivamente o fib(2) e fib(3), porem, quando eu | |
//chamar um fib(5), como os resultados anteriores ja estarão armazenados no map e o | |
//valor será retornado sem nenhum calculo adicional, e com isso, teremos um bom ganho no tempo de execução. |