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 / Index.html
Created July 22, 2015 20:58
index.html // DevilsCraft.fr
<!DOCTYPE html>
<html>
<head>
<title>Projet en développement DevilsCraft / Quentin Aslan</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <!-- BOOTSTRAP -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta name="author" content="Quentin Aslan">
</head>
<body>
@quentin-aslan
quentin-aslan / Tchat_V1.py
Last active September 4, 2015 22:48
V1 du tchat CONSOLE
# ------------------------- #
# Code d'un tchat en reseau #
# Since 30/08/2015 #
# Created by Quentin Aslan #
# ------------------------- #
import os
from ftplib import FTP
pseudo = input("Salut, ton pseudo s'il te plait : ")
@quentin-aslan
quentin-aslan / timer.php
Last active September 19, 2015 01:17
Il est pas trop commenter mais bon... un timer en JQUERY, mise en page avec BOOTSTRAP et un tout petit peu de php pour le compteur.txt => http://petitbonhomme.co/timer.php
<?php
/**
* Petit timer en jquery, le php est la pour établir un petit compteur
* @author Quentin Aslan <quentin.aslan@outlook.com>
* @since 18/09/2015
*/
$compteur = fopen('timerTools/compteur.txt', 'r+');
$nbVues = fgets($compteur);
<p class="test"><a id="lien" href = "father arm/page2.html" title = "Seconde page">Go !</a></p>
<style type="text/css">
.test{
text-align: center;
}
a#lien{
color: red;
}
</style>
@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 ) -->
$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 / JQUERY.html
Last active October 7, 2015 18:15
Jquery
<script type="text/javascript">
$(function(){
while(true){
//code a faire
}
});
</script>
@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
*/
?>
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);
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
}