Usage
import { getPos } from "./getPos.ts";
const pos = await getPos("سڵاو");
console.log(pos); // Expected result: [ "noun" ]
import { getPos } from "./getPos.ts";
const pos = await getPos("سڵاو");
console.log(pos); // Expected result: [ "noun" ]
import type { Browser } from "https://deno.land/x/puppeteer@9.0.2/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>
-re
reads the input at native frame rate, doing this is recommended by FFmpeg.-c:v libx264
encodes the video of the output in libx264
, the required video encoding by Telegram.-c:a aac
encodes the audio of the output in aac
, the required audio encoding by Telegram.-f flv
sets the format of the output to flv
, the required format by Telegram.This is a small script for blocking all GitHub followers easily.
Set the username
and authToken
variables to your credentials.
Run:
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters | |
def start(update, context): | |
update.message.reply_text( | |
"تۆ منت دەست پێ کرد!" | |
) | |
def echo(update, context): |