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'; | |
import './App.css'; | |
import Films from './components/Films'; | |
function App() { | |
return ( | |
<div className="App"> | |
<Films /> | |
</div> |
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
function hello(name: string) { | |
console.log("Hello " + name); | |
} | |
var firstName = "bob"; | |
hello(firstName); | |
hello(firstName + " marley"); | |
function concat(a: string, b: string) { |
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
/* hello-wilder.js */ | |
// Define some variables | |
const myFilmName = 'The Last Samurai'; | |
const annéeSortie = 2004; | |
const realName = 'Edward Zwick' | |
const message = ' " ' + myFilmName + ' réalisé par ' + realName + ' est sorti en ' + annéeSortie + ' " '; | |
// Display a popup | |
alert(message); |
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
const http = require('http'); | |
const port = 3000; | |
const requestHandler = (request, response) => { | |
console.log(request.url); | |
let nameRequest = request.url.split('/'); | |
if (request.url === "/") { | |
console.log("C'est quoi??", nameRequest) | |
response.end("Bienvenue sur votre serveur !!"); | |
} else if (request.url === "/contact") { |
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, { Component } from "react"; | |
class SignUp extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
value: "" | |
}; | |
this.updateEmailField = this.updateEmailField.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, { Component } from 'react' | |
import './App.css' | |
class Author extends Component { | |
fonctionAuClic () { | |
alert (this.props.name) | |
} | |
/*fonctionAuClic() { |
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
extends layout | |
block content | |
const = sayHello | |
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
const express = require('express'); | |
const router = express.Router(); | |
const nodemailer = require("nodemailer"); | |
const multer = require('multer'); | |
const upload = multer({ dest: 'tmp/'}); | |
const fs = require('fs'); | |
var app = express(); | |
// Création de la méthode de transport de l'email | |
//var Transport = nodemailer.createTransport({ |
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
var express = require('express'); | |
var router = express.Router(); | |
const nodemailer = require("nodemailer"); | |
// Création de la méthode de transport de l'email | |
var Transport = nodemailer.createTransport({ | |
service: "Gmail", | |
auth: { | |
user: "cynnahsylvereve@gmail.com", | |
pass: "kendo3514" |
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
var express = require('express'); | |
var router = express.Router(); | |
const nodemailer = require("nodemailer"); | |
// Création de la méthode de transport de l'email | |
var Transport = nodemailer.createTransport({ | |
service: "Gmail", | |
auth: { | |
user: "cynnahsylvereve@gmail.com", | |
pass: "kendo3514" |