Bearer Toke - Bearer <TOKEN>
POST https://graph.facebook.com///messages
<template> | |
<div ref="embedContainer"> | |
<div data-iframe-width="150" data-iframe-height="270" data-share-badge-id="d38052e4-817c-4700-9e79-1953638ea425" data-share-badge-host="https://www.credly.com"></div> | |
</div> | |
</template> | |
<script setup> | |
const embedContainer = ref(null); |
Essa função fisherYates(array)
recebe um array como entrada e retorna o mesmo array, mas com seus elementos misturados aleatoriamente. O algoritmo funciona percorrendo o array da direita para a esquerda, trocando cada elemento com um elemento aleatório que aparece antes dele na sequência. Isso garante que cada elemento tenha a mesma probabilidade de estar em qualquer posição do array embaralhado.
function fisherYates(code: string) {
// Convert the code to an array of numbers
import { serve } from "https://deno.land/[email protected]/http/server.ts"; // from Deno | |
interface Link { | |
id: number; | |
label: string; | |
url: string; | |
target: string; | |
} | |
const NOTION_DATABASE_ID = Deno.env.get("NOTION_DATABASE_ID") |
<template> | |
<div class="fixed right-6 bottom-6"> | |
<transition | |
enter-active-class="animate__animated animate__fadeInRight" | |
mode="out-in" | |
> | |
<!-- CARD TO SEND MESSAGE --> | |
<div v-if="isOpen"> | |
<div class="w-96 max-w-[90vw] rounded-3xl overflow-hidden shadow-2xl shadow-[#075E54]/50 bg-[#E7E7E7]"> |
<div class="fixed right-6 bottom-6"> | |
<!-- CARD TO SEND MESSAGE --> | |
<div v-if="isOpen"> | |
<div class="w-96 max-w-[90vw] rounded-3xl overflow-hidden shadow-2xl shadow-[#075E54]/50 bg-[#E7E7E7]"> | |
<!-- Header and close button --> | |
<div class="h-20 p-5 flex items-center justify-between gap-4 bg-[#25D366]"> | |
<div class="flex items-center gap-3"> | |
<img class="w-7 h-28" src="@/assets/icon/header/whatsapp.svg" alt="WP"> |
downloadFile(url: string) { | |
fetch(url).then(res => res.blob()).then(file => { | |
let tempUrl = URL.createObjectURL(file); | |
const triggerToDownload = document.createElement("a"); | |
triggerToDownload.href = tempUrl; | |
triggerToDownload.download = url.replace(/^.*[\\\/]/, ''); | |
document.body.appendChild(triggerToDownload); | |
triggerToDownload.click(); | |
URL.revokeObjectURL(tempUrl); | |
triggerToDownload.remove(); |
let msn = 'First'; | |
// Without auto invocation | |
const write = (): string => { | |
console.log('Second'); | |
return '...'; | |
}; | |
// With auto invocation | |
const message = write(); |
{ | |
"compilerOptions": { | |
.... | |
}, | |
"types": [...] | |
}, | |
// Include the source of fake type declaration | |
"include": ["src", "type.lib-name-here.ts"], | |
"exclude": [...] | |
} |