Skip to content

Instantly share code, notes, and snippets.

@jmmastey
jmmastey / .rails_utils.sh
Last active June 8, 2021 15:42
custom development commands
# Railsy Utilities
# To use these, move this file into your home directory as .rails_utils.sh
# and add the following to your ~/.zshrc or ~/.bashrc
#
# source ~/.rails_utils.sh
#
# Usage: Navigate your terminal to the source code of any gem in your bundle,
# specifically the correct _version_ of that gem.
#
@jmmastey
jmmastey / rules_and_examples.rb
Last active October 29, 2021 14:51
Score a Bowling Game
# Our goal today is to write a program (or just a method) that returns the total score
# for a game of bowling. We'll start with simple examples, but the rules can get quite
# confusing. The goal of the interview is to talk through decisions and dealing with
# new requirements.
#
# You very probably won't get through every example before time is done. That's expected.
#
# Any language is fine, as is either object oriented or procedural code.If you don't
# know the basics of how bowling works, you should ask up front.