Skip to content

Instantly share code, notes, and snippets.

@ConnorFM
ConnorFM / form.php
Last active September 13, 2024 20:24
Contact Form
<!doctype html>
<html lang="en">
<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.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
# Created by newuser for 5.1.1
#!/usr/bin/env zsh
# Complétion
autoload -U compinit
compinit
#Insensible à la casse
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'
@ConnorFM
ConnorFM / index.php
Created March 12, 2019 13:43
Fonctions avec php
<?php
function writeSecretSentence (string $PARAMETRE_1 , string $PARAMETRE_2):string{
return $PARAMETRE_1 . " s'incline face à " . $PARAMETRE_2 . "<br>";
}
echo(writeSecretSentence("l'homme", "la femme"));
echo (writeSecretSentence("la femme" , "l'homme"));
echo "no sexism";
<?php
$weapons = ['fists', 'whip', 'gun'];
$opponentWeapon = $weapons[rand(0,2)];
switch ($opponentWeapon) {
case 'fists':
$indyWeapon = 'gun';
break;
<?php
$movieTitles = [
'Raiders of the Lost Ark' => ['Harrisson Ford', 'Karen Allen', 'Paul Freeman'],
'Indiana Jones & The Temple of Doom' => ['Harrisson Ford', 'Kate Capshaw', 'Jonathan Ke Quan'],
'Indiana Jones & the Last Crusade' => ['Harrisson Ford', 'Sean Connery', 'Denholm Elliott']
];
foreach ($movieTitles as $key => $value) {
<?php
$chain = "0@sn9sirppa@#?ia'jgtvryko1";
$lengthChain = strlen($chain);
$keyNumber = $lengthChain / 2;
$updtdChain = substr($chain , 5 , $keyNumber);
$updtChain = str_replace('@#?', ' ' , $updtdChain);
$updtChain = strrev($updtChain);
echo $updtChain.' ';
<?php
$movieName = "Indiana Jones and the Last Crusade";
$seen = true;
$releaseDate = 1989;
$rating = 8.2;
echo $movieName."<\br>";
echo $seen."<\br>";
echo $releaseDate."<\br>";
foucauld@wilders-ThinkPad-T420:~/quetes/shell/planets$ tree
.
├── fictional
│   ├── arrakis.jpeg
│   ├── coruscant.jpeg
│   └── cybertron.jpeg
├── inhabited
│   ├── arrakis.jpeg
│   ├── coruscant.jpeg
│   ├── cybertron.jpeg
foucauld@wilders-ThinkPad-T420:~$ ls
bonjour.sh examples.desktop Musique snap wcs.sh
Bureau files nano.save Téléchargements
cheatsheet.md.save Images nano.save.1 Test
Documents Modèles Public Vidéos
foucauld@wilders-ThinkPad-T420:~$ ls Téléchargements
bootstrap-4.3.1.zip findThePrecious-master.zip
clmystery-master integration_maquette_finale
clmystery-master.zip integration_maquette_finale.zip
findThePrecious-master
#!/bin/bash
read -p '$ ./bonjour.sh ' paramètre
echo "Bonjour $paramètre !"