Skip to content

Instantly share code, notes, and snippets.

View kawilliams8's full-sized avatar
🏔️

Katherine Williams kawilliams8

🏔️
View GitHub Profile
@kawilliams8
kawilliams8 / cardTypes.js
Created March 6, 2021 18:33
cardTypes solution
let cardTypes = [4, 7, 5, 11, 15];
function cardPackets(cardTypes) {
let packets = [2, 3]; //Assume two packets will require fewer additional cards, but check three packets, as well
let addlCardsSums = [0, 0]; //Store the sum of additional cards needed, per packet quantity (2 or 3, for now)
let addlCards = Array(cardTypes.length).fill(0); //Create a base array of [0,0, ..., 0] to capture add'l cards needed by type
packets.forEach((packet, i) => { //Iterate through 2 and 3 packets versions
cardTypes.map((count, j) => { //Map through cardTypes and increment until each type is divisible by the number of packets
while (count % packets[i] !== 0) {
@kawilliams8
kawilliams8 / SCSS.md
Created July 18, 2019 17:24 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

Agile & Feedback Reflection Guidelines

In interviews, you'll be asked about how you approach working in projects, and being able to describe how you utilize agile processes is a great way to help you stand out as a junior developer candidate. This reflection is meant to help you develop this skill.

With that in mind, please answer the following questions in your own gist about your group project:

  1. What have you learned about the use of agile vs. waterfall in software projects?

I've learned that almost the entire industry says it strives for agile practices, but ultimately ends up using a waterfall approach. There are many factors -- but mostly funding and a desire to not show an imperfect project -- that effect everyone's work cycle.

Number Guesser Doubles

Learning Goals

Develop your skills in writing:

  • semantic HTML
  • clean & organized CSS styles
  • DRY and organized JavaScript
  • Manipulate the page after it has loaded adding, removing, and updating elements on the DOM
  • Understand event bubbling and use event delegation on dynamic elements

Overview:

Project: Number Guesser

Group Member Names: Hindreen and Katie

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?):

We want to finish the project with all of the "proficient" standards and as many "exceptional" standards as time allows, improve our understanding of the concepts involved, and both be able to explain all components of the project. Success also includes strong communication.

Team strengths & collaboration styles (consider discussing your Pairin qualities here):

@kawilliams8
kawilliams8 / KatieWilliams_PD_Prework.md
Last active March 2, 2019 22:35
Katie Williams' 1903 PD Prework

Activity 1

Pick out 3 behaviors that resonate with you in the list and describe why they resonate with you in a reflection (4-6 sentences).

  • Use Google very aggressively
    This idea resonates with me because it tells me that, fundamentally, programmers are not expected to perfectly memorize everything. It is an admission that we just cannot remember everything, and are allowed and encouraged to depend on resources when we need them. It is okay to reserve our brainpower for deeper stretegic thinking and project planning at the expense of knowing all of a language or application in fine detail. I expect that the fine details will eventually begin to stick, through sheer repetition, but appreciate the upfront declaration that there is no shame in using good resources.
  • Always analyze the clues found in error messages
    This behavior resonates not because I already understand error messages, but because of the sentiment that error messages aren't our enemy or a reflection on the programmer as a human being. As
@kawilliams8
kawilliams8 / KatieWilliams_prework.md
Last active March 1, 2019 22:48
Katie Williams' 1903 Prework

DAY 1

  • Daily warm up
  • Computer setup
  • Start a Gist to track prework
  • CodePen account: @kawilliams8
  • Chapters 1 and 2, HTML and CSS book
  • 9 Qs
  1. HTML code gives a website it's structure, content, and important information about how it should be displayed and understood.
  2. An element includes the opening and closing tags, as well as all of the information between them.
  3. Attributes are included to give fuller information about the element, such as the language the text is meant to be read in.
@kawilliams8
kawilliams8 / gist:c5d700ef183ca298a5bebe13a292168b
Last active February 5, 2019 04:33
Beginners Guide to Git

Git, as I understand it today

Git is a distributed version control system created by Linus Torvalds in 2005. Torvalds created Git to work on the Linux kernel, with focus on speed and data integrity. Torvalds is credited as saying:

Microsoft isn't evil, they just make really crappy operating systems.

Linus Torvalds

Additional facts about Torvalds include:

@kawilliams8
kawilliams8 / mod_0_session_4_practice_tasks.md
Last active February 5, 2019 04:34 — forked from rwarbelow/mod_0_session_4_practice_tasks.md
Mod 0 Session 4 Practice Tasks

Session 4 Practice Tasks

The assignments listed here should take you between 1.5 and 2 total hours.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
@kawilliams8
kawilliams8 / mod_0_session_4_readings.md
Last active February 8, 2019 16:22 — forked from rwarbelow/mod_0_session_4_readings.md
Mod 0 Session 4 Readings and Responses

Session 4 Readings and Responses

The readings and responses listed here should take you approximately 50 minutes total.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of this document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.