Skip to content

Instantly share code, notes, and snippets.

@mechamanny
mechamanny / shellsort.rb
Created August 1, 2017 15:51
Shell_sort_viz
# First lets visualize how the algorithm steps through a set of data:
set_of_nums = [27, 15, 26, 65, 21, 34, 5, 40, 54, 45, 100, 32, 49, 74, 5]
# first interval will be 5, here is what the subset will look like
subset_1 = [27, 34, 100]
subset_2 = [15, 5, 32]
subset_3 = [26, 40, 49]
subset_4 = [65, 54, 74]
#Student Survey Design:
create table "guide_survey"
t.integer "guide_id"
t.integer "event_attendance_id"
t.boolean "effective_teacher"
t.boolean "professional"
t.integer "overall_experience"
t.text "ask_feedback"
end
body{
background-color: #E6E6FA;
}
h1 {
text-align: center;
font-size:3em;
font-family: 'Fascinate Inline', cursive;
background-color: #DA70D6;
border: 2px solid;
}
@mechamanny
mechamanny / 0.2.1-boggle_class_from_methods.rb
Last active December 27, 2015 13:09 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
def initialize(dice_grid)
@boggle_board = dice_grid
end
def create_word(*coords)
coords.map { |coord| @boggle_board[coord.first][coord.last]}.join("")
end