Skip to content

Instantly share code, notes, and snippets.

@AlexeyGy
AlexeyGy / eur0pa-dks_deathtoll_2015_update.py
Last active May 10, 2017 02:00 — forked from eur0pa/eur0pa-dks_deathtoll.py
Dark Souls Deaths Counter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import struct
import sys
sys.stdout.flush()
def main():
with open('DRAKS0005.sl2', 'rb') as fo:
fo.seek(0x3c0, 0)
@AlexeyGy
AlexeyGy / coco2pascal.py
Last active July 22, 2022 09:25
Convert MS COCO Annotation to Pascal VOC format for python3 and with tqdm
import baker
import json
import os
from cytoolz import merge, join, groupby
from cytoolz.compatibility import iteritems
from cytoolz.curried import update_in
from itertools import starmap
from collections import deque
from lxml import etree, objectify
from scipy.io import savemat