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
@login_requerido(['administrador', 'auxiliar'], '/') | |
def consulta_cadastros(request): | |
form = forms.PesquisaCadastrosForm() | |
resposta = {} | |
if request.method == "POST": | |
form = forms.PesquisaCadastrosForm(request.POST) | |
if form.is_valid: |
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
from SimpleCV import * #importa FrameWork | |
import time # importa time | |
frame = Image("1.jpg").scale(0.8) # abre imagem e subtrai 20% do seu total | |
face = frame.findHaarFeatures("face.xml") #instancia de face.xml | |
if face: # se encontrar um rosto | |
face.draw((0, 255, 0), 3) #desenha cor (R,G,B) LarguraLinha 3 | |
frame.show() #mostra o resultado | |
time.sleep(10) #segura por 10seg resultado na tela |
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
Program exemplo ; | |
var | |
nome : string[30]; | |
telefone : string[15]; | |
begin | |
writeln('***************************'); | |
writeln('* AGENDA *'); | |
writeln('*-------------------------*'); | |
writeln('* *'); | |
writeln('* NOME: *'); |
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
Program Dias ; | |
Var | |
ano, ano_inicio, ano_fim, range, bissextos: integer; | |
Begin | |
write('Digite o ano inicial: '); | |
readln(ano_inicio); | |
write('Digite o ano final: '); | |
readln(ano_fim); |
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
PROGRAM Fib; | |
VAR | |
numero_maximo: integer; | |
PROCEDURE fib(anterior, proximo, maximo: integer); | |
begin | |
if(proximo < maximo) then | |
begin | |
writeln(proximo); |
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
import java.util.Scanner; | |
public class Lugares { | |
public static void main(String args[]) { | |
boolean lugares[][] = new boolean[4][12]; //Matriz 4 x 12 | |
//Setando todos lugares como false | |
for(int fileira = 0; fileira <= 3; fileira++) { //Percorrendo as 4 fileiras da matriz | |
for(int lugar = 0; lugar <= 11; lugar++) { //Percorrendo cada cadeira dentro da fileira |
NewerOlder