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
| export const UseCase = (dependencies) => { | |
| const { | |
| logger, | |
| repositories: { | |
| repository, | |
| }, | |
| services: { | |
| someExternalCall, | |
| }, |
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 host = 'https://api.github.com/'; | |
| const request = { | |
| const req = (path, method, opts, params) => { | |
| return fetch(`${host}/v3/${path}?${params}`, { | |
| headers, | |
| method, | |
| ...opts | |
| }); | |
| }; |
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
| { | |
| "0": { | |
| "Definição": "Transação autorizada com sucesso.", | |
| "Ação": "-", | |
| "Irreversível para as bandeiras": "-" | |
| }, | |
| "00": { | |
| "Definição": "Transação autorizada com sucesso.", | |
| "Ação": "-", | |
| "Irreversível para as bandeiras": "-" |
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
| [ | |
| { | |
| "team": "Mercedes", | |
| "date": "17/02/2022", | |
| "hour": "" | |
| }, | |
| { | |
| "team": "Ferrari", | |
| "date": "27/02/2011", | |
| "BRTHour": "" |
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
| import React from 'react'; | |
| const getPercent = (percent, value) => | |
| (value * percent) / 100; | |
| const colorTypes = new Map([ | |
| ['r', 'rgb'], | |
| ['#', 'hex'], | |
| ['h', 'hsla'] | |
| ]); |
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 str = ['h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd']; | |
| let count = 0; | |
| window.setInterval(() => { | |
| console.log(str[count]); | |
| count++; | |
| }); |
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
| export default function log(txt) { | |
| console.log(txt); | |
| } |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
| <title>Cadastro De Alunos</title> | |
| <style type="text/css"> | |
| <!-- | |
| @import url("estiloNovaAcao.css"); |
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
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
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 saveOrderWrapper = (dependencies) => { | |
| const { repository, config } = dependencies; | |
| const { mongoDB } = repository; | |
| const { orderTTLInDays } = config.app; | |
| const orderTTL = (millesecondsInADay * orderTTLInDays); | |
| const asyncCall = prepareCall(dependencies); |
NewerOlder