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
// Split into 3 webpack files | |
// Install all dev dependencies: | |
// yarn add -D @babel/core @babel/preset-env babel-loader | |
// yarn add -D css-loader css-minimizer-webpack-plugin | |
// yarn add -D favicons favicons-webpack-plugin html-webpack-plugin | |
// yarn add -D mini-css-extract-plugin terser-webpack-plugin | |
// yarn add -D webpack webpack-cli webpack-dev-server webpack-merge | |
// If you're using async in your code and have trouble when running, | |
// probably you need to install this: |
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
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Excel To Array | |
|-------------------------------------------------------------------------- | |
| Helper function to convert excel sheet to key value array | |
| Input: path to excel file, set wether excel first row are headers | |
| Dependencies: PHPExcel.php include needed | |
*/ | |
function excelToArray($filePath, $header=true){ |