Skip to content

Instantly share code, notes, and snippets.

View helloIAmPau's full-sized avatar
👾
git commit -m 'setting status'

Pasquale Boemio helloIAmPau

👾
git commit -m 'setting status'
View GitHub Profile
#! /bin/bash
# Basic script to dump subtitle track from mkv files into .idx/.sub files for
# ocr to srt format.
# There are only basic checks on whether the file is Matroska and has subtitles.
# This is meant for vobsub subtitles and hasn't been tested on muxed srt
# subtitles. Any subtitle formats other than vobsubs should just be dumped with
# the .sub extension.
#
# WARNING: Use at your own risk
#! /bin/env/python
in_file = open("intestatari.txt", "r");
out_file = open("fase1.txt", "w");
c = 1;
while True:
line = in_file.readline();
if line == "":
package com.helloiampau.miscs;
import java.util.HashMap;
class ClassContainer extends HashMap<String, Object> {
private final String CLASS = "class";
private final String SUPERCLASS = "superclass";
private final String INTERFACES = "interfaces";
public void putObjectClass(Class c) {
@helloIAmPau
helloIAmPau / Makefile
Last active December 12, 2015 02:48
Makefile used to automate the building of latex projects
all: view
single: quiet
open "/tmp/`basename '$(CURDIR)'`"/*.pdf
quiet:
mkdir -p "/tmp/`basename '$(CURDIR)'`"
pdflatex -output-directory="/tmp/`basename '$(CURDIR)'`" main.tex
view: quiet