Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
sudo yum -y install gcc gcc-c++ kernel-devel | |
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel | |
pip install cryptography |
from django import forms | |
from django_filters import filters | |
filters.LOOKUP_TYPES = [ | |
('', '---------'), | |
('exact', 'Is equal to'), | |
('not_exact', 'Is not equal to'), | |
('lt', 'Lesser than'), | |
('gt', 'Greater than'), |
Copyright the authors of Honcho and/or Ben Lopatin | |
Licensed for reuse, modification, and distribution under the terms of the MIT license |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |