Skip to content

Instantly share code, notes, and snippets.

View quentin-aslan's full-sized avatar
🎯
Focusing

Quentin Aslan quentin-aslan

🎯
Focusing
View GitHub Profile
@quentin-aslan
quentin-aslan / HowInstallPWA.vue
Created August 10, 2023 22:54
This gist provides a Vue.js component with step-by-step instructions to guide users on installing the PWA (Progressive Web App) and enabling notifications on both Android and iOS devices. It's crafted to be user-friendly with the inclusion of emojis for visual guidance. Designed to enhance user experience, this component emphasizes the importanc…
<template>
<div class="container">
<div>
<h2>Installation Guide</h2>
<p><strong>Note:</strong> This website is not fully available unless you install it as a PWA. Please follow the instructions below to install and get the best experience. 🚀</p>
<h3>iOS (Safari) 🍏</h3>
<h4>1. Installing the PWA:</h4>
<ol>
@quentin-aslan
quentin-aslan / apiRest.js
Created September 14, 2019 17:53
When i try to learn node js
const express = require('express');
const app = express();
app.use(express.json());
app.use(express.urlencoded({extended: true}))
const bikes = [
{id: 1, color: 'blue'},
{id: 2, color: 'red'}
];
<!DOCTYPE html>
<html>
<head>
<title>Challenge</title>
</head>
<body>
<form action="action.php" method="POST">
<p>
<?php
$name = $_POST['nom'];
$subject = $_POST['sujet'];
$email = $_POST['email'];
$text = $_POST['text'];
$dest = "quentin.aslan@outlook.com";
$data = array(
'dest' => $dest,
void setup() { // Fonction d'initialisation des variables
size(500, 500); // Définie la taille de l'image
background(255); // Couleur de fond (BLANC)
smooth(); // Affiner les bordures
print("Afficher sur la touche ENTRER pour afficher le dessin\n"); // Ecrire dans la console.
}
void draw() { // Fonction obligatoire
}
var me = getLeek();
var leek = getNearestEnemy(); // Je recupère l'id de mon ennemie.
var leekName = toUpper(getName(leek));
var farmerName = toUpper(getFarmerName(leek));
var turn = getTurn();
var cellLeek = getCell(leek);
var cellMe = getCell();
var distance = getCellDistance(cellMe, cellLeek);
debug(distance);
@quentin-aslan
quentin-aslan / test.php
Created October 20, 2015 12:23
Copyright php
<?php
/**
* Description de la page
* @author Neko
* @copyright Neko - tout droit réservé - 2015
*/
?>
@quentin-aslan
quentin-aslan / JQUERY.html
Last active October 7, 2015 18:15
Jquery
<script type="text/javascript">
$(function(){
while(true){
//code a faire
}
});
</script>
$messageEmail ='<html><head><title>Email de contact</title></head><body><h2 style="color:red;">Message de '.$pseudo.' qui a pour sujet : <em>'.$subject.'</em></h2><br /><br /><h2 style="color:blue;">Message :</h2><p><em>'.$message.'</em></p><br /></body></html>';
@quentin-aslan
quentin-aslan / coté client.html
Last active September 29, 2015 18:20
API EMAIL
<form action="http://petitbonhomme.co/api/mail.php" method="POST"> <!-- OBLIGATOIRE -->
<input type="hidden" name="to" value="quentin.aslan@outlook.com" /> <!-- Adresse ou le mail va être envoyé -->
<input type="hidden" name="site" value="http://tonsite.com" /> <!-- Url de la page de contact de votre site -->
<input type="text" name="pseudo" /> <!-- Le pseudo du client (NE PAS OUBLIER LE NAME) -->
<input type="email" name="from" /> <!-- Adresse mail du client (NE PAS OUBLIER LE NAME ) -->