Skip to content

Instantly share code, notes, and snippets.

View IngridGdesigns's full-sized avatar
refactoring

Ingrid G. IngridGdesigns

refactoring
View GitHub Profile
@IngridGdesigns
IngridGdesigns / howToAddEnviromentalVariables.md
Last active March 27, 2024 09:40
Environmental variables

How to create a .env file and add your Environmental variables to your MAC OS.zshrc or .zprofile bash file

Set up variables in the file:

AUTH0_AUDIENCE=${audience}
AUTH0_DOMAIN=${domain}
Client_ID=${clientId}
Client_Secret=${clientSecret}
@IngridGdesigns
IngridGdesigns / LeetCodeChallengeExplanations.md
Last active December 4, 2023 19:57
LeetCode challenge explanations

Timout Cancellation

Given a function fn, an array of arguments args, and a timeout t in milliseconds, return a cancel function cancelFn.

After a delay of t, fn should be called with args passed as parameters unless cancelFn was invoked before the delay of t milliseconds elapses, specifically at cancelT ms. In that case, fn should never be called.

Example 1:

Input: fn = (x) => x * 5, args = [2], t = 20, cancelT = 50 Output: [{"time": 20, "returned": 10}]

Markdown Cheatsheet

A way to style your text and control the display of your document. Alright lets get started:

Headers

This is a h1 header

# Use one #hashmark to get <h1> tag Header

This is a h2 header

Assessment 11: Data Structures and Algorithms

(Assessment 11 Grader Guide)

Directions: For each of these data structures and algorithms, please explain in a few sentences:

  • what it is used for
  • what its advantages are (mention run-times when possible!)
  • the high-level ideas of how it is implemented
@IngridGdesigns
IngridGdesigns / GitHub_Collaboration.md
Last active January 30, 2019 01:55
Assessment_1 Portfolio project with HTML, CSS, Bootstrap

Portfolio Project: Collaboration and Review

Primary Goals

To demonstrate understanding of the topics covered in week 3 of this course, as well as pair programming skills.

Overview

In this project, you will put the finishing touches on your project by collaborating on documentation, reviewing, refactoring, and re-deploying with a partner. This should take about 2 hours.

Context

This is the third and final part of the Portfolio page project