Skip to content

Instantly share code, notes, and snippets.

View noamloane-glitch's full-sized avatar

PAISANT Franck noamloane-glitch

View GitHub Profile
@noamloane-glitch
noamloane-glitch / pseudo code bonbon
Created October 31, 2025 11:54
Algorithmique et pseudo-code
Début nombredebonbon (réel argent,réel prix)
c = 0
d = 0
Si argent > 0 et prix > 0
réel c = argent / prix
Fin si
Tant que c > 1 ou c = 1
c = c - 1
d = d + 1
9 Set-Location -Path C:\
10 #Une écriture possible pour la création d'un dossier
11 New-Item -ItemType Directory -Path C:\ -Name FolderTest1
12 #Une autre écriture possible pour la création d'un dossier
13 New-Item -ItemType Directory -Path C:\FolderTest2
14 #Création de fichier vide dans le dossier c:\FolderTest
15 New-Item -ItemType File -Path C:\FolderTest1 -Name File1
16 New-Item -ItemType File -Path C:\FolderTest1 -Name File2
17 New-Item -ItemType File -Path C:\FolderTest1 -Name File3
18 New-Item -ItemType File -Path C:\FolderTest1 -Name File4
41 wget https://gist.githubusercontent.com/bhubr/bc3a21a0202109beeb31c4a677e0461b/raw/d8805eb82e8aabffab3b0163596c734f376617d0/wilders.csv
42 head wilders.csv
43 head -n wilders.csv
44 touch php_france_2019.csv
45 ls -l
46 grep "PHP;France;2019" < wilders.csv | wc -l > php_france-2019.csv
47 cat php_france_2019.csv
48 ls php_france_2019.csv
49 head php_france_2019.csv
50 grep "PHP;France;2019" wilders.csv | wc -l > php_france-2019.cs