Skip to content

Instantly share code, notes, and snippets.

View hamidb80's full-sized avatar
🕸️
The spider’s house is the weakest of houses. If only they knew!

Palestine/humanity is in danger hamidb80

🕸️
The spider’s house is the weakest of houses. If only they knew!
View GitHub Profile
@hamidb80
hamidb80 / customize_font.nim
Last active January 29, 2023 06:20
customizing subtitle font [for `.SRT`] - made for Arabic/Persian subtitles in `Kdenlive` software which uses html-4 for font settings
import std/[strformat, strutils]
import sbttl
# ------------------------
type
Lang = enum
fa, en
Dir = enum
@hamidb80
hamidb80 / main.nim
Created December 30, 2021 21:17
telebot send contact info reply to message causes error
import telebot, asyncdispatch, logging, options
var L = newConsoleLogger(fmtStr = "$levelname, [$time] ")
addHandler(L)
func singleReply*(btn: KeyboardButton): ReplyKeyboardMarkup =
ReplyKeyboardMarkup(`type`: kReplyKeyboardMarkup, keyboard: @[@[btn]])
const API_KEY = "..."