Skip to content

Instantly share code, notes, and snippets.

View kageru's full-sized avatar

kageru

View GitHub Profile
@kageru
kageru / day19.nim
Created December 20, 2017 02:22
Day 19 of the Advent of Code in nim (both parts)
import sequtils
import future
import nre except toSeq
type
Direction = enum
up = 0, left = 1, down = 2, right = 3
Grid = seq[seq[char]]
@kageru
kageru / snap_scenechanges.py
Last active January 28, 2017 14:16 — forked from FichteFoll/snap_scenechanges.py
Snap start and end times of ASS subtitles to scene changes using WWXD
#!/usr/bin/env python3.6
"""Snap start and end times of ASS subtitles to scene changes using WWXD.
Does not work with variable frame rate (VFR).
usage: snap_scenechanges.py [-h] [--epsilon EPSILON] [-o OUTPUT] [-v]
sub_path video_path