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
import java.util.Arrays; | |
public class Movies { | |
public static void main(String[] args) { | |
String[] indianaMovies = { | |
"Indiana Jones and the Kingdom of the Crystal Skull", | |
"Indiana Jones and the Last Crusade", |
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
public class Decipherer { | |
public static StringBuilder decryptString (String message) { | |
StringBuilder decryptedMessage; | |
//Calcule la longueur de la chaîne et divise-la par 2, tu obtiendras ainsi le "chiffre-clé". | |
int keyNumber = message.length()/2; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0' /> | |
<title>Find the precious!</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> |
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
public class Boat extends Vehicule{ | |
public Boat(String brand, int kilometers) { | |
super(brand, kilometers); | |
} | |
@Override | |
public String doStuff() { | |
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 | |
#on affecte le nom l'utilisateur connecté à la variable utilisateur | |
#avec la command whoami, entre back-quotes, shell exécute la commande | |
utilisateur=`whoami` | |
#on teste si la variable $# contient 0 paramètre alors | |
#on affiche bonjour et le nom de l'utilisateur connecté | |
if [ $# = "0" ]; then | |
echo "Bonjour $utilisateur" |
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
(base) rencho@sb-7745G:/home/workspace$ ls -aR | |
.: | |
. .. readme xml | |
./xml: | |
. .. index.xml | |
(base) rencho@sb-7745G:/home/workspace$ ll -aR | |
.: | |
total 12 | |
drwxr-xr-x 3 root root 4096 sept. 11 22:28 ./ |
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
1093 cd quetes/ | |
1094 mkdir -p quetes/shell/legumes quetes/shell/fruits | |
1095 ls | |
1096 mkdir quetes/shell/effacez-moi quetes/shell/delete-me | |
1097 ls quetes/shell/ | |
1098 rmdir quetes/shell/effacez-moi/ quetes/shell/delete-me/ | |
1099 cd ~/quetes/shell | |
1100 cd quetes/shell | |
1101 touch pomme | |
1102 touch poire |
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 is our friend !! | |
### What is git ? | |
First of all, [GitHub](https://hackernoon.com/tagged/github) is _not_ git. Many people understandably confuse the two. [GitHub](https://github.com/) is a website for hosting projects that _use_ git. | |
Git is a type of [**version control**](https://hackernoon.com/tagged/version-control) **system** (VCS) that makes it easier to track changes to files. For example, when you edit a file, git can help you determine exactly _what_ changed, _who_ changed it, and _why_. | |
It’s useful for coordinating work among multiple people on a project, and for tracking progress over time by saving “checkpoints”. You could use it while writing an essay, or to track changes to artwork and design files. |
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
481 wget https://github.com/bhubr/bhubr.github.io/raw/master/wild/planets.zip | |
482 unzip planets.zip | |
483 eog planets/ | |
484 ls | |
485 cd planets | |
486 ls | |
487 mkdir real fictional inhabited | |
488 ls | |
489 cd real/ |
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
754 grep France,2019,PHP wilders.txt | wc -l > php_france_2019.txt | |
755 grep JavaScript wilders.txt | grep "Toulouse\|Biarritz" > javascript_biarritz_toulouse.csv | |
756 history | tail -n 5 > history.txt |