Skip to content

Instantly share code, notes, and snippets.

@Orianne0605
Orianne0605 / index.html
Created November 25, 2019 15:24
Bases de Javascript
<!doctype html>
<html lang=fr xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>My favorite movie</title>
</head>
<body>
<script src="my-favorite-movie.js"></script>
</body>
</html>
@Orianne0605
Orianne0605 / sql avance
Created November 19, 2019 18:15
SQL AVANCE
mysql> SELECT name, count(player.wizard_id) AS nb_player FROM team JOIN player ON player.team_id = team.id GROUP BY team.name ORDER BY nb_player DESC;
+------------+-----------+
| name | nb_player |
+------------+-----------+
| Gryffindor | 36 |
| Slytherin | 21 |
| Ravenclaw | 15 |
| Hufflepuff | 12 |
+------------+-----------+
4 rows in set (0.00 sec)
@Orianne0605
Orianne0605 / Jointure
Last active November 13, 2019 16:26
Jointure
oriane@oriane-HP-Pavilion-Gaming-Laptop-15-cx0xxx:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.17-0ubuntu2 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
<?php
require_once 'Vehicle.php';
class Cars extends Vehicle
{
const ALLOWED_ENERGIES = [
'fuel',
'electric',
];
<?php
require_once 'Vehicle.php';
class Cars extends Vehicle
{
const ALLOWED_ENERGIES = [
'fuel',
'electric',
];
<?php
require_once 'connec.php';
try {
$pdo = new \PDO(DSN, USER, PASS);
} catch (PDOException $e) {
echo 'Connexion échouée : ' . $e->getMessage();
}
@Orianne0605
Orianne0605 / index.html
Created October 21, 2019 08:14
Grand oeil de Sauron
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sauron</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<?php
require_once 'connec.php';
try {
$pdo = new \PDO(DSN, USER, PASS);
} catch (PDOException $e) {
echo 'Connexion échouée : ' . $e->getMessage();
}
@Orianne0605
Orianne0605 / Bicycle.php
Created October 15, 2019 13:45
POO Basics 1
<?php
// Bicycle.php
class Bicycle
{
/**
* @param string $color
*/
public $color;
@Orianne0605
Orianne0605 / index.php
Last active October 9, 2019 13:22
HTML Les bonnes pratiques
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author", content="orianne">
<meta name="description" content="Find the Previous est un site commandé par Sauron">
<title>Find the precious!</title>
<link rel="stylesheet" href="style.css">
</head>