Skip to content

Instantly share code, notes, and snippets.

:octocat:
Looking for an internship

Charline Fazentieux JonesCharly

Block or report user

Report or block JonesCharly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.js
const express = require('express');
const connection = require('./conf');
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({
extended: true
@JonesCharly
JonesCharly / index.js
Created May 18, 2019
Node.js Express n*2
View index.js
const express = require('express');
const connection = require('./conf');
const app = express();
const port = 3000;
app.get('/', (request, response) => {
response.send('Bienvenue sur Express Project');
});
app.get('/api/employees', (req, res) => {
View index.js
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (request, response) => {
response.send('Bienvenue sur Express Project');
});
app.get('/api/movies', (request, response) => {
response.send('Récupération de tous les films');
View index.js
const http = require("http")
const url = require("url")
const port = 3000
const server = http.createServer((req, res) => {
const page = url.parse(req.url).pathname
let name = page.slice(9)
View Mysql_quete3.txt
INSERT INTO school (name, country, capacity) VALUES ('Beauxbatons Academy of Magic', 'France', 550),
('Castelobruxo', 'Brazil', 380),
('Durmstrang Institute', 'Norway', 570),
('Hogwarts School of Witchcraft and Wizardry', 'United Kingdom', 450),
('Ilvermorny School of Witchcraft and Wizardry', 'USA', 300),
('Koldovstoretz', 'Russia', 125),
('Mahoutokoro School of Magic', 'Japan', 800),
('Uagadou School of Magic' , 'Uganda', 350) ;
------
View mySQL_2.txt
SELECT * FROM wizard WHERE birthday BETWEEN '1975-01-01' AND '1985-12-31';
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+
| id | firstname | lastname | birthday | birth_place | biography | is_muggle |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+
| 1 | harry | potter | 1980-07-31 | london | | 0 |
| 2 | hermione | granger | 1979-09-19 | | Friend 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 |
View Noe.ts
interface ADesPattes {
pattes: number;
}
interface AUneCouleur {
color?: string; // "?" veut dire que c'est optionnel
}
function Caresse(pattes: number){
if (pattes === 4) {
@JonesCharly
JonesCharly / FTP.Final.css
Created Mar 5, 2019
FindThePrecious.Final.Int
View FTP.Final.css
.navbar{
background-color: #3d7996!important;
}
.carousel-caption{
margin-bottom: 5%;
}
.carousel-caption p{
color:white;
}
View planet
Last login: Fri Mar 1 09:37:47 on ttys000
------------------------------------------------------------
~(master*) » wget https://github.com/bhubr/bhubr.github.io/raw/master/wild/planets.zip
unzip planets.zip
--2019-03-01 13:28:42-- https://github.com/bhubr/bhubr.github.io/raw/master/wild/planets.zip
Résolution de github.com (github.com)… 140.82.118.3, 140.82.118.4
Connexion à github.com (github.com)|140.82.118.3|:443… connecté.
requête HTTP transmise, en attente de la réponse… 302 Found
Emplacement : https://raw.githubusercontent.com/bhubr/bhubr.github.io/master/wild/planets.zip [suivant]
--2019-03-01 13:28:43-- https://raw.githubusercontent.com/bhubr/bhubr.github.io/master/wild/planets.zip
View Enquête à Terminal City
Last login: Thu Feb 28 15:52:23 on ttys000
------------------------------------------------------------
~(master*) » cat hint1 fazentieuxcharline@MacBook-Pro-3
cat: hint1: No such file or directory
------------------------------------------------------------
~(master*) » cd clmystery-master fazentieuxcharline@MacBook-Pro-3
------------------------------------------------------------
~/clmystery-master(master*) » cat hint1 fazentieuxcharline@MacBook-Pro-3
Try poking around what's in a file by using the 'head' command:
You can’t perform that action at this time.