Skip to content

Instantly share code, notes, and snippets.

View evadav's full-sized avatar

Eva Martín evadav

View GitHub Profile
@evadav
evadav / index.html
Created April 1, 2019 08:00
Quest Find the Precious
<!DOCTYPE html>
<html lang="en">
<head>
<title>Find The Precious</title>
<meta charset= UTF-8/>
<meta name="description" content="First quest Wild Code School"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="misEstilos.css" />
</head>
@evadav
evadav / quest.js
Created April 4, 2019 09:12
My first application Node.JS
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('How old are you ? ')
process.stdin.on('data', (age) => {
console.log('you are' + age.trim() +'years old')
if (age > 99){
console.log ('Too old')
} else {
var year = 2019;
@evadav
evadav / gandalf.css
Created April 4, 2019 12:15
02 - Give style with CSS
body {
font-family: Arial, Helvetica, sans-serif;
}
.gandalf{
position:relative;
max-width: 500px;
height: 580px;
text-align: center;
@evadav
evadav / gridQuest.html
Created April 7, 2019 00:34
Bootstrap Quest-Sauron's Eye
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" >
<link rel="stylesheet" href="sauron.css">
<title>Sauron's Eye</title>
</head>
@evadav
evadav / class.js
Created April 9, 2019 09:09
Definiendo clases en JS
class Vehicle{
constructor(color, model){
this.color= color;
this.model= model;
}
sayModel(){console.log('My model is &{this.model}');
}
sayColor(){console.log('My color is &{this.color}')
@evadav
evadav / my_history.log
Created April 21, 2019 22:56
Quest UNIX -- Murder in Terminal City
420 cd desktop
421 cd projectos
422 cd quest_unix
423 ls
424 cat clmystery-master/
425 cd clmystery-master/
426 ls
427 cat hint5
428 head -n 173 streets/Mattapan_Street | tail -n 1
429 cat instructions
@evadav
evadav / arabic2roman.js
Created April 23, 2019 10:37
Convertir a números romanos
module.exports = function romanToArabic (num){
let romans = {M:1000,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1};
let letter=''
let resultado= ''
let valor = 0
for (letter in romans ){
valor = romans[letter]
while (num >= valor){
resultado += letter
@evadav
evadav / Projectos\JS_MADRID\confirm.html
Created May 5, 2019 21:52
Display a potatoes stack
<!DOCTYPE html>
<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>Document</title>
</head>
<body>
<script>
@evadav
evadav / DATOS.txt
Created May 22, 2019 10:36
Retrieving wizards
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 38
Server version: 5.5.24-log MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
@evadav
evadav / express.js
Last active July 1, 2019 09:56
Express 1 - Express Discovery
const express = require('express');
const app = express();
const port = 3000;
//A route answering the url /api/movies which sends as information a string containing "All films"
app.get('/api/movies' , function(req, res ){
response.end('All movies');
});