Skip to content

Instantly share code, notes, and snippets.

View JeromeBATAILLE's full-sized avatar

Jérôme JeromeBATAILLE

  • LYON, RANCE
View GitHub Profile
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset="utf-8">
<title>FindThePrecious</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="top"></div>
<header>
@JeromeBATAILLE
JeromeBATAILLE / index.html
Created September 5, 2018 11:12
OeilDeSauron
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>L'oeil de Sauron</title>
</head>
<body>
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
dje@wilder-ThinkPad-T430s:~$ ls
Bureau examples.desktop Modèles Public Téléchargements
Documents Images Musique snap Vidéos
dje@wilder-ThinkPad-T430s:~$ ls Téléchargements/
dje@wilder-ThinkPad-T430s:~$ ls Images/
dje@wilder-ThinkPad-T430s:~$ pwd
/home/dje
@JeromeBATAILLE
JeromeBATAILLE / mon_historique.log
Created September 7, 2018 15:29
Enquête à Terminal City
1 sudo apt-get update
2 sudo apt-get upgrade
3 The web browser from Google
4 sudo apt-get install lintian
5 ls
6 cd Documents/
7 ls
8 cd quetes/
9 ls
10 cd uniw
@JeromeBATAILLE
JeromeBATAILLE / nombre maximum de bonbons
Last active September 8, 2018 11:20
Algorithmique et pseudo-code
argentTotal est un nombre réel
prixDuBonbon est un nombre réel
dépenseBonbons est égal à prixDuBonbon
nombreDeBonbons est égal à 0
Début combienDeBonbons (argentTotal, prixDuBonbon)
Tant que (dépenseBonbons <= argentTotal ET argenTotal > 0) OU (dépenseBonbons <= argentTotal ET prixDuBonbon > 0)
dépenseBonbons <- dépenseBonbons + prixDuBonbon
nombreDeBonbons <- nombreDeBonbons + 1
@JeromeBATAILLE
JeromeBATAILLE / Senpai.java
Created September 11, 2018 14:02
Java Introduction
class Sempai {
public static void main(String[] args) {
// afficher Hello World! dans le terminal
System.out.println("Notice me Senpai");
}
}
@JeromeBATAILLE
JeromeBATAILLE / hello-wilder.js
Created September 12, 2018 18:23
js-1 découverte du langage
/* hello-wilder.js */
// Define some variables
const favouritMovy = 'The Matrix Reloaded';
const year = 2003;
const director = 'The Wachowski';
const message = favouritMovy + ', réalisé par ' + director + ', est sorti en ' + year;
// Display a popup
alert(message);
@JeromeBATAILLE
JeromeBATAILLE / index.html
Created September 13, 2018 09:56
Javascripting
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Tu aimes les patates?</title>
</head>
<body>
<script src="patates.js"></script>
</body>
</html>
@JeromeBATAILLE
JeromeBATAILLE / CandyCount.java
Created September 13, 2018 20:04
De l'algorithmique au Java
class CandyCount {
public static void main(String[] args) {
double money = 12.4;
double price = 1.2;
int candies = 0;
if (money > 0 && price > 0) {
while ((money - price) >= 0) {
candies += 1;
money -= price;
@JeromeBATAILLE
JeromeBATAILLE / typeScript.ts
Created September 24, 2018 11:21
Découverte de TypeScript
function hello(name : string) {
console.log("Hello " + name);
}
var firstName = "bob";
hello(firstName);
hello(firstName + " marley");
function concat(a : string, b : string) {