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
# enables GZIP compression | |
gzip on; | |
# compression level (1-9) | |
# 6 is a good compromise between CPU usage and file size | |
gzip_comp_level 6; | |
# minimum file size limit in bytes to avoid negative compression outcomes | |
gzip_min_length 256; |
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
# https://github.com/scraperwiki/pdfminer/blob/scraperwiki/tools/pdf2html.cgi | |
import pdfminer | |
from pdfminer.pdfinterp import PDFResourceManager, process_pdf | |
from pdfminer.converter import HTMLConverter, TextConverter | |
from pdfminer.layout import LAParams | |
rsrcmgr = PDFResourceManager() | |
laparams = LAParams() | |
converter = HTMLConverter if format == 'html' else TextConverter | |
device = converter(rsrcmgr, out_file, codec='utf-8', laparams=laparams) | |
process_pdf(rsrcmgr, device, in_file, pagenos=[1,3,5], maxpages=9) |
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
/* | |
* Given the repository for the 'WordPress Plugin Boilerplate' and knowing that the actual | |
* plugin resides in the `plugin-name` directory, then you'd need to do the following: | |
* | |
* 1. Navigate to `wp-content/plugins` | |
* 2. Execute the following terminal command: | |
*/ | |
> ln -s WordPress-Plugin-Boilerplate/plugin-name/ plugin-name |
OlderNewer