Skip to content

Instantly share code, notes, and snippets.

// Get all
// Find the command that retrieves all restaurants.
// ANSWER:
db.restaurants.find()
// Limit and sort
@mikeymaio
mikeymaio / gist:db7282915ea545cbfd5cc1dc55ec5c9c
Created December 15, 2016 05:36
What's-Poppin'-Capstone-1-User-Feedback
Overall, feedback was positive. Users were confused by the geocoder error responses "OVER_QUERY_LIMIT" and "ZERO_REULTS", but after
clicking through these errors, everything worked fine. Users requested that the logo displayed after search links to something(new search/home page
maybe a dropdown menu with options? new search/about/contact)
Plan:
1. Fix bugs and add user requested funtionality.
2. Add social features (check-in, like/leave comments about events that are in progress, upload a photo or short video of event)
3. Add alerts (if event has a certain ratio of positive feedback to user check-ins ,alert users when results load:
"this event is poppin' off!" ...or something like that)
@mikeymaio
mikeymaio / gist:d245bab7085bf6f3e2b9498b63665893
Created December 15, 2016 04:46
Request and Response Drills
https://gomix.com/#!/project/earthy-ketchup
https://gomix.com/#!/project/reflective-hip
@mikeymaio
mikeymaio / gist:108c083da89d5cb967b9bc7f02838544
Created December 6, 2016 05:51
High Level Definition of Capstone 1
Help users find live music and night life events in their current city using the BandsInTown API.
Let's talk about this when you have a chance. I am wondering if a foursquare and tastekid API combo will give me more options to expand.
Cat Carousel: https://jsbin.com/huhoya/edit?css,js,output
FizzBuzz: https://jsbin.com/sowutuk/edit?html,css,js,output
Lightbulb: https://jsbin.com/pusogug/edit?html,css,js,output
@mikeymaio
mikeymaio / gist:c317857848b46c04d7221602276990e3
Created November 14, 2016 17:34
Advanced Objects Drills Unit 2 Lesson 6
mostFrequentWords: https://jsbin.com/bebayud/edit?js,console
mergeDataStreams: https://jsbin.com/seziqon/edit?js,console
recipeFactory: https://jsbin.com/ginano/edit?js,output
@mikeymaio
mikeymaio / gist:d865802d979205d85f81059c268b3d7d
Created November 13, 2016 07:32
Unit 2 Lesson 6 Part 2: Object Basic Drills
Create My Object: https://jsbin.com/suwuzu/3/edit?js,console
Update Object: https://jsbin.com/haluhip/4/edit?js,console
Person Maker: https://jsbin.com/jenaxul/4/edit?js,console
Key Deleter: https://jsbin.com/fakugey/2/edit?js,console
@mikeymaio
mikeymaio / gist:d239433a8df9b6ef0d4152e5d76e312c
Created November 13, 2016 05:45
Unit-2-Lesson-5-Questions
What is scope? Your explanation should include the idea of global vs. local scope.
Scope is a heirarchy for access to variables. Javascript has two scopes: global and local.Global scope means for variable can be
accessed everywhere in the code. Local scope, however, limits the use of a variable to the function in which it was created. When a
variable is referenced, the Javascript interpeter will begin looking locally and move toward global scope until it finds the defined
value. If it reaches the global scope and cannot find a defined value, it will raise an error
Any variable that is declared outside of a function has global scope.
Why are global variables avoided?
Max/Min : https://jsbin.com/solene/edit?js,console
Average: https://jsbin.com/hewemeq/7/edit?js,console
FizzBuzz: https://jsbin.com/dogewo/5/edit?js,console
Trafic Lights: https://jsbin.com/cukoxo/5/edit?js,output
Error Alert: https://jsbin.com/cumaco/9/edit?js,console,output