Skip to content

Instantly share code, notes, and snippets.

View DominicGBauer's full-sized avatar

Dominic Gunther Bauer DominicGBauer

View GitHub Profile
@DominicGBauer
DominicGBauer / master.js
Last active January 15, 2019 14:35
Master
class Master {
tenThousandHours(sweat) {
this.sweat = sweat;
}
grind() {
console.log(this.sweat);
}
}
@DominicGBauer
DominicGBauer / newMaster.js
Last active January 16, 2019 12:38
newMaster
class Master {
tenThousandHours(sweat) {
this.sweat = sweat;
}
grind() {
console.log(this.sweat);
}
}
@DominicGBauer
DominicGBauer / error.js
Last active January 16, 2019 12:40
error
class Master {
tenThousandHours(sweat) {
this.sweat = sweat;
}
grind() {
console.log(this.sweat);
}
}
class Master {
tenThousandHours(sweat) {
this.sweat = sweat;
}
grind() {
console.log(this.sweat);
}
}
// Change this
grind() {
console.log(this.sweat);
};
// into this
grind = () => {
console.log(this.sweat);
};
class Master {
tenThousandHours(sweat) {
this.sweat = sweat;
}
grind = () => {
console.log(this.sweat);
}
}
// to the left of .grind is yoda so yoda is this
const grind = yoda.grind;
// grind is now an arrow function and therefore
// looks to the above to find out what this is
grind();
// Use the following line in your CLI to initilize
// a React app called Nasa
create-react-app Nasa
// Use the following line in your CLI
// Make sure you're in your app directory
// That would be Nasa for me
npm install axios
{
"date": "2019-02-10",
"explanation": "What does Venus look like beneath its thick clouds? These clouds keep the planet's surface hidden from even the powerful telescopic eyes of Earth-bound astronomers. In the early 1990s, though, using imaging radar, NASA's Venus-orbiting Magellan spacecraft was able to lift the veil from the face of Venus and produced spectacular high resolution images of the planet's surface. Colors used in this computer generated picture of Magellan radar data are based on color images from the surface of Venus transmitted by the Soviet Venera 13 and 14 landers. The bright area running roughly across the middle represents the largest highland region of Venus known as Aphrodite Terra. Venus, on the left, is about the same size as our Earth, shown to the right for comparison.",
"hdurl": "https://apod.nasa.gov/apod/image/1902/VenusEarth_MagellanApollo17_3000.jpg",
"media_type": "image",
"service_version": "v1",
"title": "Venus Unveiled",
"url": "https://apod.nasa.gov/apod/image/1902/Ve