- Full Stack Developer JS ,React Js, React Native, Node JS, Python, #C
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> | |
| <html> | |
| <head> | |
| <style> | |
| /* Estilize o botão arrastável */ | |
| .draggable-button { | |
| width: 100px; | |
| height: 40px; | |
| background-color: #007bff; |
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 { ComponentProps, ReactNode, createElement } from "react"; | |
| type BoxProps<E extends React.ElementType = "div"> = { | |
| component?: E; | |
| children?: ReactNode; | |
| } & Omit<ComponentProps<E>, "component">; | |
| function Box<E extends React.ElementType = React.ElementType>({ | |
| component, | |
| children, |
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 fs = require('fs') | |
| const path = require('path') | |
| const ts = require('typescript') | |
| class DeclarationsExtractor { | |
| constructor(srcDir, outputFilePath) { | |
| this.srcDir = srcDir | |
| this.outputFilePath = outputFilePath | |
| } |
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 fs = require("fs"); | |
| const path = require("path"); | |
| function processFile(filePath) { | |
| fs.readFile(filePath, "utf8", (err, data) => { | |
| if (err) { | |
| console.error(`Erro ao ler o arquivo ${filePath}:`, err); | |
| return; | |
| } |
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 fs = require("fs"); | |
| const path = require("path"); | |
| function changeFileExtension(filePath, fileExtension) { | |
| const fileExt = path.extname(filePath); | |
| const newFilePath = path.join( | |
| path.dirname(filePath), | |
| path.basename(filePath, fileExt) + ".ts" | |
| ); |
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
| #!/usr/bin/env node | |
| /** | |
| * @param {string} command process to run | |
| * @param {string[]} args command line arguments | |
| * @returns {Promise<void>} promise | |
| */ | |
| const runCommand = (command, args) => { | |
| const cp = require("child_process"); | |
| return new Promise((resolve, reject) => { |
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
| function pgto(tax, period, currentValue, valueFuture, type) { | |
| let pmt, currentValueIf; | |
| valueFuture || (valueFuture = 0); | |
| type || (type = 0); | |
| if (tax === 0) | |
| return -(currentValue + valueFuture) / period; | |
| currentValueIf = Math.pow(1 + tax, period); |
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
| <!-- Lemrando de acionar a linha dois com cdn padrao somente se nao existir na loja --> | |
| <!-- Mudar as cores para a preferencia de Loja --> | |
| <link rel='stylesheet' type='text/css' href='https://cdn-prod.securiti.ai/consent/cookie-consent.css' /> | |
| <style> | |
| .cc-btn{ | |
| background: #ff808b !important; | |
| color: #fff !important; | |
| } | |
| li.is-active a{ |
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
| /* securiti.ai Banner*/ | |
| /* Lembrando que essas são somente as classes mudar para cor desejada*/ | |
| .cc-btn{background: #000 !important;color: #fff !important;} | |
| .cmp-body li.is-active a{background: #000 !important;color: #fff !important;} | |
| .cmp-switch.readonly input .cmp-switch__slider{background: #000 !important;} | |
| .cmp-switch__slider{background: #000 !important} | |
| .cmp-save-btn {background: #000 !important;color: #fff !important;} | |
| .cmp-body a[href=""],.cmp-body a[href="#"] {pointer-events: initial;} |
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
| function getSearchUrlVtex() { | |
| var url, content, preg; | |
| jQuery("script:not([src])").each(function () { | |
| content = jQuery(this)[0].innerHTML; | |
| preg = /\/buscapagina\?.+&PageNumber=/i; | |
| if (content.search(/\/buscapagina\?/i) > -1) { | |
| url = preg.exec(content); | |
| return false; | |
| } | |
| }); |