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
#!/bin/bash | |
# Liste des URLs à tester | |
urls=( | |
"https://exemple.com/page1" | |
"https://exemple.com/page2" | |
"https://exemple.com/page3" | |
) | |
# Liste des langues à tester |
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
function getDocsInfo() { | |
let folder = DriveApp.getFolderById("ID_du_repertoire"); // Récupère le répertoire | |
let files = folder.getFilesByType(MimeType.GOOGLE_DOCS); // Récupère les fichiers Google docs dans le répertoire | |
let i = 1; // Instancie le compteur | |
while (files.hasNext()) { | |
var file = files.next(); // Récupère le fichier | |
var doc = DocumentApp.openById(file.getId()); // Ouvre le fichier | |
// Récupère les informations du document | |
var docName = doc.getName(); | |
var docTitle = doc.getName(); |
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
<script type="application/ld+json"> | |
{ | |
"@context":"http://schema.org", | |
"@type":"Product", | |
"name":"Nom de la catégorie", | |
"description":"Contenu de la meta description", | |
"offers": { | |
"@type":"AggregateOffer", | |
"highPrice":"prix le plus haut de la catégorie (type : float, ex: 30.0)", | |
"lowPrice":"prix le plus bas de la catégorie (type : float, ex: 145.0)", |
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/env ruby | |
require 'csv' | |
require 'mysql2' | |
require 'stanford-core-nlp' | |
require 'treat' | |
require 'unidecoder' | |
require 'yaml' | |
include Treat::Core::DSL |
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
- if current_page.path.include?("categories") | |
- category = page_articles.first.data.category | |
- articles_by_cat = blog.articles.select{ |a| a.data.category == category } | |
- page_articles = articles_by_cat.slice((page_number - 1) * per_page, per_page) | |
- else | |
- page_articles = blog.articles.slice((page_number - 1) * per_page, per_page) |