Skip to content

Instantly share code, notes, and snippets.

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)
import React from 'react'
class SignUp extends React.Component {
constructor(props){
super(props)
this.updateEmailField = this.updateEmailField.bind(this)
this.state = { email: ''}
}
updateEmailField(event) {
/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
-- 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 */;
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>
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)) {
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)
<!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 = '#';
Variables
AnneeEnCour
AgeUtilisateur
AnneeDeNaissance
Debut
Lire nombreSaisie
AnneeDeNaissance = AnneeEnCour - AgeUtilisateur