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
| /** | |
| * Convert Audio Chunk to Audio PCM 16Bit 24kHz Mono | |
| * (Required audio/wav and 24kHz Mono) | |
| * | |
| * @param {Float32Array<ArrayBufferLike>} chunk | |
| * @returns {Int16Array<ArrayBuffer>} | |
| */ | |
| const chunkToPCM = function (chunk) { | |
| const minimalInt = 0x8000; | |
| const maximalInt = 0x7fff; |
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 { defineConfig } from 'vite'; | |
| import { resolve } from 'path'; | |
| import fs from 'fs'; | |
| // Função para gerar o manifest.json dinâmico | |
| function generateManifest(subdomain) { | |
| const baseManifest = { | |
| name: 'My App', | |
| short_name: 'App', | |
| start_url: '/', |
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 size = 5; | |
| const list = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]; | |
| const totalPage = Math.ceil(list.length / size); | |
| const paginate = []; | |
| list.map((item, index) => { | |
| const indexPage = Math.trunc(index / size); |
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
| internauta | |
| teletrabalho | |
| surfar na web | |
| eu traabalho numa pontocom |
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
| <body class="text-natural text-size-standard bg-neutral-light transition-all" style=""> | |
| <div id="root"><div class="inset-0 bg-neutral-light flex flex-col h-screen w-screen overflow-hidden"><div class="bg-highlight border-b border-neutral flex justify-center h-24 shadow-style-cloud transition-all"><div class="w-desktop flex gap-8 justify-between"><div class="flex justify-center items-center gap-4"><div class="w-14 h-14 rounded-type-bend overflow-hidden"><img id="menuLogo" loading="lazy" src="/media/logo-black.png" alt="Logo TrackerNet"></div><div class="flex justify-center"><a class="" href="/dashboard"><div class="relative flex font-light items-center justify-center cursor-pointer w-24 h-24 transition-all text-natural"><span class="select-none text-size-highlight">Dashboard</span></div></a><a class="" href="/devices"><div class="relative flex font-light items-center justify-center cursor-pointer w-24 h-24 transition-all text-natural"><span class="select-none text-size-highlight">Dispositivos</span></d |
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
| // 64 - 1024 | |
| // x | |
| // 256 - 2048 | |
| const remap = function (x: number, inputMinimum: number, inputMaximum: number, outputMinimum: number, outputMaximum: number) { | |
| const pointA = (x - inputMinimum) * (outputMaximum - outputMinimum); | |
| const pointB = (inputMaximum - inputMinimum) + outputMinimum; | |
| const result = pointA / pointB; | |
| return result; | |
| }; |
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
| // VARIÁVEIS HABILITAR MOTORES | |
| int ENA = 9; | |
| int ENB = 10; | |
| // VARIÁVEIS ENTRADA DOS MOTORES | |
| int IN1 = 4; | |
| int IN2 = 5; | |
| int IN3 = 6; | |
| int IN4 = 7; |
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
| { | |
| "id": "684587fe-55c6-404c-b828-d126fbe97b9e", | |
| "version": 1, | |
| "server": "translino-backend", | |
| "state": "error" | "success", | |
| "code": 400, | |
| "message": "Bad Request", | |
| "method": "GET", | |
| "path": "/api/customer", | |
| "result": [ |
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
| #include <stdio.h> | |
| int main() | |
| { | |
| int favNumber = 8; | |
| int *pointerFavNumber; | |
| // below it is save the variable address | |
| pointerFavNumber = &favNumber; |
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
| type ServiceHtmlElementParameters = { | |
| tag: string; | |
| close?: boolean; | |
| attributes?: Record<string, string>; | |
| children?: string; | |
| }; | |
| export const ServiceHtmlElement = function ({ tag, close, attributes, children }: ServiceHtmlElementParameters): string { | |
| const attributesEntries = Object.entries(attributes || new Object()); | |
| const attributesConverted = attributesEntries.map(function ([key, value]) { |