Skip to content

Instantly share code, notes, and snippets.

View jbub's full-sized avatar

Juraj Bubniak jbub

View GitHub Profile
@jbub
jbub / compressors.py
Created June 12, 2013 08:33
cssmin compressor for django-pipeline that is using the CompressorBase instead of SubProcessCompressor format
from pipeline.compressors import CompressorBase
class CSSMinCompressor(CompressorBase):
def compress_css(self, css):
from cssmin import cssmin
return cssmin(css)
@jbub
jbub / pip-list-redundant-pkgs.sh
Created June 12, 2013 08:18
pip list all packages that are installed but not present in the requirements.txt file
pip freeze | grep -v -f requirements.txt