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
{ | |
"bookables": [ | |
{ | |
"id": "8ec63a42-83b5-4031-ae87-e44a07f33f0c", | |
"name": "Rock et chanson", | |
"description_1": "Rock et chanson", | |
"description_2": "181 Rue François Boucher, Talence", | |
"latlng": { | |
"latitude": 44.7926646, | |
"longitude": -0.58951 |
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
class Monster { | |
constructor (options){ | |
this.name = options; | |
this.health = 100; | |
} | |
heal() { | |
this.health += 10; | |
console.log(`${this.name} s'est soigné`) | |
} |
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 address = { | |
city: "Lyon", | |
state: "FR", | |
zip: 69001 | |
}; | |
const sportList = ['Football', 'BasketBall']; | |
const otherSportList = ['Boxe', 'Judo']; | |
sportList.push(...otherSportList); |
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 Timer extends Component { | |
constructor(props){ | |
super(props); | |
this.state = { | |
count: 0 | |
} | |
} |
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 logo from './logo.svg'; | |
import './App.css'; | |
import Password from './Password.js' | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<header className="App-header"> |
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 logo from './logo.svg'; | |
import './App.css'; | |
import Author from './Author.js'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> |
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 multer = require('multer'); | |
const upload = multer({ dest: 'tmp/' }); | |
const fs = require('fs'); | |
/* GET home page. */ | |
router.get('/', function(req, res, next) { | |
res.render('index', { title: 'Upload a file yaw !' }); | |
}); |
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 mysql = require('mysql'); | |
//initalisation de la connexion à mysql | |
let sqlConnexion = mysql.createConnection({ | |
host: "localhost", | |
user: "root", | |
password: "xxxxxx", | |
database: "Rapaces_de_gap" | |
}); |
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"); | |
/* définition de la VARIABLE à l'entrée de la session */ | |
router.get('/askForCookiesRecipe', function(req, res, next){ | |
var smtpTransport = nodemailer.createTransport({ | |
service: "Gmail", |
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(); | |
/* définition de la VARIABLE à l'entrée de la session */ | |
router.get('/session-in', function(req, res, next) { | |
req.session.song = 'be bop a lula'; | |
res.end(); | |
}); |
NewerOlder