Skip to content

Instantly share code, notes, and snippets.

View tomsihap's full-sized avatar

tomsihap

View GitHub Profile
@tomsihap
tomsihap / index.html
Last active February 5, 2018 14:55
Step by step form with jQuery & Bootstrap -- v0.1
<script src="steps.js"></script>
<link href="steps.css" rel="stylesheet">
<div class="container container-flex">
<ul id="steps" class="list-inline">
<li class="list-inline-item">
<label data-role='change' data-step="1" data-complete="1" data-currentstep="1" class="btn btn-sm">1</label>
</li>
<li class="list-inline-item">

Keybase proof

I hereby claim:

  • I am tomsihap on github.
  • I am tomsihap (https://keybase.io/tomsihap) on keybase.
  • I have a public key whose fingerprint is 246E 8688 4EFB 3326 3DFD 7B09 A6C9 1412 9B91 A381

To claim this, I am signing this object:

@tomsihap
tomsihap / listenombres.php
Created January 16, 2019 13:46
Liste de nombres en array avec tests de validation
<?php
/**
* Exercice : récupérer une liste de 10 nombres dans un string et la convertir en
* un array de 10 éléments.
* Il faudra vérifier que la liste contienne bien 10 éléments, et tous des chiffres.
*/
/**
@tomsihap
tomsihap / .zshaliases
Created January 20, 2019 09:50
Linux config
alias lampstart="sudo service php7.2-fpm start && sudo service apache2 start && sudo service mysql start"
alias lampstop="sudo service php7.2-fpm stop && sudo service apache2 stop && sudo service mysql stop"
alias lamprestart="sudo service php7.2-fpm restart && sudo service apache2 restart && sudo service mysql restart"
@tomsihap
tomsihap / index.php
Created January 23, 2019 13:12
Template WP
<!doctype html>
<html lang="fr">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
@tomsihap
tomsihap / index.html
Created February 4, 2019 16:08
Moteur de recherche jQuery
<!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>Document</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">

Examen blanc : PHP/MySQL, POO, MVC

1. Mise en place du projet (2 points)

  • Créer un projet Git : soit public, soit privé avec le formateur en administrateur
  • Incluez à la fin de l'examen un export de votre base de données

2. Base de données (2 points)

Créez une base de données que vous appellerez « prenom_bibliotheque » :

@tomsihap
tomsihap / Initialiser un dépôt Git.md
Last active February 14, 2019 09:01
Initialiser un dépôt Git

Initialiser un dépôt Git

1. A faire en ligne

Attention ! Vérifiez bien que l'adresse que vous récupérez est en https (https://github.com/..., https://bitbucket...) ou en ssh (git@bitbucket.org, git@github.com...).

2. A faire en local

@tomsihap
tomsihap / cheatsheet.php
Last active June 13, 2019 12:56
PHP cheatsheet
<?php
/**
* Printing
*/
echo "";
echo "<pre>";
print_r($arr);
echo "</pre>";
@tomsihap
tomsihap / exercice01.md
Last active June 21, 2019 14:49
Exercices MVC sur le projet base-videoclub-wf3

EXERCICE : Créer des pages

Créez les routes suivantes, avec les méthodes du contrôleur et vues correspondantes :

- /
- /about
- /contactez-nous