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 / 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 / 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
@case-eee
case-eee / resources.md
Created August 16, 2016 15:46
Module 2 Resources

Group Retro and Feedback

Retro

First, take about 20 minutes and do a retro about your group experience. What's a retro? Think about our friday whole module retro - positives, negatives, and so-sos and actionable things you can improve to better the situation for next time. Here is a short read that may help define retros if you need a little more context. It may be helpful to revisit your DTR conversation too.

Feedback

"By not giving me feedback, you're preventing me from growing." -Anonymous Student

@case-eee
case-eee / after-school.md
Last active December 14, 2016 18:36
After School Programming

Station 1

Makey Makey

Station 2

Arduino Uno - we'll work with the arduino's to make lights blink, fade, etc. Find some code to help here.