Skip to content

Instantly share code, notes, and snippets.

interface FourLegs {
readonly fourLeg: true;
}
interface Black {
readonly black: true;
}
class Animal {
}
#!/bin/bash
echo "Bonjour, quel est votre nom : $nom"
read nom
echo "Salut $nom."
@mehdihettak
mehdihettak / README.md
Created April 20, 2019 16:29 — forked from JamesMenetrey/README.md
Install Oh-My-Zsh + iTerm2 with Solarized + System-wide console in 2017 (macOS)

Install iTerm2 with Solarized in 2017

Here is the looks and feel of your terminal once the tutorial has been applied on your system:

Install iTerm2

Using Homebrew:

+----+-----------+------------+------------+-------------+-------------------------------------------------------------+-----------+
| 1 | harry | potter | 1980-07-31 | london | | 0 |
| 2 | hermione | granger | 1979-09-19 | | Friend of Harry Potter | 0 |
| 3 | lily | potter | 1960-01-30 | | mother of Harry Potter | 0 |
| 4 | ron | weasley | 1980-03-01 | | Best friend of Harry | 0 |
| 5 | ginny | weasley | 1981-08-11 | | Sister of Ron and girlfriend of Harry | 0 |
| 6 | fred | weasley | 1978-04-01 | | | 0 |
| 7 | george | weasley | 1978-04-01 | |
mysql> INSERT INTO school (name, country, capacity) VALUES ('Ilvermorny School of Witchcraft and Wizardry', 'USA', 300), ('Koldovstoretz', 'Russia', 125), ('Mahoutokoro School of Magic', 'Japan', 800), ('Uagadou School of Magic','Uganda',350);
mysql> UPDATE school SET country='Sweden' WHERE id=4;
mysql> UPDATE school SET capacity=700 WHERE id=7;
mysql> DELETE FROM school WHERE name LIKE '%Magic%';
+----+----------------------------------------------+----------+----------------+
const http = require('http');
const port = 3000;
const requestHandler = (request, response) => {
/* console.log(request.url);
response.end('Bienvenue sur votre serveur !!'); */
if (request.url === "/") {
response.end('Bienvenue sur votre serveur !!');
}
if (request.url === "/contact") {
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (request, response) => {
response.send('Bienvenue sur Express');
});
app.get('/api/movies', (request, response) => {
response.send("Récupération de tous les films");
});
const express = require('express');
const app = express();
const port = 8000;
const connection = require('./config');
// app.get('/', (request, response) => {
// response.send('Bienvenue sur Express');
// });
// app.get('/api/movies', (request, response) => {
// response.send("Récupération de tous les films");
const express = require('express');
const app = express();
const port = 8000;
const connection = require('./config');
const bodyParser = require('body-parser');
// Support JSON-encoded bodies
app.use(bodyParser.json());
// Support URL-encoded bodies
app.use(bodyParser.urlencoded({
const express = require('express');
const app = express();
const port = 8000;
const connection = require('./config');
const bodyParser = require('body-parser');
// Support JSON-encoded bodies
app.use(bodyParser.json());
// Support URL-encoded bodies
app.use(bodyParser.urlencoded({