Skip to content

Instantly share code, notes, and snippets.

View jhennerich's full-sized avatar

John Hennerich jhennerich

  • Federal Reserve Bank of Kansas City
  • Denver, CO
  • 23:49 (UTC -06:00)
View GitHub Profile
@jhennerich
jhennerich / Spain2024.md
Last active September 22, 2024 16:23
Trip to Spain September 2024

John and Deb's trip to Spain!

Barcelona Notes

Technical challenge reflections

This week's challegnes and peer feedback has reaffirmed that I need to contiune practicing my "raw" ruby coding. I am confidant in my code analization and errorlog debuging skills but this week proved that I need more plain ole coding time. As my gist notes below show, I was able to undersand and pesudocode the given problems. When it came time to implementing my ideas in actual code, I was not successful in the given time.

I will contiune to practice and refine my ruby coding skills by making use of the other examples on the tech_challenges/prompts and use HackerRank to find other examples.

Next week I have a job interview and the takehome challenge. I have scheduled an hour on my calendar each morning before standup to working on coding challenges.

Instructions

Write a method that takes two parameters, payload and target. The playload should be an array or unique integer values(positive, negative, or 0). The target should be an integer(positive, negative, or 0).Your method/function should search through the payload to find any two numbers that add together to equal the target value.

When you find a pair of numbers that add up to your target value, you can stop processing/searching and return an array of those two values. If no values are found return an empty array.

Be careful that you don’t find the same number twice in your payload; for example if your payload contains a 4 and your target is 8, your answer should not indicate that it found 4 twice.

Example output

 find_target([1, 3, 4, 5, 10], 15)

Instructions

In this challenge, you are working with a computer simulation of a mobile robot. The robot moves on a plane, and its movements are described by a command string consisting of one or more of the following letters:

G instructs the robot to move forward one step L instructs the robot to turn left R instructs the robot to turn right The robot CANNOT go backwards - poor robot. After running all of the movement commands, you want to know if the robot returns to its original starting location.

Example

Instructions

n this challenge you are given a menu and a list of receipt values. Write a method/function to find the first combination of food that adds up to the receipt total. Return a print out of only one combination for that receipt, and move on to the next receipt. How the print out looks is up to you, but here are some examples:

    #Example 1
    4.85:
    3 items, extra veggies, chips, cheese

    #Example 2
    13.75:
    3 items, {'veggie sandwich': 1, 'nachos': 2}
@jhennerich
jhennerich / mmim_be_endpoint.txt
Last active June 9, 2022 17:25
mmim_be endpoint descriptions
Get /api/v1/user_meetings?params= email: email@email.com
{
"data": [
{
"id": "1",
"type": "meeting",
"attributes": {
"host_name": "john",
"guest_name": "max",
"location_name": "A great place",
@jhennerich
jhennerich / mmim_be_endpoint.md
Created June 9, 2022 13:45
mmim_be endpoint descriptions

api/v1/search { "results": [ { "address_components": [ { "long_name": "2300", "short_name": "2300", "types": [ "street_number"

@jhennerich
jhennerich / gist:08ec801f69c08aaaa300ec7b92fcebcf
Last active May 27, 2022 20:14
Mod 3 Project Idea : Drinks and Drive Safe

Best place to get drinks and drive safe!

Pitch

  • Best drinks and check if you are still legal to drive!

End User

  • For those who want to have some good alcoholic drinks but want to be safe to drive

Problem

  • Find the best place for drinks and then calculate when you can drive to the next place!

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML? Hyper Text Markup Language: The standard markup language for documents designed to be displayed in a web browser.
  2. What is an HTML element? Defined by a start tag, some content and an end tag. An example is <h1>My First Heading</h1> Another example is <body> ... </body>
  3. What is an HTML attribute? Provide additional information about HTML elements, come in name/value paires like name="value"
  4. What is the difference between a class and an id? When would you use one vs. the other? Multiple HTML elements can have the same class, while id is unique to an element. Id is used to point to a specfic style declaration in a style sheet.

Checklist/Rubric

To make a copy of this rubric:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Part I: Creating Directories and Files; Initializing Git and Pushing to GitHub

  • I named my directories correctly.