Skip to content

Instantly share code, notes, and snippets.

View pierrealexaline's full-sized avatar

Pierre Alexaline pierrealexaline

View GitHub Profile
@pierrealexaline
pierrealexaline / class.php
Created October 15, 2018 21:33
php object and class 1
<?php
class Personne
{
public $name;
public $surname;
public $adress;
public $birthdate;
public function __construct($name,$surname,$adress,$birthdate)
@pierrealexaline
pierrealexaline / sql_dump.sql
Created October 18, 2018 12:52
sql_dump_exercice.sql
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64)
--
-- Host: localhost Database: data_formation_wcs
-- ------------------------------------------------------
-- Server version 5.7.23-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@pierrealexaline
pierrealexaline / sql.sql
Created October 22, 2018 16:08
sql foreign key
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64)
--
-- Host: localhost Database: school
-- ------------------------------------------------------
-- Server version 5.7.23-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@pierrealexaline
pierrealexaline / backToTheFuture.php
Created October 24, 2018 12:52
Retour vers le futur 2
<?php
class TimeTravel{
public $start;
public $end;
public function __construct($start,$end){
$this->start = $start;
$this->end = $end;
@pierrealexaline
pierrealexaline / javascript1.js
Created October 24, 2018 13:33
javascript exercice 1
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello.js</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
</head>
<body>
@pierrealexaline
pierrealexaline / formulaire_exercice.php
Created October 25, 2018 07:27
formulaire + html et responses+validation
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello.js</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
</head>
<body>
<?php
@pierrealexaline
pierrealexaline / fileUpload.php
Created October 28, 2018 17:56
File upload with php and css3 flex...etc
<?php
const DESTINATION_PATH = 'uploads';
const SOURCE_PATH = 'source';
const SEPARATOR = '/';
const MIME_TYPE = array(
0 => "image/jpg",
1 => "image/png",
2 => "image/jpeg",
3 => "image/gif"
@pierrealexaline
pierrealexaline / README.md
Last active December 11, 2018 16:31
Documentation de l'annuaire du Pays Basque aux Grandes Ecoles

Annuaire du Pays Basque aux Grandes Ecoles

Objectif

Réalisation d'un annuaire avec un moteur de recherche pour mettre en relation des profils de membres avec des profils d'entreprises. L'objectif de l'annuaire est de faciliter la mise en relation d'étudiants et diplômés des Grandes Ecoles avec des entreprises créees ou installées au Pays Basque, afin de permettre le retour de ces derniers dans leur région d'origine.

Pré-requis

@pierrealexaline
pierrealexaline / WAVESHARE_7_INCH_SCREEN_MODEL_C_CONFIGURATION_FOR_RPI4.md
Last active March 4, 2024 05:34
How to connect and configure a 7 inch touchscreen (model C) from waveshare to a rasberry pi 4 model B

How to connect and configure a 7 inch touchscreen (model C) from waveshare to a rasberry pi 4 model B

presentation

Since the last version of Raspbian (Buster) and with the last version of the raspberry pi (rpi4b) the tutorial of the screen has not being updated correctly by Waveshare.

The 7 inch hdmi screen (model C) from waveshare

Waveshare 7 inch screen (model C). The 7 screen inch model C from Waveshare is originaly a basic LCD 1024x600x60Htz Hdmi touchscreen caracterized by a very low power consumption (5v - 30mA to 300 mA with backlight on). It can run on an USB port. This screen is compatible with most OS and architectures (it can run on 32Bit, Arm, 64bit, or Windows 10, linux Debian, and a lot of SBC like the Bananapi, Raspberry pi, Odroid ...).

The raspberry pi model 4 model B

Raspberry Pi 4 Model B - official presentation page. The Raspberry Pi 4 model B has been launched a

@pierrealexaline
pierrealexaline / wcs_algorithme_pseudo_code.md
Last active April 15, 2020 21:11
WCS - Créé un algorithme en pseudo-code
Début bonbons maximum achetés ( réel argent, réel prix)

    Si argent > 0 ET prix > 0
    
        bonbons achetés = 0
        
        Tant que argent >= prix
        
 bonbons achetés ← bonbons achetés + 1