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 | |
welcome="Hello Shell Script" | |
echo $welcome |
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
public class RulesProject { | |
private static ResourceBundle projectFileList = ResourceBundle | |
.getBundle("utfpr.edu.br.ex2.projectFileList"); | |
private static Map<String,String> propertiesMap = buildPropertiesMap(projectFileList); | |
public static boolean validateFiles(Object bean, Field field) { | |
return hasValue(ValidatorUtils.getValueAsString(bean, field.getProperty())); | |
} |
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> | |
<head> | |
<link rel="stylesheet" type="text/css" href="index.css"> | |
</head> | |
<body> | |
<form enctype="multipart/form-data" action="agenda.php" method="POST"> | |
<input type="hidden" name="MAX_FILE_SIZE" value="100000" /> | |
<div class="import"> | |
<label>Importar Arquivo</label> | |
<input type="file" id="import" name="import" value="Importar"/> |
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
if (HttpContext.User.Identity.IsAuthenticated) | |
{ | |
if (UserAuthorization.IsAuthorized(AuthorizationType.Cliente)) | |
{ | |
//Tudo ok autenticado e autorizado | |
return View(cliente); | |
} | |
//Nao esta autorizado manda pro unauthorized | |
return RedirectToAction("Unauthorized", "Access"); | |
} |
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 01 | |
#include <iostream> | |
using namespace std; | |
int main(){ | |
cout << "\nEXEMPLO 01 - SOMAR DOIS NUMEROS"; | |
//Declaracao de variaveis. | |
int num1, num2, soma; | |
//Leitura do primeiro numero. | |
cout << "\nDigite um numero: "; | |
cin >> num1; |
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
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
cout << "\nExercício Du Gay"; | |
//Declaracao de variaveis. | |
float temp,faren; | |
//Leitura | |
cout << "\nInforme a Temperatura:"; |
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 OR REPLACE FUNCTION user_schema_creator() | |
RETURNS trigger LANGUAGE plpgsql | |
AS | |
$$ | |
begin | |
EXECUTE 'CREATE SCHEMA user_'||new.id||' AUTHORIZATION postgres'; | |
return new; | |
end; | |
$$ | |
CREATE OR REPLACE FUNCTION user_schema_delete() |
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
@WebService | |
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, | |
use=SOAPBinding.Use.LITERAL, | |
parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) | |
public interface ProfessorServer { | |
@WebMethod | |
public List<Professor> obterProfessores(); | |
@WebMethod | |
public List<Disciplina> obterDisciplinas(); | |
@WebMethod |
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
{ | |
"id" : 123123123123, | |
"cliente" : { | |
"nome" : "João Batista", | |
"cpf" : 09359089605, | |
"endereco_entrega" : { | |
"rua" : "Av Parana 35", | |
"cidade" : "Londrina" | |
} | |
}, |
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
# coding: utf-8 | |
import re | |
out = """Objeto: archives_LB2APP20160727_72rbn1ub_1_1.bkp | Tamanho: 57894400 | Última Alteração: 2016-07-27 03:07:35 +0000 UTC | |
Objeto: controlfile_LB2APP20160727.bkp | Tamanho: 1179648 | Última Alteração: 2016-07-27 03:08:21 +0000 UTC | |
Objeto: db_LB2APP20160727_6srbn1nl_1_1.bkp | Tamanho: 169779200 | Última Alteração: 2016-07-27 03:08:22 +0000 UTC | |
Objeto: db_LB2APP20160727_6trbn1p2_1_1.bkp | Tamanho: 37232640 | Última Alteração: 2016-07-27 03:08:51 +0000 UTC | |
Objeto: db_LB2APP20160727_6urbn1ph_1_1.bkp | Tamanho: 302587904 | Última Alteração: 2016-07-27 03:08:59 +0000 UTC | |
Objeto: db_LB2APP20160727_6vrbn1rt_1_1.bkp | Tamanho: 394878976 | Última Alteração: 2016-07-27 03:09:27 +0000 UTC | |
Objeto: db_LB2APP20160727_70rbn1u8_1_1.bkp | Tamanho: 1179648 | Última Alteração: 2016-07-27 03:10:16 +0000 UTC | |
Objeto: spfile_LB2APP20160727.bkp | Tamanho: 98304 | Última Alteração: 2016-07-27 03:10:17 +0000 UTC""" |
OlderNewer