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
| <?php | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Support\Facades\Schema; | |
| return new class extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
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
| /** | |
| * @author Jocelino Neto <https://gist.github.com/netojocelino/85fd89c8514fcacc8a197473132deda5> | |
| */ | |
| const SaveAndLoadForm = (keyName = null) => { | |
| keyName = (keyName ==! null) ? keyName : `saveForm-${document.querySelector('[data-save-form]').dataset.saveForm}`; | |
| const saveStates = new Map() | |
| let timeoutSaveLocalStorage = null; | |
| const isSelect2 = (element) => !element && Array.from(element.classList).includes('select2') || (element.dataset.control == 'select2') |
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
| Array.from(document.querySelectorAll('input[type=file][data-max-size]')).forEach(el => { | |
| el.addEventListener('input', function () { | |
| const maxSize = this.dataset.maxSize; | |
| if (maxSize === undefined) return; | |
| let isValid = true; | |
| for (let i = 0; i < this.files.length; i++) { | |
| const file = this.files[i] | |
| if (file.size >= maxSize) { |
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
| # Mr Robot | |
| Programa que mostra informações básicas da série de TV Mr. Robot da emissora USA Network | |
| Feito em 8 Nov 2016 | |
| ### Comandos: | |
| - award (mostrar os premios ganhados.) | |
| - seeing (Esta vendo tudo?) | |
| - join (Junte-se a nos.) | |
| - help (Mostra essa tela de ajuda.) |
Repositorio para guardar links de pequenos projetos para iniciantes em python - ou outras linguagens.
Postagem no facebook pequena discussao com links para projetos. OpenHatch, 'motor' de envovimento de codigos livres, que contribuir com a comunidade, ferramentas e educacao.
Alguém na lista Python-Brasil perguntou sobre como criar um webservice Restful com Python... eu achei interessante salvar as sugestões aqui para indicar, caso essa questão apareça em algum lugar.
A ideia é também atualizar esse arquivo com algum blogpost que contribua para a questão.
- Documentação -> http://flask.pocoo.org
- Extensão util -> http://flask-restful.readthedocs.org
- Exemplo -> http://blog.miguelgrinberg.com/post/designing-a-restful-api-using-flask-restful
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
| # PyProjects2Beginners | |
| Sobre | |
| ======= | |
| Repositorio para guardar links de pequenos projetos para iniciantes em python - ou outras linguagens. | |
| Links | |
| ======= | |
| [Postagem no facebook](https://www.facebook.com/groups/python.brasil/permalink/739165022855037/) pequena discussao com links para projetos. | |
| [OpenHatch](https://openhatch.org/), 'motor' de envovimento de codigos livres, que contribuir com a comunidade, ferramentas e educacao. |
