MD file cheatsheet -
md-cheatSheet
Keyboard Shortcuts Windows -
ShortcutsWindows
Keyboard Shortcuts Mac -
Keyboard Shotcuts Mac
Git -
oh-my-git
git-branches
Flexbox -
flexbox-froggy
flex-box-zombie
tower-defense
Go to this link https://cloudinary.com/ and create your cloudinary account, verify your email and go through or skip the initial questions
After you are done you should be able to see the following in your dashboard:
- Cloud Name
- API key
- API Secret
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
function filter_list(l) { | |
return l.filter((elem)=> typeof elem === 'number') | |
} |
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
class Chronometer { | |
constructor() { | |
this.currentTime = 0; | |
this.intervalId = null; | |
} | |
start(printTimeCallback) { | |
this.intervalId = setInterval(() => { | |
this.currentTime += 1; | |
if (printTimeCallback) { |
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
// Iteration 1: All directors? - Get the array of all directors. | |
// _Bonus_: It seems some of the directors had directed multiple movies so they will pop up multiple times in the array of directors. | |
// How could you "clean" a bit this array and make it unified (without duplicates)? | |
function getAllDirectors(moviesArray) { | |
const directorsArr = moviesArray.map((oneMovie) => { | |
return oneMovie.director; | |
}); | |
return directorsArr; | |
} |
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
// Soldier | |
class Soldier { | |
constructor(health, strength) { | |
this.health = health; | |
this.strength = strength; | |
} | |
attack() { | |
return this.strength; | |
} | |
receiveDamage(damage) { |
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
// Iteration #1: Find the maximum | |
function maxOfTwoNumbers(num1, num2) { | |
console.log("here is my log", num1, num2); | |
if (num1 > num2) { | |
return num1; | |
} else { | |
return num2; | |
} | |
} |
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
//iteration 1 | |
const hacker1 = 'Eric' | |
console.log('The drivers name is '+ hacker1) | |
const hacker2 = 'Eric' | |
console.log("The navigator's name is " + hacker2) | |
//iteration 2 | |
// '' or " " or ` ` | |
if(hacker1.length > hacker2.length){ | |
console.log(`The driver has the longest name, it has ${hacker1.length} characters.`) |
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
//Youtube channels | |
https://www.youtube.com/@WebDevSimplified - this guy breaks down React and CSS amazingly | |
https://www.youtube.com/@CodingGarden - This guy solves beginner katas in multiple ways (super recommend to help with js methods) | |
https://www.youtube.com/@cs50 - Great course on computer languages and computers in general. (Harvard taught) | |
https://www.youtube.com/@crashcourse - short videos explaining how computers and all the components work inside | |
https://www.youtube.com/@Fireship - Really great follow with interesting videos | |
https://www.youtube.com/@AniaKubow - This is the woman who teaches for Scrimba. Great teacher | |
//Websites to learn | |
https://scrimba.com - great free lessons for typescript and other libraries |
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
// ℹ️ Gets access to environment variables/settings | |
// https://www.npmjs.com/package/dotenv | |
require('dotenv').config() | |
// ℹ️ Connects to the database | |
require('./db') | |
// Handles http requests (express is node js framework) | |
// https://www.npmjs.com/package/express | |
const express = require('express') |
NewerOlder