Skip to content

Instantly share code, notes, and snippets.

Début comptage bonbon (argentDispo, prixBonbon)
argentDispp<-lire nombre réel
proxBonbon<-lire nombre réel
nbBonbon = 0
si argentDispo> 0, prixBonbon> 0 et que argentDispo> prixBonbon
tant que prixBonbon * nbBonbon <= argentDispo
nbBonbon = nbBonbon + 1
Last login: Tue Mar 3 09:40:04 on ttys000
MBP-de-chevreau:~ swann$ ls
3166.sh Public
Applications WalletBee_dpalnwb.dmg
Desktop ZipCloud.exe
Documents amc_tgmac.dmg
Downloads fastplayer.tgz
Library install_flash_player_osx.dmg
MB3tg.pkg pièce identité swann
Movies règlement inter wild
Last login: Tue Mar 3 09:40:04 on ttys000
MBP-de-chevreau:~ swann$ ls
3166.sh Public
Applications WalletBee_dpalnwb.dmg
Desktop ZipCloud.exe
Documents amc_tgmac.dmg
Downloads fastplayer.tgz
Library install_flash_player_osx.dmg
MB3tg.pkg pièce identité swann
Movies règlement inter wild
Last login: Tue Mar 3 09:40:04 on ttys000
MBP-de-chevreau:~ swann$ ls
3166.sh Public
Applications WalletBee_dpalnwb.dmg
Desktop ZipCloud.exe
Documents amc_tgmac.dmg
Downloads fastplayer.tgz
Library install_flash_player_osx.dmg
MB3tg.pkg pièce identité swann
Movies règlement inter wild
wilder@wilder-ThinkPad-T440p:~$ sudo apt-get install -y tree wget unzip
[sudo] password for wilder:
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version (6.0-21ubuntu1).
tree is already the newest version (1.7.0-5).
wget is already the newest version (1.19.4-1ubuntu2.2).
The following packages were automatically installed and are no longer required:
fonts-liberation2 fonts-opensymbol gir1.2-geocodeglib-1.0
@swann44
swann44 / index.txt
Last active March 8, 2020 09:44
linux 3
wilder@wilder-ThinkPad-T440p:~/Documents$ history | tail -20
484 grep PHP wilders.csv > PHP.csv
485 grep 2019 PHP.csv > 2019.csv
486 grep France 2019.csv > php_france_2019.csv
487 grep JavaScript wilders.csv > Javascript.csv
488 grep Toulouse Javascript.csv
489 grep Toulouse Javascript.csv > toulouse.csv
490 rm -r toulouse.csv
491 grep Toulouse Javascript.csv > javascript_biarritz_toulouse.csv
492 rm -r javascript_biarritz_toulouse.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 6 in line 1.
cat Biarritz.csv Toulouse.csv | sort -u
Agathe,Bazin,Toulouse,France,2017,JavaScript
Alexandre,"Da Silva",Toulouse,France,2019,JavaScript
Alfred,"Da Silva",Biarritz,France,2018,JavaScript
Alphonse,Leleu,Biarritz,France,2019,JavaScript
Andrée,Berthelot,Biarritz,France,2019,JavaScript
Arthur,Bruneau,Biarritz,France,2018,JavaScript
Aurélie,Becker,Toulouse,France,2018,JavaScript
Benjamin,Tanguy,Biarritz,France,2018,JavaScript
Céline,Fabre,Toulouse,France,2019,JavaScript
JavaScript:
https://feedly.com/i/entry/Bj5K6xJqyL4ucy9buKG8U2x+5/bBImcFGn2q4qzHFvs=_16b8ed79cee:1497d16:561e4df6
Le tri est une méthode JavaScript super pratique qui peut afficher les valeurs d'un tableau dans un certain ordre. Qu'il s'agisse d'annonces immobilières par prix, de restaurants à hamburgers à distance, le tri des tableaux d'information est un besoin commun.
Si vous le faites déjà avec JavaScript sur certains projets, vous aimerez probablement utiliser la méthode intégrée array.sort, qui fait partie de la même famille des méthodes de tableau qui inclut .filter, .mapet .reduce.
CSS:
@swann44
swann44 / terminal
Created March 16, 2020 09:17
java 1
wilder@wilder-ThinkPad-T440p:~/JavaProjects/NoticeMe$ java Sempai
Notice me Senpai
wilder@wilder-ThinkPad-T440p:~/JavaProjects/NoticeMe$
\CA\FE\BA\BE\00\00\007\00
\00\00 \00\00\00
\00\00\00\00\00<init>\00()V\00Code\00LineNumberTable\00main\00([Ljava/lang/String;)V\00
SourceFile\00 Sempai.java \00\00\00 \00\00\00Notice me Senpai\00 \00\00\00Sempai\00java/lang/Object\00java/lang/System\00out\00Ljava/io/PrintStream;\00java/io/PrintStream\00println\00(Ljava/lang/String;)V\00 \00\00\00\00\00\00\00\00\00\00\00\00\00 \00\00\00\00\00\00\00\00*\B7\00\B1\00\00\00\00
\00\00\00\00\00\00\00\00 \00 \00 \00\00 \00\00\00%\00\00\00\00\00 \B2\00\B6\00\B1\00\00\00\00
\00\00\00
\00\00\00\00\00\00\00\00
\00\00\00\00