Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Digger

 Digger

PP Dev Lightning Talks 12/13/13

Gordon Diggs

December 13, 2013
Tweet

More Decks by Gordon Diggs

Other Decks in Technology

Transcript

  1. I figured there could be a way to do it

    more efficiently Friday, December 13, 13
  2. Enter digger • I didn’t really want to do much

    work • Sinatra Friday, December 13, 13
  3. Enter digger • I didn’t really want to do much

    work • Sinatra • MongoDB / MongoMapper - can just load JSON into database Friday, December 13, 13
  4. Enter digger • I didn’t really want to do much

    work • Sinatra • MongoDB - can just load json in • Bootstrap - margin:  0  auto;  No time for that Friday, December 13, 13
  5. MongoDB • Geospatial indexes make life easy • http://docs.mongodb.org/manual/core/ geospatial-indexes/

    ensure_index  [[:location,  '2d']]     def  self.near(location)  #  [0.00,  0.00]    where(:location  =>  {'$near'  =>  location}) end Friday, December 13, 13