This file contains 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
List of PHP 7 Packages: https://launchpad.net/ubuntu/+source/php7.0 | |
Disclaimer: I get unreliable results when I don't run these commands seperately and in order. | |
vagrant ssh | |
sudo apt-get update | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get install php7.0 | |
sudo apt-get update |
This file contains 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
function exportTableToCSV($table, filename) { | |
var $rows = $table.find('tr:has(td),tr:has(th)'), | |
// Temporary delimiter characters unlikely to be typed by keyboard | |
// This is to avoid accidentally splitting the actual contents | |
tmpColDelim = String.fromCharCode(11), // vertical tab character | |
tmpRowDelim = String.fromCharCode(0), // null character | |
// actual delimiter characters for CSV format |