import { getPos } from "./getPos.ts";
const pos = await getPos("سڵاو");
console.log(pos); // Expected result: [ "noun" ]
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
| // Install Deno: https://deno.land. | |
| // Run with the command | |
| // deno bench | |
| const array1 = crypto.getRandomValues(new Uint8Array([1024 * 1024])); | |
| const array2 = crypto.getRandomValues(new Uint8Array([1024 * 1024])); | |
| const array3 = crypto.getRandomValues(new Uint8Array([1024 * 1024])); | |
| const array4 = crypto.getRandomValues(new Uint8Array([1024 * 1024])); | |
| const array5 = crypto.getRandomValues(new Uint8Array([1024 * 1024])); |
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 type { Browser } from "https://deno.land/x/[email protected]/mod.ts"; | |
| // I do not like having the functions here as class methods because they are meant to be used as utilities. | |
| // But you could have them in a class. :) | |
| const endpoint = "https://twitter.com"; | |
| /** | |
| * Visits Twitter and signs in with the provided credentials if not already signed in. | |
| */ |
ffmpeg -re -i <your_input> -c:v libx264 -c:a aac -f flv <stream_url>/<stream_key>-rereads the input at native frame rate, doing this is recommended by FFmpeg.-c:v libx264encodes the video of the output inlibx264, the required video encoding by Telegram.-c:a aacencodes the audio of the output inaac, the required audio encoding by Telegram.-f flvsets the format of the output toflv, the required format by Telegram.
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
| from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
| def start(update, context): | |
| update.message.reply_text( | |
| "تۆ منت دەست پێ کرد!" | |
| ) | |
| def echo(update, context): |