This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
xjMEZoZl+BYJKwYBBAHaRw8BAQdA2nEbmBc93CxnNE9yw5yO0vrvvty7lX4Sn8zT | |
F2VMg3zNKUNoYXNlciBIb3Jpem9uIDxhaG9yaXpvbmNoYXNlckBnbWFpbC5jb20+ | |
wo8EExYIADcWIQRVgdVhT/oT707OP6h2Jjwavu3k6QUCZwK+mgUJAWw/CAIbAwQL | |
CQgHBRUICQoLBRYCAwEAAAoJEHYmPBq+7eTpYjgBAMN4iFL10hQ34v965f8RleJB | |
00gBav4YTkroUPxrpQ5oAPwLltXHwJ/jYAvhApyyKb3a2kYPCo8VZXIKGCnS8R0e | |
C844BGaGZfkSCisGAQQBl1UBBQEBB0Dc6UBlD5LZScD8b1VwEwN0FXaNn6jB2Gbp | |
5nuQwP3QegMBCAfCfgQYFggAJhYhBFWB1WFP+hPvTs4/qHYmPBq+7eTpBQJnAr6a | |
BQkBbD8IAhsMAAoJEHYmPBq+7eTphY4A/AoqpWo/6/Tdo8NXyNXQxuW33Ys3IjU5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
def convert_to_srt(input_file, output_file): | |
with open(input_file, 'r', encoding='utf-8') as f: | |
lines = f.readlines() | |
srt_lines = [] | |
index = 1 | |
time_pattern = re.compile(r'\[(\d+:\d+\.\d+) -> (\d+:\d+\.\d+)\]') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.data | |
myStruct: | |
.word 0 # a | |
.word 0 # b | |
.text # Define beginning of text section | |
.global _start # Define entry _start | |
.macro SET_STRUCT_MEMBER struct_addr, member_offset, value_reg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEZiuPchYJKwYBBAHaRw8BAQdAG5PzoMknM8gC54v9DMQIr+SotgbrvIvmTl99 | |
mqECFVu0TUhvcml6b24gQ2hhc2VyIChIb3Jpem9uIENoYXNlciBCYXNlIEdQRyBL | |
ZXkgUmV2MDMpIDxhaG9yaXpvbmNoYXNlckBnbWFpbC5jb20+iJAEExYIADgWIQQ+ | |
j1fcTs2NpI32lxmU7wlsst8BxwUCZiuPcgIbAQULCQgHAgYVCgkICwIEFgIDAQIe | |
AQIXgAAKCRCU7wlsst8Bx6FTAP46FgPyFRl82BDxMqB0uxBfO/7yZImv+JFnBMuS | |
PBh0EwD9HtsIdMa3olCLUqSdDQtRde64Ky+tuCn4yiu9YKHIPgG4MwRmK5ECFgkr | |
BgEEAdpHDwEBB0BeVkV5E5neDpr8PE2azxEQM8IBS6WMuVlOkswXZNatUYjvBBgW | |
CAAgFiEEPo9X3E7NjaSN9pcZlO8JbLLfAccFAmYrkQICGwIAgQkQlO8JbLLfAcd2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEZeSCMBYJKwYBBAHaRw8BAQdANo6GPaQnoBUepogjqoh/RQ4/icG+1kRlL8Kg | |
TJ0KOtS0TUhvcml6b24gQ2hhc2VyIChIb3Jpem9uIENoYXNlciBCYXNlIEdQRyBL | |
ZXkgUmV2MDIpIDxhaG9yaXpvbmNoYXNlckBnbWFpbC5jb20+iJAEExYKADgWIQQN | |
r5EO+zLLXW4qC1RS+V6iUbBg6AUCZeSCMAIbAQULCQgHAwUVCgkICwUWAgMBAAIe | |
AQIXgAAKCRBS+V6iUbBg6HFnAQCtl1VyWivYckR1KEkpMcpUZ5AIsI69t4aSyz2K | |
7moh9AD+Pj4FHaJwe/helONDwoUS2Su6dG4sftiX+0R244CpiAy4OARl5INGEgor | |
BgEEAZdVAQUBAQdAKKulrAg88ajg70bimrxtt+gnYuqyKydsgvEYCM0mfHYDAQgH | |
iH4EGBYKACYWIQQNr5EO+zLLXW4qC1RS+V6iUbBg6AUCZeSDRgIbDAUJAeEzgAAK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGLuE4oBEADCO3NBj6DdldK5yWxj9KhrKDiH2mzAljAm+31eq/DZ7u1tqfAm | |
GTK1J8ga4GUk2ckZtI1IC5414yDvmJ+Bx/rMgTYUAAV3t9Oa9EqUFNrr97qmlcR/ | |
PlDu2Nf6kgYgrDrXH9aan/rZdUQY7wG8cgAsSbZSd/BIrfQy6KAqtSqRADI+aCRD | |
/T+NP7cE2pdUKvpRWRIZe5caYdrFa3vXeWtQFXpAjp7NBfMyZHxQdzQrGksC7vCA | |
FBOnHtcX/Lb30/SFTOPGBThS/m8gTynm72KhIitVvdNwVUU+GcShZYE4BxD+ri66 | |
+z7sMzcocWbADQhXtt0ixPq/gm9vQp0FEETfACyRfXO3RxK8VC2ECb/OGgioLhQ3 | |
EXkl+31lSJbu5dj507f3/KkKdv7vqePQPsLTZXkGlnf6HP2EgOzpVmT2DC9IJnT8 | |
x4nsbqJ5CtQzGsKknruBBLFJhRfcQd4ijW7kw0oWL2iokW4nlgvhMVPt/9kMIyHi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import zlib | |
import struct | |
import time | |
import argparse | |
time_start = time.time() | |
parser = argparse.ArgumentParser( | |
description="Repaire width and height from CRC of a PNG file") |