This file contains hidden or 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
| https://google-gruyere.appspot.com/GRUYEREINSTANCEID/deletesnippet?index=0 |
This file contains hidden or 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, { useState } from 'react'; | |
| function Counter() { | |
| const [count, setCount] = useState(0); | |
| return ( | |
| <div> | |
| <p>Le compteur est à : {count} </p> | |
| <input type="text" value={count} /> | |
| <button onClick={() => setCount(count + 1)}> |
This file contains hidden or 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
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Local Storage - Show</title> | |
| </head> | |
| <body> |
This file contains hidden or 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 connection = require('./config'); | |
| const express = require('express'); | |
| const app = express(); | |
| const port = 3000; | |
| const bodyParser = require('body-parser'); | |
| // Support JSON-encoded bodies | |
| app.use(bodyParser.json()); | |
| // Support URL-encoded bodies | |
| app.use(bodyParser.urlencoded({ |
This file contains hidden or 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
| SELECT t.name, COUNT(*) AS nb_players | |
| FROM team t | |
| JOIN player p ON p.team_id = t.id | |
| GROUP BY t.name | |
| ORDER BY nb_players DESC | |
| SELECT t.name, COUNT(*) AS nb_players | |
| FROM team t | |
| JOIN player p ON p.team_id = t.id |
This file contains hidden or 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
| SELECT w.firstname, w.lastname, p.role, t.name | |
| FROM wizard AS w | |
| JOIN player AS p on p.wizard_id = w.id | |
| JOIN team AS t on p.team_id = t.id | |
| ORDER BY t.name, p.role, w.lastname ASC, w.firstname ASC; | |
| SELECT w.firstname, w.lastname | |
| FROM wizard AS w | |
| JOIN player AS p on p.wizard_id = w.id |
This file contains hidden or 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 MyTimer from './MyTimer'; | |
| function App() { | |
| return ( | |
| <div> | |
| <MyTimer /> | |
| </div> | |
| ); | |
| } |
This file contains hidden or 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 app = express(); | |
| const port = 3000; | |
| const connection = require('./conf'); | |
| const bodyParser = require('body-parser'); | |
| // Support JSON-encoded bodies | |
| app.use(bodyParser.json()); | |
| // Support URL-encoded bodies | |
| app.use(bodyParser.urlencoded({ |
This file contains hidden or 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 app = express(); | |
| const port = 3000; | |
| const connection = require('./conf'); | |
| const bodyParser = require('body-parser'); | |
| // Support JSON-encoded bodies | |
| app.use(bodyParser.json()); | |
| // Support URL-encoded bodies | |
| app.use(bodyParser.urlencoded({ |
This file contains hidden or 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 app = express(); | |
| const port = 3000; | |
| const connection = require('./conf'); | |
| const bodyParser = require('body-parser'); | |
| // Support JSON-encoded bodies | |
| app.use(bodyParser.json()); | |
| // Support URL-encoded bodies | |
| app.use(bodyParser.urlencoded({ |