Skip to content

Instantly share code, notes, and snippets.

View skwak's full-sized avatar

Stephanie Kwak skwak

View GitHub Profile
### Keybase proof
I hereby claim:
* I am skwak on github.
* I am skwak2 (https://keybase.io/skwak2) on keybase.
* I have a public key ASBmmAdLuVzCSwJ654JhUBt9XVWVB_bM_hMjM_EM00epngo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am skwak on github.
  • I am skwak (https://keybase.io/skwak) on keybase.
  • I have a public key ASB4UO58KVjDsKn9CRjDkLifGj1X7YNJZxmCVd8WUk650Ao

To claim this, I am signing this object:

@skwak
skwak / logicassessment2.md
Last active August 29, 2015 14:02
Logic Assessment #2
  1. The first two gnomes make a line parallel to the cave entrance. Later gnomes join the line at the dividing point between red & blue foreheads. If the foreheads are the same color, a gnome goes to one of the line's ends.

  2. My "ah-ha" moment came when I was playing kickball at a friend's party. In picking teams, team leaders stood at one end, with potential teammates sitting parallel to them. So, I imagined gnomes leaving a cave to enter a kickball field. Maybe the first two gnomes who leave the cave have red & blue foreheads. Then the next gnome with a blue forehead goes in between the two cavemen so the formation is now RBB. If the foreheads are the same color, for instance BBB, and a gnome with a red forehead comes out, the gnome goes left or right to form RBBB or BBBR. I imagined various combinations, and this method seems to work. Now the gnomes can play kickball.

  3. a) If the gnomes "automatically sort themselves", maybe any kind of sorting is possible, b) Each gnome stares at another gnome and s

@skwak
skwak / logicassessment1.md
Last active August 29, 2015 14:02
Logic Assessment #1
  1. The weights of the cats are 6kg, 6kg, and 1kg.

  2. The main clue was the tarot card reader's statement that the three cats' weights multiply to 36. I listed out the divisors of 36 and came to the understanding that there are 8 possible combinations of cat weights using the divisors of 36, 18, 12, 9, 4, 3, 2, and 1. However, the tarot reader refers to Sammy as her "littlest kitty", which means that certain combinations aren't possible since there can't be two smaller cats who weigh the same amount. I then examined the chart I had made of possible combinations of cat weights with the corresponding total weights. I realized why Bookis couldn't figure out the weights of the cats even after knowing what their weights added up to - there are two weight totals that are the same: 13kg. One combination is 9kg/2kg/2kg, which I had already eliminated, and the other combination is 6kg/6kg/1kg: the answer!

  3. a) It's a trick question. The cats' weights depend on how much the cats have eaten in the day, b) The

@skwak
skwak / readingassessment.md
Last active August 29, 2015 14:02
Rubygems Reading Assessment
  1. The command bundle gem foodie creates a scaffold directory named foodie. This command will also start saving files to a Git repository if Git is installed.

  2. The test files are put into the spec directory.

  3. We write spec.add_dependency "activesupport", "4.0.0"

  4. Steps to write a generator:

  • First, we define a generator class called recipe, and we require the file for the class.
  • We make sure to set inheritance so that recipe inherits from Thor::Group, and we include Thor::Actions to define helper methods.