Skip to content

Instantly share code, notes, and snippets.

View ShamoX's full-sized avatar

Roland Laurès ShamoX

View GitHub Profile
#!/bin/bash
TESSDATA_PATH=${1:-/usr/share/tesseract-ocr}
for F in $(find $TESSDATA_PATH/tessdata|grep "^$TESSDATA_PATH/tessdata/fra")
do
rm -f "${F/fra/fre}"
link "$F" "${F/fra/fre}"
done
@ShamoX
ShamoX / end.xsl
Last active December 13, 2017 15:53
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:end="https://www.example.org/END">
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>école des douanes</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<h1><xsl:value-of select="name()"/></h1>
@ShamoX
ShamoX / end.xml
Last active December 13, 2017 14:07
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="file://D:/formateur/MonBureau/end.xsl"?>
<!-- <?xml-stylesheet type="text/xsl" href="file:///Users/rlaures/dev/cours/douanes/end.xsl"?> -->
<end xmlns="https://www.example.org/END"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.example.org/END https://gist.githubusercontent.com/ShamoX/e18ee2a6fe3cb27a5d520108b6d62ada/raw/d3d3b446a96d99c95b9256adf1337067b1516ffc/end.xsd">
<etablissement>
<nom_etablissement>ENDT</nom_etablissement>
<adresse numero_voie="3" type_de_voie="allee" nom_voie="du Succès" code_postal="59200" ville="Tourcoing"/>
@ShamoX
ShamoX / end.xsd
Last active December 13, 2017 10:40
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.example.org/END"
xmlns:tns="https://www.example.org/END"
elementFormDefault="qualified">
<xs:element name="end">
<xs:complexType>
<xs:sequence>
<xs:element ref="tns:etablissement" minOccurs="1" maxOccurs="unbounded"/>