Todo
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
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' ], |
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
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 | |
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
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 |
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
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 |
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
# Extract jar files | |
```bash | |
$: jar xf JAR_FILE.jar | |
``` | |
## Check files | |
File structure containing the application's dependencies. | |
# Running | |
```bash | |
$: CLASSPATH="PATH1:PATH2" jshell |
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:
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
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) |