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
<!-- | |
In order to validate your HTML code, click on the arrow at the top right of this window. If you have some problems with validation, you can have a look here : https://blog.codepen.io/2017/10/11/analyze-css-now-using-stylelint/ | |
--> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name= "viewport" content= "width=device-width"> | |
<title>Wild Circus</title> | |
</head> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>FindThePrecious.com</title> | |
</head> | |
<body> | |
<header> | |
<h1>FindThePrecious.com</h1> | |
<nav> |
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
.container { | |
display: flex; | |
flex-direction:row; | |
} | |
.block, .image { | |
height: 340px; | |
width: 300px; | |
} |
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
126 cd Downloads/ | |
127 ls | |
128 ls clmystery-master.zip | |
129 ll clmystery-master.zip | |
130 ls clmystery-master.zip | |
131 ls .hidden clmystery-master.zip | |
132 unzip clmystery-master.zip | |
133 grep "67Monument Avenue, line 248" clmystery-master/mystery/interviews/ | |
134 ls | |
135 cd clmystery-master/ |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 Herald</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> |
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
process.stdin.resume() | |
process.stdin.setEncoding('utf8') | |
const currentYear = new Date().getFullYear(); | |
const birthYear = (age) => { | |
if (age.isNaN || age > 99) { | |
} else{ | |
let numYears = currentYear - age; | |
if (numYears < currentYear) { |
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
1.) “Durmstrang Institute” is actually in Sweden (Sweden), so modify its country. | |
mysql> UPDATE school SET country='Sweden' WHERE name='Durmstrang Institute'; | |
Query OK, 1 row affected (0.05 sec) | |
Rows matched: 1 Changed: 1 Warnings: 0 | |
mysql> SELECT * FROM school | |
-> SELECT * FROM school; | |
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT * FROM school' at line 2 | |
mysql> SELECT * FROM school; |
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 app = express(); | |
const port = 3000; | |
app.get('/api/movies', (request, response) => { | |
response.send('All Films'); | |
}); | |
app.get('/api/movies/:id', (request, response) => { | |
response.json({id: request.params.id}); |
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 app = express(); | |
const port = 3000; | |
const connection = require('./db'); | |
app.get('/api/movies', (request, response) => { | |
connection.query('SELECT * FROM movie', (error, result) => { | |
if (error) { | |
throw error; | |
} |
OlderNewer