Merci Agnès Crepet. Motivé pour être ici. Discussion sur mode de vie post Mix-it, 2h du mat’ en partant.
Nomadisme , connu?
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "pyobjc-core", | |
| # "pyobjc-framework-CoreLocation", | |
| # "click" | |
| # ] | |
| # /// | |
| """Basic geocoding using CoreLocation on macOS.""" |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Mocha Tests</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <link rel="stylesheet" href="https://unpkg.com/mocha/mocha.css" /> | |
| </head> | |
| <body> | |
| <div id="mocha"></div> |
| /** | |
| * cloneNode(true), but also clones shadow roots. | |
| * @param {Element} | |
| * @param {ShadowRoot[]} [shadowRoots] Any closed shadow roots passed here will be included. | |
| */ | |
| function cloneWithShadowRoots(node, shadowRoots) { | |
| function walk(node, clone) { | |
| let shadow = node.shadowRoot || shadowRoots.find(r => r.host === node); | |
| if (shadow) { | |
| clone.attachShadow({ mode: shadow.mode }).append(...[].map.call(shadow.childNodes, c => c.cloneNode(true))); |
| import http.server | |
| import socketserver | |
| from http import HTTPStatus | |
| class Handler(http.server.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| self.send_response(HTTPStatus.OK) | |
| self.end_headers() | |
| self.wfile.write(b'Hello world') |
| { | |
| "@context": { | |
| "@vocab": "http://www.w3.org/ns/dcat#", | |
| "dp": "http://dataportals.net/ns/dp#", | |
| "schema": "http://schema.org/", | |
| "rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
| "xsd": "http://www.w3.org/2001/XMLSchema#", | |
| "url": "@id", | |
| "linked_portals": { |
| 'use strict'; | |
| var pkg = require('./package.json'); | |
| var gulp = require('gulp'); | |
| var utils = require('gulp-util'); | |
| var source = require('vinyl-source-stream'); | |
| var isWatching = false; | |
| var isProduction = process.env.NODE_ENV === 'production'; |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| /** | |
| * Generate sidenotes using footnotes from Multimarkdown generated content | |
| * Idea and principle borrowed from Adrew Clark : http://acdlite.github.io/jquery.sidenotes/ and https://github.com/acdlite/jquery.sidenotes | |
| * | |
| * This script : - gather footnotes in the passed container selector | |
| * - insert the sidenotes in the current text, according to screen size : | |
| * - on big screens insert the sidenote *before* the anchor | |
| * - on medium screens, insert the sidenote *after* the anchor |
| <!DOCTYPE html> | |
| <html lang="fr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Club de lecture — Lettres persanes</title> | |
| <link rel="stylesheet" href="main.css"> | |
| </head> | |
| <body class="cleartheme"><!-- par défaut le thème est clair --> | |
| <div class="main"><!-- pour centrer le site --> | |
| <article> |