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
var express = require('express'); | |
var app = express(); | |
// Create JS object | |
const appData = {}; | |
// Respond with JS object when a GET request is made to the homepage | |
app.get('/all', function (req, res) { | |
res.send(appData); | |
}); |
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
// Empty JS object to act as endpoint for all routes | |
projectData = {}; | |
// Express to run server and routes | |
const express = require('express'); | |
// Start up an instance of app | |
const app = express(); | |
// Cors for cross-origin allowance |
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
/* Empty JS object to act as endpoint for all routes */ | |
projectData = {}; | |
// TODO-Express to run server and routes | |
// TODO-Start up an instance of app | |
// TODO-Cors for cross origin allowance | |
// Use express built-in middlewares for parsing JSON and URL-encoded request bodies |
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
document.addEventListener('DOMContentLoaded', function() { | |
const links = document.querySelectorAll('#ga-99cff7'); | |
links.forEach(link => { | |
link.addEventListener('click', function(event) { | |
event.preventDefault(); | |
console.log("Wow! We didn't navigate to a new page!"); | |
}); | |
}); | |
}); |
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>Exercise 1</title> | |
<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/> | |
<style> | |
.container { | |
display: flex; | |
flex-direction: row-reverse; /* Changed from column to row-reverse */ |
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
<input type="checkbox" /> |
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> | |
<head> | |
<title>E-commerce Registration</title> | |
</head> | |
<body> | |
<h2>E-commerce Registration Form</h2> | |
<form action="/submit_registration" method="post"> |
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
import java.util.concurrent.TimeUnit; | |
public class Main | |
{ | |
public static void main(String[] args) { | |
long startTime = System.nanoTime(); | |
String word = "Hola mi nombre es Juri"; | |
System.out.println("Result: " + vowelOnly(word)); | |
long endTime = System.nanoTime(); | |
long totalTime = (endTime - startTime); |
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
import java.util.concurrent.TimeUnit; | |
public class Main | |
{ | |
public static void main(String[] args) { | |
long startTime = System.nanoTime(); | |
String word = "Hola mi nombre es Juri"; | |
System.out.println("Result: " + vowelOnly(word)); | |
long endTime = System.nanoTime(); | |
long totalTime = (endTime - startTime); |
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
String respuesta = edtEditText.getText().toString().toUpperCase(); | |
if(respuesta.equals("PERU") || respuesta.equals("PERÚ")){ | |
return true; | |
}else{ | |
return false; | |
} |