Skip to content

Instantly share code, notes, and snippets.

View DrewBradley's full-sized avatar
😁
🔥

Drew Bradley DrewBradley

😁
🔥
  • Colorado
View GitHub Profile

Problem - Roman Numerals

Roman Numerals

Write a recursive function that converts an integer into a string such that the number is represented in Roman Numerals in the most efficient way.

For example, the number 4 could be written as IIII but it's more efficient to use IVsince that's a shorter string.

Assume no number is greater than 4,000.

Here are the Roman Numeral equivalents you'll need to know:

Bracket Matcher

Ever wonder how your linter knows if you have matching brackets? Well it's time to think of a solution to that!

Given a set of brackets, [, {, (, create a function that determines if the brackets are well-formed (match) or not - even with bracket nesting. For example:

bracket('{}');

// => true
@DrewBradley
DrewBradley / CuraTour.DTR.md
Last active April 6, 2021 20:58
DTR for CuraTour

Template for DTR Memo

Project: CuraTour

Group Member Names:

  • FRONTEND: Kristen Bair, Richard Tyler, Kevin Hartmann, Drew Bradley
  • BACKEND: Phil McCarthy, Robert Heath

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?): TECH:

USER 1

NAME:
Age:
Location:
Occupation:
Time spent using the app/week:
Comfort with technology:
Personality (place an X): Introverted ---------------- Extroverted

Inspiration!
@DrewBradley
DrewBradley / Rancid-Tomatillo-DTR.md
Last active February 3, 2021 00:43
Rancid-Tomatillo-DTR.md

Template for DTR Memo

Project: Rancid Tomatillo

Group Member Names: Brian Forbes and Drew Bradley

Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):

  • Stick to the DTR
  • Set boundaries: personal and professional.
  • New Technologies
@DrewBradley
DrewBradley / M3-prework.md
Last active February 3, 2021 04:37
Mod3 prework, deliverables, and React notes

Mod 3 Prework and Deliverables

What is a "data model", and how does it relate to the DOM in a front-end application?

  • The data model is the "single source of truth" as it were, and is where all data pertaining to an application is stored. Typically it is stored as an object containing data about the subject of the application. The DOM, of Document Object Model, is a representation of the framework of an application, that is interpretted by a web browser. I think of it as a carbon copy of the the HTML.

What is a "framework?" And how does it differ from a "library?"

  • Analogy: A framework is like a record player (or CD or cassette player) and the libraries are the records (or CD/cassette).
  • Library: Provides set of rules and 'preloaded' function that can be imported into a project and used in conjunction with vanilla JS and other libraries. Example: You could be using React and also import lodash to use lodash-specific functions.
  • Framework: Similar to a library, but with tighter restricti
### Template for DTR Memo
Project:
Group Member Names:
Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):
Team strengths & collaboration styles (consider discussing your Pairin qualities here):

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor

#Gear Up

##What role does empathy play in your life and how has it helped you?

Empathy has been an important part of my upbringing, since the time I was a child, to present day where I am a father, going through a divorce, and having to move into my sisters' house and working remotely in said house with two of my siblings who are also working remotely. As a heterosexual, white, cis, male who identifies as Christian, I have grown up and lived in a society where I rarely faced any pushback for my choices. However, having four older sisters, three of whom identify as queer, all of whom who have struggled with mental health issues, I have been privleged to see how they are viewed in society and how that has effects their lives. This has allowed me to be more aware of my own personal privleges. Although I am the youngest, people (strangers, friends, family) will often value my wants, needs, opinions over that of my siblings. As I've matured I have been able to notice when this is happening, turn to my sister(s)