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
| git branch -vvvv | rg "disparue" | awk '{print $1;}' | xargs git branch -D |
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
| """ | |
| Les f-string sont en fait des chaines de caractère qui vont être « interprétées ». | |
| Ce sont des chaines de caractères dans lesquelles nous allons pouvoir | |
| introduire des éléments variables. | |
| """ | |
| print("Une chaine standard :") | |
| standardString = "une chaine de caractère classique, toute simple" |
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
| let result = 'content, file\n'; | |
| const fs = require('node:fs'); | |
| // Fichier `support-url-usage-in-pix.json` généré à partir de la command suivant | |
| // `gh search code "support.pix" --repo 1024pix/pix --json "repository,path,textMatches,url" --jq 'map(.textMatches = (.textMatches | map(.fragment)))'` | |
| const fileContent = fs.readFileSync('support-url-usage-in-pix.json', 'utf-8'); | |
| const supportUrlUsage = JSON.parse(fileContent); | |
| supportUrlUsage.forEach(function(usageInFile) { |
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
| // Faire le compte par « étape » du nombre d'assessmentId par challengId | |
| const fs = require("fs"); | |
| const { parse } = require("csv-parse"); |
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
| curl \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/betagouv/rdv-solidarites.fr/issues | |
| curl \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/betagouv/rdv-solidarites.fr/issues/1241/events | |
| curl \ |
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
| (bundle exec rspec spec/services/rdv_updater_spec.rb && git add -A && git commit) || git checkout . |
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
| git commit -t .gitmessage | |
| $ cat .gitmessage | |
| [un sujet qui commence part un verbe au présent] | |
| Co-authored-by: krichtof <christophe.robillard@beta.gouv.fr> | |
| Co-authored-by: yaf <yannick.francois@beta.gouv.fr> | |
| Co-authored-by: pblayo <philippe.blayo@beta.gouv.fr> | |
| Co-authored-by: LucienMLD <lucien.mollard@beta.gouv.fr> |
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
| # Les paquets Debian nécessaire pour faire du postgresql avec Ruby | |
| sudo apt-get -y install postgresql postgresql-contrib libpq-dev | |
| # création d'un compte CSF, avec un mot de passe CSF, pour la base de données : | |
| sudo -u postgres psql -c "create role csf with createdb login password 'csf';" | |
| # pour tester : | |
| psql -U csf -h localhost | |
| # renvoie "database "csf" does not exist" |
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
| begin | |
| phrase("Henri") | |
| rescue | |
| puts "erreur, la fonction phrase() n'existe pas encore" | |
| end | |
| require "./une_lib" | |
| puts "Hello depuis le fichier executé : hello.rb" |
NewerOlder