Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

// Install Deno: https://deno.land.
// Run with the command
// deno bench
constarray1=crypto.getRandomValues(newUint8Array([1024*1024]));
constarray2=crypto.getRandomValues(newUint8Array([1024*1024]));
constarray3=crypto.getRandomValues(newUint8Array([1024*1024]));
constarray4=crypto.getRandomValues(newUint8Array([1024*1024]));
constarray5=crypto.getRandomValues(newUint8Array([1024*1024]));
@rojvv
rojvv /README.md
Last activeJune 13, 2022 08:05
Scrape VejînLex to find the parts of speech of a Kurdish word and return the results as an array
import{getPos}from"./getPos.ts";constpos=awaitgetPos("سڵاو");console.log(pos);// Expected result: [ "noun" ]
@rojvv
rojvv /tweet.ts
Last activeApril 15, 2022 14:16
Tweet with Deno using Puppeteer
importtype{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. :)
constendpoint="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 isrecommended by FFmpeg.
  • -c:v libx264 encodes the video of the output inlibx264, the required video encoding by Telegram.
  • -c:a aac encodes the audio of the output inaac, the required audio encoding by Telegram.
  • -f flv sets the format of the output toflv, the required format by Telegram.
@rojvv
rojvv /README.md
CreatedDecember 11, 2021 14:44
Follower Blocker

This is a small script for blocking all GitHub followers easily.

Running

  1. Set theusername andauthToken variables to your credentials.

  2. Run:

@rojvv
rojvv /your_first_python_telegram_bot.py
Last activeDecember 28, 2022 08:49
یەکەم بۆتی تەلەگرامت بە پایسۆن
fromtelegram.extimportUpdater,CommandHandler,MessageHandler,Filters
defstart(update,context):
update.message.reply_text(
"تۆ منت دەست پێ کرد!"
)
defecho(update,context):

[8]ページ先頭

©2009-2025 Movatter.jp