Skip to content

Instantly share code, notes, and snippets.

View christopher-besch's full-sized avatar
💻
Prepare for unforeseen consequencesλ

Christopher Besch christopher-besch

💻
Prepare for unforeseen consequencesλ
View GitHub Profile
#!/usr/bin/env python3
import sys
from typing import List
SPACES_PER_TAB = 8
def main():
with open(sys.argv[1], "r", encoding="utf-8") as file:
in_lines = [line.rstrip() for line in file.readlines()]
@christopher-besch
christopher-besch / get_longest_videos_from_youtube_playlist.py
Created July 18, 2020 10:05
get a list with every video that is longer than or as long as every video coming after it
text = """
1
13:07
Now playing
Introducing the GAME ENGINE series!
The Cherno
2
16:23
Now playing
What is a GAME ENGINE?
@skyscribe
skyscribe / .gdbinit
Created October 30, 2012 03:04
GDB init file to print STL containers and data members
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file