Skip to content

Instantly share code, notes, and snippets.

View case-eee's full-sized avatar

Casey Ann (Cumbow) Schlotter case-eee

  • Lessonly
  • Indianapolis, IN
View GitHub Profile
class BoggleBoard
def initialize(boggle_board)
@boggle_board = boggle_board
end
def create_word(board, *coords)
coords.map { |coord| board[coord.first][coord.last]}.join("")
end
@case-eee
case-eee / todo.rb
Created August 15, 2014 20:46
todo-example (FYI this code won't actually run!)
# What classes do you need?
# Remember, there are four high-level responsibilities, each of which have multiple sub-responsibilities:
require 'csv'
class Todo
end
@case-eee
case-eee / hospital.rb
Created August 18, 2014 19:29
hospital interface
# TODO
# add employee and patient ID numbers - in case two people with the same name are both employees or patients
# AUTH process
class Hospital
attr_reader :name, :location, :employees, :patients
def initialize(args)
@name = args[:name]
@case-eee
case-eee / oauth.rb
Created November 12, 2014 18:44
OAuth Example w/ Google
require 'httparty'
require 'sinatra'
require 'securerandom'
require 'json'
get '/' do
erb :index
end
get '/redirect_auth_url' do
@case-eee
case-eee / recursion.md
Created October 26, 2015 00:21
Recursion Practice

Write a recursive function that searches for a target in a sorted array using binay search, where the array, its size and the target are given as parameters.

@case-eee
case-eee / how_the_web_works.md
Last active December 18, 2018 16:52 — forked from Carmer/how_the_web_works.md
How the Web Works - Deep Dive
@case-eee
case-eee / action-items.md
Last active August 5, 2016 18:41
Cohort Action Items

Cross Cohort Retro Action Items

Lunch Roulette

Because it's optional, it fell apart but it's super important for mod 1's and 2's. Allow people to opt out on weekly basis or module basis so they don't bail on their group. Perhaps allow people to specify cost of lunch and bringing lunch. Leader - Vido

Cleaning

  • Bathroom hasn't been fixed. Turing call to action.
@case-eee
case-eee / resources.md
Created August 16, 2016 15:46
Module 2 Resources
@case-eee
case-eee / dtr_expectations.markdown
Last active May 11, 2021 21:32 — forked from Carmer/setting_expectations.markdown
Group Work Expectations

Group Expectations

Group Member Names:

Project Manager:

Defining the Relationship (DTR) Questions:

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?
@case-eee
case-eee / sessions_cookies_flashes_homework.markdown
Last active September 5, 2016 23:21 — forked from rwarbelow/sessions_cookies_flashes_homework.markdown
Sessions, Cookies, and Flashes Homework

Homework

  1. Using a Flash

Implement a flash[:notice] in the BooksController #create action for when you successfully create a book.

Extension: Modify your #create action to conditionally create a book depending on whether or not a name is provided. Then create a flash[:error] that holds @book.errors.full_messages.join(", "). Use a dynamic content generator to display the flash notice. Take a look at 20:33 in the Sessions, Cookies, and Flashes video for a refresher on how to do this.

  1. Storing Most Recent Book in the Session