Skip to content

Instantly share code, notes, and snippets.

@tkaemming
tkaemming / deobfuscate.py
Last active May 2, 2021 13:50
parse proguard mapping files in python
import pprint
import itertools
import operator
import sys
from collections import namedtuple
Class = namedtuple('Class', [
'old',
'new',
@moeseth
moeseth / waveform.py
Created October 12, 2015 08:19
Create Soundcloud style waveform from Audio in Python
from pydub import AudioSegment
from matplotlib import pyplot as plot
from PIL import Image, ImageDraw
import numpy as np
import os
src = "./test.mp3"
audio = AudioSegment.from_file(src)
data = np.fromstring(audio._data, np.int16)
@aniljava
aniljava / greenlet-stdout
Last active November 20, 2017 15:40
Gevent Seperate stdout per spawn
#!/usr/bin/env python2
# There should be a standard way of doing this. For now a hack.
import gevent
import inspect
def one():
print '1'