This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
class SignUp extends React.Component { | |
constructor(props){ | |
super(props) | |
this.updateEmailField = this.updateEmailField.bind(this) | |
this.updatePasswordField = this.updatePasswordField.bind(this) | |
this.updatePasswordBisField = this.updatePasswordBisField.bind(this) | |
this.updateNameField = this.updateNameField.bind(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
class SignUp extends React.Component { | |
constructor(props){ | |
super(props) | |
this.updateEmailField = this.updateEmailField.bind(this) | |
this.state = { email: ''} | |
} | |
updateEmailField(event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/La/g | |
/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/g | |
/[0-9]\/[0-9]{2}/g | |
/format\w{0,}/g | |
/\(\w.{0,}\)/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: florentin_h_wcs_toulouse | |
-- ------------------------------------------------------ | |
-- Server version 5.7.21-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 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let http = require('http') | |
let port = 3000 | |
const Handlebars = require('handlebars') | |
const express = require('express') | |
const app = express() | |
const home = ` | |
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.stdin.resume() | |
process.stdin.setEncoding('utf8') | |
console.log('Quel âge as tu ? ') | |
process.stdin.on('data', (number) => { | |
resultat = 2018 - (number) | |
if (number <= 99 && number > 0) { | |
console.log('Ton année de naissance est: ' + resultat) | |
} | |
else if (isNaN(number)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let customer = { city: "toulouse", age: 26 } | |
const dateOfBirth = "20/04/91" | |
const sentence = `"J'habite à ${customer.city}, j'ai ${customer.age} ans et je suis né(e) le ${dateOfBirth}"` | |
console.log(sentence) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Patates</title> | |
</head> | |
<body> | |
<script> | |
var patates = prompt("Hey mon ami ! Tu aime ça les patates ?") | |
var tasdepatates = '#'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Variables | |
AnneeEnCour | |
AgeUtilisateur | |
AnneeDeNaissance | |
Debut | |
Lire nombreSaisie | |
AnneeDeNaissance = AnneeEnCour - AgeUtilisateur | |
NewerOlder