Não use UUID como PK nas tabelas do seu banco de dados.
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
| """ | |
| Download the latest versions of all installed VSCode extensions with cURL. | |
| TODO: Add option to automatically install all the downloaded extensions. | |
| TODO: Add option to provide any list of extensions, not just the installed ones. | |
| TODO: Update to allow for specifying extension version (but default to latest version). | |
| TODO: Update to check for directory existence (and make one if it doesn't exist). | |
| """ | |
| import os |
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
| const IS_TEST = process.env.NODE_ENV === 'test'; | |
| const ONE_SECOND_TIMEOUT = 1000; | |
| class Util { | |
| static async delayedCall(fn, params, time = ONE_SECOND_TIMEOUT) { | |
| return new Promise((resolve, reject) => setTimeout(() => { | |
| fn(...params) | |
| .then(resolve) | |
| .catch(reject); | |
| }, time)); |
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
| String divTemplate = | |
| """ | |
| <div class=\"card text-white bg-dark mb-3\" style=\"max-width: 18rem;\"> | |
| <h4 class=\"card-header\">%s</h4> | |
| <div class=\"card-body\"> | |
| <img class=\"card-img\" src=\"%s\" alt=\"%s\"> | |
| <p class=\"card-text mt-2\">Nota: %s - Ano: %s</p> | |
| </div> | |
| </div> | |
| """; |
OlderNewer