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
# Permite colocar um submit fora de um form. | |
# | |
# Para isso basta acrescentar a classe 'outside-submit' a elemento(link,button,etc) que irá disparar o submit do form. | |
# O botão deve ter um atributo data-formid com o id do do formulário. | |
# | |
# @example | |
# | |
# <a class="outside-form" data-formid="my-form">link to submit</a> | |
# | |
# <form id="my-form"> |
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
# Classe TimeLoop, execute a function every x miliseconds | |
# | |
# @example How o create a loop | |
# myLoop = new TimeLoop((-> alert("loop"),1000) | |
# myLoop.start() | |
# | |
class window.TimeLoop | |
constructor: (@function,@miliseconds) -> | |
# Start loop. |
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
# install only client | |
sudo apt-get install postgresql-client | |
# run docker | |
docker rm postgres13.0; docker run --name postgres13.0 -p 5432:5432 --network=dev-network -e "POSTGRES_PASSWORD=postgres" -v "/home/germano/.docker/postgres_data/13.0:/var/lib/postgresql/data" postgres:13-alpine | |
# connect | |
psql postgresql://postgres:postgres@127.0.0.1:5432/postgres |