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 | |
| /** | |
| * Created by PhpStorm. | |
| * User: Purexo | |
| * Date: 08/03/17 | |
| * Time: 10:45 | |
| */ | |
| namespace VillageBundle\Utils; |
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
| private void printRS(ResultSet rs) throws SQLException { | |
| List<String> header = new ArrayList<>(); | |
| Map<Integer, Integer> max = new HashMap<>(); | |
| // generate header map | |
| ResultSetMetaData meta = rs.getMetaData(); | |
| for (int i = 1; i <= meta.getColumnCount(); i++) { | |
| String collumn = meta.getColumnName(i); | |
| // compute max column width |
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
| #!/usr/bin/env bash | |
| # a bash script (need imagemagick >6.8.3-10, zip, unzip, unrar) who will convert pictures for pocketbook with an inteligent minimal weight | |
| # create UNARCHIVED folder | |
| # create TRANSFORMED folder | |
| # create OUTPUT folder | |
| # | |
| # for archive file | |
| # unarchive in new folder in UNARCHIVED with name file - ext |
OlderNewer