Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import compiler
import compiler.ast
import optparse
import sys
class MockChecker(object):
def __init__(self):
self.errors = 0
@Kop3sh
Kop3sh / task2-2.asm
Created January 7, 2021 19:55
sorting
include emu8086.inc
NEWLINE MACRO
mov ah, 2
;newline and cret
mov dl, 0ah
int 21h
mov dl, 0dh
int 21h
ENDM
@Kop3sh
Kop3sh / sub_vid_name_matching.bash
Last active May 13, 2020 20:00
match subtitle filenames to video filenames within the same dir to automatically add subs to mpv media player
#!/bin/bash
for videofile in ./*; do
for filename in ./*; do
if "${videofile}"(E|e)[\d]{2} == "${filename}"(E|e)[\d]{2}
# if both files have same Episode number
then
mv "${filename}" ("${videofile}"^[\w\d]+\. + "srt")