Skip to content

Instantly share code, notes, and snippets.

@wil93
wil93 / sync.py
Created May 13, 2019 16:37
Python script to replace / overwrite subtitles from one SRT to another while keeping the same time / timestamp
#!/usr/bin/env python3
from sys import argv
import pysrt
if __name__ == "__main__":
if len(argv) != 4:
print("usage: %s <first srt> <second srt> <output srt>")
exit(1)

Keybase proof

I hereby claim:

  • I am wil93 on github.
  • I am wil93 (https://keybase.io/wil93) on keybase.
  • I have a public key whose fingerprint is DF13 3C2E 708A A2B7 F3A4 BA56 F33C C158 6EE3 7C90

To claim this, I am signing this object:

@wil93
wil93 / curve.cpp
Created July 2, 2015 12:17
Progetto curve spline
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <vector>
#include <limits>
#include <algorithm>
#include <iostream>
#ifdef __linux__
#include <GL/freeglut.h>
''' Trivial Eve-SQLAlchemy example. '''
# SQLAlchemy Imports
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import column_property
from sqlalchemy.types import Interval
from sqlalchemy import (
Column,
String,
Integer,
CheckConstraint