Skip to content

Instantly share code, notes, and snippets.

View VivekThazhathattil's full-sized avatar
♦️
അങ്ങനെ പോകുന്നു...

Vivek T. VivekThazhathattil

♦️
അങ്ങനെ പോകുന്നു...
View GitHub Profile
@kachayev
kachayev / dijkstra.py
Last active July 28, 2024 13:10
Dijkstra shortest path algorithm based on python heapq heap implementation
from collections import defaultdict
from heapq import *
def dijkstra(edges, f, t):
g = defaultdict(list)
for l,r,c in edges:
g[l].append((c,r))
q, seen, mins = [(0,f,())], set(), {f: 0}
while q:
@ViktorNova
ViktorNova / rotate-video.sh
Created August 8, 2016 21:33
Rotate a video with FFmpeg (100% lossless, and quick)
$INPUTVIDEO='input.mp4'
$OUTPUTVIDEO='output.mp4'
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO
@Victor-Arruda
Victor-Arruda / polybar_music_player
Last active July 8, 2024 10:02
Polybar music player
// modules.conf
[module/sn]
type = custom/text
content = "  "
tail = true
format = <label>
content-background = ${colors.background}
click-left = playerctl next
@zapisnicar
zapisnicar / telegram_bot.md
Last active October 30, 2024 11:00
How to create Telegram bot and send messages to group

How to create Telegram Bot and send messages to your group

  1. Create Telegram bot:

    Search for user @BotFather in Telegram app. Type /help in BotFather chat and wait for the reply. Type in the chat:

    /newbot

or select /newbot command from Help text. Answer few setup questions: