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
# Respondido em: http://pt.stackoverflow.com/questions/184192 | |
tipo_jogo = 0 | |
def computador_escolhe_jogada(n, m): | |
# Vez do computador: | |
print("Vez do computador!") | |
# Pode retirar todas as peças? |
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
$data = [ | |
"carro" => "Fiat Uno", | |
"ano" => "2017" | |
]; | |
$template = "Meu carro é {{carro}}, ano {{ano}}\n"; | |
function parse ($template, array $vars) | |
{ | |
return preg_replace_callback('#{{(.*?)}}#', function($match) use ($vars) { |
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
create table empresas | |
( | |
id int, | |
name varchar(255) | |
); | |
create table diretores ( | |
id int, | |
name varchar(255), | |
empresa int |
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
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCBDgHgADASIAAhEBAxEB/8QAHAAAAwEBAQEBAQAAAAAAAAAAAAECAwQFBgcI/8QAPxABAQACAgICAQMDBAEDAQERAAECEQMEEiEFMUEGEyJRUmEUIzJxgTNyoQcVJDRCkUNiFlOigpLB4SVjsfH/xAAZAQEBAQEBAQAAAAAAAAAAAAAAAQIDBAX/xAAjEQEBAQEBAQEBAQEBAAMBAQAAARECAxIhMRNBBBRCYTJR/9oADAMBAAIRAxEAPwD9l48eK9S+WWUvl+GXjwf3ZDH/AO9sv/cyehlr48H92Q8eD+7JkAbePB/dkfjwf3ZMYYNfHg/uyHjwf3ZMgDXx4P7sjmPB/dkxOA28eD+7Irjwf3ZMyoNZjwf3ZH48H92TGGDXx4P7sh48H92TIA28eD+7IvHg/uyZAGvjwf3ZH48H92TEA28eD+7IePB/dkxCDbx4P7sh48H92TEA38eD+7IePB/dkxANvHg/uyHjwf3ZMQDbx4P7sj8eD+7JgYNvHg/uyHjwf3ZMQDbx4P7sh48H92TEA28eD+7IePB/dkxANvHg/uyHjwf3ZMQDbx4P7sh48H92TECtvHg/uyHjwf3ZMQDbx4P7sj8eD+7JgYNvHg/uyHjwf3ZMQDbx4P7sh48H92TEA38eD+7IePB/dkxAjbx4P7sh48H92TEA28eD+7IePB/dkxANvHg/uyHjwf3ZMQDbx4P7sh48H92TEA28eD+7IePB/dkxArbx4P7sh48H92TEA2mPB/dkfjwf3ZMYAbePB/dkPHg/uyYgG |
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
# http://pt.stackoverflow.com/questions/186428 | |
from random import choice | |
def escolher(): | |
a = choice([[10.00,90.00,30.00,40.00],[50.00,60.00,90.00,80.00]]) | |
fitness_1_temp = 0 | |
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
<!-- Template --> | |
<table cellspacing="0" cellpadding="0" style="border: 1px dashed #2c2b33;"> | |
<tbody> | |
<tr> | |
<td> | |
<table cellspacing="0" cellpadding="0" border="0" width="900"> | |
<tbody> | |
<!-- Topo --> |
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
Kevin T. Sullivan<br /> | |
Nicolash Correia Cunha<br /> | |
Lavinia Azevedo Lima<br /> | |
Isabelle Lima Silva<br /> | |
Kauan Silva Almeida<br /> | |
Victor Costa Carvalho<br /> | |
Sophia Pinto Barbosa<br /> | |
Vitor Goncalves Barros<br /> | |
Daniel Sousa Melo<br /> | |
Davi Gomes Correia<br /> |
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
[ | |
"Kevin T. Sullivan", | |
"Nicolash Correia Cunha", | |
"Lavinia Azevedo Lima", | |
"Isabelle Lima Silva", | |
"Kauan Silva Almeida", | |
"Victor Costa Carvalho", | |
"Sophia Pinto Barbosa", | |
"Vitor Goncalves Barros", | |
"Daniel Sousa Melo", |
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
[ | |
{"dia":2,"tecnico":"Maria","total":2}, | |
{"dia":2,"tecnico":"Marcos","total":6}, | |
{"dia":2,"tecnico":"Joao","total":2}, | |
{"dia":2,"tecnico":"Carlos","total":4}, | |
{"dia":2,"tecnico":"Fernando","total":1}, | |
{"dia":2,"tecnico":"Luiz","total":5}, | |
{"dia":2,"tecnico":"Portuga","total":1}, | |
{"dia":2,"tecnico":"Caio","total":1}, | |
{"dia":2,"tecnico":"Time Ass. Tec.","total":2}, |
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
Foi proposto a um engenheiro de computação fazer um programa que determinasse se um acadêmico foi ou não aprovado em seu TCC. | |
A banca de avaliação é composta pelo coodenador do curso, mais três professores, cada qual com seus vários critérios de | |
avaliação. O acadêmico deverá ser considerado aprovado se a maioria dos membros da banca votarem 1. Em caso de empate, o voto | |
do coordenador deverá ser considerado como de minerva; isto é, se houverem dois votos a favor, o acadêmico deverá ser aprovado | |
se um desses votos for o do coordenador. Caso contrário, o acadêmico deverá ser considerado reprovado. O programa deverá | |
executar o mínimo possível de operações lógicas. Dica: utilize mapa de Karnaugh para efetuar a minimização da expressão lógica. |
OlderNewer