Skip to content

Instantly share code, notes, and snippets.

View Purexo's full-sized avatar
🦄
I may be slow to respond.

Purexo Purexo

🦄
I may be slow to respond.
View GitHub Profile
@Purexo
Purexo / RolledList.php
Created March 8, 2017 15:30
Une liste avec une taille limite et des items qui sortent au fur et à mesure.
<?php
/**
* Created by PhpStorm.
* User: Purexo
* Date: 08/03/17
* Time: 10:45
*/
namespace VillageBundle\Utils;
@Purexo
Purexo / printRS.java
Last active April 20, 2018 09:50
java printResultSet
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
@Purexo
Purexo / to_pocketbook.sh
Last active April 8, 2019 07:55
a bash script (need imagemagick >6.8.3-10, zip, unzip, unrar) who will convert pictures for pocketbook with an inteligent minimal weight
#!/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