Skip to content

Instantly share code, notes, and snippets.

View ggerdsen's full-sized avatar

Garrett Gerdsen ggerdsen

View GitHub Profile
@ggerdsen
ggerdsen / rails_setup.md
Created July 2, 2020 03:09 — forked from ryanflach/rails_setup.md
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :test:
    • gem 'rspec-rails' - user rspec in place of minitest (docs)
@ggerdsen
ggerdsen / capybara cheat sheet
Created July 2, 2020 03:03 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@ggerdsen
ggerdsen / M2IntermissionWork.md
Last active August 15, 2020 18:59
Mod 2 Intermission Work

B2 Intermission Work

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

HTML

  1. What is HTML?
    A programming language used to build the structure within web pages
  2. What is an HTML element?
    HTML elements are bits of information in between two tags Content
@ggerdsen
ggerdsen / Flower Exercise Final Worksheet.md
Last active June 8, 2020 05:27
Flower Exercise Final Worksheet

Flower Exercise Final Worksheet (for remote session) Petal #1: Most Valued Knowledge and Fields of Interest

  1. Technology
  2. Aerospace
  3. Energy

Petal #2: People (managers, teammates, users)

  1. Ideal manager: Savvy with their field, delegates responsibility and trusts direct reports
  2. Ideal team: A group that works well together and could enjoy happy hour together

Ceasar Cipher

Also known as a shift cipher, the Ceasar Cipher is one of the oldest and simplest encoding techniques. A Ceasar Cipher works by shifting the alphabet by a defined number of letters down the alphabet. For example, with a left shift of 3, 'D' would be replaced by 'A', 'E' would be replaced by 'B', and so on. See below for a full alphabet example with a left shift of 3:

plain:  ABCDEFGHIJKLMNOPQRSTUVWXYZ
cipher: XYZABCDEFGHIJKLMNOPQRSTUVW

Create a file named caesar_cipher.rb and within that file, write a program that will take any string, and encode it based on a shift value provided by the user. The interaction pattern for this program might look something like this:

Checker Board

Create a file called checker_board.rb and within that file, write a program that will print a checkerboard based on the size indicated by the user. On this board, the black spaces will be represented with 'X' and the white spaces will be represented with ' '. An example of the output for a size 6 board would look like this:

X X X  
 X X X  
X X X  
 X X X  
X X X 

Gear Up Pre-Work

Reflections

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

Each and everyone of us, at one time or another, has had a bad day, lingering problem, prolonged heartache, major loss or (and) experienced fear. Also, we've all had perhaps a boss, family member, friend or stranger that has been apathetic to our toughest situations. Apathy is the opposite of empathy. Let's start there. Most people do show empathy when aware of the tough situations of others. When I do realize that people are able to empathize with me, I am better able to communicate with them. With roles reversed, I am always trying to show empathy to those around me. I do not always know the struggles of those around me, I don't know their personal situation, I don't know if they are down. My best bet is to show empathy as a first response to someone's frustrations. In my experience, it is best not to judge people, but rather to show empathy - In doing this the person is better able to open u

@ggerdsen
ggerdsen / ProfessionalDevelopment.md
Last active April 14, 2020 17:58
Professional Development Mod-0

Garrett Gerdsen - 2005 BE

These are my PAIRIN results:

PAIRIN Results

Step 3: Personal Reflection #1

We all have our own idiosyncrasies, quirks and kryptonite. These are what make each of us unique to this world and each other. My opinion of myself has evolved over the years as life has brought many new challenges and experiences. I would say my greatest strength is not giving up. Having worked in many environments across the globe I have learned that my only obstacles are myself. Confidence in knowing I can accomplish anything I put my mind to is what I consider to be my greatest strength. I work well in groups or alone, but I believe my preference would depend upon the task at hand. Working with others is something I do enjoy, but I also like working on some projects alone. I know I have many areas for improvement, but I believe I will need to focus on new ways of learning. In the pa

Turing Logo

Beginners Guide to Data Types!

By Garrett Gerdsen (2005BE)

Data Types:

  1. String
  2. Integer
  3. Float
  4. Boolean