View organice compact look.user.js
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
// ==UserScript== | |
// @name Organice compact looks | |
// @namespace https://organice.200ok.ch/ | |
// @version 0.1 | |
// @description Organice: change default font and make edit icons layout more compact | |
// @author berteh | |
// @url https://gist.github.com/berteh/ | |
// @match https://organice.200ok.ch/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=organice.200ok.ch | |
// @license https://creativecommons.org/licenses/by-nc-sa/4.0/ |
View fr.php
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 | |
/* utf8-marker = ←éèêàùûç→ */ | |
$tx['action']['delete']="supprimer"; | |
$tx['action']['download']="télécharger"; | |
$tx['action']['edit']="éditer"; | |
$tx['action']['save']="sauvegarder"; | |
$tx['action']['upload']="télécharger"; | |
$tx['action']['view']="voir"; | |
$tx['adminmenu']['configuration']="CMS"; | |
$tx['adminmenu']['downloads']="Téléchargements"; |
View bash_aliases_pdf.sh
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
# pdf shortcuts, using pdftk | |
pdfcount(){ | |
#return number of pages of a pdf file | |
pdftk $1 dump_data output | grep -i NumberOfPages | grep -oE "[[:digit:]]{1,}" | |
} | |
pdf2booklet16(){ | |
# reorder a copy of given pdf to be printed as 2 pages/side + dual, and binded in booklets of 4 sheets (16 pages). | |
# input.pdf must contain a multiple of 16 pages. |
View limesurveyMergeArrays.js
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
// merges inputs of multidimensional arrays of 2 different question (same group/page) in Limesurvey. The lines must be similar. | |
function mergeTables(q1id, q2id, textBoxSize = 20) { | |
//hide second text | |
$('#'+q2id+' .survey-question-text').hide(); | |
//merge tables | |
var t1 = $('#'+q1id+' .survey-question-answer table'); | |
var t2 = $('#'+q2id+' .survey-question-answer table'); |
View ArrayTranspose.pl
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
#! /usr/bin/perl | |
# transposes input.csv to output.csv. | |
# | |
# eg: input.csv: | |
# "id","1","2" | |
# "A1","a","b" | |
# | |
# output.csv will be | |
# "id","A1" | |
# "1","a" |
View csv_to_array.php
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 | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |
View svg-objects-export.bat
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
:: In Windows Inkscape is shipped with a Python interpreter, you don't need to install it. | |
:: | |
:: save both files in same directory as inkscape.exe and call | |
:: svg-objects-export.bat <svg-objects-export options> infiles+ | |
@"./python/python.exe" svg-objects-export.py %* -i .\inkscape.com |