Skip to content

Instantly share code, notes, and snippets.

View FifthSurprise's full-sized avatar

Kevin Chang FifthSurprise

View GitHub Profile
@FifthSurprise
FifthSurprise / gist:411048ac550b6d918f13
Created June 14, 2014 20:18
Ruby005 Pigeon Solution
# Write your code here!
require 'pry'
def nyc_pigeon_organizer(pigeon_data)
result = {}
#going through the list of all the attributes
pigeon_data.each do |attributetype, attributelist|
attributelist.each do |attribute, pigeonlist|
pigeonlist.each do | pigeonname|
result[pigeonname]={} unless(result[pigeonname]) #add pigeon if not added before
if(attributetype == :color)
### Keybase proof
I hereby claim:
* I am FifthSurprise on github.
* I am fifthsurprise (https://keybase.io/fifthsurprise) on keybase.
* I have a public key whose fingerprint is 0DCF 4B72 A275 BF92 DB2C B132 58CB 6FB2 DC0B 1536
To claim this, I am signing this object:
@FifthSurprise
FifthSurprise / System Design.md
Created April 19, 2016 13:30 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?