Skip to content

Instantly share code, notes, and snippets.

View v20100v's full-sized avatar
πŸ’­
In startiflette we trust !

v20100v

πŸ’­
In startiflette we trust !
View GitHub Profile
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Consolidation Data</title>
<script src="https://docs.getgrist.com/grist-plugin-api.js"></script>
<style>
body {
font-family: 'Marianne', arial, sans-serif;
margin: 0;
@v20100v
v20100v / .env.development
Last active May 29, 2026 15:23
Mock data provider Grist custom widget
# ─────────────────────────────────────────────
# Environment DEVELOPMENT (
# ─────────────────────────────────────────────
# ./.env.development
VITE_PORTAL_DATA_SOURCE="mock-sqlite"
VITE_GRIST_ACCESS_MODE="full"
@v20100v
v20100v / grist-spa-landing-dsfr-page.html
Created May 6, 2026 16:25
DSFR landing page widget: Automatic Table of Contents (Tocbot), Markdown rendering (Markdown-it), diagrams (Mermaid.js), and syntax highlighting (Prism.js), all compliant with the French Government Design System (DSFR).
<!DOCTYPE html>
<html lang="fr">
<head>
<title>Lorem Ipsum - Dolor Sit Amet</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@gouvfr/dsfr@1.14.3/dist/dsfr.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.32.2/tocbot.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css">
<style>
@v20100v
v20100v / evolutions_indicators_confluence.sql
Created November 4, 2022 11:06
Evolution of number of Confluence spaces and more per period in raw SQL
SELECT
t1.period_greatest,
COALESCE(SUM(t2.nb_of_spaces), 0) as evol_nb_of_spaces,
COALESCE(SUM(t2.nb_of_pages), 0) as evol_nb_of_pages,
COALESCE(SUM(t2.nb_of_blogposts), 0) as evol_nb_of_blogposts,
COALESCE(SUM(t2.nb_of_attachments), 0) as evol_nb_of_attachments,
COALESCE(SUM(t2.nb_of_customs), 0) as evol_nb_of_customs,
COALESCE(SUM(t2.nb_of_pages), 0)
+ COALESCE(SUM(t2.nb_of_blogposts), 0)
+ COALESCE(SUM(t2.nb_of_attachments), 0)
@v20100v
v20100v / select_all_confluence_spaces.sql
Last active December 19, 2024 08:32
List all Confluence spaces with indicators in raw SQL
SELECT DISTINCT
s.spaceid as space_id,
s.spacename as space_name,
s.spacekey as space_key,
s.spacetype as space_type,
s.spacestatus as space_status,
sd.body as space_description,
s.creationdate as space_creation_date,
up.username as space_creator_username,
u.display_name as space_creator_displayname,