Skip to content

Instantly share code, notes, and snippets.

@nihwang
nihwang / dabblet.css
Created August 1, 2014 17:19
Orange Triangle Pointing to the right
/**
* Orange Triangle Pointing to the right
*/
.nina-triangle {
width: 0;
height: 0;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;

###Yaml and HAML

What is YAML and HAML?

What does YAML stand for??
YAML: YAML Ain't Markup Language (Yet Another Markup Language) it was changed to distinguish its purpose as data-oriented and rather than a document markup

  • YAML was created to easily map data types such as lists and arrays.
  • YAML is structured in a way that is easy for human to read, like an outline
  • YAML doesn't use enclosures such as quotation marks, brackets, braces and open/close tags.
  • spaces and indentations are not important as long as parallel elements have the same left justification and nested elements are indented further
@nihwang
nihwang / 0.2.1-boggle_class_from_methods.rb
Created January 10, 2014 00:29 — 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(board) #this means we can have more than one board
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end