Skip to content

Instantly share code, notes, and snippets.

View hhoopes's full-sized avatar

Heidi Hoopes hhoopes

  • Denver, CO
View GitHub Profile
  • Dynamic Dispatch
  • Dynamic Method
  • Ghost Methods
  • Dynamic Proxies
  • Blank Slate
  • Kernel Method
  • Flattening the Scope (aka Nested Lexical Scopes)
  • Context Probe
  • Class Eval (not really a 'spell' more just a demonstration of its usage)
  • Class Macros
@JoshCheek
JoshCheek / 15_ways_to_make_a_linked_list.rb
Created July 21, 2015 18:44
15 ways to make a linked list
# ----- Common Linked List Methods -----
def add_to_front(list, data)
build_list(data, list)
end
def add_to_back(list, data)
return build_list(data, empty_list) if empty?(list)
new_tail = add_to_back(tail(list), data)
build_list(head(list), new_tail)
@kjs222
kjs222 / Kerry_prework.md
Last active March 15, 2016 03:50 — forked from mbburch/prework.md
An example template for your Turing pre-work Gist

Turing School Prework - Kerry Sheldon

Task A- Practice Typing:

  • screenshots of scores posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections posted in comments

Task C- Create your Gist: this is it!

@JoshCheek
JoshCheek / binding_for_erb.rb
Last active June 3, 2018 02:24
How to get a binding for ERB
require 'erb'
class Num
def initialize(num)
@n = num
end
end
# okay, some object we want to evaluate our ERB within,
# to do that we need a binding for it