Skip to content

Instantly share code, notes, and snippets.

View matthieua's full-sized avatar

Matt Delac matthieua

View GitHub Profile
<!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" />
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<title>Weather API</title>
<style>
<!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" />
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<title>OpenWeather API</title>
<style>
body {
<!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>JS Objects</title>
<style>
h1 {
color: #6443ea;
HTTP/1.1 200 OK
Date: Mon, 12 Aug 2019 15:22:20 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: close
Cache-Control: public, max-age=0, must-revalidate
Age: 1
Vary: Accept-Encoding
X-NF-Request-ID: ae4e1d1c-1d92-4408-8596-7551239ad144-2632491
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
<!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>Functions</title>
</head>
<body>
<h1>JS Events and Selectors</h1>
We couldn’t find that file to show.
<!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>SheCodes</title>
<style>
body {
font-family: Cerebri Sans, Helvetica, Arial, sans-serif;
<html>
<head> </head>
<body>
<h1>Math</h1>
<script>
let temperature = 19.7;
temperature = Math.round(temperature);
console.log(temperature);
let morningTemperature = 11;
function go(event) {
console.log(event.currentTarget === this);
};
document.querySelector('.block').addEventListener('click', go);
@matthieua
matthieua / parent.js
Created November 15, 2018 15:58 — forked from PavanKu/parent.js
this inside object method
var person = {
firstName: "John",
lastName : "Doe",
id : 5566,
fullName : function() {
return this.firstName + " " + this.lastName;
}
};