Skip to content

Instantly share code, notes, and snippets.

version: '3.7'
services:
# Elasticsearch Docker Images: https://www.docker.elastic.co/
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: elasticsearch
environment:
- xpack.security.enabled=false
@taclab
taclab / Install libxml with brew on Mac OS Yosemite 10.10.5
Created November 4, 2015 10:36
Install libxml with brew on Mac OS Yosemite 10.10.5
# Install libxml with brew on Mac OS Yosemite 10.10.5
brew install libxml2
brew link libxml2 --force
export C_INCLUDE_PATH=/usr/local/Cellar/libxml2/2.9.2/include/libxml2:$C_INCLUDE_PATH
pip install lxml --user
issues = [{"borrowernumber":"16595","itemnumber":"406731","biblionumber":"97756","date_due":"2013-02-05","branchcode":"BUP8","issuingbranch":"","returndate":"2013-01-24","lastreneweddate":"","return":"","renewals":"0","timestamp":"2013-01-24 16:56:07","issuedate":"2013-01-22","inhouse_use":"0","sex":"M","dateofbirth":"1991-07-18","categorycode":"3BUP8","Ufr":"ARTS","Niveau":"L3","Etape":"L3APLA","$$hashKey":"06T"},{"borrowernumber":"61204","itemnumber":"406731","biblionumber":"97756","date_due":"2013-02-08","branchcode":"BUP8","issuingbranch":"","returndate":"2013-02-08","lastreneweddate":"","return":"","renewals":"0","timestamp":"2013-02-08 14:58:13","issuedate":"2013-01-25","inhouse_use":"0","sex":"M","dateofbirth":"1975-03-17","categorycode":"3BUP8","Ufr":"ARTS","Niveau":"M2","Etape":"AGAPLA","$$hashKey":"06U"},{"borrowernumber":"22172","itemnumber":"131352","biblionumber":"97756","date_due":"2013-02-15","branchcode":"BUP8","issuingbranch":"","returndate":"2013-02-11","lastreneweddate":"","return":"","rene
<BOUCLE_articles(ARTICLES) {id_article}>
<article>
[(#REM) on reformate le titre]
<BOUCLE_mots(MOTS) {id_article}{id_groupe=2}{0,1}>
<span class="thematique"><a href="#URL_MOT">#TITRE</a></span>
</BOUCLE_mots>
<h3 class="titre"><a href="#URL_ARTICLE" [ class="(#EXPOSE)"]>[(#TITRE|textebrut)]</a></h3>
<div class="#EDIT{intro} introduction entry-content">
[(#DESCRIPTIF|PtoBR|cesure{#LANG})]</div>
<span class="time-article">
[(#REM) SI le logo est trop petit, force le redimensionnement]
[(#LOGO_ARTICLE|largeur|>{200}|non)
<meta property="og:image" content="[(#LOGO_ARTICLE|image_passe_partout{300,300}|image_recadre{300,300,center}|extraire_attribut{src}|url_absolue)]" />
]
[(#LOGO_ARTICLE|largeur|>{200}|oui)
<meta property="og:image" content="[(#LOGO_ARTICLE|extraire_attribut{src}|url_absolue)]" />
]
@taclab
taclab / Doctype_spip
Created January 21, 2014 13:03
skl/structure.html
[<!DOCTYPE html >
<html xml:lang="#LANG" lang="#LANG" dir="#LANG_DIR">
<head>
<INCLURE{fond=head/#ENV{type},env}>
<INCLURE{fond=inclure/head}>
</head>
<body class="page_#ENV{type,page}[ #ENV{type,page}_(#ENV{composition,''})]">
<INCLURE{fond=body,env}>
#SPIP_CRON
</body>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"
<BOUCLE_article_head(ARTICLES) {id_article}>
<title>[(#TITRE|textebrut) - ][(#NOM_SITE_SPIP|textebrut)]</title>
<link rel="canonical" href="[(#URL_ARTICLE|url_absolue)]" />
<!-- Integration Search -->
<meta name="description" content="[(#INTRODUCTION|textebrut|couper{200})]" />
<B_keywords>
<meta name="keywords" content="<BOUCLE_keywords(MOTS){id_article}{id_groupe_racine=14}{","}>[(#TITRE)]</BOUCLE_keywords>" />
</B_keywords>
@taclab
taclab / logo
Created November 14, 2013 21:16
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
.collapse {
display: none;