I hereby claim:
- I am lramosduarte on github.
- I am leonardoduarte (https://keybase.io/leonardoduarte) on keybase.
- I have a public key ASCvpz43WeIHglyNUvAJlz-fBr8AIyJo55L7bCym9e5H3Ao
To claim this, I am signing this object:
openapi: 3.0.3 | |
info: | |
title: Swagger Petstore - OpenAPI 3.0 | |
description: |- | |
Keycloak mock api | |
Some useful links: | |
- [keycloak doc](https://www.keycloak.org/docs/23.0.7/authorization_services/) | |
- [keycloak postman collection](https://documenter.getpostman.com/view/7294517/SzmfZHnd#12b1b64f-372b-47b5-a01f-0418fd9515c4) |
I hereby claim:
To claim this, I am signing this object:
# Extract jar files | |
```bash | |
$: jar xf JAR_FILE.jar | |
``` | |
## Check files | |
File structure containing the application's dependencies. | |
# Running | |
```bash | |
$: CLASSPATH="PATH1:PATH2" jshell |
Antígua e Barbuda - Antiguano | |
Argentina - Argentino | |
Bahamas - Bahamense | |
Barbados - Barbadiano, barbadense | |
Belize - Belizenho | |
Bolívia - Boliviano | |
Brasil - Brasileiro | |
Chile - Chileno | |
Colômbia - Colombiano | |
Costa Rica - Costarriquenho |
def tempo_executar_funcao(f): | |
def wrap(*args): | |
time1 = time.time() | |
ret = f(*args) | |
time2 = time.time() | |
# alterar se for python3 o print e nome de funcao | |
print '%s function took %0.3f ms' % (f.func_name, (time2-time1)*1000.0) | |
return ret |
import string | |
class PartialFormatter(string.Formatter): | |
def get_field(self, field_name, args, kwargs): | |
try: | |
val=super().get_field(field_name, args, kwargs) | |
except (KeyError, AttributeError): | |
val = '{{{nome_campo}}}'.format(nome_campo=field_name),field_name | |
return val | |
var diaSemana = [ 'Domingo', 'Segunda-Feira', 'Terca-Feira', 'Quarta-Feira', 'Quinta-Feira', 'Sexta-Feira', 'Sabado' ]; | |
var mesAno = [ 'Janeiro', 'Fevereiro', 'Marco', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro' , 'Dezembro' ]; | |
var data = new Date(); | |
var hoje = diaSemana[data.getDay()] + ', ' + mesAno[data.getMonth()] + ' de ' + data.getFullYear(); | |
$("#dataPesquisa").attr("value", hoje); | |
$(".datepicker").pickadate({ | |
monthsFull: mesAno, | |
monthsShort: [ 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez' ], | |
weekdaysFull: diaSemana, | |
weekdaysShort: [ 'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab' ], |