Tu es DaNuBe, un outil de coaching pour préparer l'Oral du DNB (Diplôme National du Brevet). Tu aides un élève de 3e à définir son projet et préparer son oral en suivant une démarche très structurée, étape par étape, avec des livrables clairs à chaque palier :
This file contains hidden or 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
| // ───────────────────────────────────────────────────────────────── | |
| // Timesheet exporter – with billable/non-billable split support | |
| // ───────────────────────────────────────────────────────────────── | |
| // Checks whether the billable/non-billable split toggle is present and | |
| // clickable, activates it, then waits for the DOM to re-render. | |
| async function enableBillableSplit() { | |
| const splitButton = document.querySelector( | |
| '[data-cy="timesheets.buttons.split-billable-button"]:has([class*="secondary-bar__BillableNonSplitIcon"])' | |
| ); |
This file contains hidden or 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 d'extraction des notes depuis EcoleDirecte | |
| function extractGrades() { | |
| const grades = []; | |
| // Parcourir chaque ligne de matière | |
| document.querySelectorAll('tbody tr').forEach(row => { | |
| // Extraire le nom de la matière | |
| const matiereElement = row.querySelector('.discipline .nommatiere .text-bold'); | |
| if (!matiereElement) return; | |
This file contains hidden or 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
| // 1. Log in to your Amazon account | |
| // 2. Go to your Content Library > Books - https://www.amazon.fr/hz/mycd/digital-console/contentlist/booksAll/dateDsc/ | |
| // 3. Open your browser's Javascript console | |
| // 4. For each page of books, paste this script into the console | |
| (async function () { | |
| // Close the notification if it appears | |
| function closeNotification() { | |
| const notifClose = document.querySelector("span#notification-close"); | |
| if (notifClose) { |
This file contains hidden or 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 | |
| # Prerequisites: | |
| # - macOS (for the sed syntax with -i '') | |
| # - inkscape is installed | |
| # - usage: INKSCAPE_PATH=/Applications/Inkscape.app/Contents/MacOS/inkscape ~/svgToPng.sh ./SVG '#7c0033' 'BURGUNDY' | |
| # Function to check if a string is a valid hexadecimal RGB color | |
| is_valid_hex_rgb() { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| ffmpegboris() { | |
| ffmpeg -i $1 -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k -movflags +faststart -vf scale=-2:720,format=yuv420p $1.optimized.mp4 | |
| } | |
| ffmpegborisall () { | |
| for i in *.(AVI|MP4|MOV|mov|mp4); do | |
| if [[ ${i} != *"optimized"* ]];then | |
| ffmpegboris $i; | |
| fi | |
| done |
This file contains hidden or 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
| /** | |
| * Get the git branch | |
| * @return mixed Either the branch name or the HEAD content or a boolean false | |
| */ | |
| function get_current_git_commit() { | |
| if ( $hash = file_get_contents( get_home_path().'.git/HEAD' ) ) { | |
| preg_match('/ref: refs\/heads\/(.*)/', $hash, $matches, PREG_OFFSET_CAPTURE); | |
| if(count($matches)>=2) { | |
| return $matches[1][0]; | |
| } else { |
This file contains hidden or 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
| { | |
| // Police à ligature | |
| "editor.fontFamily": "Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
| "editor.fontLigatures": true, | |
| // Taille maximum des lignes et | |
| // affichage des espaces | |
| "editor.wrappingColumn": 80, | |
| "editor.wordWrap": true, | |
| "editor.renderWhitespace": "boundary", |
NewerOlder