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
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
tar xvzf imagick-3.4.4.tgz |
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
<?php | |
/** | |
* an example of how to read huge XML files relatively quickly and efficiently | |
* using a few core PHP libraries. | |
* | |
*/ | |
// Assume your file is very large, 140MB or somethig like that | |
$fn = __DIR__ . '/some_file.xml'; |
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
var pdfcrowd = { | |
splitTable: function(tableClass, printableHeight, breakClass) { | |
var tables = $("." + tableClass); | |
for(var i=0; i<tables.length; ++i) { | |
var splitIndices = [0]; | |
var table = $(tables[i]); | |
var thead = table.children("thead"); | |
var rows = table.children("tbody").children(); | |
var tableTop = table.offset().top; |